Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
09667df6
提交
09667df6
authored
8月 17, 2021
作者:
fit2cloud-chenyw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 视图增加边框圆角配置
上级
24ed0bae
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
26 行增加
和
2 行删除
+26
-2
en.js
frontend/src/lang/en.js
+4
-0
tw.js
frontend/src/lang/tw.js
+3
-0
zh.js
frontend/src/lang/zh.js
+3
-0
ChartComponent.vue
frontend/src/views/chart/components/ChartComponent.vue
+12
-2
BackgroundColorSelector.vue
...rt/components/component-style/BackgroundColorSelector.vue
+4
-0
没有找到文件。
frontend/src/lang/en.js
浏览文件 @
09667df6
...
...
@@ -696,6 +696,10 @@ export default {
filter
:
'Filter'
,
none
:
'None'
,
background
:
'Background'
,
border
:
'Corner'
,
border_width
:
'Border width'
,
border_radius
:
'Border radius'
,
alpha
:
'Transparency'
,
add_filter
:
'Add Filter'
,
no_limit
:
'No limit'
,
...
...
frontend/src/lang/tw.js
浏览文件 @
09667df6
...
...
@@ -696,6 +696,9 @@ export default {
filter
:
'過濾'
,
none
:
'無'
,
background
:
'背景'
,
border
:
'邊角'
,
border_width
:
'邊框寬度'
,
border_radius
:
'邊框半徑'
,
alpha
:
'透明度'
,
add_filter
:
'添加過濾'
,
no_limit
:
'無顯示'
,
...
...
frontend/src/lang/zh.js
浏览文件 @
09667df6
...
...
@@ -696,6 +696,9 @@ export default {
filter
:
'过滤'
,
none
:
'无'
,
background
:
'背景'
,
border
:
'边角'
,
border_width
:
'边框宽度'
,
border_radius
:
'边框半径'
,
alpha
:
'透明度'
,
add_filter
:
'添加过滤'
,
no_limit
:
'无限制'
,
...
...
frontend/src/views/chart/components/ChartComponent.vue
浏览文件 @
09667df6
<
template
>
<div
style=
"display: flex;"
>
<view-track-bar
ref=
"viewTrack"
:track-menu=
"trackMenu"
class=
"track-bar"
:style=
"trackBarStyleTime"
@
trackClick=
"trackClick"
/>
<div
:id=
"chartId"
style=
"width: 100%;height: 100%;"
/>
<div
:id=
"chartId"
style=
"width: 100%;height: 100%;
overflow: hidden;"
:style=
"
{ borderRadius: borderRadius}
" />
</div>
</
template
>
...
...
@@ -56,7 +56,8 @@ export default {
},
pointParam
:
null
,
dynamicAreaCode
:
null
dynamicAreaCode
:
null
,
borderRadius
:
'0px'
}
},
...
...
@@ -195,11 +196,20 @@ export default {
myEcharts
(
option
)
{
// 指定图表的配置项和数据
const
chart
=
this
.
myChart
this
.
setBackGroundBorder
()
setTimeout
(
chart
.
setOption
(
option
,
true
),
500
)
window
.
onresize
=
function
()
{
chart
.
resize
()
}
},
setBackGroundBorder
()
{
if
(
this
.
chart
.
customStyle
)
{
const
customStyle
=
JSON
.
parse
(
this
.
chart
.
customStyle
)
if
(
customStyle
.
background
)
{
this
.
borderRadius
=
(
customStyle
.
background
.
borderRadius
||
0
)
+
'px'
}
}
},
chartResize
()
{
// 指定图表的配置项和数据
const
chart
=
this
.
myChart
...
...
frontend/src/views/chart/components/component-style/BackgroundColorSelector.vue
浏览文件 @
09667df6
...
...
@@ -8,6 +8,10 @@
<el-form-item
:label=
"$t('chart.not_alpha')"
class=
"form-item form-item-slider"
>
<el-slider
v-model=
"colorForm.alpha"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeBackgroundStyle"
/>
</el-form-item>
<el-form-item
:label=
"$t('chart.border_radius')"
class=
"form-item form-item-slider"
>
<el-slider
v-model=
"colorForm.borderRadius"
show-input
:show-input-controls=
"false"
input-size=
"mini"
@
change=
"changeBackgroundStyle"
/>
</el-form-item>
</el-form>
</el-col>
</div>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论