diff --git a/src/components/ChartItemSetting/NameSetting.vue b/src/components/ChartItemSetting/NameSetting.vue index 6194728e..b05cf929 100644 --- a/src/components/ChartItemSetting/NameSetting.vue +++ b/src/components/ChartItemSetting/NameSetting.vue @@ -2,11 +2,15 @@ @@ -23,4 +27,16 @@ const props = defineProps({ }, }) +let valueCatch = '' + +const handleFocus = () => { + valueCatch = props.chartConfig.title +} + +const handleBlur = () => { + if(!props.chartConfig.title.length) { + window['$message'].warning('请输入至少一个字符!') + props.chartConfig.title = valueCatch + } +}