Fix marginTop not implemented in presentation divider (#8379)

This commit is contained in:
ian
2021-09-28 21:52:39 +08:00
committed by GitHub
parent 18846527c8
commit a806dc373a
2 changed files with 12 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ export default defineInterface({
},
},
schema: {
default_value: false,
default_value: true,
},
},
{

View File

@@ -1,6 +1,6 @@
<template>
<v-divider
:class="{ margin: icon || title }"
:class="{ 'add-margin-top': marginTop }"
:style="{
'--v-divider-label-color': color,
'--v-divider-color': 'var(--border-subdued)',
@@ -34,13 +34,21 @@ export default defineComponent({
type: Boolean,
default: false,
},
marginTop: {
type: Boolean,
default: true,
},
},
});
</script>
<style lang="scss" scoped>
.margin {
margin-top: 40px;
.v-divider {
margin-top: 10px;
margin-bottom: -10px;
}
.add-margin-top {
margin-top: 40px;
}
</style>