Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
1ef27410
Unverified
提交
1ef27410
authored
11月 25, 2021
作者:
fit2cloud-chenyw
提交者:
GitHub
11月 25, 2021
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1273 from dataease/pr@dev@fix_时钟组件边框属性
fix: 时钟组件边框属性导致背景下移
上级
d90bda50
e98b09a3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
10 行增加
和
8 行删除
+10
-8
TextAttr.vue
frontend/src/components/canvas/components/TextAttr.vue
+5
-4
component-list.js
.../src/components/canvas/custom-component/component-list.js
+2
-2
style.js
frontend/src/components/canvas/utils/style.js
+3
-2
没有找到文件。
frontend/src/components/canvas/components/TextAttr.vue
浏览文件 @
1ef27410
...
...
@@ -78,12 +78,12 @@
<el-input
v-model=
"styleInfo.margin"
type=
"number"
size=
"mini"
min=
"0"
max=
"99"
@
change=
"styleChange"
/>
</div>
<el-tooltip
v-if=
"attrShow('
time_margin
')"
:content=
"$t('panel.margin')"
>
<el-tooltip
v-if=
"attrShow('
padding
')"
:content=
"$t('panel.margin')"
>
<i
style=
"float: left;margin-top: 3px;margin-left: 2px;"
class=
"icon iconfont icon-margin"
/>
</el-tooltip>
<div
v-if=
"attrShow('
time_margin
')"
style=
"width: 70px;float: left;margin-top: 2px;margin-left: 2px;"
>
<el-input
v-model=
"styleInfo.
time_margin
"
type=
"number"
size=
"mini"
min=
"0"
max=
"99"
@
change=
"styleChange"
/>
<div
v-if=
"attrShow('
padding
')"
style=
"width: 70px;float: left;margin-top: 2px;margin-left: 2px;"
>
<el-input
v-model=
"styleInfo.
padding
"
type=
"number"
size=
"mini"
min=
"0"
max=
"99"
@
change=
"styleChange"
/>
</div>
<el-tooltip
v-if=
"attrShow('opacity')"
:content=
"$t('panel.opacity')"
>
...
...
@@ -268,7 +268,8 @@ export default {
'color'
,
'backgroundColor'
,
'date-format'
,
'time_margin'
'time_margin'
,
'padding'
/* 'margin' */
],
// 文本组件显示的属性
...
...
frontend/src/components/canvas/custom-component/component-list.js
浏览文件 @
1ef27410
...
...
@@ -307,8 +307,8 @@ const list = [
borderStyle
:
'solid'
,
borderColor
:
'#000000'
,
borderRadius
:
0
,
/* margin: 10, */
time_margin
:
0
time_margin
:
0
,
padding
:
1
0
},
formatInfo
:
{
openMode
:
'0'
,
...
...
frontend/src/components/canvas/utils/style.js
浏览文件 @
1ef27410
...
...
@@ -10,7 +10,8 @@ export function getStyle(style, filter = []) {
'borderWidth'
,
'letterSpacing'
,
'borderRadius'
,
'margin'
'margin'
,
'padding'
]
const
result
=
{}
...
...
@@ -75,7 +76,7 @@ export function colorRgb(color, opacity) {
}
// 处理六位的颜色值
var
sColorChange
=
[]
for
(
var
i
=
1
;
i
<
7
;
i
+=
2
)
{
for
(
let
i
=
1
;
i
<
7
;
i
+=
2
)
{
sColorChange
.
push
(
parseInt
(
'0x'
+
sColor
.
slice
(
i
,
i
+
2
)))
}
if
(
opacity
||
opacity
===
0
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论