mirror of
https://gitee.com/dromara/go-view.git
synced 2025-02-24 16:22:57 +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>
|
<template>
|
||||||
<collapse-item name="词云" expanded>
|
<collapse-item name="词云" expanded>
|
||||||
<setting-item-box name="形状">
|
<setting-item-box name="形状">
|
||||||
@ -70,17 +68,13 @@ const sliderFormatTooltip = (v: number) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const updateWidth = (value: number) => {
|
const updateWidth = (value: number) => {
|
||||||
// eslint-disable-next-line vue/no-mutating-props
|
|
||||||
props.optionData.series[0].width = `${value}%`
|
props.optionData.series[0].width = `${value}%`
|
||||||
}
|
}
|
||||||
const updateHeight = (value: number) => {
|
const updateHeight = (value: number) => {
|
||||||
// eslint-disable-next-line vue/no-mutating-props
|
|
||||||
props.optionData.series[0].height = `${value}%`
|
props.optionData.series[0].height = `${value}%`
|
||||||
}
|
}
|
||||||
const updateRotation = (value: number) => {
|
const updateRotation = (value: number) => {
|
||||||
// eslint-disable-next-line vue/no-mutating-props
|
|
||||||
props.optionData.series[0].rotationStep = value
|
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]
|
props.optionData.series[0].rotationRange = value === 0 ? [0, 0] : [-90, 90]
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
<!-- eslint-disable vue/multi-word-component-names -->
|
|
||||||
<template>
|
<template>
|
||||||
<v-chart
|
<v-chart
|
||||||
ref="vChartRef"
|
ref="vChartRef"
|
||||||
@ -49,7 +48,6 @@ const option = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const dataSetHandle = (dataset: typeof dataJson) => {
|
const dataSetHandle = (dataset: typeof dataJson) => {
|
||||||
// eslint-disable-next-line vue/no-mutating-props
|
|
||||||
dataset && (props.chartConfig.option.series[0].data = dataset)
|
dataset && (props.chartConfig.option.series[0].data = dataset)
|
||||||
|
|
||||||
vChartRef.value && isPreview() && vChartRef.value.setOption(props.chartConfig.option)
|
vChartRef.value && isPreview() && vChartRef.value.setOption(props.chartConfig.option)
|
||||||
|
Loading…
Reference in New Issue
Block a user