From d7aa05f5c0b3456f4da39ffa52eef6d101a108c9 Mon Sep 17 00:00:00 2001 From: Wandoupeas <371058156@qq.com> Date: Fri, 15 Jul 2022 14:14:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(style):=20=E9=83=A8=E5=88=86=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E5=99=A8=E6=9C=AA=E9=9A=8F=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E5=89=8D=E7=BC=80=E6=9B=B4=E6=94=B9=20(#229)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/list/base/index.vue | 3 ++- src/pages/list/components/CommonTable.vue | 3 ++- src/style/layout.less | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/pages/list/base/index.vue b/src/pages/list/base/index.vue index 55fd105..598c91e 100644 --- a/src/pages/list/base/index.vue +++ b/src/pages/list/base/index.vue @@ -83,6 +83,7 @@ import { CONTRACT_STATUS, CONTRACT_TYPES, CONTRACT_PAYMENT_TYPES } from '@/const import Trend from '@/components/trend/index.vue'; import { getList } from '@/api/list'; import { useSettingStore } from '@/store'; +import { prefix } from '@/config/global'; import { COLUMNS } from './constants'; @@ -181,7 +182,7 @@ const offsetTop = computed(() => { }); const getContainer = () => { - return document.querySelector('.tdesign-starter-layout'); + return document.querySelector(`.${prefix}-layout`); }; diff --git a/src/pages/list/components/CommonTable.vue b/src/pages/list/components/CommonTable.vue index 37c92d6..d89d5ee 100644 --- a/src/pages/list/components/CommonTable.vue +++ b/src/pages/list/components/CommonTable.vue @@ -118,6 +118,7 @@ import { MessagePlugin } from 'tdesign-vue-next'; import Trend from '@/components/trend/index.vue'; import { getList } from '@/api/list'; import { useSettingStore } from '@/store'; +import { prefix } from '@/config/global'; import { CONTRACT_STATUS, @@ -265,7 +266,7 @@ const offsetTop = computed(() => { }); const getContainer = () => { - return document.querySelector('.tdesign-starter-layout'); + return document.querySelector(`.${prefix}-layout`); }; diff --git a/src/style/layout.less b/src/style/layout.less index c4f7fe1..fd0f838 100644 --- a/src/style/layout.less +++ b/src/style/layout.less @@ -16,7 +16,7 @@ margin-left: 0; } } -.tdesign-starter-link { +.@{starter-prefix}-link { color: var(--td-brand-color); text-decoration: none; margin-right: 24px;