gxd-uni-library-editx 1.0.72 → 1.0.73

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": "gxd-uni-library-editx",
3
- "version": "1.0.72",
3
+ "version": "1.0.73",
4
4
  "private": false,
5
5
  "description": "聚福宝基础插件专用库",
6
6
  "main": "index.js",
@@ -7,10 +7,7 @@
7
7
  :color="mainColor"
8
8
  icon="iconchakan1"
9
9
  ></xd-font-icon>
10
- <view class="cha_kan" :style="{
11
- backgroundColor: '#FFFFFF',
12
- ...lookStyle
13
- }">查看</view>
10
+ <view class="cha_kan" :style="lookStyleUI">查看</view>
14
11
  </view>
15
12
  <view class="item-right">
16
13
  <view class="item_info">
@@ -34,10 +31,7 @@
34
31
  购买其他物品可抵:{{ cardInfo.other_card_point }}
35
32
  </view>
36
33
  </view>
37
- <view class="btn" :style="{
38
- backgroundColor: mainColor,
39
- ...loginStyle
40
- }">
34
+ <view class="btn" :style="loginStyleUI">
41
35
  <view >{{ tabIndex === 1 ? loginName : "转换" }}</view>
42
36
  </view>
43
37
  </view>
@@ -58,7 +52,9 @@ export default {
58
52
  },
59
53
  cardInfo: {
60
54
  type: Object,
61
- default: () => ({})
55
+ default(){
56
+ return {}
57
+ }
62
58
  },
63
59
  tabIndex: {
64
60
  type: Number,
@@ -74,11 +70,29 @@ export default {
74
70
  },
75
71
  loginStyle: {
76
72
  type: Object,
77
- default: () => ({})
73
+ default(){
74
+ return {}
75
+ }
78
76
  },
79
77
  lookStyle: {
80
78
  type: Object,
81
- default: () => ({})
79
+ default(){
80
+ return {}
81
+ }
82
+ }
83
+ },
84
+ computed:{
85
+ lookStyleUI(){
86
+ return {
87
+ backgroundColor:'#FFFFFF',
88
+ ...this.lookStyle,
89
+ }
90
+ },
91
+ loginStyleUI(){
92
+ return {
93
+ backgroundColor:this.mainColor,
94
+ ...this.loginStyle
95
+ }
82
96
  }
83
97
  },
84
98
  data(){