Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
55e39cbf
提交
55e39cbf
authored
10月 19, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:增加图片样式组件,统一样式组件设置
上级
627f91b1
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
34 行增加
和
6 行删除
+34
-6
TextAttr.vue
frontend/src/components/canvas/components/TextAttr.vue
+0
-0
component-list.js
.../src/components/canvas/custom-component/component-list.js
+7
-2
index.vue
frontend/src/views/panel/edit/index.vue
+27
-4
没有找到文件。
frontend/src/components/canvas/components/TextAttr.vue
浏览文件 @
55e39cbf
差异被折叠。
点击展开。
frontend/src/components/canvas/custom-component/component-list.js
浏览文件 @
55e39cbf
// 公共样式
export
const
commonStyle
=
{
rotate
:
0
,
opacity
:
1
opacity
:
1
,
borderStyle
:
'solid'
,
borderWidth
:
0
,
borderRadius
:
0
}
export
const
commonAttr
=
{
...
...
@@ -143,6 +146,8 @@ const list = [
type
:
'Picture'
,
propValue
:
require
(
'@/components/canvas/assets/bg-kj-1.jpg'
),
style
:
{
borderStyle
:
'solid'
,
borderWidth
:
0
,
width
:
600
,
height
:
300
,
borderRadius
:
''
...
...
@@ -198,7 +203,7 @@ const list = [
width
:
200
,
height
:
200
,
borderStyle
:
'solid'
,
borderWidth
:
1
,
borderWidth
:
0
,
borderColor
:
'#000000'
,
backgroundColor
:
'#ffffff'
,
borderRadius
:
0
...
...
frontend/src/views/panel/edit/index.vue
浏览文件 @
55e39cbf
...
...
@@ -162,9 +162,9 @@
<input
id=
"input"
ref=
"files"
type=
"file"
accept=
"image/*"
hidden
@
click=
"e =>
{e.target.value = '';}" @change="handleFileChange">
<!--矩形样式组件-->
<
RectangleAttr
v-if=
"curComponent&&(curComponent.type==='rect-shape'||curComponent.type==='de-tabs')"
:scroll-left=
"scrollLeft"
:scroll-top=
"scrollTop"
/
>
<TextAttr
v-if=
"
curComponent && (curComponent.type==='v-text' || curComponent.type==='de-show-date')
"
:scroll-left=
"scrollLeft"
:scroll-top=
"scrollTop"
/>
<
FilterTextAttr
v-if=
"curComponent&&curComponent.type==='custom'&&curComponent.options.attrs.title"
:scroll-left=
"scrollLeft"
:scroll-top=
"scrollTop"
/
>
<
!--
<RectangleAttr
v-if=
"curComponent&&(curComponent.type==='rect-shape'||curComponent.type==='de-tabs')"
:scroll-left=
"scrollLeft"
:scroll-top=
"scrollTop"
/>
--
>
<TextAttr
v-if=
"
showAttr
"
:scroll-left=
"scrollLeft"
:scroll-top=
"scrollTop"
/>
<
!--
<FilterTextAttr
v-if=
"curComponent&&curComponent.type==='custom'&&curComponent.options.attrs.title"
:scroll-left=
"scrollLeft"
:scroll-top=
"scrollTop"
/>
--
>
<!--复用ChartGroup组件 不做显示-->
<ChartGroup
ref=
"chartGroup"
...
...
@@ -280,11 +280,33 @@ export default {
scrollLeft
:
0
,
scrollTop
:
0
,
timeMachine
:
null
,
dropComponentInfo
:
null
dropComponentInfo
:
null
,
// 需要展示属性设置的组件类型
showAttrComponent
:
[
'custom'
,
'v-text'
,
'picture-add'
,
'de-tabs'
,
'rect-shape'
,
'de-show-date'
]
}
},
computed
:
{
showAttr
()
{
// console.log('showAttr:' + JSON.stringify(this.curComponent))
if
(
this
.
curComponent
&&
this
.
showAttrComponent
.
includes
(
this
.
curComponent
.
type
))
{
// 过滤组件有标题才显示
if
(
this
.
curComponent
.
type
===
'custom'
&&
!
this
.
curComponent
.
options
.
attrs
.
title
)
{
return
false
}
else
{
return
true
}
}
else
{
return
false
}
},
customCanvasStyle
()
{
let
style
=
{}
...
...
@@ -687,6 +709,7 @@ export default {
...
commonAttr
,
id
:
generateID
(),
component
:
'Picture'
,
type
:
'picture-add'
,
label
:
'图片'
,
icon
:
''
,
propValue
:
fileResult
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论