jufubao-base 1.0.446-beta4 → 1.0.446-beta6
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/.claude/settings.local.json +10 -0
- package/package.json +1 -1
- package/src/components/JfbBasePosterType/FourScreen.vue +7 -4
- package/src/components/JfbBasePosterType/JfbBasePosterType.vue +9 -0
- package/src/components/JfbBasePosterType/cusAttr/icon.js +37 -4
- package/src/components/JfbBaseUserOrder/cusAttr/advanced.js +74 -74
- package/get.package.path.js +0 -22
package/package.json
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
>
|
|
20
20
|
<view :style="[config['iconItemBoxStyleComp']]">
|
|
21
21
|
<view :style="[item['cusStyle']]" class="image">
|
|
22
|
-
<image :src="item.image_url"></image>
|
|
22
|
+
<image :src="item.image_url" :style="[config['iconImageStyleComp']]"></image>
|
|
23
23
|
</view>
|
|
24
24
|
</view>
|
|
25
25
|
<view class="content_name" v-if="item['content_name']" :style="[config['titleStyle']]">{{item['content_name']}}</view>
|
|
@@ -69,7 +69,7 @@
|
|
|
69
69
|
>
|
|
70
70
|
<view :style="[config['iconItemBoxStyleComp']]">
|
|
71
71
|
<view :style="[item['cusStyle']]" class="image">
|
|
72
|
-
<image :src="it.image_url"></image>
|
|
72
|
+
<image :src="it.image_url" :style="[config['iconImageStyleComp']]"></image>
|
|
73
73
|
</view>
|
|
74
74
|
</view>
|
|
75
75
|
<view
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
>
|
|
112
112
|
<view :style="[config['iconItemBoxStyleComp']]">
|
|
113
113
|
<view :style="[it['cusStyle']]" class="image">
|
|
114
|
-
<image :src="it.image_url"></image>
|
|
114
|
+
<image :src="it.image_url" :style="[config['iconImageStyleComp']]"></image>
|
|
115
115
|
</view>
|
|
116
116
|
</view>
|
|
117
117
|
<view
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
>
|
|
142
142
|
<view :style="[config['iconItemBoxStyleComp']]">
|
|
143
143
|
<view :style="[item['cusStyle']]" class="image">
|
|
144
|
-
<image :src="item.image_url"></image>
|
|
144
|
+
<image :src="item.image_url" :style="[config['iconImageStyleComp']]"></image>
|
|
145
145
|
</view>
|
|
146
146
|
</view>
|
|
147
147
|
<view
|
|
@@ -304,6 +304,9 @@
|
|
|
304
304
|
width: 100%;
|
|
305
305
|
height: 100%;
|
|
306
306
|
overflow: hidden;
|
|
307
|
+
display: flex;
|
|
308
|
+
align-items: center;
|
|
309
|
+
justify-content: center;
|
|
307
310
|
background-position: center;
|
|
308
311
|
background-repeat: no-repeat;
|
|
309
312
|
background-size: 100% 100%;
|
|
@@ -88,6 +88,7 @@
|
|
|
88
88
|
contShadow:'none',
|
|
89
89
|
radius: '20',
|
|
90
90
|
iconMargin:20,
|
|
91
|
+
iconSize:100,
|
|
91
92
|
titleStyle:{},
|
|
92
93
|
columnSpacing:0,
|
|
93
94
|
titleMargin:4,
|
|
@@ -142,6 +143,7 @@
|
|
|
142
143
|
iconStyleComp: this.iconStyleComp, //图标样式
|
|
143
144
|
iconItemStyleComp: this.iconItemStyleComp, //图标列表
|
|
144
145
|
iconItemBoxStyleComp: this.iconItemBoxStyleComp, //图标样式外框
|
|
146
|
+
iconImageStyleComp: this.iconImageStyleComp, //图标图片大小
|
|
145
147
|
scrollStyleComp: this.scrollStyleComp, //滑块外框样式
|
|
146
148
|
height: this.iconWH.height,
|
|
147
149
|
width: this.iconWH.width,
|
|
@@ -229,6 +231,12 @@
|
|
|
229
231
|
borderRadius: this.radius + 'rpx',
|
|
230
232
|
}
|
|
231
233
|
},
|
|
234
|
+
iconImageStyleComp(){
|
|
235
|
+
return {
|
|
236
|
+
width: this.iconSize + '%',
|
|
237
|
+
height: this.iconSize + '%',
|
|
238
|
+
}
|
|
239
|
+
},
|
|
232
240
|
iconWH(){
|
|
233
241
|
let outWidth = 750;
|
|
234
242
|
let marginRL = this.getPMValue(this.margin, 'RL', 0);
|
|
@@ -325,6 +333,7 @@
|
|
|
325
333
|
let defaultPadding = 20;
|
|
326
334
|
if(this.column === 4) defaultPadding = 25
|
|
327
335
|
this.iconMargin = gCPVal(container, 'iconMargin', [16,defaultPadding],{sKey:'iconMarginStatus', fields:['iconMargin']});
|
|
336
|
+
this.iconSize = Number(gCPVal(container, 'iconSize', [100,100],{sKey:'iconSizeStatus', fields:['iconSize']}))||100;
|
|
328
337
|
this.radius = gCPVal(container, 'radius', [this.gStyleValue.radius,'20'],{sKey: 'radiusStatus', fields: ['radius']})||0;
|
|
329
338
|
|
|
330
339
|
//文字设置
|
|
@@ -11,11 +11,12 @@ import {
|
|
|
11
11
|
|
|
12
12
|
function checkAndSetValue(iconSetBaseStyle,data,gValue){
|
|
13
13
|
if(gValue.isAdd && gValue.isFirst) return;
|
|
14
|
-
let status = ['columnSpacingStatus','radiusStatus','iconMarginStatus','titleStyle','titleMarginStatus'];
|
|
14
|
+
let status = ['columnSpacingStatus','radiusStatus','iconMarginStatus','iconSizeStatus','titleStyle','titleMarginStatus'];
|
|
15
15
|
let defValue = {
|
|
16
16
|
columnSpacing:0,
|
|
17
17
|
radius:'20',
|
|
18
18
|
iconMargin:20,
|
|
19
|
+
iconSize:100,
|
|
19
20
|
titleMargin:4,
|
|
20
21
|
titleStyle:{
|
|
21
22
|
fontSize:'24rpx',
|
|
@@ -122,7 +123,7 @@ export default (data, gValue, gColor, oldData={})=>{
|
|
|
122
123
|
{ele: 'group_end'},
|
|
123
124
|
|
|
124
125
|
{
|
|
125
|
-
label: '
|
|
126
|
+
label: '容器大小',
|
|
126
127
|
ele: 'xd-radio',
|
|
127
128
|
groupKey: 'style',
|
|
128
129
|
valueKey: 'iconMarginStatus',
|
|
@@ -154,7 +155,39 @@ export default (data, gValue, gColor, oldData={})=>{
|
|
|
154
155
|
{ele: 'group_end'},
|
|
155
156
|
|
|
156
157
|
{
|
|
157
|
-
label: '
|
|
158
|
+
label: '图标大小',
|
|
159
|
+
ele: 'xd-radio',
|
|
160
|
+
groupKey: 'style',
|
|
161
|
+
valueKey: 'iconSizeStatus',
|
|
162
|
+
value: statusDataVal({data, key:'iconSizeStatus', fields:['iconSize'],gValue}),
|
|
163
|
+
labelInline:true,
|
|
164
|
+
list: [
|
|
165
|
+
{label: '默认', value: 'D'},
|
|
166
|
+
{label: '自定义', value: 'C'},
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
{ele: 'group_start'},
|
|
170
|
+
{
|
|
171
|
+
label: "",
|
|
172
|
+
groupKey: 'style',
|
|
173
|
+
ele: 'xd-slider',
|
|
174
|
+
valueKey: "iconSize",
|
|
175
|
+
value: dataVal({data, key:'iconSize', dValue:100, gValue}),
|
|
176
|
+
hidden: !statusShow({data, key: 'iconSizeStatus', fields:['iconSize'], gValue}),
|
|
177
|
+
className: "input80",
|
|
178
|
+
labelInline: true,
|
|
179
|
+
setting:{
|
|
180
|
+
min: 10,
|
|
181
|
+
max: 100,
|
|
182
|
+
step:1,
|
|
183
|
+
showStops:false,
|
|
184
|
+
showInput:false,
|
|
185
|
+
}
|
|
186
|
+
},
|
|
187
|
+
{ele: 'group_end'},
|
|
188
|
+
|
|
189
|
+
{
|
|
190
|
+
label: '容器圆角',
|
|
158
191
|
ele: 'xd-radio',
|
|
159
192
|
groupKey: 'style',
|
|
160
193
|
valueKey: 'radiusStatus',
|
|
@@ -198,7 +231,7 @@ export default (data, gValue, gColor, oldData={})=>{
|
|
|
198
231
|
{ele: 'group_end'},
|
|
199
232
|
|
|
200
233
|
{
|
|
201
|
-
label: '
|
|
234
|
+
label: '容器背景',
|
|
202
235
|
ele: 'xd-radio',
|
|
203
236
|
groupKey: 'style',
|
|
204
237
|
valueKey: 'iconBgColorStatus',
|
|
@@ -2,80 +2,80 @@
|
|
|
2
2
|
import {getAttrPathMsg} from "@/utils/AttrTools";
|
|
3
3
|
|
|
4
4
|
export default (data, gValue, gColor, oldData={})=>{
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
5
|
+
const after_url = getAttrPathMsg(data , 'after_url', '售后列表');
|
|
6
|
+
const order_url = getAttrPathMsg(data , 'order_url', '订单列表');
|
|
7
|
+
const pack_url = getAttrPathMsg(data , 'pack_url', '包裹列表');
|
|
8
|
+
return [
|
|
9
|
+
{
|
|
10
|
+
label: after_url.label,
|
|
11
|
+
ele: 'xd-select-pages-path',
|
|
12
|
+
valueKey: 'after_url',
|
|
13
|
+
groupKey:'advanced',
|
|
14
|
+
placeholder: after_url.hold,
|
|
15
|
+
value: after_url.path,
|
|
16
|
+
labelInline:true,
|
|
17
|
+
className: 'input100',
|
|
18
|
+
setting: {
|
|
19
|
+
mode:'new',
|
|
20
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
21
|
+
},
|
|
22
|
+
inline: false,
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
label: order_url.label,
|
|
26
|
+
ele: 'xd-select-pages-path',
|
|
27
|
+
valueKey: 'order_url',
|
|
28
|
+
groupKey:'advanced',
|
|
29
|
+
placeholder: order_url.hold,
|
|
30
|
+
value: order_url.path,
|
|
31
|
+
labelInline:true,
|
|
32
|
+
className: 'input100',
|
|
33
|
+
setting: {
|
|
34
|
+
mode:'new',
|
|
35
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
36
|
+
},
|
|
37
|
+
inline: false,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: pack_url.label,
|
|
41
|
+
ele: 'xd-select-pages-path',
|
|
42
|
+
valueKey: 'pack_url',
|
|
43
|
+
groupKey:'advanced',
|
|
44
|
+
placeholder: pack_url.hold,
|
|
45
|
+
value: pack_url.path,
|
|
46
|
+
labelInline:true,
|
|
47
|
+
className: 'input100',
|
|
48
|
+
setting: {
|
|
49
|
+
mode:'new',
|
|
50
|
+
router: XdBus.getParentApi('getPagesTree'),
|
|
51
|
+
},
|
|
52
|
+
inline: false,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
label: '版本号:',
|
|
56
|
+
ele: 'el-input',
|
|
57
|
+
type: 'text',
|
|
58
|
+
groupKey: 'advanced',
|
|
59
|
+
valueKey: 'version',
|
|
60
|
+
value: 'v2.0',
|
|
61
|
+
hidden: true,
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
label: '过滤引用模版字段:',
|
|
65
|
+
ele: 'el-input',
|
|
66
|
+
type: 'text',
|
|
67
|
+
groupKey: 'advanced',
|
|
68
|
+
valueKey: 'refFilterKey',
|
|
69
|
+
value: '[]',
|
|
70
|
+
hidden: true,
|
|
71
|
+
},
|
|
72
72
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
73
|
+
{
|
|
74
|
+
label: '',
|
|
75
|
+
ele: 'slot',
|
|
76
|
+
slot: 'is_reference',
|
|
77
|
+
groupKey:'advanced',
|
|
78
|
+
},
|
|
79
79
|
|
|
80
|
-
|
|
80
|
+
]
|
|
81
81
|
}
|
package/get.package.path.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @description 第三方库
|
|
5
|
-
* @param threePackagePath {String} 第三方库所在项目路径存放路径路
|
|
6
|
-
* @param packname {String} 包名字
|
|
7
|
-
* @returns {string|*}
|
|
8
|
-
*/
|
|
9
|
-
const getPackagePath = (threePackagePath, packname = 'gxd-commands-bussiness')=>{
|
|
10
|
-
if(packname === 'gxd-commands-bussiness') {
|
|
11
|
-
return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-commands-bussiness/${threePackagePath}`;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
if (packname === 'gxd-uni-library-editx') {
|
|
15
|
-
return `/Users/shiyonggao/Desktop/code/BASE/UNIAPP/xd-uni-library-editx/${threePackagePath}`;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
module.exports = {
|
|
21
|
-
getPackagePath
|
|
22
|
-
}
|