jufubao-base 1.0.192-beta1 → 1.0.192

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.
@@ -1,5 +1,4 @@
1
1
  'use strict';
2
- import ICONS from '@/ICONS'
3
2
 
4
3
  /**
5
4
  * @description 当表单组件中有联动操作时候,使用方法进行返回
@@ -14,69 +13,6 @@ export default {
14
13
  slot: 'is_reference_title',
15
14
  groupKey:'advanced',
16
15
  },
17
- {
18
- label: '我的订单自定义名称:',
19
- ele: 'el-input',
20
- type: 'text',
21
- valueKey: 'myOrderName',
22
- groupKey:'content',
23
- value: data['myOrderName'] || '',
24
- placeholder: '请输入我的订单自定义名称',
25
- className: 'input80',
26
- rules: [
27
- {
28
- required: false,
29
- validator: (rule, value, callback) => {
30
- value = value.trim();
31
- if(value.length === 0) return callback()
32
- if (value.length < 1 || value.length > 4) callback('我的订单自定义名称长度为:1-4字符');
33
- else callback()
34
- },
35
- trigger: 'blur'
36
- }
37
- ],
38
- notice: '我的订单自定义名称设置,默认值:<span style="color:red">我的订单</span>,长度为:1-4字符',
39
- inline: false,
40
- },
41
- {
42
- label: '是否售后订单:',
43
- ele: 'xd-radio',
44
- valueKey: 'isShowBtn',
45
- value: data['isShowBtn'] || 'Y',
46
- placeholder: '请选择是否售后订单',
47
- groupKey:'content',
48
- multiple: false,
49
- className: 'input80',
50
- list: [
51
- {label: '是', value: 'Y'},
52
- {label: '否', value: 'N'},
53
- ]
54
- },
55
- data['isShowBtn'] === 'Y' && {
56
- label: '售后订单自定义名称:',
57
- ele: 'el-input',
58
- type: 'text',
59
- valueKey: 'afterBuyName',
60
- groupKey:'content',
61
- value: data['afterBuyName'] || '',
62
- placeholder: '请输入售后订单自定义名称',
63
- className: 'input80',
64
- rules: [
65
- {
66
- required: false,
67
- validator: (rule, value, callback) => {
68
- value = value.trim();
69
- if(value.length === 0) return callback()
70
- if (value.length < 1 || value.length > 4) callback('售后订单自定义名称长度为:1-4字符');
71
- else callback()
72
- },
73
- trigger: 'blur'
74
- }
75
- ],
76
- notice: '售后订单自定义名称设置,默认值:<span style="color:red">售后订单</span>,长度为:1-4字符',
77
- inline: false,
78
- },
79
-
80
16
  {
81
17
  label: '设置订单状态:',
82
18
  ele: 'xd-order-setting',
@@ -85,7 +21,6 @@ export default {
85
21
  value: data['orderTypeList'] || null,
86
22
  setting: {
87
23
  router: XdBus.getParentApi('getPagesTree'),
88
- icons:ICONS,
89
24
  },
90
25
  handleCustom({action, data}) {
91
26
  if (action === 'number') {
@@ -104,25 +39,6 @@ export default {
104
39
  {required: true, message: '设置订单配置错误!请检查配置', trigger: 'change'},
105
40
  ],
106
41
  },
107
- {
108
- label: '行间距:',
109
- ele: 'el-input',
110
- type: 'number',
111
- valueKey: 'spacing',
112
- groupKey:'style',
113
- value: data.spacing || '',
114
- placeholder: '请输入行间距',
115
- className: 'input60',
116
- inline: false,
117
- notice: '设置间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
118
- },
119
-
120
- {
121
- ele: 'title',
122
- label: '轮廓样式设置',
123
- size: 'small',
124
- groupKey:'style',
125
- },
126
42
  {
127
43
  label: '背景颜色:',
128
44
  ele: 'xd-color',
@@ -152,7 +68,19 @@ export default {
152
68
  },
153
69
  },
154
70
  {
155
- label: '边距:',
71
+ label: '间距:',
72
+ ele: 'el-input',
73
+ type: 'number',
74
+ valueKey: 'spacing',
75
+ groupKey:'style',
76
+ value: data.spacing || '',
77
+ placeholder: '请输入间距',
78
+ className: 'input60',
79
+ inline: false,
80
+ notice: '设置间距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
81
+ },
82
+ {
83
+ label: '外边距:',
156
84
  ele: 'xd-margin-padding',
157
85
  valueKey: 'bodyMargin',
158
86
  groupKey:'style',
@@ -177,37 +105,6 @@ export default {
177
105
  inline: false,
178
106
  notice: '设置填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
179
107
  },
180
-
181
- {
182
- ele: 'title',
183
- label: '标题设置',
184
- size: 'small',
185
- groupKey:'style',
186
- },
187
- {
188
- label: "标题样式设置",
189
- ele: "xd-text-and-bgc",
190
- groupKey:'style',
191
- valueKey: 'titleStyle',
192
- value: data['titleStyle'] || null,
193
- setting: {
194
- fontSize: true,
195
- color: true,
196
- bgColor: false,
197
- weight: true,
198
- selected:false
199
- },
200
- handleCustom({action, data}) {
201
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
202
- .then(res => {
203
- data.cb(res.list)
204
- })
205
- .catch(error => {
206
- console.error(error);
207
- data.cb([])
208
- });
209
- },
210
- },
211
108
  {
212
109
  label: '标题样式颜色:',
213
110
  ele: 'xd-color',
@@ -216,116 +113,31 @@ export default {
216
113
  value: data['cardNameColor'] || null,
217
114
  placeholder: '请选择标题样式颜色',
218
115
  classNmae: 'input60',
219
- hidden:true,
220
116
  },
221
117
 
222
118
  {
223
119
  ele: 'title',
224
- label: `售后订单按钮样式设置`,
120
+ label: '内容样式设置',
225
121
  size: 'small',
226
122
  groupKey:'style',
227
123
  },
228
124
  {
229
- label: "文字样式设置",
230
- ele: "xd-text-and-bgc",
231
- groupKey:'style',
232
- valueKey: 'addBtnStyle',
233
- value: data['addBtnStyle'] || null,
234
- setting: {
235
- fontSize: true,
236
- color: true,
237
- bgColor: false,
238
- weight: true,
239
- selected:false
240
- },
241
- handleCustom({action, data}) {
242
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
243
- .then(res => {
244
- data.cb(res.list)
245
- })
246
- .catch(error => {
247
- console.error(error);
248
- data.cb([])
249
- });
250
- },
251
- },
252
- {
253
- label: '圆角设置:',
254
- ele: 'xd-site-select-list',
255
- valueKey: 'addBtnRadius',
256
- groupKey:'style',
257
- value: data['addBtnRadius'] || '40',
258
- placeholder: '请选择圆角设置',
259
- multiple: false,
260
- className: 'input80',
261
- handleCustom({action, data}) {
262
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
263
- .then(res => {
264
- data.cb(res.list)
265
- })
266
- .catch(error => {
267
- console.error(error);
268
- });
269
- },
270
- },
271
- {
272
- label: '背景颜色:',
125
+ label: '文字颜色:',
273
126
  ele: 'xd-color',
274
- valueKey: 'addBtnBgColor',
275
127
  groupKey:'style',
276
- value: data['addBtnBgColor'] || null,
277
- placeholder: '请选择背景颜色',
128
+ valueKey: 'textColor',
129
+ value: data['textColor'] || '',
130
+ placeholder: '请选择文字颜色',
278
131
  classNmae: 'input80',
279
132
  },
280
133
  {
281
- label: '投影设置:',
282
- ele: 'xd-shadow',
283
- groupKey:'style',
284
- valueKey: 'addBtnShadow',
285
- value: data['addBtnShadow'] || '',
286
- setting: {
287
- selected: 'N'
288
- },
289
- handleCustom({action, data}) {
290
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
291
- .then(res => {
292
- data.cb(res.list)
293
- })
294
- .catch(error => {
295
- console.error(error);
296
- data.cb([])
297
- });
298
- },
299
- },
300
- {
301
- label: '边框设置:',
302
- ele: 'xd-border',
303
- groupKey:'style',
304
- valueKey: 'addBtnBorder',
305
- value: data['addBtnBorder'] || {},
306
- setting: {
307
- selected:'N'
308
- },
309
- },
310
-
311
- {
312
- ele: 'title',
313
- label: '列表轮阔样式设置',
314
- size: 'small',
315
- groupKey:'style',
316
- },
317
- {
318
- label: '填充:',
319
- ele: 'xd-margin-padding',
320
- valueKey: 'contPadding',
134
+ label: 'ICON颜色:',
135
+ ele: 'xd-color',
136
+ valueKey: 'iconColor',
321
137
  groupKey:'style',
322
- value: data['contPadding'] || null,
323
- setting: {
324
- type: 'padding',
325
- },
326
- placeholder: '请设置填充',
327
- inline: false,
328
- notice: '设置填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">40px 34px 20px 20px</span>像素',
138
+ value: data['iconColor'] || '',
139
+ placeholder: '请选择ICON颜色',
140
+ classNmae: 'input80',
329
141
  },
330
142
  {
331
143
  label: '背景颜色:',
@@ -355,87 +167,12 @@ export default {
355
167
  });
356
168
  },
357
169
  },
358
- {
359
- label: '投影设置:',
360
- ele: 'xd-shadow',
361
- groupKey:'style',
362
- valueKey: 'contShadow',
363
- value: data['contShadow'] || '',
364
- setting: {
365
- selected: 'N'
366
- },
367
- handleCustom({action, data}) {
368
- XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
369
- .then(res => {
370
- data.cb(res.list)
371
- })
372
- .catch(error => {
373
- console.error(error);
374
- data.cb([])
375
- });
376
- },
377
- },
378
- {
379
- label: '边框设置:',
380
- ele: 'xd-border',
381
- groupKey:'style',
382
- valueKey: 'contBorder',
383
- value: data['contBorder'] || {},
384
- setting: {
385
- selected:'N'
386
- },
387
- },
388
-
389
- {
390
- ele: 'title',
391
- label: '列表内容样式设置',
392
- size: 'small',
393
- groupKey:'style',
394
- },
395
- {
396
- label: '文字颜色:',
397
- ele: 'xd-color',
398
- groupKey:'style',
399
- valueKey: 'textColor',
400
- value: data['textColor'] || '',
401
- placeholder: '请选择文字颜色',
402
- classNmae: 'input80',
403
- },
404
- {
405
- label: 'ICON颜色:',
406
- ele: 'xd-color',
407
- valueKey: 'iconColor',
408
- groupKey:'style',
409
- value: data['iconColor'] || '',
410
- placeholder: '请选择ICON颜色',
411
- classNmae: 'input80',
412
- },
413
-
414
170
  {
415
171
  ele: 'title',
416
- label: '数字气泡样式设置',
172
+ label: '内容边框设置',
417
173
  size: 'small',
418
174
  groupKey:'style',
419
175
  },
420
- {
421
- label: '数字颜色:',
422
- ele: 'xd-color',
423
- groupKey:'style',
424
- valueKey: 'popColor',
425
- value: data['popColor'] || '',
426
- placeholder: '请选择数字颜色',
427
- classNmae: 'input80',
428
- },
429
- {
430
- label: '气泡背景:',
431
- ele: 'xd-color',
432
- valueKey: 'popBgColor',
433
- groupKey:'style',
434
- value: data['popBgColor'] || '',
435
- placeholder: '请选择气泡背景',
436
- classNmae: 'input80',
437
- },
438
-
439
176
  {
440
177
  label: '是否有边框:',
441
178
  ele: 'xd-radio',
@@ -444,7 +181,6 @@ export default {
444
181
  placeholder: '请选择是否有边框',
445
182
  groupKey:'style',
446
183
  multiple: false,
447
- hidden: true,
448
184
  className: 'input80',
449
185
  list: [
450
186
  {label: '是', value: 'Y'},
@@ -455,7 +191,6 @@ export default {
455
191
  label: '边框颜色:',
456
192
  ele: 'xd-color',
457
193
  groupKey:'style',
458
- hidden: true,
459
194
  valueKey: 'is_border_c',
460
195
  value: data['is_border_c'] || '',
461
196
  placeholder: '请选择边框颜色',
@@ -466,7 +201,6 @@ export default {
466
201
  ele: 'el-input',
467
202
  type: 'number',
468
203
  groupKey:'style',
469
- hidden: true,
470
204
  valueKey: 'is_border_w',
471
205
  value: data['is_border_w'] || '',
472
206
  placeholder: '请输入边框大小',