Skip to content

Commit d7aa05f

Browse files
authored
fix(style): 部分选择器未随自定义样式前缀更改 (#229)
1 parent 587fb16 commit d7aa05f

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/pages/list/base/index.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ import { CONTRACT_STATUS, CONTRACT_TYPES, CONTRACT_PAYMENT_TYPES } from '@/const
8383
import Trend from '@/components/trend/index.vue';
8484
import { getList } from '@/api/list';
8585
import { useSettingStore } from '@/store';
86+
import { prefix } from '@/config/global';
8687
8788
import { COLUMNS } from './constants';
8889
@@ -181,7 +182,7 @@ const offsetTop = computed(() => {
181182
});
182183
183184
const getContainer = () => {
184-
return document.querySelector('.tdesign-starter-layout');
185+
return document.querySelector(`.${prefix}-layout`);
185186
};
186187
</script>
187188

src/pages/list/components/CommonTable.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ import { MessagePlugin } from 'tdesign-vue-next';
118118
import Trend from '@/components/trend/index.vue';
119119
import { getList } from '@/api/list';
120120
import { useSettingStore } from '@/store';
121+
import { prefix } from '@/config/global';
121122
122123
import {
123124
CONTRACT_STATUS,
@@ -265,7 +266,7 @@ const offsetTop = computed(() => {
265266
});
266267
267268
const getContainer = () => {
268-
return document.querySelector('.tdesign-starter-layout');
269+
return document.querySelector(`.${prefix}-layout`);
269270
};
270271
</script>
271272

src/style/layout.less

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
margin-left: 0;
1717
}
1818
}
19-
.tdesign-starter-link {
19+
.@{starter-prefix}-link {
2020
color: var(--td-brand-color);
2121
text-decoration: none;
2222
margin-right: 24px;

0 commit comments

Comments
 (0)