jufubao-base 1.0.196 → 1.0.197-beta10

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 (43) hide show
  1. package/commands.js +1 -1
  2. package/package.json +1 -1
  3. package/src/ICONS.js +1128 -0
  4. package/src/components/JfbBaseAddress/Attr.js +109 -1
  5. package/src/components/JfbBaseAddress/JfbBaseAddress.vue +164 -80
  6. package/src/components/JfbBaseAddress/XdAddress.vue +12 -6
  7. package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
  8. package/src/components/JfbBaseCardEntry/Attr.js +472 -443
  9. package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +124 -98
  10. package/src/components/JfbBaseCardEntry/Mock.js +1 -0
  11. package/src/components/JfbBaseCardEntry/XdCardNew.vue +135 -0
  12. package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +41 -13
  13. package/src/components/JfbBaseFastLink/Attr.js +24 -8
  14. package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +37 -21
  15. package/src/components/JfbBaseFooter/Attr.js +141 -75
  16. package/src/components/JfbBaseFooter/JfbBaseFooter.vue +50 -15
  17. package/src/components/JfbBaseHeader/Attr.js +134 -51
  18. package/src/components/JfbBaseHeader/JfbBaseHeader.vue +110 -30
  19. package/src/components/JfbBaseHeaderElephant/Api.js +22 -0
  20. package/src/components/JfbBaseHeaderElephant/Attr.js +510 -0
  21. package/src/components/JfbBaseHeaderElephant/JfbBaseHeaderElephant.vue +464 -0
  22. package/src/components/JfbBaseHeaderElephant/JfbBaseHeaderElephantLess.less +79 -0
  23. package/src/components/JfbBaseHeaderElephant/JfbBaseHeaderElephantMixin.js +30 -0
  24. package/src/components/JfbBaseHeaderElephant/Mock.js +5 -0
  25. package/src/components/JfbBaseNotice/Attr.js +26 -0
  26. package/src/components/JfbBaseNotice/JfbBaseNotice.vue +13 -1
  27. package/src/components/JfbBaseOrderDetail/Attr.js +147 -65
  28. package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +97 -47
  29. package/src/components/JfbBaseOrderList/Attr.js +59 -2
  30. package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +139 -92
  31. package/src/components/JfbBaseOrderList/Mock.js +3 -0
  32. package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +267 -0
  33. package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +27 -29
  34. package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +13 -9
  35. package/src/components/JfbBaseUserCenter/Attr.js +297 -52
  36. package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +135 -44
  37. package/src/components/JfbBaseUserInfo/Attr.js +313 -37
  38. package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +173 -63
  39. package/src/components/JfbBaseUserOrder/Attr.js +332 -30
  40. package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +183 -55
  41. package/src/components/JfbBaseWallet/Attr.js +376 -8
  42. package/src/components/JfbBaseWallet/JfbBaseWallet.vue +185 -49
  43. package/src/mixins/componentsMixins.js +210 -35
@@ -1,17 +1,24 @@
1
1
  'use strict';
2
+ import {oldTonNewBorAndSha, checkValue} from '@/utils/AttrTools'
3
+ import ICONS from "@/ICONS.js"
4
+
2
5
  /**
3
6
  * @description 当表单组件中有联动操作时候,使用方法进行返回
4
7
  */
5
8
  export default {
6
9
  style: [],
7
10
  content: (data)=>{
11
+ let defContBorder = oldTonNewBorAndSha(data.contBorder, data.is_border,data.is_border_w ,data.is_border_c,'solid');
12
+ if(defContBorder.type === 'Y' && data.is_border ==='Y') {
13
+ data.is_border = 'N'
14
+ }
15
+
16
+ let defContShadow = oldTonNewBorAndSha(data.contShadow, data.is_shadow,data.is_shadow_w ,data.is_shadow_bg);
17
+ if(defContShadow.type === 'Y' && data.is_shadow ==='Y') {
18
+ data.is_shadow = 'N'
19
+ }
20
+
8
21
  return [
9
- {
10
- label: '',
11
- ele: 'slot',
12
- slot: 'is_reference_title',
13
- groupKey:'advanced',
14
- },
15
22
  {
16
23
  label: '内容排版:',
17
24
  ele: 'xd-radio',
@@ -27,30 +34,101 @@ export default {
27
34
  ]
28
35
  },
29
36
  {
30
- label: '内容文字颜色:',
31
- ele: 'xd-color',
32
- valueKey: 'textColor',
37
+ label: "头像右侧内容:",
38
+ ele: "xd-radio-self",
39
+ valueKey: "rightContent",
40
+ value: data.rightContent || {
41
+ type: "logout",
42
+ name: "退出登录",
43
+ icon: "",
44
+ iconName: "",
45
+ },
46
+ groupKey: "content",
47
+ setting: {
48
+ icons: ICONS
49
+ }
50
+ },
51
+ // {
52
+ // label: '退出登录自定义名称:',
53
+ // ele: 'el-input',
54
+ // type: 'text',
55
+ // groupKey:'content',
56
+ // valueKey: 'logoutName',
57
+ // value: data['logoutName'] || '',
58
+ // notice: '退出登录自定义名称设置,默认值:<span style="color:red">[退出登录]</span>',
59
+ // inline: false,
60
+ // className: 'input60',
61
+ // },
62
+
63
+ {
64
+ ele: 'title',
65
+ label: '基础',
66
+ size: 'small',
33
67
  groupKey:'style',
34
- value: data.textColor || '',
35
- placeholder: '请选择内容文字颜色',
36
- classNmae: 'input80',
37
68
  },
38
69
  {
39
- label: '内容背景颜色:',
70
+ label: '设置外边距:',
71
+ ele: 'xd-margin-padding',
72
+ valueKey: 'margin',
73
+ groupKey:'style',
74
+ value: data['margin'] || null,
75
+ setting: {
76
+ type: 'margin',
77
+ },
78
+ inline: false,
79
+ notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
80
+ },
81
+ {
82
+ label: '设置填充:',
83
+ groupKey:'style',
84
+ ele: 'xd-margin-padding',
85
+ valueKey: 'padding',
86
+ value: data['padding'] || null,
87
+ setting: {
88
+ type: 'padding',
89
+ },
90
+ placeholder: '设置填充',
91
+ inline: false,
92
+ notice: '设置填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
93
+ },
94
+ {
95
+ label: '背景颜色:',
40
96
  ele: 'xd-color',
41
97
  valueKey: 'backgroundColor',
42
98
  groupKey:'style',
43
99
  value: data.backgroundColor || '',
44
- placeholder: '请选择内容背景颜色',
100
+ labelInline:true,
101
+ placeholder: '请选择背景颜色',
45
102
  classNmae: 'input80',
46
103
  },
47
104
  {
48
- label: '内容圆角设置:',
105
+ label: '内容背景图片:', //label
106
+ ele: 'xd-upload', //package 名称
107
+ valueKey: 'bgImage', //form[valueKey]
108
+ value: data.bgImage || null, //v-model
109
+ defaultValue: data.bgImage || null, //默认图片对象
110
+ groupKey: "style",
111
+ slot: true, //按钮是否使用slot
112
+ oneWidth: 200, //单个图片显示宽度
113
+ oneHeight: 100, //单个图片显示高度
114
+ elinputClassName: 'input40',
115
+ tipsformet: '上传文件格式:@imageType@,不超过@size@MB.',
116
+ type: ['jpg', 'png', 'jpeg'],
117
+ styleType: 'one', //其值:one=>单文件上传 auth=>证件正反面上传 list=>多文件上传
118
+ uploadType: 'aliyun', //''=>API服务上传 qiniu=>七牛云OSS上传 aliyun=> 阿里云OSS上传
119
+ size: 5, //5M
120
+ action: 'aliyun',
121
+ sort: true, //当上传图片列表时候,是否启用排序
122
+ maxlen: 100, //当上传图片列表时候,最大数量数量
123
+ },
124
+ {
125
+ label: '圆角设置:',
49
126
  ele: 'xd-site-select-list',
50
127
  valueKey: 'radius',
51
- value: data['radius'] || '',
128
+ value: data['radius'] || '0',
129
+ labelInline:true,
52
130
  groupKey:'style',
53
- placeholder: '请选择内容圆角设置',
131
+ placeholder: '请选择圆角设置',
54
132
  multiple: false,
55
133
  className: 'input60',
56
134
  handleCustom({action, data}) {
@@ -67,36 +145,114 @@ export default {
67
145
  },
68
146
  },
69
147
  {
70
- label: '内容设置外边距:',
71
- ele: 'xd-margin-padding',
72
- valueKey: 'margin',
148
+ label: '投影设置:',
149
+ ele: 'xd-shadow',
73
150
  groupKey:'style',
74
- value: data['margin'] || null,
151
+ valueKey: 'contShadow',
152
+ value: defContShadow,
153
+ labelInline:true,
75
154
  setting: {
76
- type: 'margin',
155
+ selected: defContShadow.type
156
+ },
157
+ handleCustom({action, data}) {
158
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
159
+ .then(res => {
160
+ data.cb(res.list)
161
+ })
162
+ .catch(error => {
163
+ console.error(error);
164
+ data.cb([])
165
+ });
77
166
  },
78
- placeholder: '请设置外边距',
79
- inline: false,
80
- notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
81
167
  },
82
168
  {
83
- label: '内容设置内边距:',
169
+ label: '边框设置:',
170
+ ele: 'xd-border',
84
171
  groupKey:'style',
85
- ele: 'xd-margin-padding',
86
- valueKey: 'padding',
87
- value: data['padding'] || null,
172
+ valueKey: 'contBorder',
173
+ value: defContBorder,
174
+ labelInline:true,
88
175
  setting: {
89
- type: 'padding',
176
+ selected:defContBorder.type
90
177
  },
91
- placeholder: '请设置边距',
92
- inline: false,
93
- notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
94
178
  },
179
+ {
180
+ label: "昵称字体样式设置",
181
+ ele: "xd-text-and-bgc",
182
+ groupKey:'style',
183
+ valueKey: 'nickStyle',
184
+ value: data['nickStyle'] || null,
185
+ setting: {
186
+ fontSize: true,
187
+ color: true,
188
+ bgColor: false,
189
+ weight: true,
190
+ selected:false
191
+ },
192
+ handleCustom({action, data}) {
193
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
194
+ .then(res => {
195
+ data.cb(res.list)
196
+ })
197
+ .catch(error => {
198
+ console.error(error);
199
+ data.cb([])
200
+ });
201
+ },
202
+ },
203
+
204
+ {
205
+ ele: 'title',
206
+ label: '用户图像设置',
207
+ size: 'small',
208
+ groupKey:'style',
209
+ },
210
+ {
211
+ label: '边框颜色:',
212
+ ele: 'xd-color',
213
+ groupKey:'style',
214
+ valueKey: 'imageColor',
215
+ value: data['imageColor'] || '',
216
+ placeholder: '请选择背景颜色',
217
+ classNmae: 'input80',
218
+ labelInline:true,
219
+ },
220
+ {
221
+ label: '圆角设置:',
222
+ ele: 'xd-site-select-list',
223
+ valueKey: 'imageRadius',
224
+ value: data['imageRadius'] || '50%',
225
+ groupKey:'style',
226
+ placeholder: '请选择圆角设置',
227
+ labelInline:true,
228
+ multiple: false,
229
+ className: 'input60',
230
+ handleCustom({action, data}) {
231
+ XdBus.getParentApi('getOptionsSettingList')({
232
+ setting_id: 'edtix_style_radius',
233
+ key: Date.now()
234
+ })
235
+ .then(res => {
236
+ data.cb(res.list.map(item=>{
237
+ return {
238
+ ...item,
239
+ value: item.value + 'rpx'
240
+ }
241
+ }).concat({label: '圆角', value:'50%'}))
242
+ })
243
+ .catch(error => {
244
+ console.error(error);
245
+ });
246
+ },
247
+ },
248
+
249
+ //=====属性已废弃(不能删除,已隐藏)====
95
250
  {
96
251
  ele: 'title',
97
252
  label: '投影设置',
98
253
  size: 'small',
99
254
  groupKey:'style',
255
+ hidden: true,
100
256
  },
101
257
  {
102
258
  label: '是否有投影:',
@@ -107,12 +263,13 @@ export default {
107
263
  placeholder: '请选择是否投影',
108
264
  multiple: false,
109
265
  className: 'input80',
266
+ hidden: true,
110
267
  list: [
111
268
  {label: '是', value: 'Y'},
112
269
  {label: '否', value: 'N'},
113
270
  ]
114
271
  },
115
- data['is_shadow'] === 'Y' && {
272
+ {
116
273
  label: '投影颜色:',
117
274
  ele: 'xd-color',
118
275
  valueKey: 'is_shadow_bg',
@@ -120,8 +277,9 @@ export default {
120
277
  value: data['is_shadow_bg'] || '',
121
278
  placeholder: '请选择投影颜色',
122
279
  classNmae: 'input80',
280
+ hidden: true,
123
281
  },
124
- data['is_shadow'] === 'Y' && {
282
+ {
125
283
  label: '投影范围:',
126
284
  groupKey:'style',
127
285
  ele: 'xd-site-select-list',
@@ -142,16 +300,21 @@ export default {
142
300
  console.error(error);
143
301
  });
144
302
  },
303
+ hidden: true,
145
304
  },
305
+
306
+ //=====属性已废弃(不能删除,已隐藏)====
146
307
  {
147
308
  ele: 'title',
148
309
  label: '边框设置',
149
310
  size: 'small',
150
311
  groupKey:'style',
312
+ hidden: true,
151
313
  },
152
314
  {
153
315
  label: '是否有边框:',
154
316
  ele: 'xd-radio',
317
+ hidden: true,
155
318
  valueKey: 'is_border',
156
319
  groupKey:'style',
157
320
  value: data['is_border'] || 'N',
@@ -163,8 +326,9 @@ export default {
163
326
  {label: '否', value: 'N'},
164
327
  ]
165
328
  },
166
- data['is_border'] === 'Y' && {
329
+ {
167
330
  label: '边框颜色:',
331
+ hidden: true,
168
332
  ele: 'xd-color',
169
333
  groupKey:'style',
170
334
  valueKey: 'is_border_c',
@@ -172,7 +336,8 @@ export default {
172
336
  placeholder: '请选择边框颜色',
173
337
  classNmae: 'input80',
174
338
  },
175
- data['is_border'] === 'Y' && {
339
+ {
340
+ hidden: true,
176
341
  label: '边框大小:',
177
342
  ele: 'el-input',
178
343
  type: 'number',
@@ -182,6 +347,117 @@ export default {
182
347
  placeholder: '请输入边框颜色',
183
348
  className: 'input80',
184
349
  },
350
+ //=====属性已废弃(不能删除,已隐藏)====
351
+
352
+ 0&&{
353
+ label: '是否显示设置:',
354
+ ele: 'xd-radio',
355
+ valueKey: 'isSetting',
356
+ value: data['isSetting'] || 'N',
357
+ groupKey:'advanced',
358
+ placeholder: '是否显示设置',
359
+ multiple: false,
360
+ className: 'input80',
361
+ list: [
362
+ {label: '不显示', value: 'N'},
363
+ {label: '显示', value: 'Y'},
364
+ ]
365
+ },
366
+ {
367
+ label: "头像右侧内容配置",
368
+ ele: "title",
369
+ size: "small",
370
+ groupKey: "style"
371
+ },
372
+ {
373
+ label: "头像右侧内容背景颜色:",
374
+ ele: "xd-color",
375
+ valueKey: "rightContentBgColor",
376
+ value: data.rightContentBgColor || '',
377
+ placeholder: '请选择头像右侧内容背景颜色',
378
+ groupKey: "style",
379
+ },
380
+ {
381
+ label: "头像右侧内容文字颜色",
382
+ ele: "xd-text-and-bgc",
383
+ groupKey:'style',
384
+ valueKey: 'logoutStyle',
385
+ value: data['logoutStyle'] || null,
386
+ setting: {
387
+ fontSize: true,
388
+ color: true,
389
+ bgColor: false,
390
+ weight: true,
391
+ selected:false
392
+ },
393
+ handleCustom({action, data}) {
394
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
395
+ .then(res => {
396
+ data.cb(res.list)
397
+ })
398
+ .catch(error => {
399
+ console.error(error);
400
+ data.cb([])
401
+ });
402
+ },
403
+ },
404
+ // {
405
+ // label: "头像右侧内容文字颜色:",
406
+ // ele: "xd-color",
407
+ // valueKey: "rightContentTextColor",
408
+ // value: data.rightContentTextColor || '',
409
+ // placeholder: '请选择头像右侧内容文字颜色',
410
+ // groupKey: "style",
411
+ // },
412
+ {
413
+ label: "头像右侧内容内边距配置:",
414
+ ele: 'xd-margin-padding',
415
+ valueKey: 'rightContentPadding',
416
+ groupKey: "style",
417
+ value: data.rightContentPadding || {},
418
+ setting: {
419
+ type: 'padding',
420
+ },
421
+ inline: false,
422
+ notice: '设置外填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
423
+ },
424
+ {
425
+ label: "头像右侧内容圆角:",
426
+ ele: 'xd-site-select-list',
427
+ valueKey: 'rightContentRadius',
428
+ value: data['rightContentRadius'] || '',
429
+ groupKey:'style',
430
+ placeholder: '请选择内容圆角设置',
431
+ multiple: false,
432
+ className: 'input80',
433
+ handleCustom({ action, data }) {
434
+ XdBus.getParentApi('getOptionsSettingList')({ setting_id: 'edtix_style_radius' })
435
+ .then(res => {
436
+ data.cb(res.list)
437
+ })
438
+ .catch(error => {
439
+ console.error(error);
440
+ });
441
+ },
442
+ },
443
+ {
444
+ label: '编辑地址路径:',
445
+ ele: 'xd-select-pages-path',
446
+ valueKey: 'addressUrl',
447
+ groupKey:'advanced',
448
+ placeholder: '请选择编辑地址路径',
449
+ value: data['addressUrl'] || null,
450
+ setting: {
451
+ router: XdBus.getParentApi('getPagesTree'),
452
+ },
453
+ inline: false,
454
+ },
455
+ {
456
+ label: '',
457
+ ele: 'slot',
458
+ slot: 'is_reference_title',
459
+ groupKey:'advanced',
460
+ },
185
461
  {
186
462
  label: '',
187
463
  ele: 'slot',