jufubao-base 1.0.310 → 1.0.311-beta101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,172 @@
1
+ 'use strict';
2
+
3
+ import {dataVal, statusDataVal, statusShow} from "@/utils/AttrTools";
4
+ export default function (data, gValue, gColor, oldData) {
5
+ return [
6
+ {
7
+ ele: 'title',
8
+ label: '常规',
9
+ size: 'small',
10
+ groupKey:'style',
11
+ },
12
+ {
13
+ label: '外边距',
14
+ ele: 'xd-radio',
15
+ groupKey: 'style',
16
+ valueKey: 'marginStatus',
17
+ value: statusDataVal({data, key:'marginStatus', fields:['margin'],gValue}),
18
+ labelInline:true,
19
+ list: [
20
+ {label: '默认', value: 'D'},
21
+ {label: '自定义', value: 'C'},
22
+ ]
23
+ },
24
+ {ele: 'group_start'},
25
+ {
26
+ label: '',
27
+ ele: 'xd-margin-padding',
28
+ groupKey:'style',
29
+ valueKey: 'margin',
30
+ value: dataVal({
31
+ data,
32
+ key:'margin',
33
+ dValue:0,
34
+ gValue,
35
+ isPM: true,
36
+ }),
37
+ hidden: !statusShow({data, key: 'marginStatus', fields:['margin'], gValue}),
38
+ setting: {
39
+ type: 'margin',
40
+ },
41
+ },
42
+ {ele: 'group_end'},
43
+ {
44
+ ele: 'title',
45
+ label: '內容区',
46
+ size: 'small',
47
+ groupKey:'style',
48
+ },
49
+ {
50
+ label: '内容区背景',
51
+ ele: 'xd-radio',
52
+ groupKey: 'style',
53
+ valueKey: 'bgColorStatus',
54
+ value: statusDataVal({data, key:'bgColorStatus', fields:['bgColor'],gValue}),
55
+ labelInline:true,
56
+ list: [
57
+ {label: '默认', value: 'D'},
58
+ {label: '自定义', value: 'C'},
59
+ ]
60
+ },
61
+ {ele: 'group_start'},
62
+ {
63
+ label: '',
64
+ ele: 'xd-color',
65
+ valueKey: 'bgColor',
66
+ value: dataVal({data, key:'bgColor', dValue:'rgba(0,0,0,0)', gValue}),
67
+ hidden: !statusShow({data, key: 'bgColorStatus', fields:['bgColor'], gValue}),
68
+ placeholder: '请选择背景色',
69
+ classNmae: 'input80',
70
+ groupKey: 'style',
71
+ labelInline: true,
72
+ setting: {
73
+ showAlpha: true
74
+ }
75
+ },
76
+ {ele: 'group_end'},
77
+ {
78
+ label: '内容区边距',
79
+ ele: 'xd-radio',
80
+ groupKey: 'style',
81
+ valueKey: 'paddingStatus',
82
+ value: statusDataVal({data, key:'paddingStatus', fields:['padding'],gValue}),
83
+ labelInline:true,
84
+ list: [
85
+ {label: '默认', value: 'D'},
86
+ {label: '自定义', value: 'C'},
87
+ ]
88
+ },
89
+ {ele: 'group_start'},
90
+ {
91
+ label: '',
92
+ ele: 'xd-margin-padding',
93
+ valueKey: 'padding',
94
+ value: dataVal({
95
+ data,
96
+ key:'padding',
97
+ dValue:0,
98
+ gValue,
99
+ isPM: true,
100
+ }),
101
+ hidden: !statusShow({data, key: 'paddingStatus', fields:['padding'], gValue}),
102
+ groupKey: 'style',
103
+ setting: {
104
+ type: 'padding',
105
+ },
106
+ placeholder: '请填充设置',
107
+ },
108
+ {ele: 'group_end'},
109
+ {
110
+ label: '内容区圆角',
111
+ ele: 'xd-radio',
112
+ groupKey: 'style',
113
+ valueKey: 'radiusStatus',
114
+ value: statusDataVal({data, key:'radiusStatus',cValue:'N',dValue:'N', fields:['radius'],gValue}),
115
+ labelInline:true,
116
+ list: [
117
+ {label: '默认', value: 'D'},
118
+ {label: '无圆角', value: 'N'},
119
+ {label: '自定义', value: 'C'},
120
+ ]
121
+ },
122
+ {ele: 'group_start'},
123
+ {
124
+ label: '',
125
+ ele: 'xd-site-select-list',
126
+ labelInline: true,
127
+ valueKey: 'radius',
128
+ value: dataVal({data, key:'radius', dValue:'10', gValue}), //默认0
129
+ hidden: !statusShow({data, key: 'radiusStatus', fields:['radius'], gValue}),
130
+ placeholder: '请选择圆角',
131
+ multiple: false,
132
+ className: 'input80',
133
+ groupKey:'style',
134
+ handleCustom({action, data}) {
135
+ XdBus.getParentApi('getOptionsSettingList')({
136
+ setting_id: 'edtix_style_radius',
137
+ key: Date.now()
138
+ })
139
+ .then(res => {
140
+ res.list = res.list.filter(item=>{
141
+ return item.label !== '无';
142
+ });
143
+ data.cb(res.list)
144
+ })
145
+ .catch(error => {
146
+ console.error(error);
147
+ });
148
+ },
149
+ },
150
+ {ele: 'group_end'},
151
+ {
152
+ label: '版本号:',
153
+ ele: 'el-input',
154
+ type: 'text',
155
+ groupKey: 'content',
156
+ valueKey: 'version',
157
+ value: 'v2.0',
158
+ hidden: true,
159
+ },
160
+ {
161
+ label: '过滤引用模版字段:',
162
+ ele: 'el-input',
163
+ type: 'text',
164
+ groupKey: 'content',
165
+ valueKey: 'refFilterKey',
166
+ value: '[]',
167
+ hidden: true,
168
+ },
169
+
170
+ ]
171
+ }
172
+