jufubao-mall 2.0.21 → 2.0.23-beta1

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 (60) hide show
  1. package/package.json +1 -1
  2. package/src/components/CusProduct/CusProduct.vue +1 -1
  3. package/src/components/JfbMallBrandWall/Attr.js +10 -449
  4. package/src/components/JfbMallBrandWall/JfbMallBrandWall.vue +783 -308
  5. package/src/components/JfbMallBrandWall/cusAttr/advanced.js +61 -0
  6. package/src/components/JfbMallBrandWall/cusAttr/brand.js +341 -0
  7. package/src/components/JfbMallBrandWall/cusAttr/content.js +251 -0
  8. package/src/components/JfbMallBrandWall/cusAttr/style.js +252 -0
  9. package/src/components/JfbMallBrandWall/cusAttr/tab.js +471 -0
  10. package/src/components/JfbMallHomeProductList/JfbMallHomeProductList.vue +3 -1
  11. package/src/components/JfbMallHomeProductList/cusAttr/content.js +1 -2
  12. package/src/components/JfbMallNetworkMedia/Api.js +58 -0
  13. package/src/components/JfbMallNetworkMedia/Attr.js +20 -0
  14. package/src/components/JfbMallNetworkMedia/JfbMallNetworkMedia.vue +84 -0
  15. package/src/components/JfbMallNetworkMedia/JfbMallNetworkMediaLess.less +80 -0
  16. package/src/components/JfbMallNetworkMedia/JfbMallNetworkMediaMixin.js +30 -0
  17. package/src/components/JfbMallNetworkMedia/Mock.js +13 -0
  18. package/src/components/JfbMallNetworkMedia/cusAttr/advanced.js +60 -0
  19. package/src/components/JfbMallNetworkMedia/cusAttr/content.js +125 -0
  20. package/src/components/JfbMallNetworkMedia/cusAttr/filter.js +333 -0
  21. package/src/components/JfbMallNetworkMedia/cusAttr/font.js +114 -0
  22. package/src/components/JfbMallNetworkMedia/cusAttr/icon.js +298 -0
  23. package/src/components/{JfbMallProductList → JfbMallNetworkMedia/cusAttr}/style.js +15 -50
  24. package/src/components/JfbMallProductInfo/JfbMallProductInfo.vue +27 -23
  25. package/src/components/JfbMallProductInfo/cusAttr/content.js +1 -1
  26. package/src/components/JfbMallProductInfoV2/Api.js +1 -1
  27. package/src/components/JfbMallProductInfoV2/Attr.js +134 -41
  28. package/src/components/JfbMallProductInfoV2/JfbMallProductInfoV2.vue +136 -127
  29. package/src/components/JfbMallProductInfoV2/Mock.js +38 -10
  30. package/src/components/JfbMallProductList/Api.js +7 -7
  31. package/src/components/JfbMallProductList/Attr.js +7 -762
  32. package/src/components/JfbMallProductList/ComFilterQuery.vue +950 -0
  33. package/src/components/JfbMallProductList/JfbMallProductList.vue +807 -792
  34. package/src/components/JfbMallProductList/Mock.js +168 -255
  35. package/src/components/JfbMallProductList/XdCateV1.vue +335 -122
  36. package/src/components/JfbMallProductList/XdCateV2.vue +144 -76
  37. package/src/components/JfbMallProductList/XdQueryCommon.vue +189 -0
  38. package/src/components/JfbMallProductList/XdQueryFilter.vue +94 -76
  39. package/src/components/JfbMallProductList/XdQuerySort.vue +100 -109
  40. package/src/components/JfbMallProductList/cateMixins.js +103 -0
  41. package/src/components/JfbMallProductList/{advanced.js → cusAttr/advanced.js} +12 -4
  42. package/src/components/JfbMallProductList/cusAttr/content.js +465 -0
  43. package/src/components/JfbMallProductList/cusAttr/filter.js +333 -0
  44. package/src/components/JfbMallProductList/cusAttr/font.js +114 -0
  45. package/src/components/JfbMallProductList/cusAttr/icon.js +298 -0
  46. package/src/components/JfbMallProductList/cusAttr/style.js +91 -0
  47. package/src/components/JfbMallRecommendProduct/Attr.js +8 -366
  48. package/src/components/JfbMallRecommendProduct/JfbMallRecommendProduct.vue +218 -187
  49. package/src/components/JfbMallRecommendProduct/Mock.js +236 -693
  50. package/src/components/JfbMallRecommendProduct/cusAttr/advanced.js +79 -0
  51. package/src/components/JfbMallRecommendProduct/cusAttr/content.js +202 -0
  52. package/src/components/JfbMallRecommendProduct/cusAttr/style.js +594 -0
  53. package/src/components/JfbMallResourceShopList/Mock.js +4 -6
  54. package/src/components/JfbMallTestNormal/JfbMallTestNormal.vue +23 -2
  55. package/src/components/JfbMallTestNormal/data.js +152 -0
  56. package/src/mixins/componentsMixins.js +1 -0
  57. package/src/mixins/productCompMixins.js +29 -19
  58. package/src/components/JfbMallProductList/PosterAttr.js +0 -327
  59. package/src/components/JfbMallProductList/ProductAttr.js +0 -164
  60. package/src/components/JfbMallProductList/XdQueryBrand.vue +0 -150
@@ -0,0 +1,80 @@
1
+ /**
2
+ * @desc 获取绝对路径完整地址
3
+ * @param @path
4
+ **/
5
+ //例如:https://image.jufubao.cn/20220501010108/image/bg/default_gonghui_bg.png
6
+ @basePath: 'business/';
7
+ @doMain: '//sandbox-img.jufubao.cn/';
8
+
9
+ .getBusinessImageUrl(@path, @size: 'size8') {
10
+ @url: "@{doMain}@{basePath}@{path}?x-oss-process=style/@{size}";
11
+ background-image: url(@url);
12
+ }
13
+
14
+ //start
15
+ .jfb-mall-network-media {
16
+ box-sizing: border-box;
17
+
18
+ &__body{
19
+ position: relative;
20
+ overflow: hidden;
21
+ z-index: 2
22
+ }
23
+
24
+ &.editx,&.editx:hover {
25
+ position: relative;
26
+ min-height: unit(100, rpx);
27
+ z-index: 3;
28
+ &::after {
29
+ border: 2rpx dashed blue;
30
+ content: " ";
31
+ position: absolute;
32
+ top:0;
33
+ left:0;
34
+ bottom:0;
35
+ right:0;
36
+ z-index: var(--preview-z-index);
37
+ cursor: pointer;
38
+ }
39
+
40
+ }
41
+
42
+
43
+ &__edit {
44
+ cursor: pointer;
45
+ position: absolute;
46
+ right: unit(0, rpx);
47
+ top: unit(0, rpx);
48
+ height: unit(50, rpx);
49
+ z-index: 100;
50
+ display: flex;
51
+ justify-content: center;
52
+ align-items: center;
53
+ background: rgba(0, 0, 0, .4);
54
+ border-radius: 0 0 0 20rpx;
55
+ box-shadow: 0 0 10px rbga(0, 0, 0, 0.3);
56
+ color: #fff;
57
+ font-size: unit(22, rpx);
58
+ padding: 0 6rpx 0 6px;
59
+
60
+ &-icon{
61
+ padding: 0 unit(20, rpx);
62
+ }
63
+
64
+ &.editx {
65
+ box-sizing: border-box;
66
+
67
+ }
68
+ }
69
+ }
70
+ //end
71
+
72
+
73
+ /**notPreview**/
74
+ .jfb-mall-network-media {
75
+ //&:before {
76
+ //content: " ";
77
+ //display: table;
78
+ //}
79
+ }
80
+ /**endNotPreview**/
@@ -0,0 +1,30 @@
1
+ 'use strict';
2
+
3
+
4
+ //@AttrImport
5
+ import Attr from "./Attr";
6
+ //@EndAttrImport
7
+
8
+
9
+ export default {
10
+ data() {
11
+ return {
12
+ //#ifdef H5
13
+
14
+ //@AttrData
15
+ Attr:{}, //对外开发编辑属性
16
+ //@EndAttrData
17
+
18
+ // #endif
19
+ cssRoot: 'jfb-mall-network-media'
20
+ }
21
+ },
22
+ created() {
23
+
24
+ //@AttrDataCreated
25
+ this.Attr = this.$xdUniHelper.customClone(Attr);
26
+ //@EndAttrDataCreated
27
+
28
+
29
+ },
30
+ }
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ module.exports = {
4
+
5
+ getNetworkByIdFilmSquate:{},
6
+
7
+ updateNetworkFilmPaiqiDate:{},
8
+
9
+ removeNetworkFilmAddress:{},
10
+
11
+ addNetworkFilmcart:{},
12
+
13
+ }
@@ -0,0 +1,60 @@
1
+ 'use strict';
2
+
3
+ export default (data)=>{
4
+ let isCityFilter = 'N',productInfoPath =null;
5
+ if(['Y','N'].includes(data['isCityFilter'])) {
6
+ isCityFilter = data['isCityFilter']
7
+ }
8
+ if(data['productInfoPath'] !== undefined) {
9
+ productInfoPath = data['productInfoPath']
10
+ }
11
+ return [
12
+ {
13
+ label: '城市筛选',
14
+ ele: 'xd-radio',
15
+ valueKey: 'isCityFilter',
16
+ groupKey:'advanced',
17
+ value: isCityFilter,
18
+ placeholder: '请选择是否开启城市筛选',
19
+ multiple: false,
20
+ labelInline:true,
21
+ list: [
22
+ {label: '开启', value: 'Y'},
23
+ {label: '禁用', value: 'N'},
24
+ ]
25
+ },
26
+ {
27
+ label: '确认订单',
28
+ ele: 'xd-select-pages-path',
29
+ valueKey: 'productInfoPath',
30
+ placeholder: '请选择确认订单跳转地址',
31
+ groupKey: 'advanced',
32
+ value: productInfoPath,
33
+ labelInline: true,
34
+ className: 'input100',
35
+ setting: {
36
+ mode: 'new',
37
+ router: XdBus.getParentApi('getPagesTree'),
38
+ },
39
+ },
40
+ {
41
+ label: '版本号:',
42
+ ele: 'el-input',
43
+ type: 'text',
44
+ groupKey: 'advanced',
45
+ valueKey: 'version',
46
+ value: 'v2.0',
47
+ hidden: true,
48
+ },
49
+ {
50
+ label: '过滤引用模版字段:',
51
+ ele: 'el-input',
52
+ type: 'text',
53
+ groupKey: 'advanced',
54
+ valueKey: 'refFilterKey',
55
+ value: '[]',
56
+ hidden: true,
57
+ },
58
+ ]
59
+ }
60
+
@@ -0,0 +1,125 @@
1
+ 'use strict';
2
+ import {
3
+ dataVal ,
4
+ statusShow,
5
+ statusDataVal,
6
+ customVal,
7
+ cusDisabled ,
8
+ getCustomAttr,
9
+ isArray,
10
+ isObject
11
+ } from "@/utils/AttrTools";
12
+ import PosterAttr from "@/utils/Attr/PosterAttr";
13
+ import ProductAttr from "@/utils/Attr/ProductAttr";
14
+
15
+ export default (data, gValue,gColor,oldData)=>{
16
+ //兼容品牌展示
17
+ let filterMode = dataVal({data, key:'filterMode', dValue:[['common','filter']], gValue});
18
+ if(data['showBrandFilter'] === 'out'){
19
+ filterMode.push('brand');
20
+ data['showBrandFilter'] = 'in';
21
+ }
22
+
23
+ //兼容分类操作
24
+ let category = 'v1';
25
+ //老数据已设置
26
+ if(data['categoryLayout']) {
27
+ category = data['categoryLayout'];
28
+ //设置v1项
29
+ if(data['categoryLayout'] === 'v1') {
30
+ if(data['categoryLayout1ShowType'] === 'child') {
31
+ category = 'v3';
32
+ }
33
+ }
34
+ }
35
+ //分类已设置隐藏(设置隐藏项)
36
+ if(data['showCategory'] === 'N') {
37
+ category = 'none';
38
+ }
39
+ //新数据已设置值
40
+ if(data['category'] !== undefined) {
41
+ category = data['category'] ;
42
+ }
43
+
44
+ //类型
45
+ let navStyle = 'line-6-8-l';
46
+ if(data['navStyle'] && ['line-6-8-s', 'triangle', 'center', 'desc', 'none'].includes(data['navStyle'])){
47
+ navStyle = data['navStyle'];
48
+ }
49
+
50
+ //过滤配送方式兼容
51
+ let isShowDelivery = [];
52
+ if(typeof data['isShowDelivery'] === 'string') {
53
+ if(['Y'].includes(data['isShowDelivery'])) isShowDelivery = ['send'];
54
+ }
55
+ if(isArray(data['isShowDelivery'])){
56
+ isShowDelivery = data['isShowDelivery'];
57
+ }
58
+
59
+ let categoryParentType = dataVal({data, key:'categoryParentType', dValue:'root', gValue});
60
+
61
+
62
+ return[
63
+ {
64
+ ele: 'title',
65
+ label: '基础',
66
+ size: 'small',
67
+ groupKey:'content',
68
+ },
69
+ {
70
+ label: "业务线",
71
+ ele: "xd-choose-namespace",
72
+ valueKey: "xnamespace",
73
+ groupKey:'content',
74
+ placeholder: '请选择业务线',
75
+ notice:'空继承上级业务线',
76
+ inline: false,
77
+ labelInline:true,
78
+ value: dataVal({data, key:'xnamespace', dValue:null, gValue}),
79
+ className: 'input100',
80
+ handleCustom: (cb) => {
81
+ XdBus.getParentApi('getOptionsNamespaces')()
82
+ .then(res => {
83
+ cb(res.list)
84
+ })
85
+ .catch();
86
+ }
87
+ },
88
+ {
89
+ ele: 'title',
90
+ label: '展示内容',
91
+ size: 'small',
92
+ groupKey:'content',
93
+ },
94
+ {
95
+ label: '划线价',
96
+ ele: 'xd-cus-switch',
97
+ valueKey: 'isShowDiscount',
98
+ value: data['isShowDiscount'] || 'Y',
99
+ className: 'input100',
100
+ labelInline:true,
101
+ groupKey:'content',
102
+ hidden: data.isPrice!=='Y',
103
+ setting: {
104
+ isBackType: 'string'
105
+ },
106
+ },
107
+ {ele: 'group_start'},
108
+ {
109
+ label: '差值',
110
+ ele: 'el-input',
111
+ type: 'number',
112
+ valueKey: 'differ',
113
+ labelInline:true,
114
+ value: data['differ'] || '',
115
+ hidden: data.isShowDiscount!=='Y',
116
+ groupKey:'content',
117
+ placeholder: '价差,默认值:1',
118
+ className: 'input80',
119
+ notice: '划线价取市场价,市场价-售价差值大于等于设置值时展示',
120
+ inline: false
121
+ },
122
+ {ele: 'group_end'},
123
+
124
+ ]
125
+ }
@@ -0,0 +1,333 @@
1
+ 'use strict';
2
+
3
+ import {cRaBorShadow, dataVal, statusDataVal, statusShow} from "@/utils/AttrTools";
4
+
5
+ export default (data, gValue, gColor, oldData)=>{
6
+ let filterTopBorder = cRaBorShadow(data , 'filterTopBorder',{dValue:'D'}, gValue)
7
+ let filterBgcColor = '#fff';
8
+ if(gValue.isAdd && gValue.isFirst) {
9
+ if(data['category'] === 'v4') filterBgcColor = '#f8f8f8';
10
+ }
11
+ return [
12
+ {
13
+ ele: 'title',
14
+ label: '筛选项样式',
15
+ size: 'small',
16
+ groupKey:'style',
17
+ },
18
+
19
+ {
20
+ ele:'xd-line-title',
21
+ groupKey:'style',
22
+ label: '横向菜单'
23
+ },
24
+ {
25
+ label: '上边框',
26
+ ele: 'xd-border',
27
+ labelInline: true,
28
+ groupKey:'style',
29
+ valueKey: 'filterTopBorder',
30
+ value: filterTopBorder,
31
+ className: 'input100',
32
+ setting: {
33
+ selected: filterTopBorder.type,//设置默认选中项
34
+ isRadio:true,//启用editx默认
35
+ isDef: true,//启动默认选项
36
+ //设置默认值
37
+ default: {
38
+ color: '#f8f8f8',
39
+ width: '2',
40
+ type: 'solid'
41
+ }
42
+ },
43
+ handleCustom({action, data}) {
44
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_radius'})
45
+ .then(res => {
46
+ res.list = res.list.filter(item=>{
47
+ return item.label !== '无';
48
+ });
49
+ data.cb(res.list)
50
+ })
51
+ .catch(error => {
52
+ console.error(error);
53
+ data.cb([])
54
+ });
55
+ },
56
+ },
57
+
58
+ {
59
+ label: '背景颜色',
60
+ ele: 'xd-radio',
61
+ groupKey: 'style',
62
+ valueKey: 'filterBgcColorStatus',
63
+ value: statusDataVal({data, key:'filterBgcColorStatus', fields:['filterBgcColor'],gValue}),
64
+ labelInline:true,
65
+ list: [
66
+ {label: '默认', value: 'D'},
67
+ {label: '自定义', value: 'C'},
68
+ ]
69
+ },
70
+ {ele: 'group_start'},
71
+ {
72
+ label: '',
73
+ ele: 'xd-color',
74
+ valueKey: 'filterBgcColor',
75
+ groupKey:'style',
76
+ value: dataVal({data, key:'filterBgcColor', dValue:filterBgcColor, gValue}),
77
+ hidden: !statusShow({data, key: 'filterBgcColorStatus', fields:['filterBgcColor'], gValue}),
78
+ classNmae: 'input80',
79
+ setting: {
80
+ showAlpha: true
81
+ },
82
+ },
83
+ {ele: 'group_end'},
84
+
85
+ {
86
+ label: '选项颜色',
87
+ ele: 'xd-radio',
88
+ groupKey: 'style',
89
+ valueKey: 'filterColorStatus',
90
+ value: statusDataVal({data, key:'filterColorStatus', fields:['filterColor'],gValue}),
91
+ labelInline:true,
92
+ list: [
93
+ {label: '默认', value: 'D'},
94
+ {label: '自定义', value: 'C'},
95
+ ]
96
+ },
97
+ {ele: 'group_start'},
98
+ {
99
+ label: '',
100
+ ele: 'xd-color',
101
+ valueKey: 'filterColor',
102
+ groupKey:'style',
103
+ value: dataVal({data, key:'filterColor', dValue:'#333', gValue}),
104
+ hidden: !statusShow({data, key: 'filterColorStatus', fields:['filterColor'], gValue}),
105
+ classNmae: 'input80',
106
+ setting: {
107
+ showAlpha: true
108
+ },
109
+ },
110
+ {ele: 'group_end'},
111
+
112
+ {
113
+ label: '内边距',
114
+ ele: 'xd-radio',
115
+ groupKey: 'style',
116
+ valueKey: 'filterPaddingStatus',
117
+ value: statusDataVal({data, key:'filterPaddingStatus', fields:['filterPadding'],gValue}),
118
+ labelInline:true,
119
+ list: [
120
+ {label: '默认', value: 'D'},
121
+ {label: '自定义', value: 'C'},
122
+ ]
123
+ },
124
+ {ele: 'group_start'},
125
+ {
126
+ label: '',
127
+ ele: 'xd-margin-padding',
128
+ groupKey:'style',
129
+ valueKey: 'filterPadding',
130
+ value: dataVal({
131
+ data,
132
+ key:'filterPadding',
133
+ dValue:16,
134
+ gValue,
135
+ isPM: true,
136
+ }),
137
+ hidden: !statusShow({data, key: 'filterPaddingStatus', fields:['filterPadding'], gValue}),
138
+ setting: {
139
+ type: 'margin',
140
+ },
141
+ },
142
+ {ele: 'group_end'},
143
+
144
+ {
145
+ ele:'xd-line-title',
146
+ groupKey:'style',
147
+ label: '下拉菜单'
148
+ },
149
+
150
+ {
151
+ label: '行间距',
152
+ ele: 'xd-radio',
153
+ groupKey: 'style',
154
+ valueKey: 'filterRowSpacingStatus',
155
+ value: statusDataVal({data, key:'filterRowSpacingStatus', fields:['filterRowSpacing'],gValue}),
156
+ labelInline:true,
157
+ list: [
158
+ {label: '默认', value: 'D'},
159
+ {label: '自定义', value: 'C'},
160
+ ]
161
+ },
162
+ {ele: 'group_start'},
163
+ {
164
+ label: "行间距",
165
+ groupKey: 'style',
166
+ ele: 'xd-slider',
167
+ valueKey: "filterRowSpacing",
168
+ value: dataVal({data, key:'filterRowSpacing', dValue:gValue.isFirst && gValue.isAdd ? 16: 20, gValue}),
169
+ hidden: !statusShow({data, key: 'filterRowSpacingStatus', fields:['filterRowSpacing'], gValue}),
170
+ className: "input80",
171
+ labelInline: true,
172
+ setting:{
173
+ min: 0,
174
+ max: 60,
175
+ step:1,
176
+ showStops:false,
177
+ showInput:false,
178
+ }
179
+ },
180
+ {ele: 'group_end'},
181
+
182
+ {
183
+ label: '背景颜色',
184
+ ele: 'xd-radio',
185
+ groupKey: 'style',
186
+ valueKey: 'filterListColorStatus',
187
+ value: statusDataVal({data, key:'filterListColorStatus', fields:['filterListColor'],gValue}),
188
+ labelInline:true,
189
+ list: [
190
+ {label: '默认', value: 'D'},
191
+ {label: '自定义', value: 'C'},
192
+ ]
193
+ },
194
+ {ele: 'group_start'},
195
+ {
196
+ label: '',
197
+ ele: 'xd-color',
198
+ valueKey: 'filterListColor',
199
+ groupKey:'style',
200
+ value: dataVal({data, key:'filterListColor', dValue:gValue.isAdd && gValue.isFirst ? '#fff':'#f8f8f8', gValue}),
201
+ hidden: !statusShow({data, key: 'filterListColorStatus', fields:['filterListColor'], gValue}),
202
+ classNmae: 'input80',
203
+ setting: {
204
+ showAlpha: true
205
+ },
206
+ },
207
+ {ele: 'group_end'},
208
+
209
+
210
+ {
211
+ label: '圆角',
212
+ ele: 'xd-radio',
213
+ groupKey: 'style',
214
+ valueKey: 'filterListRadiusStatus',
215
+ value: statusDataVal({data, key:'filterListRadiusStatus', fields:['filterListRadius'],gValue}),
216
+ labelInline:true,
217
+ list: [
218
+ {label: '默认', value: 'D'},
219
+ {label: '无圆角', value: 'N'},
220
+ {label: '自定义', value: 'C'},
221
+ ]
222
+ },
223
+ {ele: 'group_start'},
224
+ {
225
+ label: '',
226
+ ele: 'xd-site-select-list',
227
+ labelInline: true,
228
+ valueKey: 'filterListRadius',
229
+ value: dataVal({data, key:'filterListRadius', dValue:gValue.isAdd && gValue.isFirst?'10':'60', gValue}),
230
+ hidden: !statusShow({data, key: 'filterListRadiusStatus', fields:['filterListRadius'], gValue}),
231
+ placeholder: '请选择图标圆角',
232
+ multiple: false,
233
+ className: 'input80',
234
+ groupKey:'style',
235
+ handleCustom({action, data}) {
236
+ XdBus.getParentApi('getOptionsSettingList')({
237
+ setting_id: 'edtix_style_radius',
238
+ key: Date.now()
239
+ })
240
+ .then(res => {
241
+ let list = (res.list || [])
242
+ .filter(item=>{
243
+ return item.label !== '无'
244
+ });
245
+ data.cb(list)
246
+ })
247
+ .catch(error => {
248
+ console.error(error);
249
+ });
250
+ },
251
+ },
252
+ {ele: 'group_end'},
253
+
254
+ {
255
+ label: '内边距',
256
+ ele: 'xd-radio',
257
+ groupKey: 'style',
258
+ valueKey: 'filterListPaddingStatus',
259
+ value: statusDataVal({data, key:'filterListPaddingStatus', fields:['filterListPadding'],gValue}),
260
+ labelInline:true,
261
+ list: [
262
+ {label: '默认', value: 'D'},
263
+ {label: '自定义', value: 'C'},
264
+ ]
265
+ },
266
+ {ele: 'group_start'},
267
+ {
268
+ label: '',
269
+ ele: 'xd-margin-padding',
270
+ groupKey:'style',
271
+ valueKey: 'filterListPadding',
272
+ value: dataVal({
273
+ data,
274
+ key:'filterListPadding',
275
+ dValue:gValue.isAdd && gValue.isFirst ? {top: 32, left: 48, right: 48, bottom: 32}:20,
276
+ gValue,
277
+ isPM: true,
278
+ }),
279
+ hidden: !statusShow({data, key: 'filterListPaddingStatus', fields:['filterListPadding'], gValue}),
280
+ setting: {
281
+ type: 'margin',
282
+ },
283
+ },
284
+ {ele: 'group_end'},
285
+
286
+ {
287
+ label: '文字按钮',
288
+ ele: 'xd-radio',
289
+ groupKey: 'style',
290
+ valueKey: 'filterFontStyleStatus',
291
+ value: statusDataVal({data, key:'filterFontStyleStatus', fields:['filterFontStyle'],gValue}),
292
+ labelInline:true,
293
+ list: [
294
+ {label: '默认', value: 'D'},
295
+ {label: '自定义', value: 'C'},
296
+ ]
297
+ },
298
+ {ele: 'group_start'},
299
+ {
300
+ label: '',
301
+ ele: 'xd-text-and-bgc',
302
+ groupKey:'style',
303
+ valueKey: 'filterFontStyle',
304
+ value: dataVal({data, key:'filterFontStyle', dValue:{}, gValue}),
305
+ hidden: !statusShow({data, key: 'filterFontStyleStatus', fields:['filterFontStyle'], gValue}),
306
+ setting: {
307
+ fontSize: true,
308
+ weight:false,
309
+ bgColor:false,
310
+ selected:true,
311
+ default:{
312
+ color: '#666',
313
+ fontSize:'24rpx',
314
+ actFontSize:'24rpx',
315
+ actColor: gColor.mainColor,
316
+ }
317
+ },
318
+ handleCustom({action, data}) {
319
+ XdBus.getParentApi('getOptionsSettingList')({setting_id: 'edtix_style_font_size'})
320
+ .then(res => {
321
+ data.cb(res.list)
322
+ })
323
+ .catch(error => {
324
+ console.error(error);
325
+ data.cb([])
326
+ });
327
+ },
328
+ },
329
+ {ele: 'group_end'},
330
+
331
+
332
+ ].filter(i=>i)
333
+ }