gxd-uni-library-editx 1.0.150 → 1.0.151

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.150",
3
+ "version": "1.0.151",
4
4
  "private": false,
5
5
  "description": "聚福宝基础插件专用库",
6
6
  "main": "index.js",
@@ -1,9 +1,34 @@
1
1
  <template>
2
- <button
3
- :disabled="disabled"
4
- v-if="status"
5
- @click.stop="handleClick"
6
- :style="[{
2
+ <view v-if="status">
3
+ <button
4
+ v-if="openType === 'getPhoneNumber' || openType === 'getUserInfo' || openType === 'chooseAvatar'"
5
+ :disabled="disabled"
6
+ :open-type="openType"
7
+ @getphonenumber="handleClick"
8
+ @getuserinfo="handleClick"
9
+ @chooseavatar="handleClick"
10
+ :style="[{
11
+ opacity: disabled ? 0.4 : 1,
12
+ background: getBgColor(uiType),
13
+ fontSize: getInfo(uiSize,'fontSize','btnFontSieList'),
14
+ height: getInfo(uiSize,'height','btnHeightList'),
15
+ lineHeight: getInfo(uiSize,'height','btnHeightList'),
16
+ borderRadius: getRadius(uiSize),
17
+ color: getTextColor,
18
+ width: width ? width : 'auto',
19
+ boxShadow: getBoxShadow,
20
+ border: uiType === 'default'? '2rpx solid #dcdfe6': 0,
21
+ padding: '0 ' + btnPaddingtList[uiSize] + 'rpx'
22
+ },cusStyleComp]"
23
+ :class="getClassName"
24
+ type="default"
25
+ plain="true"
26
+ ><slot>按钮</slot></button>
27
+ <button
28
+ v-else
29
+ :disabled="disabled"
30
+ @click.stop="handleClick"
31
+ :style="[{
7
32
  opacity: disabled ? 0.4 : 1,
8
33
  background: getBgColor(uiType),
9
34
  fontSize: getInfo(uiSize,'fontSize','btnFontSieList'),
@@ -16,10 +41,11 @@
16
41
  border: uiType === 'default'? '2rpx solid #dcdfe6': 0,
17
42
  padding: '0 ' + btnPaddingtList[uiSize] + 'rpx'
18
43
  },cusStyleComp]"
19
- :class="getClassName"
20
- type="default"
21
- plain="true"
22
- ><slot>按钮</slot></button>
44
+ :class="getClassName"
45
+ type="default"
46
+ plain="true"
47
+ ><slot>按钮</slot></button>
48
+ </view>
23
49
  </template>
24
50
 
25
51
  <script>
@@ -55,6 +81,12 @@
55
81
  type: String,
56
82
  default: ''
57
83
  },
84
+ //#ifdef MP
85
+ openType:{
86
+ type: String,
87
+ default: ''
88
+ },
89
+ //#endif
58
90
 
59
91
  systemStyle: {
60
92
  type: Object|null,