Skip to content

Commit 24d913d

Browse files
authored
fix: setting default style (#425)
1 parent 81e2144 commit 24d913d

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"qrcode.vue": "^3.3.3",
3131
"qs": "^6.11.0",
3232
"tdesign-icons-vue-next": "^0.1.7",
33-
"tdesign-vue-next": "^1.0.0",
33+
"tdesign-vue-next": "^1.0.8",
3434
"tvision-color": "^1.5.0",
3535
"vue": "^3.2.45",
3636
"vue-clipboard3": "^2.0.0",

src/layouts/setting.vue

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ watchEffect(() => {
214214
if (formData.value.brandTheme) settingStore.updateConfig(formData.value);
215215
});
216216
</script>
217-
<style lang="less" scoped>
217+
<!-- teleport导致drawer 内 scoped样式问题无法生效 先规避下 -->
218+
<!-- eslint-disable-next-line vue-scoped-css/enforce-style-type -->
219+
<style lang="less">
218220
.tdesign-setting {
219221
z-index: 100;
220222
position: fixed;
@@ -297,14 +299,14 @@ watchEffect(() => {
297299
.setting-container {
298300
padding-bottom: 100px;
299301
}
300-
:deep(.t-radio-group.t-size-m) {
302+
.t-radio-group.t-size-m {
301303
min-height: 32px;
302304
width: 100%;
303305
justify-content: space-between;
304306
align-items: center;
305307
}
306308
307-
:deep(.t-radio-group.t-size-m .t-radio-button) {
309+
.t-radio-group.t-size-m .t-radio-button {
308310
height: auto;
309311
}
310312
@@ -314,7 +316,7 @@ watchEffect(() => {
314316
align-items: center;
315317
margin-bottom: 16px;
316318
317-
:deep(.t-radio-button) {
319+
.t-radio-button {
318320
display: inline-flex;
319321
max-height: 78px;
320322
padding: 8px;
@@ -325,30 +327,30 @@ watchEffect(() => {
325327
}
326328
}
327329
328-
:deep(.t-is-checked) {
330+
.t-is-checked {
329331
border: 2px solid var(--td-brand-color) !important;
330332
}
331333
332-
:deep(.t-form__controls-content) {
334+
.t-form__controls-content {
333335
justify-content: end;
334336
}
335337
}
336338
337-
:deep(.t-form__controls-content) {
339+
.t-form__controls-content {
338340
justify-content: end;
339341
}
340342
}
341343
342344
.setting-route-theme {
343-
:deep(.t-form__label) {
345+
.t-form__label {
344346
min-width: 310px !important;
345347
color: var(--td-text-color-secondary);
346348
}
347349
}
348350
349351
.setting-color-theme {
350352
.setting-layout-drawer {
351-
:deep(.t-radio-button) {
353+
.t-radio-button {
352354
height: 32px;
353355
}
354356

0 commit comments

Comments
 (0)