Przeglądaj źródła

perf: 移除文件内eslint注释

tnt group 3 lat temu
rodzic
commit
31be6737f2

+ 0 - 6
src/packages/components/Informations/Mores/WordCloud/config.vue

@@ -1,5 +1,3 @@
-<!-- eslint-disable vue/multi-word-component-names -->
-<!-- eslint-disable vue/no-mutating-props -->
 <template>
   <collapse-item name="词云" expanded>
     <setting-item-box name="形状">
@@ -70,17 +68,13 @@ const sliderFormatTooltip = (v: number) => {
 }
 
 const updateWidth = (value: number) => {
-  // eslint-disable-next-line vue/no-mutating-props
   props.optionData.series[0].width = `${value}%`
 }
 const updateHeight = (value: number) => {
-  // eslint-disable-next-line vue/no-mutating-props
   props.optionData.series[0].height = `${value}%`
 }
 const updateRotation = (value: number) => {
-  // eslint-disable-next-line vue/no-mutating-props
   props.optionData.series[0].rotationStep = value
-  // eslint-disable-next-line vue/no-mutating-props
   props.optionData.series[0].rotationRange = value === 0 ? [0, 0] : [-90, 90]
 }
 </script>

+ 0 - 2
src/packages/components/Informations/Mores/WordCloud/index.vue

@@ -1,4 +1,3 @@
-<!-- eslint-disable vue/multi-word-component-names -->
 <template>
   <v-chart
     ref="vChartRef"
@@ -49,7 +48,6 @@ const option = computed(() => {
 })
 
 const dataSetHandle = (dataset: typeof dataJson) => {
-  // eslint-disable-next-line vue/no-mutating-props
   dataset && (props.chartConfig.option.series[0].data = dataset)
 
   vChartRef.value && isPreview() && vChartRef.value.setOption(props.chartConfig.option)