Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
50c544fb
提交
50c544fb
authored
6月 29, 2021
作者:
junjie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(视图): 标题增加字体样式
上级
9987ba38
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
20 行增加
和
7 行删除
+20
-7
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
-1
common.js
frontend/src/views/chart/chart/common/common.js
+1
-0
TitleSelector.vue
.../views/chart/components/component-style/TitleSelector.vue
+2
-1
LabelNormal.vue
frontend/src/views/chart/components/normal/LabelNormal.vue
+3
-1
TableNormal.vue
frontend/src/views/chart/components/table/TableNormal.vue
+3
-1
没有找到文件。
frontend/src/lang/en.js
浏览文件 @
50c544fb
...
...
@@ -730,7 +730,9 @@ export default {
axis_type_dotted
:
'Dotted'
,
axis_label_show
:
'Label Show'
,
axis_label_color
:
'Label Color'
,
axis_label_fontsize
:
'Label Fontsize'
axis_label_fontsize
:
'Label Fontsize'
,
text_style
:
'Font Style'
,
bolder
:
'Bolder'
},
dataset
:
{
sheet_warn
:
'There are multiple sheet pages, and the first one is extracted by default'
,
...
...
frontend/src/lang/tw.js
浏览文件 @
50c544fb
...
...
@@ -772,7 +772,9 @@ export default {
axis_type_dotted
:
'點'
,
axis_label_show
:
'標簽顯示'
,
axis_label_color
:
'標簽顏色'
,
axis_label_fontsize
:
'標簽大小'
axis_label_fontsize
:
'標簽大小'
,
text_style
:
'字體樣式'
,
bolder
:
'加粗'
},
dataset
:
{
sheet_warn
:
'有多個sheet頁面,默認抽取第一個'
,
...
...
frontend/src/lang/zh.js
浏览文件 @
50c544fb
...
...
@@ -730,7 +730,9 @@ export default {
axis_type_dotted
:
'点'
,
axis_label_show
:
'标签显示'
,
axis_label_color
:
'标签颜色'
,
axis_label_fontsize
:
'标签大小'
axis_label_fontsize
:
'标签大小'
,
text_style
:
'字体样式'
,
bolder
:
'加粗'
},
dataset
:
{
sheet_warn
:
'有多个 Sheet 页,默认抽取第一个'
,
...
...
frontend/src/views/chart/chart/chart.js
浏览文件 @
50c544fb
...
...
@@ -63,7 +63,8 @@ export const DEFAULT_TITLE_STYLE = {
color
:
'#303133'
,
hPosition
:
'center'
,
vPosition
:
'top'
,
isItalic
:
false
isItalic
:
false
,
isBolder
:
false
}
export
const
DEFAULT_LEGEND_STYLE
=
{
show
:
true
,
...
...
frontend/src/views/chart/chart/common/common.js
浏览文件 @
50c544fb
...
...
@@ -11,6 +11,7 @@ export function componentStyle(chart_option, chart) {
style
.
fontSize
=
customStyle
.
text
.
fontSize
style
.
color
=
customStyle
.
text
.
color
customStyle
.
text
.
isItalic
?
style
.
fontStyle
=
'italic'
:
style
.
fontStyle
=
'normal'
customStyle
.
text
.
isBolder
?
style
.
fontWeight
=
'bold'
:
style
.
fontWeight
=
'normal'
chart_option
.
title
.
textStyle
=
style
}
if
(
customStyle
.
legend
)
{
...
...
frontend/src/views/chart/components/component-style/TitleSelector.vue
浏览文件 @
50c544fb
...
...
@@ -44,8 +44,9 @@
<el-radio-button
label=
"bottom"
>
{{
$t
(
'chart.text_pos_bottom'
)
}}
</el-radio-button>
</el-radio-group>
</el-form-item>
<el-form-item
:label=
"$t('chart.text_
italic
')"
class=
"form-item"
>
<el-form-item
:label=
"$t('chart.text_
style
')"
class=
"form-item"
>
<el-checkbox
v-model=
"titleForm.isItalic"
@
change=
"changeTitleStyle"
>
{{
$t
(
'chart.italic'
)
}}
</el-checkbox>
<el-checkbox
v-model=
"titleForm.isBolder"
@
change=
"changeTitleStyle"
>
{{
$t
(
'chart.bolder'
)
}}
</el-checkbox>
</el-form-item>
</el-form>
</el-col>
...
...
frontend/src/views/chart/components/normal/LabelNormal.vue
浏览文件 @
50c544fb
...
...
@@ -50,7 +50,8 @@ export default {
fontSize
:
'18px'
,
color
:
'#303133'
,
textAlign
:
'left'
,
fontStyle
:
'normal'
fontStyle
:
'normal'
,
fontWeight
:
'normal'
},
content_class
:
{
display
:
'flex'
,
...
...
@@ -136,6 +137,7 @@ export default {
this
.
title_class
.
color
=
customStyle
.
text
.
color
this
.
title_class
.
textAlign
=
customStyle
.
text
.
hPosition
this
.
title_class
.
fontStyle
=
customStyle
.
text
.
isItalic
?
'italic'
:
'normal'
this
.
title_class
.
fontWeight
=
customStyle
.
text
.
isBolder
?
'bold'
:
'normal'
}
if
(
customStyle
.
background
)
{
this
.
bg_class
.
background
=
hexColorToRGBA
(
customStyle
.
background
.
color
,
customStyle
.
background
.
alpha
)
...
...
frontend/src/views/chart/components/table/TableNormal.vue
浏览文件 @
50c544fb
...
...
@@ -60,7 +60,8 @@ export default {
fontSize
:
'18px'
,
color
:
'#303133'
,
textAlign
:
'left'
,
fontStyle
:
'normal'
fontStyle
:
'normal'
,
fontWeight
:
'normal'
},
bg_class
:
{
background
:
hexColorToRGBA
(
'#ffffff'
,
0
)
...
...
@@ -175,6 +176,7 @@ export default {
this
.
title_class
.
color
=
customStyle
.
text
.
color
this
.
title_class
.
textAlign
=
customStyle
.
text
.
hPosition
this
.
title_class
.
fontStyle
=
customStyle
.
text
.
isItalic
?
'italic'
:
'normal'
this
.
title_class
.
fontWeight
=
customStyle
.
text
.
isBolder
?
'bold'
:
'normal'
}
if
(
customStyle
.
background
)
{
this
.
bg_class
.
background
=
hexColorToRGBA
(
customStyle
.
background
.
color
,
customStyle
.
background
.
alpha
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论