mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 05:22:13 +08:00
Merge pull request #13955 from dataease/pr@dev-v2@chart-quadrant-i18n
feat(图表): 国际化(象限图)
This commit is contained in:
@@ -1908,7 +1908,9 @@ Scatter chart (bubble) chart: {a} (series name), {b} (data name), {c} (value arr
|
||||
symbolic_map_symbol_shape: 'Symbol Shape',
|
||||
symbolic_map_symbol_shape_tip:
|
||||
'When Customizing, Supports SVG, JPG, JPEG, and PNG files up to 1MB',
|
||||
size_range: 'Size Range'
|
||||
size_range: 'Size Range',
|
||||
x_axis_constant_line: 'X-axis Constant Line',
|
||||
y_axis_constant_line: 'Y-axis Constant Line'
|
||||
},
|
||||
dataset: {
|
||||
scope_edit: 'only effective when editing',
|
||||
|
||||
@@ -1864,7 +1864,9 @@ export default {
|
||||
wave_rings: '水波環數',
|
||||
symbolic_map_symbol_shape: '符號形狀',
|
||||
symbolic_map_symbol_shape_tip: '自訂時, 支援 1MB 以內的 SVG, JPG, JPEG, PNG 檔案',
|
||||
size_range: '大小區間'
|
||||
size_range: '大小區間',
|
||||
x_axis_constant_line: 'X 軸恆線',
|
||||
y_axis_constant_line: 'Y 軸恆線'
|
||||
},
|
||||
dataset: {
|
||||
scope_edit: '僅編輯時生效',
|
||||
|
||||
@@ -1866,7 +1866,9 @@ export default {
|
||||
wave_rings: '水波环数',
|
||||
symbolic_map_symbol_shape: '符号形状',
|
||||
symbolic_map_symbol_shape_tip: '自定义时, 支持 1MB 以内的 SVG, JPG, JPEG, PNG 文件',
|
||||
size_range: '大小区间'
|
||||
size_range: '大小区间',
|
||||
x_axis_constant_line: 'X 轴恒线',
|
||||
y_axis_constant_line: 'Y 轴恒线'
|
||||
},
|
||||
dataset: {
|
||||
scope_edit: '仅编辑时生效',
|
||||
|
||||
@@ -1,16 +1,13 @@
|
||||
<script lang="tsx" setup>
|
||||
import { computed, inject, onMounted, PropType, reactive, ref, watch } from 'vue'
|
||||
import { computed, onMounted, PropType, reactive, ref, watch } from 'vue'
|
||||
import { useI18n } from '@/hooks/web/useI18n'
|
||||
import { COLOR_PANEL, DEFAULT_QUADRANT_STYLE } from '@/views/chart/components/editor/util/chart'
|
||||
import { useEmitt } from '@/hooks/web/useEmitt'
|
||||
import { dvMainStoreWithOut } from '@/store/modules/data-visualization/dvMain'
|
||||
import { storeToRefs } from 'pinia'
|
||||
import { deepCopy } from '@/utils/utils'
|
||||
useEmitt({
|
||||
name: 'quadrant-default-baseline',
|
||||
callback: args => quadrantDefaultBaseline(args)
|
||||
})
|
||||
const quotaData = ref<Axis[]>(inject('quotaData'))
|
||||
const { t } = useI18n()
|
||||
const dvMainStore = dvMainStoreWithOut()
|
||||
const props = defineProps({
|
||||
@@ -144,11 +141,12 @@ onMounted(() => {
|
||||
>
|
||||
<template v-if="showProperty('lineStyle')">
|
||||
<div style="display: flex">
|
||||
<el-form-item
|
||||
:label="t('chart.split_line')"
|
||||
class="form-item"
|
||||
:class="'form-item-' + themes"
|
||||
>
|
||||
<el-form-item class="form-item" :class="'form-item-' + themes">
|
||||
<template #label>
|
||||
<span style="width: 50px; text-overflow: ellipsis; white-space: nowrap">
|
||||
{{ t('chart.split_line') }}
|
||||
</span>
|
||||
</template>
|
||||
<el-color-picker
|
||||
v-model="state.quadrantForm.lineStyle.stroke"
|
||||
class="color-picker-style"
|
||||
@@ -194,7 +192,11 @@ onMounted(() => {
|
||||
</el-form-item>
|
||||
</div>
|
||||
<div style="display: flex">
|
||||
<el-form-item class="form-item" label="X 轴恒线" :class="'form-item-' + themes">
|
||||
<el-form-item
|
||||
class="form-item"
|
||||
:label="t('chart.x_axis_constant_line')"
|
||||
:class="'form-item-' + themes"
|
||||
>
|
||||
<el-input-number
|
||||
controls-position="right"
|
||||
style="width: 100%"
|
||||
@@ -208,7 +210,7 @@ onMounted(() => {
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
class="form-item"
|
||||
label="Y 轴恒线"
|
||||
:label="t('chart.y_axis_constant_line')"
|
||||
:class="'form-item-' + themes"
|
||||
style="padding-left: 4px"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user