style: 移除不必要样式

This commit is contained in:
kailong321200875
2023-06-25 18:03:26 +08:00
parent 366db45282
commit 7ef1d1e301
3 changed files with 14 additions and 22 deletions

View File

@@ -10,7 +10,7 @@ const props = defineProps({
modelValue: propTypes.bool.def(false),
title: propTypes.string.def('Dialog'),
fullscreen: propTypes.bool.def(true),
maxHeight: propTypes.oneOfType([String, Number]).def('500px')
maxHeight: propTypes.oneOfType([String, Number]).def('300px')
})
const getBindValue = computed(() => {
@@ -92,13 +92,17 @@ const dialogStyle = computed(() => {
</template>
<style lang="less">
.@{elNamespace}-dialog__header {
margin-right: 0 !important;
border-bottom: 1px solid var(--tags-view-border-color);
}
.@{elNamespace}-dialog__footer {
border-top: 1px solid var(--tags-view-border-color);
.@{elNamespace}-dialog {
&__header {
margin-right: 0 !important;
border-bottom: 1px solid var(--el-border-color);
}
&__body {
padding: 0 !important;
}
&__footer {
border-top: 1px solid var(--el-border-color);
}
}
.is-hover {
@@ -106,14 +110,4 @@ const dialogStyle = computed(() => {
color: var(--el-color-primary) !important;
}
}
.dark {
.@{elNamespace}-dialog__header {
border-bottom: 1px solid var(--el-border-color);
}
.@{elNamespace}-dialog__footer {
border-top: 1px solid var(--el-border-color);
}
}
</style>