mali-applet-ui 1.1.62 → 1.1.63

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.
@@ -3,7 +3,7 @@
3
3
  <view class="ml-list-select-page-warpper">
4
4
  <view v-if="hasEmpty" class="ml-list-select-page-placeholder">{{ readonly ? '' : placeholder }}</view>
5
5
  <view v-else>
6
- <slot>
6
+ <slot :items="selectRows">
7
7
  <view>{{ selectLabel }}</view>
8
8
  </slot>
9
9
  </view>
@@ -68,6 +68,7 @@
68
68
  <script>
69
69
  import globalStore from '../../../config/store'
70
70
  import MaliUtils from '../../../utils'
71
+ import XEUtils from 'xe-utils'
71
72
 
72
73
  function normalizeChooseAndUploadFileRes (res, fileType) {
73
74
  res.tempFiles.forEach((item) => {
@@ -238,8 +239,8 @@ export default {
238
239
  return !!this.form
239
240
  },
240
241
  isFromReadonly () {
241
- if (this.readonly) {
242
- return true
242
+ if (XEUtils.isBoolean(this.readonly)) {
243
+ return this.readonly
243
244
  }
244
245
  return this.form ? this.form.readonly : false
245
246
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.1.62",
3
+ "version": "1.1.63",
4
4
  "description": "码里UI-小程序组件库(vue2)",
5
5
  "files": [
6
6
  "lib",