Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
07e267a7
Unverified
提交
07e267a7
authored
3月 09, 2022
作者:
fit2cloud-chenyw
提交者:
GitHub
3月 09, 2022
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'dev' into pr@dev@refactor_cache_redis
上级
b388a8f4
50a6a035
显示空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
306 行增加
和
7 行删除
+306
-7
en.js
frontend/src/lang/en.js
+12
-1
tw.js
frontend/src/lang/tw.js
+12
-1
zh.js
frontend/src/lang/zh.js
+12
-1
chart.js
frontend/src/views/chart/chart/chart.js
+32
-0
common_table.js
frontend/src/views/chart/chart/common/common_table.js
+8
-0
table-info.js
frontend/src/views/chart/chart/table/table-info.js
+22
-1
TotalCfg.vue
frontend/src/views/chart/components/shape-attr/TotalCfg.vue
+182
-0
Group.vue
frontend/src/views/chart/group/Group.vue
+4
-2
ChartEdit.vue
frontend/src/views/chart/view/ChartEdit.vue
+22
-1
没有找到文件。
frontend/src/lang/en.js
浏览文件 @
07e267a7
...
@@ -1044,7 +1044,18 @@ export default {
...
@@ -1044,7 +1044,18 @@ export default {
value_error
:
'Value illegal'
,
value_error
:
'Value illegal'
,
threshold
:
'Threshold'
,
threshold
:
'Threshold'
,
threshold_range
:
'Range'
,
threshold_range
:
'Range'
,
gauge_threshold_format_error
:
'Format Error'
gauge_threshold_format_error
:
'Format Error'
,
total_cfg
:
'Total Config'
,
col_cfg
:
'Column'
,
row_cfg
:
'Row'
,
total_show
:
'Total'
,
total_position
:
'Position'
,
total_label
:
'Alias'
,
sub_total_show
:
'Sub Total'
,
total_pos_top
:
'Top'
,
total_pos_bottom
:
'Bottom'
,
total_pos_left
:
'Left'
,
total_pos_right
:
'Right'
},
},
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'
,
...
...
frontend/src/lang/tw.js
浏览文件 @
07e267a7
...
@@ -1044,7 +1044,18 @@ export default {
...
@@ -1044,7 +1044,18 @@ export default {
value_error
:
'值必須為數值'
,
value_error
:
'值必須為數值'
,
threshold
:
'閾值'
,
threshold
:
'閾值'
,
threshold_range
:
'閾值區間'
,
threshold_range
:
'閾值區間'
,
gauge_threshold_format_error
:
'格式錯誤'
gauge_threshold_format_error
:
'格式錯誤'
,
total_cfg
:
'總計配置'
,
col_cfg
:
'列匯總'
,
row_cfg
:
'行匯總'
,
total_show
:
'總計'
,
total_position
:
'位置'
,
total_label
:
'別名'
,
sub_total_show
:
'小計'
,
total_pos_top
:
'頂部'
,
total_pos_bottom
:
'底部'
,
total_pos_left
:
'左側'
,
total_pos_right
:
'右側'
},
},
dataset
:
{
dataset
:
{
sheet_warn
:
'有多個 Sheet 頁,默認抽取第一個'
,
sheet_warn
:
'有多個 Sheet 頁,默認抽取第一個'
,
...
...
frontend/src/lang/zh.js
浏览文件 @
07e267a7
...
@@ -1047,7 +1047,18 @@ export default {
...
@@ -1047,7 +1047,18 @@ export default {
value_error
:
'值必须为数值'
,
value_error
:
'值必须为数值'
,
threshold
:
'阈值'
,
threshold
:
'阈值'
,
threshold_range
:
'阈值区间'
,
threshold_range
:
'阈值区间'
,
gauge_threshold_format_error
:
'格式错误'
gauge_threshold_format_error
:
'格式错误'
,
total_cfg
:
'总计配置'
,
col_cfg
:
'列汇总'
,
row_cfg
:
'行汇总'
,
total_show
:
'总计'
,
total_position
:
'位置'
,
total_label
:
'别名'
,
sub_total_show
:
'小计'
,
total_pos_top
:
'顶部'
,
total_pos_bottom
:
'底部'
,
total_pos_left
:
'左侧'
,
total_pos_right
:
'右侧'
},
},
dataset
:
{
dataset
:
{
sheet_warn
:
'有多个 Sheet 页,默认抽取第一个'
,
sheet_warn
:
'有多个 Sheet 页,默认抽取第一个'
,
...
...
frontend/src/views/chart/chart/chart.js
浏览文件 @
07e267a7
...
@@ -78,6 +78,38 @@ export const DEFAULT_TOOLTIP = {
...
@@ -78,6 +78,38 @@ export const DEFAULT_TOOLTIP = {
},
},
formatter
:
''
formatter
:
''
}
}
export
const
DEFAULT_TOTAL
=
{
row
:
{
showGrandTotals
:
true
,
showSubTotals
:
true
,
reverseLayout
:
false
,
reverseSubLayout
:
false
,
label
:
'总计'
,
subLabel
:
'小计'
,
subTotalsDimensions
:
[],
calcTotals
:
{
aggregation
:
'SUM'
},
calcSubTotals
:
{
aggregation
:
'SUM'
}
},
col
:
{
showGrandTotals
:
true
,
showSubTotals
:
true
,
reverseLayout
:
false
,
reverseSubLayout
:
false
,
label
:
'总计'
,
subLabel
:
'小计'
,
subTotalsDimensions
:
[],
calcTotals
:
{
aggregation
:
'SUM'
},
calcSubTotals
:
{
aggregation
:
'SUM'
}
}
}
export
const
DEFAULT_TITLE_STYLE
=
{
export
const
DEFAULT_TITLE_STYLE
=
{
show
:
true
,
show
:
true
,
fontSize
:
'18'
,
fontSize
:
'18'
,
...
...
frontend/src/views/chart/chart/common/common_table.js
浏览文件 @
07e267a7
...
@@ -77,6 +77,11 @@ export function getCustomTheme(chart) {
...
@@ -77,6 +77,11 @@ export function getCustomTheme(chart) {
fill
:
DEFAULT_COLOR_CASE
.
tableFontColor
,
fill
:
DEFAULT_COLOR_CASE
.
tableFontColor
,
fontSize
:
DEFAULT_SIZE
.
tableItemFontSize
,
fontSize
:
DEFAULT_SIZE
.
tableItemFontSize
,
textAlign
:
itemAlign
textAlign
:
itemAlign
},
bolderText
:
{
fill
:
DEFAULT_COLOR_CASE
.
tableFontColor
,
fontSize
:
DEFAULT_SIZE
.
tableItemFontSize
,
textAlign
:
itemAlign
}
}
}
}
}
}
...
@@ -114,6 +119,7 @@ export function getCustomTheme(chart) {
...
@@ -114,6 +119,7 @@ export function getCustomTheme(chart) {
theme
.
dataCell
.
cell
.
backgroundColor
=
i_c
theme
.
dataCell
.
cell
.
backgroundColor
=
i_c
theme
.
dataCell
.
cell
.
horizontalBorderColor
=
b_c
theme
.
dataCell
.
cell
.
horizontalBorderColor
=
b_c
theme
.
dataCell
.
cell
.
verticalBorderColor
=
b_c
theme
.
dataCell
.
cell
.
verticalBorderColor
=
b_c
theme
.
dataCell
.
bolderText
.
fill
=
c
.
tableFontColor
theme
.
dataCell
.
text
.
fill
=
c
.
tableFontColor
theme
.
dataCell
.
text
.
fill
=
c
.
tableFontColor
}
}
// size
// size
...
@@ -137,6 +143,8 @@ export function getCustomTheme(chart) {
...
@@ -137,6 +143,8 @@ export function getCustomTheme(chart) {
theme
.
colCell
.
text
.
fontSize
=
parseInt
(
s
.
tableTitleFontSize
)
theme
.
colCell
.
text
.
fontSize
=
parseInt
(
s
.
tableTitleFontSize
)
theme
.
colCell
.
text
.
textAlign
=
h_a
theme
.
colCell
.
text
.
textAlign
=
h_a
theme
.
dataCell
.
bolderText
.
fontSize
=
parseInt
(
s
.
tableItemFontSize
)
theme
.
dataCell
.
bolderText
.
textAlign
=
i_a
theme
.
dataCell
.
text
.
fontSize
=
parseInt
(
s
.
tableItemFontSize
)
theme
.
dataCell
.
text
.
fontSize
=
parseInt
(
s
.
tableItemFontSize
)
theme
.
dataCell
.
text
.
textAlign
=
i_a
theme
.
dataCell
.
text
.
textAlign
=
i_a
}
}
...
...
frontend/src/views/chart/chart/table/table-info.js
浏览文件 @
07e267a7
import
{
TableSheet
,
S2Event
,
PivotSheet
}
from
'@antv/s2'
import
{
TableSheet
,
S2Event
,
PivotSheet
}
from
'@antv/s2'
import
{
getCustomTheme
,
getSize
}
from
'@/views/chart/chart/common/common_table'
import
{
getCustomTheme
,
getSize
}
from
'@/views/chart/chart/common/common_table'
import
{
DEFAULT_TOTAL
}
from
'@/views/chart/chart/chart'
export
function
baseTableInfo
(
s2
,
container
,
chart
,
action
,
tableData
)
{
export
function
baseTableInfo
(
s2
,
container
,
chart
,
action
,
tableData
)
{
const
containerDom
=
document
.
getElementById
(
container
)
const
containerDom
=
document
.
getElementById
(
container
)
...
@@ -281,11 +282,31 @@ export function baseTablePivot(s2, container, chart, action, tableData) {
...
@@ -281,11 +282,31 @@ export function baseTablePivot(s2, container, chart, action, tableData) {
data
:
tableData
data
:
tableData
}
}
// total config
let
totalCfg
=
{}
const
chartObj
=
JSON
.
parse
(
JSON
.
stringify
(
chart
))
if
(
chartObj
.
customAttr
)
{
let
customAttr
=
null
if
(
Object
.
prototype
.
toString
.
call
(
chartObj
.
customAttr
)
===
'[object Object]'
)
{
customAttr
=
JSON
.
parse
(
JSON
.
stringify
(
chartObj
.
customAttr
))
}
else
{
customAttr
=
JSON
.
parse
(
chartObj
.
customAttr
)
}
if
(
customAttr
.
totalCfg
)
{
totalCfg
=
customAttr
.
totalCfg
}
else
{
totalCfg
=
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_TOTAL
))
}
}
totalCfg
.
row
.
subTotalsDimensions
=
r
totalCfg
.
col
.
subTotalsDimensions
=
c
// options
// options
const
s2Options
=
{
const
s2Options
=
{
width
:
containerDom
.
offsetWidth
,
width
:
containerDom
.
offsetWidth
,
height
:
containerDom
.
offsetHeight
,
height
:
containerDom
.
offsetHeight
,
style
:
getSize
(
chart
)
style
:
getSize
(
chart
),
totals
:
totalCfg
}
}
// 开始渲染
// 开始渲染
...
...
frontend/src/views/chart/components/shape-attr/TotalCfg.vue
0 → 100644
浏览文件 @
07e267a7
<
template
>
<div
style=
"width: 100%"
>
<el-col>
<el-form
ref=
"totalForm"
:model=
"totalForm"
label-width=
"80px"
size=
"mini"
>
<el-divider
content-position=
"center"
class=
"divider-style"
>
{{
$t
(
'chart.row_cfg'
)
}}
</el-divider>
<el-form-item
:label=
"$t('chart.total_show')"
class=
"form-item"
>
<el-checkbox
v-model=
"totalForm.row.showGrandTotals"
@
change=
"changeTotalCfg"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
</el-form-item>
<div
v-show=
"totalForm.row.showGrandTotals"
>
<el-form-item
:label=
"$t('chart.total_position')"
class=
"form-item"
>
<el-radio-group
v-model=
"totalForm.row.reverseLayout"
@
change=
"changeTotalCfg"
>
<el-radio
:label=
"true"
>
{{
$t
(
'chart.total_pos_top'
)
}}
</el-radio>
<el-radio
:label=
"false"
>
{{
$t
(
'chart.total_pos_bottom'
)
}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
:label=
"$t('chart.total_label')"
class=
"form-item"
>
<el-input
v-model=
"totalForm.row.label"
style=
"width: 160px;"
:placeholder=
"$t('chart.total_label')"
size=
"mini"
clearable
@
change=
"changeTotalCfg"
/>
</el-form-item>
</div>
<el-form-item
:label=
"$t('chart.sub_total_show')"
class=
"form-item"
>
<el-checkbox
v-model=
"totalForm.row.showSubTotals"
:disabled=
"rowNum
<
2
"
@
change=
"changeTotalCfg"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
</el-form-item>
<div
v-show=
"totalForm.row.showSubTotals"
>
<el-form-item
:label=
"$t('chart.total_position')"
class=
"form-item"
>
<el-radio-group
v-model=
"totalForm.row.reverseSubLayout"
:disabled=
"rowNum
<
2
"
@
change=
"changeTotalCfg"
>
<el-radio
:label=
"true"
>
{{
$t
(
'chart.total_pos_top'
)
}}
</el-radio>
<el-radio
:label=
"false"
>
{{
$t
(
'chart.total_pos_bottom'
)
}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
:label=
"$t('chart.total_label')"
class=
"form-item"
>
<el-input
v-model=
"totalForm.row.subLabel"
:disabled=
"rowNum
<
2
"
style=
"width: 160px;"
:placeholder=
"$t('chart.total_label')"
size=
"mini"
clearable
@
change=
"changeTotalCfg"
/>
</el-form-item>
</div>
<el-divider
content-position=
"center"
class=
"divider-style"
>
{{
$t
(
'chart.col_cfg'
)
}}
</el-divider>
<el-form-item
:label=
"$t('chart.total_show')"
class=
"form-item"
>
<el-checkbox
v-model=
"totalForm.col.showGrandTotals"
@
change=
"changeTotalCfg"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
</el-form-item>
<div
v-show=
"totalForm.col.showGrandTotals"
>
<el-form-item
:label=
"$t('chart.total_position')"
class=
"form-item"
>
<el-radio-group
v-model=
"totalForm.col.reverseLayout"
@
change=
"changeTotalCfg"
>
<el-radio
:label=
"true"
>
{{
$t
(
'chart.total_pos_left'
)
}}
</el-radio>
<el-radio
:label=
"false"
>
{{
$t
(
'chart.total_pos_right'
)
}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
:label=
"$t('chart.total_label')"
class=
"form-item"
>
<el-input
v-model=
"totalForm.col.label"
style=
"width: 160px;"
:placeholder=
"$t('chart.total_label')"
size=
"mini"
clearable
@
change=
"changeTotalCfg"
/>
</el-form-item>
</div>
<el-form-item
:label=
"$t('chart.sub_total_show')"
class=
"form-item"
>
<el-checkbox
v-model=
"totalForm.col.showSubTotals"
:disabled=
"colNum
<
2
"
@
change=
"changeTotalCfg"
>
{{
$t
(
'chart.show'
)
}}
</el-checkbox>
</el-form-item>
<div
v-show=
"totalForm.col.showSubTotals"
>
<el-form-item
:label=
"$t('chart.total_position')"
class=
"form-item"
>
<el-radio-group
v-model=
"totalForm.col.reverseSubLayout"
:disabled=
"colNum
<
2
"
@
change=
"changeTotalCfg"
>
<el-radio
:label=
"true"
>
{{
$t
(
'chart.total_pos_left'
)
}}
</el-radio>
<el-radio
:label=
"false"
>
{{
$t
(
'chart.total_pos_right'
)
}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
:label=
"$t('chart.total_label')"
class=
"form-item"
>
<el-input
v-model=
"totalForm.col.subLabel"
:disabled=
"colNum
<
2
"
style=
"width: 160px;"
:placeholder=
"$t('chart.total_label')"
size=
"mini"
clearable
@
change=
"changeTotalCfg"
/>
</el-form-item>
</div>
</el-form>
</el-col>
</div>
</
template
>
<
script
>
import
{
DEFAULT_TOTAL
}
from
'@/views/chart/chart/chart'
export
default
{
name
:
'TotalCfg'
,
props
:
{
chart
:
{
type
:
Object
,
required
:
true
}
},
data
()
{
return
{
totalForm
:
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_TOTAL
))
}
},
computed
:
{
rowNum
()
{
const
chart
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
chart
))
if
(
chart
.
xaxisExt
)
{
let
arr
=
null
if
(
Object
.
prototype
.
toString
.
call
(
chart
.
xaxisExt
)
===
'[object Object]'
)
{
arr
=
JSON
.
parse
(
JSON
.
stringify
(
chart
.
xaxisExt
))
}
else
{
arr
=
JSON
.
parse
(
chart
.
xaxisExt
)
}
return
arr
.
length
}
return
0
},
colNum
()
{
const
chart
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
chart
))
if
(
chart
.
xaxis
)
{
let
arr
=
null
if
(
Object
.
prototype
.
toString
.
call
(
chart
.
xaxis
)
===
'[object Object]'
)
{
arr
=
JSON
.
parse
(
JSON
.
stringify
(
chart
.
xaxis
))
}
else
{
arr
=
JSON
.
parse
(
chart
.
xaxis
)
}
return
arr
.
length
}
return
0
}
},
watch
:
{
'chart'
:
{
handler
:
function
()
{
this
.
initData
()
}
}
},
mounted
()
{
this
.
initData
()
},
methods
:
{
initData
()
{
const
chart
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
chart
))
if
(
chart
.
customAttr
)
{
let
customAttr
=
null
if
(
Object
.
prototype
.
toString
.
call
(
chart
.
customAttr
)
===
'[object Object]'
)
{
customAttr
=
JSON
.
parse
(
JSON
.
stringify
(
chart
.
customAttr
))
}
else
{
customAttr
=
JSON
.
parse
(
chart
.
customAttr
)
}
if
(
customAttr
.
totalCfg
)
{
this
.
totalForm
=
customAttr
.
totalCfg
}
else
{
this
.
totalForm
=
JSON
.
parse
(
JSON
.
stringify
(
DEFAULT_TOTAL
))
}
}
},
changeTotalCfg
()
{
this
.
$emit
(
'onTotalCfgChange'
,
this
.
totalForm
)
}
}
}
</
script
>
<
style
scoped
>
.shape-item
{
padding
:
6px
;
border
:
none
;
width
:
100%
;
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
}
.form-item-slider
>>>
.el-form-item__label
{
font-size
:
12px
;
line-height
:
38px
;
}
.form-item
>>>
.el-form-item__label
{
font-size
:
12px
;
}
.el-select-dropdown__item
{
padding
:
0
20px
;
}
span
{
font-size
:
12px
}
.el-form-item
{
margin-bottom
:
6px
;
}
.el-divider--horizontal
{
margin
:
10px
0
}
.divider-style
>>>
.el-divider__text
{
color
:
#606266
;
font-size
:
12px
;
font-weight
:
400
;
padding
:
0
10px
;
}
</
style
>
frontend/src/views/chart/group/Group.vue
浏览文件 @
07e267a7
...
@@ -310,7 +310,8 @@ import {
...
@@ -310,7 +310,8 @@ import {
DEFAULT_BACKGROUND_COLOR
,
DEFAULT_BACKGROUND_COLOR
,
DEFAULT_SPLIT
,
DEFAULT_SPLIT
,
DEFAULT_FUNCTION_CFG
,
DEFAULT_FUNCTION_CFG
,
DEFAULT_THRESHOLD
DEFAULT_THRESHOLD
,
DEFAULT_TOTAL
}
from
'../chart/chart'
}
from
'../chart/chart'
export
default
{
export
default
{
...
@@ -755,7 +756,8 @@ export default {
...
@@ -755,7 +756,8 @@ export default {
tableColor
:
DEFAULT_COLOR_CASE
,
tableColor
:
DEFAULT_COLOR_CASE
,
size
:
DEFAULT_SIZE
,
size
:
DEFAULT_SIZE
,
label
:
DEFAULT_LABEL
,
label
:
DEFAULT_LABEL
,
tooltip
:
DEFAULT_TOOLTIP
tooltip
:
DEFAULT_TOOLTIP
,
totalCfg
:
DEFAULT_TOTAL
})
})
view
.
customStyle
=
JSON
.
stringify
({
view
.
customStyle
=
JSON
.
stringify
({
text
:
DEFAULT_TITLE_STYLE
,
text
:
DEFAULT_TITLE_STYLE
,
...
...
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
07e267a7
...
@@ -676,6 +676,18 @@
...
@@ -676,6 +676,18 @@
@
onTooltipChange=
"onTooltipChange"
@
onTooltipChange=
"onTooltipChange"
/>
/>
</el-collapse-item>
</el-collapse-item>
<el-collapse-item
v-show=
"view.type === 'table-pivot'"
name=
"totalCfg"
:title=
"$t('chart.total_cfg')"
>
<total-cfg
:param=
"param"
class=
"attr-selector"
:chart=
"chart"
@
onTotalCfgChange=
"onTotalCfgChange"
/>
</el-collapse-item>
</el-collapse>
</el-collapse>
</el-row>
</el-row>
<el-row>
<el-row>
...
@@ -1046,6 +1058,7 @@ import {
...
@@ -1046,6 +1058,7 @@ import {
DEFAULT_THRESHOLD
,
DEFAULT_THRESHOLD
,
DEFAULT_TITLE_STYLE
,
DEFAULT_TITLE_STYLE
,
DEFAULT_TOOLTIP
,
DEFAULT_TOOLTIP
,
DEFAULT_TOTAL
,
DEFAULT_XAXIS_STYLE
,
DEFAULT_XAXIS_STYLE
,
DEFAULT_YAXIS_EXT_STYLE
,
DEFAULT_YAXIS_EXT_STYLE
,
DEFAULT_YAXIS_STYLE
DEFAULT_YAXIS_STYLE
...
@@ -1089,9 +1102,11 @@ import PluginCom from '@/views/system/plugin/PluginCom'
...
@@ -1089,9 +1102,11 @@ import PluginCom from '@/views/system/plugin/PluginCom'
import
FunctionCfg
from
'@/views/chart/components/senior/FunctionCfg'
import
FunctionCfg
from
'@/views/chart/components/senior/FunctionCfg'
import
AssistLine
from
'@/views/chart/components/senior/AssistLine'
import
AssistLine
from
'@/views/chart/components/senior/AssistLine'
import
Threshold
from
'@/views/chart/components/senior/Threshold'
import
Threshold
from
'@/views/chart/components/senior/Threshold'
import
TotalCfg
from
'@/views/chart/components/shape-attr/TotalCfg'
export
default
{
export
default
{
name
:
'ChartEdit'
,
name
:
'ChartEdit'
,
components
:
{
components
:
{
TotalCfg
,
Threshold
,
Threshold
,
AssistLine
,
AssistLine
,
FunctionCfg
,
FunctionCfg
,
...
@@ -1167,7 +1182,8 @@ export default {
...
@@ -1167,7 +1182,8 @@ export default {
color
:
DEFAULT_COLOR_CASE
,
color
:
DEFAULT_COLOR_CASE
,
size
:
DEFAULT_SIZE
,
size
:
DEFAULT_SIZE
,
label
:
DEFAULT_LABEL
,
label
:
DEFAULT_LABEL
,
tooltip
:
DEFAULT_TOOLTIP
tooltip
:
DEFAULT_TOOLTIP
,
totalCfg
:
DEFAULT_TOTAL
},
},
customStyle
:
{
customStyle
:
{
text
:
DEFAULT_TITLE_STYLE
,
text
:
DEFAULT_TITLE_STYLE
,
...
@@ -1728,6 +1744,11 @@ export default {
...
@@ -1728,6 +1744,11 @@ export default {
this
.
calcStyle
()
this
.
calcStyle
()
},
},
onTotalCfgChange
(
val
)
{
this
.
view
.
customAttr
.
totalCfg
=
val
this
.
calcStyle
()
},
onChangeXAxisForm
(
val
)
{
onChangeXAxisForm
(
val
)
{
this
.
view
.
customStyle
.
xAxis
=
val
this
.
view
.
customStyle
.
xAxis
=
val
this
.
calcStyle
()
this
.
calcStyle
()
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论