fix: 分离配置项里的名称部分数据

This commit is contained in:
mtruning
2022-03-19 21:29:03 +08:00
parent c4ff0d24b7
commit c4e3c34842
5 changed files with 41 additions and 46 deletions
@@ -0,0 +1,26 @@
<template>
<setting-item-box name="名称" :alone="true">
<n-input
type="text"
maxlength="6"
show-count
placeholder="请输入图表名称"
size="small"
v-model:value="chartConfig.title"
></n-input>
</setting-item-box>
</template>
<script setup lang="ts">
import { PropType } from 'vue'
import { SettingItemBox } from '@/components/ChartItemSetting/index'
import { ConfigType } from '@/packages/index.d'
const props = defineProps({
chartConfig: {
type: Object as PropType<ConfigType>,
required: true
},
})
</script>