config.vue
1020 Bytes
<template>
<collapse-item name="树配置" :expanded="true">
<setting-item-box name="手风琴">
<setting-item name="是否开启">
<n-switch v-model:value="optionData.treeConfig.accordion" />
</setting-item>
</setting-item-box>
<setting-item-box name="选择框">
<setting-item name="是否开启">
<n-switch v-model:value="optionData.treeConfig.checkable" />
</setting-item>
</setting-item-box>
<setting-item-box name="展开">
<setting-item name="是否开启">
<n-switch v-model:value="optionData.treeConfig.defaultExpandAll" />
</setting-item>
</setting-item-box>
</collapse-item>
</template>
<script lang="ts" setup>
import { PropType } from 'vue'
import { CollapseItem, SettingItemBox, SettingItem } from '@/components/Pages/ChartItemSetting'
import { option } from './config'
defineProps({
optionData: {
type: Object as PropType<typeof option>,
required: true
}
})
</script>
<style lang="scss" scoped></style>