refactor: 轴线自定义刻度数限制不超过100
This commit is contained in:
parent
d8a80fba39
commit
40cf834a48
@ -957,7 +957,7 @@ export default {
|
|||||||
chart_word_cloud: 'Word Cloud',
|
chart_word_cloud: 'Word Cloud',
|
||||||
drag_block_word_cloud_label: 'Word Label',
|
drag_block_word_cloud_label: 'Word Label',
|
||||||
drag_block_word_cloud_size: 'Word Size',
|
drag_block_word_cloud_size: 'Word Size',
|
||||||
splitCount_less_100: 'Split Count must less 100'
|
splitCount_less_100: 'Split Count Range 0-100'
|
||||||
},
|
},
|
||||||
dataset: {
|
dataset: {
|
||||||
sheet_warn: 'There are multiple sheet pages, and the first one is extracted by default',
|
sheet_warn: 'There are multiple sheet pages, and the first one is extracted by default',
|
||||||
|
|||||||
@ -958,7 +958,7 @@ export default {
|
|||||||
chart_word_cloud: '詞雲',
|
chart_word_cloud: '詞雲',
|
||||||
drag_block_word_cloud_label: '詞標簽',
|
drag_block_word_cloud_label: '詞標簽',
|
||||||
drag_block_word_cloud_size: '詞大小',
|
drag_block_word_cloud_size: '詞大小',
|
||||||
splitCount_less_100: '刻度數不能超過100'
|
splitCount_less_100: '刻度數範圍0-100'
|
||||||
},
|
},
|
||||||
dataset: {
|
dataset: {
|
||||||
sheet_warn: '有多個 Sheet 頁,默認抽取第一個',
|
sheet_warn: '有多個 Sheet 頁,默認抽取第一個',
|
||||||
|
|||||||
@ -961,7 +961,7 @@ export default {
|
|||||||
chart_word_cloud: '词云',
|
chart_word_cloud: '词云',
|
||||||
drag_block_word_cloud_label: '词标签',
|
drag_block_word_cloud_label: '词标签',
|
||||||
drag_block_word_cloud_size: '词大小',
|
drag_block_word_cloud_size: '词大小',
|
||||||
splitCount_less_100: '刻度数不能超过100'
|
splitCount_less_100: '刻度数范围0-100'
|
||||||
},
|
},
|
||||||
dataset: {
|
dataset: {
|
||||||
sheet_warn: '有多个 Sheet 页,默认抽取第一个',
|
sheet_warn: '有多个 Sheet 页,默认抽取第一个',
|
||||||
|
|||||||
@ -160,7 +160,7 @@ export default {
|
|||||||
if (!this.axisForm.show) {
|
if (!this.axisForm.show) {
|
||||||
this.isSetting = false
|
this.isSetting = false
|
||||||
}
|
}
|
||||||
if (this.axisForm.axisValue.splitCount && parseInt(this.axisForm.axisValue.splitCount) > 100) {
|
if (this.axisForm.axisValue.splitCount && (parseInt(this.axisForm.axisValue.splitCount) > 100 || parseInt(this.axisForm.axisValue.splitCount) < 0)) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: this.$t('chart.splitCount_less_100'),
|
message: this.$t('chart.splitCount_less_100'),
|
||||||
type: 'error'
|
type: 'error'
|
||||||
|
|||||||
@ -163,7 +163,7 @@ export default {
|
|||||||
if (!this.axisForm.show) {
|
if (!this.axisForm.show) {
|
||||||
this.isSetting = false
|
this.isSetting = false
|
||||||
}
|
}
|
||||||
if (this.axisForm.axisValue.splitCount && parseInt(this.axisForm.axisValue.splitCount) > 100) {
|
if (this.axisForm.axisValue.splitCount && (parseInt(this.axisForm.axisValue.splitCount) > 100 || parseInt(this.axisForm.axisValue.splitCount) < 0)) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: this.$t('chart.splitCount_less_100'),
|
message: this.$t('chart.splitCount_less_100'),
|
||||||
type: 'error'
|
type: 'error'
|
||||||
|
|||||||
@ -171,7 +171,7 @@ export default {
|
|||||||
if (!this.axisForm.show) {
|
if (!this.axisForm.show) {
|
||||||
this.isSetting = false
|
this.isSetting = false
|
||||||
}
|
}
|
||||||
if (this.axisForm.axisValue.splitCount && parseInt(this.axisForm.axisValue.splitCount) > 100) {
|
if (this.axisForm.axisValue.splitCount && (parseInt(this.axisForm.axisValue.splitCount) > 100 || parseInt(this.axisForm.axisValue.splitCount) < 0)) {
|
||||||
this.$message({
|
this.$message({
|
||||||
message: this.$t('chart.splitCount_less_100'),
|
message: this.$t('chart.splitCount_less_100'),
|
||||||
type: 'error'
|
type: 'error'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user