<script setup lang="ts">
|
import CommonAttr from '@/custom-component/common/CommonAttr.vue'
|
import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain'
|
import { storeToRefs } from 'pinia'
|
const dvMainStore = dvMainStoreWithOut()
|
const { curComponent } = storeToRefs(dvMainStore)
|
withDefaults(
|
defineProps<{
|
themes?: EditorTheme
|
}>(),
|
{
|
themes: 'dark'
|
}
|
)
|
</script>
|
|
<template>
|
<div class="attr-list de-collapse-style">
|
<CommonAttr :element="curComponent" :themes="themes"></CommonAttr>
|
</div>
|
</template>
|
|
<style lang="less" scoped>
|
.de-collapse-style {
|
:deep(.ed-collapse-item__header) {
|
height: 36px !important;
|
line-height: 36px !important;
|
font-size: 12px !important;
|
padding: 0 !important;
|
font-weight: 500 !important;
|
|
.ed-collapse-item__arrow {
|
margin: 0 6px 0 8px;
|
}
|
}
|
:deep(.ed-collapse-item__content) {
|
padding: 16px 8px 0;
|
}
|
:deep(.ed-form-item) {
|
display: block;
|
margin-bottom: 8px;
|
}
|
:deep(.ed-form-item__label) {
|
justify-content: flex-start;
|
}
|
}
|
</style>
|