Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
6c7d65fc
提交
6c7d65fc
authored
1月 31, 2022
作者:
junjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: S2
上级
66b75928
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
44 行增加
和
16 行删除
+44
-16
en.js
frontend/src/lang/en.js
+5
-1
tw.js
frontend/src/lang/tw.js
+5
-1
zh.js
frontend/src/lang/zh.js
+5
-1
chart.js
frontend/src/views/chart/chart/chart.js
+2
-0
SizeSelectorAntV.vue
...rc/views/chart/components/shape-attr/SizeSelectorAntV.vue
+26
-12
ChartEdit.vue
frontend/src/views/chart/view/ChartEdit.vue
+1
-1
没有找到文件。
frontend/src/lang/en.js
浏览文件 @
6c7d65fc
...
...
@@ -1016,7 +1016,11 @@ export default {
filter_exp
:
'Filter Value'
,
filter_type
:
'Filter Type'
,
filter_value_can_not_str
:
'Value type can not input string'
,
enum_value_can_not_null
:
'Enum Value can not empty.'
enum_value_can_not_null
:
'Enum Value can not empty.'
,
table_config
:
'Table Config'
,
table_column_width_config
:
'Column Width'
,
table_column_adapt
:
'Adapt'
,
table_column_custom
:
'Custom'
},
dataset
:
{
sheet_warn
:
'There are multiple sheet pages, and the first one is extracted by default'
,
...
...
frontend/src/lang/tw.js
浏览文件 @
6c7d65fc
...
...
@@ -1016,7 +1016,11 @@ export default {
filter_exp
:
'過濾值'
,
filter_type
:
'過濾方式'
,
filter_value_can_not_str
:
'數值類型字段過濾值不能包含文本'
,
enum_value_can_not_null
:
'字段枚舉值不能為空'
enum_value_can_not_null
:
'字段枚舉值不能為空'
,
table_config
:
'表格配置'
,
table_column_width_config
:
'列寬調整'
,
table_column_adapt
:
'自適應'
,
table_column_custom
:
'自定義'
},
dataset
:
{
sheet_warn
:
'有多個 Sheet 頁,默認抽取第一個'
,
...
...
frontend/src/lang/zh.js
浏览文件 @
6c7d65fc
...
...
@@ -1018,7 +1018,11 @@ export default {
filter_exp
:
'过滤值'
,
filter_type
:
'过滤方式'
,
filter_value_can_not_str
:
'数值类型字段过滤值不能包含文本'
,
enum_value_can_not_null
:
'字段枚举值不能为空'
enum_value_can_not_null
:
'字段枚举值不能为空'
,
table_config
:
'表格配置'
,
table_column_width_config
:
'列宽调整'
,
table_column_adapt
:
'自适应'
,
table_column_custom
:
'自定义'
},
dataset
:
{
sheet_warn
:
'有多个 Sheet 页,默认抽取第一个'
,
...
...
frontend/src/views/chart/chart/chart.js
浏览文件 @
6c7d65fc
...
...
@@ -31,6 +31,8 @@ export const DEFAULT_SIZE = {
tableTitleHeight
:
36
,
tableItemHeight
:
36
,
tablePageSize
:
'20'
,
tableColumnMode
:
'adapt'
,
tableColumnWidth
:
100
,
gaugeMin
:
0
,
gaugeMax
:
100
,
gaugeStartAngle
:
225
,
...
...
frontend/src/views/chart/components/shape-attr/SizeSelectorAntV.vue
浏览文件 @
6c7d65fc
...
...
@@ -81,6 +81,16 @@
</el-form>
<el-form
v-show=
"chart.type && chart.type.includes('table')"
ref=
"sizeFormPie"
:disabled=
"param && !hasDataPermission('manage',param.privileges)"
:model=
"sizeForm"
label-width=
"100px"
size=
"mini"
>
<el-form-item
v-show=
"chart.type && chart.type === 'table-info'"
:label=
"$t('chart.table_page_size')"
class=
"form-item"
>
<el-select
v-model=
"sizeForm.tablePageSize"
:placeholder=
"$t('chart.table_page_size')"
@
change=
"changeBarSizeCase"
>
<el-option
v-for=
"item in pageSizeOptions"
:key=
"item.value"
:label=
"item.name"
:value=
"item.value"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('chart.table_title_fontsize')"
class=
"form-item"
>
<el-select
v-model=
"sizeForm.tableTitleFontSize"
:placeholder=
"$t('chart.table_title_fontsize')"
@
change=
"changeBarSizeCase"
>
<el-option
v-for=
"option in fontSize"
:key=
"option.value"
:label=
"option.name"
:value=
"option.value"
/>
...
...
@@ -92,20 +102,19 @@
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('chart.table_title_height')"
class=
"form-item form-item-slider"
>
<el-slider
v-model=
"sizeForm.tableTitleHeight"
:min=
"
36
"
:max=
"100"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeBarSizeCase"
/>
<el-slider
v-model=
"sizeForm.tableTitleHeight"
:min=
"
20
"
:max=
"100"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeBarSizeCase"
/>
</el-form-item>
<el-form-item
:label=
"$t('chart.table_item_height')"
class=
"form-item form-item-slider"
>
<el-slider
v-model=
"sizeForm.tableItemHeight"
:min=
"
36
"
:max=
"100"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeBarSizeCase"
/>
<el-slider
v-model=
"sizeForm.tableItemHeight"
:min=
"
20
"
:max=
"100"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeBarSizeCase"
/>
</el-form-item>
<el-form-item
v-show=
"chart.type && chart.type === 'table-info'"
:label=
"$t('chart.table_page_size')"
class=
"form-item"
>
<el-select
v-model=
"sizeForm.tablePageSize"
:placeholder=
"$t('chart.table_page_size')"
@
change=
"changeBarSizeCase"
>
<el-option
v-for=
"item in pageSizeOptions"
:key=
"item.value"
:label=
"item.name"
:value=
"item.value"
/>
</el-select>
<el-form-item
:label=
"$t('chart.table_column_width_config')"
class=
"form-item"
>
<el-radio-group
v-model=
"sizeForm.tableColumnMode"
@
change=
"changeBarSizeCase"
>
<el-radio
label=
"adapt"
><span>
{{
$t
(
'chart.table_column_adapt'
)
}}
</span></el-radio>
<el-radio
label=
"custom"
><span>
{{
$t
(
'chart.table_column_custom'
)
}}
</span></el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
v-show=
"sizeForm.tableColumnMode === 'custom'"
label=
""
class=
"form-item form-item-slider"
>
<el-slider
v-model=
"sizeForm.tableColumnWidth"
:min=
"100"
:max=
"500"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeBarSizeCase"
/>
</el-form-item>
</el-form>
...
...
@@ -322,6 +331,9 @@ export default {
this
.
sizeForm
.
liquidWaveCount
=
this
.
sizeForm
.
liquidWaveCount
?
this
.
sizeForm
.
liquidWaveCount
:
DEFAULT_SIZE
.
liquidWaveCount
this
.
sizeForm
.
tablePageSize
=
this
.
sizeForm
.
tablePageSize
?
this
.
sizeForm
.
tablePageSize
:
DEFAULT_SIZE
.
tablePageSize
this
.
sizeForm
.
tableColumnMode
=
this
.
sizeForm
.
tableColumnMode
?
this
.
sizeForm
.
tableColumnMode
:
DEFAULT_SIZE
.
tableColumnMode
this
.
sizeForm
.
tableColumnWidth
=
this
.
sizeForm
.
tableColumnWidth
?
this
.
sizeForm
.
tableColumnWidth
:
DEFAULT_SIZE
.
tableColumnWidth
}
}
},
...
...
@@ -361,7 +373,9 @@ export default {
.el-select-dropdown__item
{
padding
:
0
20px
;
}
span
{
font-size
:
12px
}
span
{
font-size
:
12px
}
.el-form-item
{
margin-bottom
:
6px
;
...
...
frontend/src/views/chart/view/ChartEdit.vue
浏览文件 @
6c7d65fc
...
...
@@ -565,7 +565,7 @@
<el-collapse-item
v-show=
"view.render && view.render === 'antv' && chart.type !== 'map' && chart.type !== 'waterfall' && chart.type !== 'word-cloud' && chart.type !== 'treemap'"
name=
"size"
:title=
"$t('chart.size')"
:title=
"
(chart.type && chart.type.includes('table')) ? $t('chart.table_config') :
$t('chart.size')"
>
<size-selector-ant-v
:param=
"param"
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论