jufubao-base 1.0.175 → 1.0.176-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.
package/package.json
CHANGED
|
@@ -432,6 +432,19 @@ export default {
|
|
|
432
432
|
inline: false,
|
|
433
433
|
notice: '设置外边距,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span> 像素',
|
|
434
434
|
},
|
|
435
|
+
{
|
|
436
|
+
label: '内容设置填充:',
|
|
437
|
+
ele: 'xd-margin-padding',
|
|
438
|
+
valueKey: 'contentPadding',
|
|
439
|
+
groupKey:'style',
|
|
440
|
+
value: params.contentPadding || null,
|
|
441
|
+
setting: {
|
|
442
|
+
type: 'padding',
|
|
443
|
+
},
|
|
444
|
+
placeholder: '内容设置填充',
|
|
445
|
+
inline: false,
|
|
446
|
+
notice: '设置外填充,<span style="color: red">单位:像素</span>。默认值:<span style="color: red">0</span> 像素',
|
|
447
|
+
},
|
|
435
448
|
].filter(i=>i)
|
|
436
449
|
},
|
|
437
450
|
advanced: [
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
class="jfb-base-poster-cont"
|
|
20
20
|
:style="{
|
|
21
21
|
margin: margin,
|
|
22
|
+
padding:contentPaddingOut,
|
|
22
23
|
backgroundColor: bgColor,
|
|
23
24
|
borderRadius: bgRadius + 'rpx'
|
|
24
25
|
}"
|
|
@@ -55,6 +56,7 @@
|
|
|
55
56
|
mixins: [componentsMixins,extsMixins,JfbBasePosterTypeMixin],
|
|
56
57
|
data() {
|
|
57
58
|
return {
|
|
59
|
+
hideMask: true,
|
|
58
60
|
params: {},
|
|
59
61
|
//Swiper 配置
|
|
60
62
|
posterPosition: null,
|
|
@@ -73,6 +75,7 @@
|
|
|
73
75
|
info: [],
|
|
74
76
|
mS: {},
|
|
75
77
|
iconPadding:{},
|
|
78
|
+
contentPadding:{},
|
|
76
79
|
isPreview: false,
|
|
77
80
|
noData:false,
|
|
78
81
|
|
|
@@ -84,7 +87,10 @@
|
|
|
84
87
|
},
|
|
85
88
|
computed: {
|
|
86
89
|
getConfig(){
|
|
87
|
-
let width = uni.getSystemInfoSync().safeArea.width -
|
|
90
|
+
let width = uni.getSystemInfoSync().safeArea.width -
|
|
91
|
+
(this.checkValue(this.mS.left, 0) + this.checkValue(this.mS.right, 0)) * this.$rpxNum;
|
|
92
|
+
width = width -
|
|
93
|
+
(this.checkValue(this.contentPadding.left, 0) + this.checkValue(this.contentPadding.right, 0)) * this.$rpxNum;
|
|
88
94
|
return {
|
|
89
95
|
mode: 'normal',
|
|
90
96
|
dotStyleData: this.dotStyleData,
|
|
@@ -120,6 +126,13 @@
|
|
|
120
126
|
str = `${str} ${this.checkValue(this.mS.left, 0)}rpx`;
|
|
121
127
|
return str
|
|
122
128
|
},
|
|
129
|
+
contentPaddingOut(){
|
|
130
|
+
let str = `${this.checkValue(this.contentPadding.top, 0)}rpx`;
|
|
131
|
+
str = `${str} ${this.checkValue(this.contentPadding.right, 0)}rpx`;
|
|
132
|
+
str = `${str} ${this.checkValue(this.contentPadding.bottom, 0)}rpx`;
|
|
133
|
+
str = `${str} ${this.checkValue(this.contentPadding.left, 0)}rpx`;
|
|
134
|
+
return str
|
|
135
|
+
},
|
|
123
136
|
dotStyleData() {
|
|
124
137
|
return {}
|
|
125
138
|
}
|
|
@@ -176,6 +189,7 @@
|
|
|
176
189
|
this.shadowColor = getContainerPropsValue(container, 'content.shadowColor', 'rgba(0,0,0,.3)');
|
|
177
190
|
this.mS = getContainerPropsValue(container, 'content.margin', {});
|
|
178
191
|
this.iconPadding = getContainerPropsValue(container, 'content.iconPadding', {});
|
|
192
|
+
this.contentPadding = getContainerPropsValue(container, 'content.contentPadding', {});
|
|
179
193
|
|
|
180
194
|
//样式设置
|
|
181
195
|
this.textColor = getContainerPropsValue(container, 'content.textColor', '#333');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<view class="content-item" @click="handleDetail(item)">
|
|
3
3
|
<view class="content-item-image" :style="{marginRight:outSpacing+'rpx',borderRadius:borderRadius+'rpx'}">
|
|
4
4
|
<image v-if="errorStatus" :src="errorImage" :alt="item['resource_shop_name']" ></image>
|
|
5
|
-
<image v-if="!errorStatus" :src="imageUrl
|
|
5
|
+
<image v-if="!errorStatus" :src="imageUrl" :alt="item['resource_shop_name']" @error="handleError()"></image>
|
|
6
6
|
</view>
|
|
7
7
|
<view class="content-item-cont">
|
|
8
8
|
<view class="title">
|