mali-applet-ui 0.2.72 → 0.2.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.
@@ -253,6 +253,9 @@ export default {
253
253
  text-align: right;
254
254
  }
255
255
  }
256
+ .ml-amount-input-inp {
257
+ outline: 0;
258
+ }
256
259
  .ml-amount-input-inp,
257
260
  .ml-amount-input-simulate {
258
261
  font-size: $uni-font-size-base;
@@ -140,6 +140,9 @@ export default {
140
140
  .ml-input-readonly-content {
141
141
  padding: 20rpx 4rpx;
142
142
  }
143
+ .ml-input-inp {
144
+ outline: 0;
145
+ }
143
146
  .ml-input-inp,
144
147
  .ml-input-simulate {
145
148
  padding: 0 10rpx;
@@ -247,6 +247,9 @@ export default {
247
247
  color: #c0c4cc;
248
248
  border-radius: 0 $ml-border-radius $ml-border-radius 0;
249
249
  }
250
+ .ml-number-input-inp {
251
+ outline: 0;
252
+ }
250
253
  .ml-number-input-minus-btn,
251
254
  .ml-number-input-plus-btn {
252
255
  display: flex;
@@ -87,7 +87,7 @@ export default {
87
87
  },
88
88
  provinceList () {
89
89
  if (this.isAll) {
90
- return [{ name: '全部', code: '' }].concat(provinceCity)
90
+ return [{ name: '全部', code: '', _all: true }].concat(provinceCity)
91
91
  }
92
92
  return provinceCity
93
93
  },
@@ -137,7 +137,10 @@ export default {
137
137
  this.closePopup()
138
138
  },
139
139
  confirmEvent () {
140
- const value = [this.selectProvinceValue, this.selectCityValue]
140
+ let value = [this.selectProvinceValue, this.selectCityValue]
141
+ if (this.isAll && this.selectProvinceItem && this.selectProvinceItem._all) {
142
+ value = ['', '']
143
+ }
141
144
  this.$emit('update:province', value[0])
142
145
  this.$emit('update:city', value[1])
143
146
  this.$emit('input', value)
@@ -67,7 +67,7 @@ export default {
67
67
  .ml-tabbar {
68
68
  display: flex;
69
69
  position: fixed;
70
- z-index: 22;
70
+ z-index: 20;
71
71
  padding: 6rpx 0 12rpx 0;
72
72
  color: $uni-text-color;
73
73
  background: #FFFFFF;
@@ -154,7 +154,6 @@ export default {
154
154
  }
155
155
  .ml-textarea-inp,
156
156
  .ml-textarea-simulate {
157
- color: rgba(39, 42, 48, 0.4500);
158
157
  height: 280rpx;
159
158
  width: 100%;
160
159
  font-size: $uni-font-size-base;
@@ -35,7 +35,7 @@
35
35
  <view class="ml-upload-file-info">
36
36
  <view class="ml-upload-file-name">{{ item[nameField] }}</view>
37
37
  <view class="ml-upload-file-desc">
38
- <ml-button v-if="docsTypes.includes(item[typeField])" status="primary" type="text" @click="previewDocs(item)">预览</ml-button>
38
+ <ml-button v-if="previewTypes.includes(item[typeField])" status="primary" type="text" @click="previewDocs(item)">预览</ml-button>
39
39
  <ml-button status="primary" type="text" @click="downloadEvent(item)">下载</ml-button>
40
40
  </view>
41
41
  </view>
@@ -118,6 +118,9 @@ export default {
118
118
  }
119
119
  return this.form ? this.form.readonly : false
120
120
  },
121
+ previewTypes () {
122
+ return this.docsTypes.concat(this.imgTypes)
123
+ },
121
124
  imageList () {
122
125
  return this.value ? this.value.filter(item => this.imgTypes.includes(item[this.typeField])) : []
123
126
  },
@@ -288,13 +291,11 @@ export default {
288
291
  },
289
292
  previewDocs (item) {
290
293
  // 仅支持文档和图片
291
- const supportDocs = this.docsTypes.includes(item[this.typeField])
292
- const supportImg = this.imgTypes.includes(item[this.typeField])
293
- if (supportDocs || supportImg) {
294
+ if (previewTypes.includes(item[this.typeField])) {
294
295
  uni.downloadFile({
295
296
  url: this.getUrl(item),
296
297
  success: (downRes) => {
297
- if (supportDocs) {
298
+ if (this.docsTypes.includes(item[this.typeField])) {
298
299
  uni.openDocument({
299
300
  filePath: downRes.tempFilePath,
300
301
  showMenu: true,
@@ -306,7 +307,7 @@ export default {
306
307
  })
307
308
  }
308
309
  })
309
- } else if (supportImg) {
310
+ } else if (this.imgTypes.includes(item[this.typeField])) {
310
311
  this.previewImg(item)
311
312
  }
312
313
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.2.72",
3
+ "version": "0.2.73",
4
4
  "description": "码里云小程序组件库",
5
5
  "scripts": {
6
6
  "release": "node script/release.js && npm publish"