jufubao-base 1.0.197-beta5 → 1.0.197-beta8
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.
- package/commands.js +1 -1
- package/package.json +1 -1
- package/src/ICONS.js +1128 -0
- package/src/components/JfbBaseAddress/Attr.js +109 -1
- package/src/components/JfbBaseAddress/JfbBaseAddress.vue +164 -80
- package/src/components/JfbBaseAddress/XdAddress.vue +5 -0
- package/src/components/JfbBaseAddress/XdTfkItem.vue +117 -0
- package/src/components/JfbBaseCardEntry/JfbBaseCardEntry.vue +1 -0
- package/src/components/JfbBaseCardEntry/XdCardNew.vue +1 -1
- package/src/components/JfbBaseConDialog/JfbBaseConDialog.vue +41 -13
- package/src/components/JfbBaseFastLink/Attr.js +24 -8
- package/src/components/JfbBaseFastLink/JfbBaseFastLink.vue +37 -21
- package/src/components/JfbBaseFooter/Attr.js +141 -75
- package/src/components/JfbBaseFooter/JfbBaseFooter.vue +50 -15
- package/src/components/JfbBaseHeader/Attr.js +8 -1
- package/src/components/JfbBaseHeader/JfbBaseHeader.vue +8 -5
- package/src/components/JfbBaseHeaderElephant/JfbBaseHeaderElephant.vue +12 -3
- package/src/components/JfbBaseOrderDetail/Attr.js +147 -65
- package/src/components/JfbBaseOrderDetail/JfbBaseOrderDetail.vue +97 -47
- package/src/components/JfbBaseOrderList/Attr.js +59 -2
- package/src/components/JfbBaseOrderList/JfbBaseOrderList.vue +139 -92
- package/src/components/JfbBaseOrderList/Mock.js +3 -0
- package/src/components/JfbBaseOrderList/XdTfkOrderItem.vue +267 -0
- package/src/components/JfbBasePosterBigSmall/JfbBasePosterBigSmall.vue +27 -29
- package/src/components/JfbBasePosterBigSmall/getWidthHeight.js +13 -9
- package/src/components/JfbBaseUserCenter/Attr.js +297 -52
- package/src/components/JfbBaseUserCenter/JfbBaseUserCenter.vue +135 -44
- package/src/components/JfbBaseUserInfo/Attr.js +227 -85
- package/src/components/JfbBaseUserInfo/JfbBaseUserInfo.vue +106 -86
- package/src/components/JfbBaseUserOrder/Attr.js +332 -30
- package/src/components/JfbBaseUserOrder/JfbBaseUserOrder.vue +183 -55
- package/src/components/JfbBaseWallet/Attr.js +376 -8
- package/src/components/JfbBaseWallet/JfbBaseWallet.vue +185 -49
- package/src/mixins/componentsMixins.js +210 -35
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
+
import {oldTonNewBorAndSha, checkValue} from '@/utils/AttrTools'
|
|
2
3
|
import ICONS from "@/ICONS.js"
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
6
|
* @description 当表单组件中有联动操作时候,使用方法进行返回
|
|
5
7
|
*/
|
|
6
8
|
export default {
|
|
7
9
|
style: [],
|
|
8
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
|
+
|
|
9
21
|
return [
|
|
10
|
-
{
|
|
11
|
-
label: '',
|
|
12
|
-
ele: 'slot',
|
|
13
|
-
slot: 'is_reference_title',
|
|
14
|
-
groupKey:'advanced',
|
|
15
|
-
},
|
|
16
22
|
{
|
|
17
23
|
label: '内容排版:',
|
|
18
24
|
ele: 'xd-radio',
|
|
@@ -31,19 +37,68 @@ export default {
|
|
|
31
37
|
label: "头像右侧内容:",
|
|
32
38
|
ele: "xd-radio-self",
|
|
33
39
|
valueKey: "rightContent",
|
|
34
|
-
value: data.rightContent
|
|
40
|
+
value: data.rightContent || {
|
|
41
|
+
type: "logout",
|
|
42
|
+
name: "退出登录",
|
|
43
|
+
icon: "",
|
|
44
|
+
iconName: "",
|
|
45
|
+
},
|
|
35
46
|
groupKey: "content",
|
|
36
47
|
setting: {
|
|
37
48
|
icons: ICONS
|
|
38
49
|
}
|
|
39
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
|
+
|
|
40
63
|
{
|
|
41
|
-
|
|
64
|
+
ele: 'title',
|
|
65
|
+
label: '基础',
|
|
66
|
+
size: 'small',
|
|
67
|
+
groupKey:'style',
|
|
68
|
+
},
|
|
69
|
+
{
|
|
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: '背景颜色:',
|
|
42
96
|
ele: 'xd-color',
|
|
43
|
-
valueKey: '
|
|
97
|
+
valueKey: 'backgroundColor',
|
|
44
98
|
groupKey:'style',
|
|
45
|
-
value: data.
|
|
46
|
-
|
|
99
|
+
value: data.backgroundColor || '',
|
|
100
|
+
labelInline:true,
|
|
101
|
+
placeholder: '请选择背景颜色',
|
|
47
102
|
classNmae: 'input80',
|
|
48
103
|
},
|
|
49
104
|
{
|
|
@@ -67,21 +122,13 @@ export default {
|
|
|
67
122
|
maxlen: 100, //当上传图片列表时候,最大数量数量
|
|
68
123
|
},
|
|
69
124
|
{
|
|
70
|
-
label: '
|
|
71
|
-
ele: 'xd-color',
|
|
72
|
-
valueKey: 'backgroundColor',
|
|
73
|
-
groupKey:'style',
|
|
74
|
-
value: data.backgroundColor || '',
|
|
75
|
-
placeholder: '请选择内容背景颜色',
|
|
76
|
-
classNmae: 'input80',
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
label: '内容圆角设置:',
|
|
125
|
+
label: '圆角设置:',
|
|
80
126
|
ele: 'xd-site-select-list',
|
|
81
127
|
valueKey: 'radius',
|
|
82
|
-
value: data['radius'] || '',
|
|
128
|
+
value: data['radius'] || '0',
|
|
129
|
+
labelInline:true,
|
|
83
130
|
groupKey:'style',
|
|
84
|
-
placeholder: '
|
|
131
|
+
placeholder: '请选择圆角设置',
|
|
85
132
|
multiple: false,
|
|
86
133
|
className: 'input60',
|
|
87
134
|
handleCustom({action, data}) {
|
|
@@ -98,31 +145,108 @@ export default {
|
|
|
98
145
|
},
|
|
99
146
|
},
|
|
100
147
|
{
|
|
101
|
-
label: '
|
|
102
|
-
ele: 'xd-
|
|
103
|
-
valueKey: 'margin',
|
|
148
|
+
label: '投影设置:',
|
|
149
|
+
ele: 'xd-shadow',
|
|
104
150
|
groupKey:'style',
|
|
105
|
-
|
|
151
|
+
valueKey: 'contShadow',
|
|
152
|
+
value: defContShadow,
|
|
153
|
+
labelInline:true,
|
|
106
154
|
setting: {
|
|
107
|
-
|
|
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
|
+
});
|
|
108
166
|
},
|
|
109
|
-
placeholder: '请设置外边距',
|
|
110
|
-
inline: false,
|
|
111
|
-
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span>像素',
|
|
112
167
|
},
|
|
113
168
|
{
|
|
114
|
-
label: '
|
|
169
|
+
label: '边框设置:',
|
|
170
|
+
ele: 'xd-border',
|
|
115
171
|
groupKey:'style',
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
172
|
+
valueKey: 'contBorder',
|
|
173
|
+
value: defContBorder,
|
|
174
|
+
labelInline:true,
|
|
119
175
|
setting: {
|
|
120
|
-
type
|
|
176
|
+
selected:defContBorder.type
|
|
121
177
|
},
|
|
122
|
-
placeholder: '请设置边距',
|
|
123
|
-
inline: false,
|
|
124
|
-
notice: '设置内边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">20</span>像素',
|
|
125
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
|
+
//=====属性已废弃(不能删除,已隐藏)====
|
|
126
250
|
{
|
|
127
251
|
ele: 'title',
|
|
128
252
|
label: '投影设置',
|
|
@@ -139,13 +263,13 @@ export default {
|
|
|
139
263
|
placeholder: '请选择是否投影',
|
|
140
264
|
multiple: false,
|
|
141
265
|
className: 'input80',
|
|
266
|
+
hidden: true,
|
|
142
267
|
list: [
|
|
143
268
|
{label: '是', value: 'Y'},
|
|
144
269
|
{label: '否', value: 'N'},
|
|
145
|
-
]
|
|
146
|
-
hidden: true,
|
|
270
|
+
]
|
|
147
271
|
},
|
|
148
|
-
|
|
272
|
+
{
|
|
149
273
|
label: '投影颜色:',
|
|
150
274
|
ele: 'xd-color',
|
|
151
275
|
valueKey: 'is_shadow_bg',
|
|
@@ -155,7 +279,7 @@ export default {
|
|
|
155
279
|
classNmae: 'input80',
|
|
156
280
|
hidden: true,
|
|
157
281
|
},
|
|
158
|
-
|
|
282
|
+
{
|
|
159
283
|
label: '投影范围:',
|
|
160
284
|
groupKey:'style',
|
|
161
285
|
ele: 'xd-site-select-list',
|
|
@@ -178,33 +302,8 @@ export default {
|
|
|
178
302
|
},
|
|
179
303
|
hidden: true,
|
|
180
304
|
},
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
ele: "xd-shadow",
|
|
184
|
-
valueKey: "boxShadow",
|
|
185
|
-
value: data['boxShadow'] || null,
|
|
186
|
-
groupKey:'style',
|
|
187
|
-
handleCustom({action, data}) {
|
|
188
|
-
XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
|
|
189
|
-
.then(res => {
|
|
190
|
-
data.cb(res.list)
|
|
191
|
-
})
|
|
192
|
-
.catch(error => {
|
|
193
|
-
console.error(error);
|
|
194
|
-
data.cb([])
|
|
195
|
-
});
|
|
196
|
-
},
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
label: "边框设置:",
|
|
200
|
-
ele: "xd-border",
|
|
201
|
-
valueKey: "boxBorder",
|
|
202
|
-
value: data['boxBorder'] || null,
|
|
203
|
-
groupKey:'style',
|
|
204
|
-
setting: {
|
|
205
|
-
selected:'N'
|
|
206
|
-
},
|
|
207
|
-
},
|
|
305
|
+
|
|
306
|
+
//=====属性已废弃(不能删除,已隐藏)====
|
|
208
307
|
{
|
|
209
308
|
ele: 'title',
|
|
210
309
|
label: '边框设置',
|
|
@@ -215,6 +314,7 @@ export default {
|
|
|
215
314
|
{
|
|
216
315
|
label: '是否有边框:',
|
|
217
316
|
ele: 'xd-radio',
|
|
317
|
+
hidden: true,
|
|
218
318
|
valueKey: 'is_border',
|
|
219
319
|
groupKey:'style',
|
|
220
320
|
value: data['is_border'] || 'N',
|
|
@@ -224,20 +324,20 @@ export default {
|
|
|
224
324
|
list: [
|
|
225
325
|
{label: '是', value: 'Y'},
|
|
226
326
|
{label: '否', value: 'N'},
|
|
227
|
-
]
|
|
228
|
-
hidden: true,
|
|
327
|
+
]
|
|
229
328
|
},
|
|
230
|
-
|
|
329
|
+
{
|
|
231
330
|
label: '边框颜色:',
|
|
331
|
+
hidden: true,
|
|
232
332
|
ele: 'xd-color',
|
|
233
333
|
groupKey:'style',
|
|
234
334
|
valueKey: 'is_border_c',
|
|
235
335
|
value: data['is_border_c'] || '',
|
|
236
336
|
placeholder: '请选择边框颜色',
|
|
237
337
|
classNmae: 'input80',
|
|
238
|
-
hidden: true,
|
|
239
338
|
},
|
|
240
|
-
|
|
339
|
+
{
|
|
340
|
+
hidden: true,
|
|
241
341
|
label: '边框大小:',
|
|
242
342
|
ele: 'el-input',
|
|
243
343
|
type: 'number',
|
|
@@ -246,7 +346,22 @@ export default {
|
|
|
246
346
|
value: data['is_border_w'] || '',
|
|
247
347
|
placeholder: '请输入边框颜色',
|
|
248
348
|
className: 'input80',
|
|
249
|
-
|
|
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
|
+
]
|
|
250
365
|
},
|
|
251
366
|
{
|
|
252
367
|
label: "头像右侧内容配置",
|
|
@@ -263,13 +378,37 @@ export default {
|
|
|
263
378
|
groupKey: "style",
|
|
264
379
|
},
|
|
265
380
|
{
|
|
266
|
-
label: "
|
|
267
|
-
ele: "xd-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
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
|
+
},
|
|
272
403
|
},
|
|
404
|
+
// {
|
|
405
|
+
// label: "头像右侧内容文字颜色:",
|
|
406
|
+
// ele: "xd-color",
|
|
407
|
+
// valueKey: "rightContentTextColor",
|
|
408
|
+
// value: data.rightContentTextColor || '',
|
|
409
|
+
// placeholder: '请选择头像右侧内容文字颜色',
|
|
410
|
+
// groupKey: "style",
|
|
411
|
+
// },
|
|
273
412
|
{
|
|
274
413
|
label: "头像右侧内容内边距配置:",
|
|
275
414
|
ele: 'xd-margin-padding',
|
|
@@ -311,11 +450,14 @@ export default {
|
|
|
311
450
|
setting: {
|
|
312
451
|
router: XdBus.getParentApi('getPagesTree'),
|
|
313
452
|
},
|
|
314
|
-
rules: [
|
|
315
|
-
{required: true, message: '请选择编辑地址路径', trigger: 'change'},
|
|
316
|
-
],
|
|
317
453
|
inline: false,
|
|
318
454
|
},
|
|
455
|
+
{
|
|
456
|
+
label: '',
|
|
457
|
+
ele: 'slot',
|
|
458
|
+
slot: 'is_reference_title',
|
|
459
|
+
groupKey:'advanced',
|
|
460
|
+
},
|
|
319
461
|
{
|
|
320
462
|
label: '',
|
|
321
463
|
ele: 'slot',
|