Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
99fcfe29
提交
99fcfe29
authored
6月 28, 2021
作者:
junjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 视图表格组件,表头 表格支持行高修改
上级
a0565d96
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
25 行增加
和
6 行删除
+25
-6
en.js
frontend/src/lang/en.js
+3
-1
tw.js
frontend/src/lang/tw.js
+3
-1
zh.js
frontend/src/lang/zh.js
+3
-1
chart.js
frontend/src/views/chart/chart/chart.js
+2
-0
SizeSelector.vue
...nd/src/views/chart/components/shape-attr/SizeSelector.vue
+6
-0
TableNormal.vue
frontend/src/views/chart/components/table/TableNormal.vue
+8
-3
没有找到文件。
frontend/src/lang/en.js
浏览文件 @
99fcfe29
...
...
@@ -718,7 +718,9 @@ export default {
chartName
:
'New Chart'
,
chart_show_error
:
'can not show normal'
,
chart_error_tips
:
'Please contact admin '
,
title_cannot_empty
:
'Title can not be empty'
title_cannot_empty
:
'Title can not be empty'
,
table_title_height
:
'Table header height'
,
table_item_height
:
'Table row height'
},
dataset
:
{
sheet_warn
:
'There are multiple sheet pages, and the first one is extracted by default'
,
...
...
frontend/src/lang/tw.js
浏览文件 @
99fcfe29
...
...
@@ -760,7 +760,9 @@ export default {
chartName
:
'新建視圖'
,
chart_show_error
:
'無法正常顯示'
,
chart_error_tips
:
'如有疑問請聯系管理員'
,
title_cannot_empty
:
'標題不能為空'
title_cannot_empty
:
'標題不能為空'
,
table_title_height
:
'表頭行高'
,
table_item_height
:
'表格行高'
},
dataset
:
{
sheet_warn
:
'有多個sheet頁面,默認抽取第一個'
,
...
...
frontend/src/lang/zh.js
浏览文件 @
99fcfe29
...
...
@@ -718,7 +718,9 @@ export default {
chartName
:
'新建视图'
,
chart_show_error
:
'无法正常显示'
,
chart_error_tips
:
'如有疑问请联系管理员'
,
title_cannot_empty
:
'标题不能为空'
title_cannot_empty
:
'标题不能为空'
,
table_title_height
:
'表头行高'
,
table_item_height
:
'表格行高'
},
dataset
:
{
sheet_warn
:
'有多个 Sheet 页,默认抽取第一个'
,
...
...
frontend/src/views/chart/chart/chart.js
浏览文件 @
99fcfe29
...
...
@@ -27,6 +27,8 @@ export const DEFAULT_SIZE = {
radarShape
:
'polygon'
,
tableTitleFontSize
:
12
,
tableItemFontSize
:
12
,
tableTitleHeight
:
36
,
tableItemHeight
:
36
,
gaugeMin
:
0
,
gaugeMax
:
100
,
gaugeStartAngle
:
225
,
...
...
frontend/src/views/chart/components/shape-attr/SizeSelector.vue
浏览文件 @
99fcfe29
...
...
@@ -97,6 +97,12 @@
<el-option
v-for=
"option in fontSize"
:key=
"option.value"
:label=
"option.name"
:value=
"option.value"
/>
</el-select>
</el-form-item>
<el-form-item
:label=
"$t('chart.table_title_height')"
class=
"form-item"
>
<el-slider
v-model=
"sizeForm.tableTitleHeight"
:min=
"36"
: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"
>
<el-slider
v-model=
"sizeForm.tableItemHeight"
:min=
"36"
:max=
"100"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeBarSizeCase"
/>
</el-form-item>
</el-form>
<el-form
v-show=
"chart.type && chart.type.includes('gauge')"
ref=
"sizeFormGauge"
:model=
"sizeForm"
label-width=
"100px"
size=
"mini"
>
...
...
frontend/src/views/chart/components/table/TableNormal.vue
浏览文件 @
99fcfe29
...
...
@@ -68,17 +68,20 @@ export default {
table_header_class
:
{
fontSize
:
'12px'
,
color
:
'#606266'
,
background
:
'#e8eaec'
background
:
'#e8eaec'
,
height
:
'36px'
},
table_item_class
:
{
fontSize
:
'12px'
,
color
:
'#606266'
,
background
:
'#ffffff'
background
:
'#ffffff'
,
height
:
'36px'
},
table_item_class_stripe
:
{
fontSize
:
'12px'
,
color
:
'#606266'
,
background
:
'#ffffff'
background
:
'#ffffff'
,
height
:
'36px'
},
title_show
:
true
}
...
...
@@ -149,6 +152,8 @@ export default {
if
(
customAttr
.
size
)
{
this
.
table_header_class
.
fontSize
=
customAttr
.
size
.
tableTitleFontSize
+
'px'
this
.
table_item_class
.
fontSize
=
customAttr
.
size
.
tableItemFontSize
+
'px'
this
.
table_header_class
.
height
=
customAttr
.
size
.
tableTitleHeight
+
'px'
this
.
table_item_class
.
height
=
customAttr
.
size
.
tableItemHeight
+
'px'
}
this
.
table_item_class_stripe
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
table_item_class
))
// 暂不支持斑马纹
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论