jufubao-base 1.0.311-beta101 → 1.0.311-beta3

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.
Files changed (27) hide show
  1. package/package.json +1 -1
  2. package/src/components/JfbBaseBlock/Attr.js +34 -167
  3. package/src/components/JfbBaseBlock/JfbBaseBlock.vue +9 -12
  4. package/src/components/JfbBaseCardDetail/Attr.js +12 -0
  5. package/src/components/JfbBaseCardDetail/JfbBaseCardDetail.vue +162 -1
  6. package/src/components/JfbBaseCardDetailEntry/Attr.js +12 -0
  7. package/src/components/JfbBaseCardDetailEntry/JfbBaseCardDetailEntry.vue +163 -2
  8. package/src/components/JfbBaseCardInfo/JfbBaseCardInfo.vue +2 -2
  9. package/src/components/JfbBaseCardInfoEntry/JfbBaseCardInfoEntry.vue +3 -3
  10. package/src/components/JfbBaseEntry/Attr.js +72 -5
  11. package/src/components/JfbBaseEntry/JfbBaseEntry.vue +47 -183
  12. package/src/components/JfbBaseImageBlock/Attr.js +23 -150
  13. package/src/components/JfbBaseImageBlock/JfbBaseImageBlock.vue +27 -29
  14. package/src/components/JfbBaseNotice/Attr.js +512 -5
  15. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +181 -188
  16. package/src/components/JfbBaseVideo/Attr.js +297 -5
  17. package/src/components/JfbBaseVideo/JfbBaseVideo.vue +62 -36
  18. package/src/components/JfbBaseEntry/cusAttr/content.js +0 -77
  19. package/src/components/JfbBaseEntry/cusAttr/style.js +0 -288
  20. package/src/components/JfbBaseNotice/cusAttr/content.js +0 -308
  21. package/src/components/JfbBaseNotice/cusAttr/cssOne.js +0 -395
  22. package/src/components/JfbBaseNotice/cusAttr/cssThree.js +0 -101
  23. package/src/components/JfbBaseNotice/cusAttr/cssTwo.js +0 -208
  24. package/src/components/JfbBaseNotice/cusAttr/style.js +0 -31
  25. package/src/components/JfbBaseVideo/cusAttr/content.js +0 -236
  26. package/src/components/JfbBaseVideo/cusAttr/image.js +0 -213
  27. package/src/components/JfbBaseVideo/cusAttr/style.js +0 -172
@@ -1,395 +0,0 @@
1
- 'use strict';
2
-
3
- import {dataVal, statusDataVal, statusShow} from "@/utils/AttrTools";
4
- import Color from "color";
5
-
6
- export default function (data, gValue, gColor, oldData) {
7
- let show_tip_icon = 'N';
8
- if(data['show_tip_icon'] !== undefined) show_tip_icon = data['show_tip_icon'];
9
-
10
- let textAlign = 'left';
11
- if(data['textAlign'] !== undefined) textAlign = data['textAlign'];
12
-
13
- let isTitle = false;
14
- if(data['isTitle'] !== undefined) isTitle = data['isTitle'];
15
-
16
- //背景颜色
17
- let defBgc = Color(gColor.warningColor).alpha(0.2).toString();
18
-
19
- let style = '1';
20
- if(data['style'] !== undefined) style = data['style'];
21
-
22
-
23
- //标题文字大小
24
- let defOldFontSize = '20rpx'; //内容
25
- let defOldTitleFontSize = '26rpx'; //标题
26
- if(data['fontSize'] !== undefined) {
27
- if(typeof data['fontSize'] === 'string') {
28
- if(data['fontSize']) {
29
- defOldFontSize = parseInt(data['fontSize']) + 'rpx';
30
- defOldTitleFontSize = (parseInt(data['fontSize']) + 4) + 'rpx';
31
- }
32
- }
33
- if(typeof data['fontSize'] === 'number'){
34
- defOldFontSize = data['fontSize'] + 'rpx';
35
- defOldTitleFontSize = (data['fontSize'] + 4) + 'rpx'
36
- }
37
- }
38
- let defFontSize = '24rpx'; //内容
39
- let defTitleFontSize = '28rpx'; //标题
40
- let fontColor = data['textColor'] || gColor.warningColor;
41
- debugger
42
-
43
-
44
-
45
- return [
46
- style === '1' && {
47
- ele: 'title',
48
- label: '风格一(静态显示)',
49
- size: 'small',
50
- groupKey:'style',
51
- },
52
-
53
- {
54
- label: '圆角',
55
- ele: 'xd-radio',
56
- groupKey: 'style',
57
- valueKey: 'radiusStatus',
58
- value: statusDataVal({data, key:'radiusStatus',cValue: 'N',dValue:'N', fields:['radius'],gValue}),
59
- labelInline:true,
60
- hidden: style !== '1',
61
- list: [
62
- {label: '默认', value: 'D'},
63
- {label: '无圆角', value: 'N'},
64
- {label: '自定义', value: 'C'},
65
- ]
66
- },
67
- {ele: 'group_start'},
68
- {
69
- label: '',
70
- ele: 'xd-site-select-list',
71
- labelInline: true,
72
- valueKey: 'radius',
73
- value: dataVal({data, key:'radius', dValue:'10', gValue}),
74
- hidden: style !== '1' || !statusShow({data, key: 'radiusStatus', fields:['radius'], gValue}),
75
- placeholder: '请选择圆角',
76
- multiple: false,
77
- className: 'input100',
78
- groupKey:'style',
79
- handleCustom({action, data}) {
80
- XdBus.getParentApi('getOptionsSettingList')({
81
- setting_id: 'edtix_style_radius',
82
- key: Date.now()
83
- })
84
- .then(res => {
85
- res.list = res.list.filter(item=>{
86
- return item.label !== '无';
87
- });
88
- data.cb(res.list)
89
- })
90
- .catch(error => {
91
- console.error(error);
92
- });
93
- },
94
- },
95
- {ele: 'group_end'},
96
-
97
- {
98
- label: '背景',
99
- ele: 'xd-radio',
100
- groupKey: 'style',
101
- valueKey: 'bgcStatus',
102
- value: statusDataVal({data, key:'bgcStatus', fields:['bgc'],gValue}),
103
- labelInline:true,
104
- hidden: style !== '1',
105
- list: [
106
- {label: '默认', value: 'D'},
107
- {label: '自定义', value: 'C'},
108
- ]
109
- },
110
- {ele: 'group_start'},
111
- {
112
- label: '',
113
- ele: 'xd-color',
114
- valueKey: 'bgc',
115
- value: dataVal({data, key:'bgc', dValue:defBgc, gValue}),
116
- hidden: style !== '1'|| !statusShow({data, key: 'bgcStatus', fields:['bgc'], gValue}),
117
- placeholder: '请输入内容背景',
118
- classNmae: 'input100',
119
- groupKey: 'style',
120
- labelInline: true,
121
- setting: {
122
- showAlpha: true
123
- }
124
- },
125
- {ele: 'group_end'},
126
-
127
- {
128
- label: '外边距',
129
- ele: 'xd-radio',
130
- groupKey: 'style',
131
- valueKey: 'marginStatus',
132
- value: statusDataVal({data, key:'marginStatus', fields:['margin'],gValue}),
133
- labelInline:true,
134
- hidden: style !== '1',
135
- list: [
136
- {label: '默认', value: 'D'},
137
- {label: '自定义', value: 'C'},
138
- ]
139
- },
140
- {ele: 'group_start'},
141
- {
142
- label: '',
143
- ele: 'xd-margin-padding',
144
- groupKey:'style',
145
- valueKey: 'margin',
146
- value: dataVal({
147
- data,
148
- key:'margin',
149
- dValue:0,
150
- gValue,
151
- isPM: true,
152
- }),
153
- hidden: style !== '1' || !statusShow({data, key: 'marginStatus', fields:['margin'], gValue}),
154
- setting: {
155
- type: 'margin',
156
- },
157
- },
158
- {ele: 'group_end'},
159
-
160
- style === '1' && {
161
- ele:'xd-line-title',
162
- groupKey:'style',
163
- label: '标题样式'
164
- },
165
- {
166
- label: '是否显示',
167
- ele: 'xd-radio',
168
- groupKey: 'style',
169
- valueKey: 'isTitle',
170
- value: isTitle,
171
- labelInline:true,
172
- hidden: style !== '1',
173
- list: [
174
- {label: '显示', value: true},
175
- {label: '隐藏', value: false},
176
- ]
177
- },
178
- {
179
- label: '对齐方式',
180
- ele: 'xd-radio',
181
- valueKey: 'textAlign',
182
- groupKey:'style',
183
- className: 'input100',
184
- labelInline:true,
185
- value: textAlign,
186
- hidden: style !== '1'|| isTitle === false,
187
- list: [
188
- {"label": "左", "value": 'left'},
189
- {"label": "中", "value": 'center'},
190
- {"label": "右", "value": 'right'},
191
- ]
192
- },
193
- {
194
- label: '标题文字',
195
- ele: 'xd-radio',
196
- groupKey: 'style',
197
- valueKey: 'titleStyleStatus',
198
- value: statusDataVal({data, key:'titleStyleStatus', fields:['titleStyle'],gValue}),
199
- labelInline:true,
200
- hidden: style !== '1'||isTitle === false,
201
- list: [
202
- {label: '默认', value: 'D'},
203
- {label: '自定义', value: 'C'},
204
- ]
205
- },
206
- {ele: 'group_start'},
207
- {
208
- label: '',
209
- ele: 'xd-text-and-bgc',
210
- groupKey:'style',
211
- valueKey: 'titleStyle',
212
- value: dataVal({data, key:'titleStyle', dValue: gValue.isAdd && gValue.isFirst ? {
213
- color: fontColor,
214
- fontSize: defTitleFontSize,
215
- fontWeight:'normal',
216
- }:{
217
- color: fontColor,
218
- fontSize: defOldTitleFontSize,
219
- fontWeight:'normal',
220
- }, gValue}),
221
- hidden: style !== '1'|| isTitle === false || !statusShow({data, key: 'titleStyleStatus', fields:['titleStyle'], gValue}),
222
- setting: {
223
- fontSize: true,
224
- weight:true,
225
- bgColor:false,
226
- selected:false,
227
- default:{}
228
- },
229
- handleCustom({action, data}) {
230
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
231
- .then(res => {
232
- data.cb(res.list)
233
- })
234
- .catch(error => {
235
- console.error(error);
236
- data.cb([])
237
- });
238
- },
239
- },
240
- {ele: 'group_end'},
241
- {
242
- label: '内边距',
243
- ele: 'xd-radio',
244
- groupKey: 'style',
245
- valueKey: 'titlePaddingStatus',
246
- value: statusDataVal({data, key:'titlePaddingStatus', fields:['titlePadding'],gValue}),
247
- labelInline:true,
248
- hidden: style !== '1' || isTitle === false,
249
- list: [
250
- {label: '默认', value: 'D'},
251
- {label: '自定义', value: 'C'},
252
- ]
253
- },
254
- {ele: 'group_start'},
255
- {
256
- label: '',
257
- ele: 'xd-margin-padding',
258
- groupKey:'style',
259
- valueKey: 'titlePadding',
260
- value: dataVal({
261
- data,
262
- key:'titlePadding',
263
- dValue:gValue.isAdd && gValue.isFirst ? 16: 20,
264
- gValue,
265
- isPM: true,
266
- }),
267
- hidden: style !== '1'|| isTitle === false || !statusShow({data, key: 'titlePaddingStatus', fields:['titlePadding'], gValue}),
268
- setting: {
269
- type: 'margin',
270
- },
271
- },
272
- {ele: 'group_end'},
273
-
274
- style === '1' && {
275
- ele:'xd-line-title',
276
- groupKey:'style',
277
- label: '内容样式'
278
- },
279
- {
280
- label: '内容文字',
281
- ele: 'xd-radio',
282
- groupKey: 'style',
283
- valueKey: 'contStyleStatus',
284
- value: statusDataVal({data, key:'contStyleStatus', fields:['contStyle'],gValue}),
285
- labelInline:true,
286
- hidden: style !== '1',
287
- list: [
288
- {label: '默认', value: 'D'},
289
- {label: '自定义', value: 'C'},
290
- ]
291
- },
292
- {ele: 'group_start'},
293
- {
294
- label: '',
295
- ele: 'xd-text-and-bgc',
296
- groupKey:'style',
297
- valueKey: 'contStyle',
298
- value: dataVal({data, key:'contStyle', dValue:gValue.isAdd && gValue.isFirst ? {
299
- color: fontColor,
300
- fontSize: defFontSize,
301
- fontWeight:'normal',
302
- }:{
303
- color: fontColor,
304
- fontSize: defOldFontSize,
305
- fontWeight:'normal',
306
- }, gValue}),
307
- hidden: style !== '1'|| !statusShow({data, key: 'contStyleStatus', fields:['contStyle'], gValue}),
308
- setting: {
309
- fontSize: true,
310
- weight:true,
311
- bgColor:false,
312
- selected:false,
313
- default:{}
314
- },
315
- handleCustom({action, data}) {
316
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
317
- .then(res => {
318
- data.cb(res.list)
319
- })
320
- .catch(error => {
321
- console.error(error);
322
- data.cb([])
323
- });
324
- },
325
- },
326
- {ele: 'group_end'},
327
-
328
- //==废弃================
329
- {
330
- label: '内文字颜色:',
331
- ele: 'xd-color',
332
- groupKey:'style',
333
- valueKey: 'textColor',
334
- value: data.textColor || '',
335
- placeholder: '请选择内文字颜色',
336
- classNmae: 'input80',
337
- hidden: true,
338
- },
339
- {
340
- label: '内容文字大小:',
341
- ele: 'xd-site-select-list',
342
- valueKey: 'fontSize',
343
- value: data['fontSize'],
344
- groupKey:'style',
345
- placeholder: '请选择内容文字大小',
346
- multiple: false,
347
- className: 'input80',
348
- hidden: true,
349
- handleCustom({action, data}) {
350
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
351
- .then(res => {
352
- data.cb(res.list)
353
- })
354
- .catch(error => {
355
- console.error(error);
356
- });
357
- },
358
- },
359
- //==废弃================
360
-
361
- {
362
- label: '内边距',
363
- ele: 'xd-radio',
364
- groupKey: 'style',
365
- valueKey: 'paddingStatus',
366
- value: statusDataVal({data, key:'paddingStatus', fields:['padding'],gValue}),
367
- labelInline:true,
368
- hidden: style !== '1',
369
- list: [
370
- {label: '默认', value: 'D'},
371
- {label: '自定义', value: 'C'},
372
- ]
373
- },
374
- {ele: 'group_start'},
375
- {
376
- label: '',
377
- ele: 'xd-margin-padding',
378
- groupKey:'style',
379
- valueKey: 'padding',
380
- value: dataVal({
381
- data,
382
- key:'padding',
383
- dValue:gValue.isAdd && gValue.isFirst ? 16: 20,
384
- gValue,
385
- isPM: true,
386
- }),
387
- hidden: style !== '1' || !statusShow({data, key: 'paddingStatus', fields:['padding'], gValue}),
388
- setting: {
389
- type: 'margin',
390
- },
391
- },
392
- {ele: 'group_end'},
393
-
394
- ].filter(i=>i)
395
- }
@@ -1,101 +0,0 @@
1
- 'use strict';
2
-
3
- import {dataVal, statusDataVal, statusShow} from "@/utils/AttrTools";
4
- export default function (data, gValue, gColor, oldData) {
5
- let style = '1';
6
- if(data['style'] !== undefined) style = data['style'];
7
- let defBtnFields = ['btnConfirmWidth','','btnConfirmBgColor','btnConfirmTextColor']
8
- return [
9
- style ==='3' && {
10
- ele: 'title',
11
- label: '风格三(弹窗显示)',
12
- size: 'small',
13
- groupKey:'style',
14
- },
15
- {
16
- label: '弹窗间隔',
17
- ele: 'xd-radio',
18
- groupKey: 'style',
19
- valueKey: 'timeStatus',
20
- value: statusDataVal({data, key:'timeStatus', fields:['time'],gValue}),
21
- labelInline:true,
22
- hidden: style !== '3',
23
- list: [
24
- {label: '默认', value: 'D'},
25
- {label: '自定义', value: 'C'},
26
- ]
27
- },
28
- {ele: 'group_start'},
29
- {
30
- label: '',
31
- ele: 'el-input',
32
- type: 'text',
33
- groupKey:'style',
34
- valueKey: 'time',
35
- value: dataVal({data, key:'time', dValue:3, gValue}),
36
- hidden: style !== '3'|| !statusShow({data, key: 'timeStatus', fields:['time'], gValue}),
37
- className: 'input100',
38
- notice: '弹窗间隔,单位:小时。默认值:<span style="color: red">3</span>小时',
39
- unit: '小时',
40
- },
41
- {ele: 'group_end'},
42
- {
43
- label: '按钮样式',
44
- ele: 'xd-radio',
45
- groupKey: 'style',
46
- valueKey: 'btnStatus',
47
- value: statusDataVal({data, key:'btnStatus', fields:defBtnFields,gValue}),
48
- labelInline:true,
49
- hidden: style !== '3',
50
- list: [
51
- {label: '默认', value: 'D'},
52
- {label: '自定义', value: 'C'},
53
- ]
54
- },
55
- {ele: 'group_start'},
56
- {
57
- label: "按钮长度",
58
- ele: "el-input",
59
- valueKey: "btnConfirmWidth",
60
- value: dataVal({data, key:'btnConfirmWidth', dValue:'', gValue}),
61
- hidden: style !== '3'|| !statusShow({data, key: 'btnStatus', fields:defBtnFields, gValue}),
62
- placeholder: '请输入按钮长度',
63
- className: 'inpu100',
64
- groupKey: "style",
65
- labelInline: true,
66
- setting: {
67
- showAlpha: true
68
- },
69
- unit:'px'
70
- },
71
- {
72
- label: "按钮背景",
73
- ele: "xd-color",
74
- valueKey: "btnConfirmBgColor",
75
- groupKey:'style',
76
- className: 'inpu100',
77
- labelInline: true,
78
- value: dataVal({data, key:'btnConfirmBgColor', dValue:'', gValue}),
79
- hidden: style !== '3'|| !statusShow({data, key: 'btnStatus', fields:defBtnFields, gValue}),
80
- setting: {
81
- showAlpha: true
82
- },
83
- placeholder: '请选择按钮背景颜色',
84
- },
85
- {
86
- label: "按钮文字",
87
- ele: "xd-color",
88
- valueKey: "btnConfirmTextColor",
89
- groupKey:'style',
90
- className: 'inpu100',
91
- labelInline: true,
92
- value: dataVal({data, key:'btnConfirmTextColor', dValue:'', gValue}),
93
- hidden: style !== '3'|| !statusShow({data, key: 'btnStatus', fields:defBtnFields, gValue}),
94
- setting: {
95
- showAlpha: true
96
- },
97
- placeholder: '请选择按钮文字颜色',
98
- },
99
- {ele: 'group_end'},
100
- ].filter(i=>i)
101
- }
@@ -1,208 +0,0 @@
1
- 'use strict';
2
-
3
- import {
4
- dataVal,
5
- statusDataVal,
6
- statusShow,
7
- cRaBorShadow
8
- } from "@/utils/AttrTools";
9
- export default function (data, gValue, gColor, oldData) {
10
- let style = '1';
11
- if(data['style'] !== undefined) style = data['style'];
12
-
13
- let defScrollBorder = cRaBorShadow( data, 'scrollBorder', {dValue:'N', cValue: 'N'},gValue);
14
- let defScrollShadow = cRaBorShadow( data, 'scrollShadow', {dValue:'N', cValue: 'N'},gValue);
15
-
16
- return [
17
- style === '2' && {
18
- ele: 'title',
19
- label: '风格二(滚动显示)',
20
- size: 'small',
21
- groupKey:'style',
22
- },
23
- {
24
- label: '滚动条件',
25
- ele: 'xd-radio',
26
- groupKey: 'style',
27
- valueKey: 'numStatus',
28
- value: statusDataVal({data, key:'numStatus', fields:['num'],gValue}),
29
- labelInline:true,
30
- hidden: style !== '2',
31
- list: [
32
- {label: '默认', value: 'D'},
33
- {label: '自定义', value: 'C'},
34
- ]
35
- },
36
- {ele: 'group_start'},
37
- {
38
- label: '',
39
- ele: 'el-input',
40
- groupKey:'style',
41
- type: 'number',
42
- valueKey: 'num',
43
- value: dataVal({data, key:'num', dValue:1, gValue}),
44
- hidden: style !== '2' || !statusShow({data, key: 'numStatus', fields:['num'], gValue}),
45
- placeholder: '请输入滚动显示条数,默认:1',
46
- className: 'input100',
47
- unit: '条'
48
- },
49
- {ele: 'group_end'},
50
-
51
- {
52
- label: '滚动速度',
53
- ele: 'xd-radio',
54
- groupKey: 'style',
55
- valueKey: 'speedStatus',
56
- value: statusDataVal({data, key:'speedStatus', fields:['speed'],gValue}),
57
- labelInline:true,
58
- hidden: style !== '2',
59
- list: [
60
- {label: '默认', value: 'D'},
61
- {label: '自定义', value: 'C'},
62
- ]
63
- },
64
- {ele: 'group_start'},
65
- {
66
- label: '',
67
- ele: 'el-input',
68
- type: 'number',
69
- groupKey:'style',
70
- valueKey: 'speed',
71
- value: dataVal({data, key:'speed', dValue:20, gValue}),
72
- hidden: style !== '2' || !statusShow({data, key: 'speedStatus', fields:['speed'], gValue}),
73
- placeholder: '请输入滚动速度值,默认:20',
74
- className: 'input100',
75
- notice: '建议取值:20-60, 值越大越快',
76
- inline: false,
77
- },
78
- {ele: 'group_end'},
79
- {
80
- label: '圆角',
81
- ele: 'xd-radio',
82
- groupKey: 'style',
83
- valueKey: 'scrollRadiusStatus',
84
- value: statusDataVal({data, key:'scrollRadiusStatus', cValue: 'N', dValue:'N', fields:['scrollRadius'],gValue}),
85
- labelInline:true,
86
- hidden: style !== '2',
87
- list: [
88
- {label: '默认', value: 'D'},
89
- {label: '无圆角', value: 'N'},
90
- {label: '自定义', value: 'C'},
91
- ]
92
- },
93
- {ele: 'group_start'},
94
- {
95
- label: '',
96
- ele: 'xd-site-select-list',
97
- labelInline: true,
98
- valueKey: 'scrollRadius',
99
- value: dataVal({data, key:'scrollRadius', dValue:'10', gValue}),
100
- hidden: style !== '2' || !statusShow({data, key: 'scrollRadiusStatus', fields:['scrollRadius'], gValue}),
101
- placeholder: '请选择圆角',
102
- multiple: false,
103
- className: 'input100',
104
- groupKey:'style',
105
- handleCustom({action, data}) {
106
- XdBus.getParentApi('getOptionsSettingList')({
107
- setting_id: 'edtix_style_radius',
108
- key: Date.now()
109
- })
110
- .then(res => {
111
- res.list = res.list.filter(item=>{
112
- return item.label !== '无';
113
- });
114
- data.cb(res.list)
115
- })
116
- .catch(error => {
117
- console.error(error);
118
- });
119
- },
120
- },
121
- {ele: 'group_end'},
122
-
123
- {
124
- label: '描边',
125
- ele: 'xd-border',
126
- labelInline: true,
127
- groupKey:'style',
128
- valueKey: 'scrollBorder',
129
- value: defScrollBorder,
130
- hidden: style !== '2',
131
- setting: {
132
- selected:defScrollBorder.type,
133
- isRadio: true,//启用editx默认
134
- isDef: true, //启动默认选项
135
- //==设置默认值==
136
- color: '#fff',
137
- width: '0',
138
- style: 'solid'
139
- //==设置默认值==
140
- },
141
- },
142
- {
143
- label: '投影',
144
- ele: 'xd-shadow',
145
- labelInline: true,
146
- groupKey:'style',
147
- valueKey: 'scrollShadow',
148
- value: defScrollShadow,
149
- className: 'input100',
150
- hidden: style !== '2',
151
- setting: {
152
- selected: defScrollShadow.type,
153
- isRadio:true,
154
- isDef: true,
155
- default: {
156
- color:'rgba(0,0,0,0)',
157
- width:'0',
158
- }
159
- },
160
- handleCustom({action, data}) {
161
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
162
- .then(res => {
163
- res.list = res.list.filter(item=>{
164
- return item.label !== '无';
165
- });
166
- data.cb(res.list)
167
- })
168
- .catch(error => {
169
- console.error(error);
170
- data.cb([])
171
- });
172
- },
173
- },
174
-
175
- {
176
- label: '外边距',
177
- ele: 'xd-radio',
178
- groupKey: 'style',
179
- valueKey: 'scrollMarginStatus',
180
- value: statusDataVal({data, key:'scrollMarginStatus', fields:['scrollMargin'],gValue}),
181
- labelInline:true,
182
- hidden: style !== '2',
183
- list: [
184
- {label: '默认', value: 'D'},
185
- {label: '自定义', value: 'C'},
186
- ]
187
- },
188
- {ele: 'group_start'},
189
- {
190
- label: '',
191
- ele: 'xd-margin-padding',
192
- groupKey:'style',
193
- valueKey: 'scrollMargin',
194
- value: dataVal({
195
- data,
196
- key:'scrollMargin',
197
- dValue:0,
198
- gValue,
199
- isPM: true,
200
- }),
201
- hidden: style !== '2' || !statusShow({data, key: 'scrollMarginStatus', fields:['scrollMargin'], gValue}),
202
- setting: {
203
- type: 'margin',
204
- },
205
- },
206
- {ele: 'group_end'},
207
- ].filter(i=>i)
208
- }