mirror of
https://gitee.com/dromara/go-view.git
synced 2024-12-03 12:19:07 +08:00
perf: 移除文件内eslint注释
This commit is contained in:
parent
5987e83a12
commit
31be6737f2
@ -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>
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user