jufubao-base 1.0.447 → 1.0.448

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jufubao-base",
3
- "version": "1.0.447",
3
+ "version": "1.0.448",
4
4
  "private": false,
5
5
  "description": "聚福宝业务组件基础插件包",
6
6
  "main": "index.js",
@@ -5,7 +5,7 @@
5
5
  */
6
6
  export default {
7
7
  style: [],
8
- content: (data) => {
8
+ content: (data = {}) => {
9
9
  return [
10
10
  {
11
11
  label: '弹框内容设置:',
@@ -35,7 +35,7 @@
35
35
  ></xd-font-icon>
36
36
  <image
37
37
  @click="handleToLink"
38
- mode="widthFix"
38
+ :style="{ width: width + 'rpx', height: height + 'rpx' }"
39
39
  :src="currentImage"
40
40
  ></image>
41
41
  <xd-font-icon
@@ -95,6 +95,9 @@ export default {
95
95
  contentList: [],
96
96
  number: "",
97
97
  is_order_by_show_group: "",
98
+ background: null,
99
+ width: 730,
100
+ height: 730,
98
101
  };
99
102
  },
100
103
  watch: {
@@ -186,6 +189,15 @@ export default {
186
189
  "content.is_order_by_show_group",
187
190
  "N"
188
191
  );
192
+ this.background = getContainerPropsValue(
193
+ container,
194
+ "content.background",
195
+ null
196
+ );
197
+ if (this.background && this.background.size) {
198
+ this.width = this.checkValue(this.background.size.width, 730);
199
+ this.height = this.checkValue(this.background.size.height, 730);
200
+ }
189
201
  },
190
202
  handlePop() {
191
203
  console.warn(`this.time${this.time * 60 + "分钟"}`);
@@ -274,9 +286,6 @@ export default {
274
286
  transform: translate(-50%, -50%);
275
287
  display: flex;
276
288
  flex-direction: column;
277
- & > image {
278
- width: 730rpx;
279
- }
280
289
  .close-top {
281
290
  position: relative;
282
291
  right: -40%;