fix(style): 部分选择器未随自定义样式前缀更改 (#229)

This commit is contained in:
Wandoupeas 2022-07-15 14:14:12 +08:00 committed by GitHub
parent 587fb161c7
commit d7aa05f5c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 3 deletions

View File

@ -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`);
};
</script>

View File

@ -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`);
};
</script>

View File

@ -16,7 +16,7 @@
margin-left: 0;
}
}
.tdesign-starter-link {
.@{starter-prefix}-link {
color: var(--td-brand-color);
text-decoration: none;
margin-right: 24px;