mali-applet-ui 1.0.94 → 1.0.95

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.
@@ -164,17 +164,17 @@ export default {
164
164
  }
165
165
  },
166
166
  mounted () {
167
- const { autoload, reloadLazy } = this
167
+ const { autoload, requestLazy } = this
168
168
  if (autoload) {
169
- reloadLazy()
169
+ requestLazy()
170
170
  }
171
171
  },
172
172
  methods: {
173
173
  async handleIntoChildren (item) {
174
- const { reloadLazy } = this
174
+ const { requestLazy } = this
175
175
  if (!(item.children && item.children.length) && !item.isLeaf) {
176
176
  // this.lazyLoading = true
177
- await reloadLazy(item)
177
+ await requestLazy(item)
178
178
  // this.lazyLoading = false
179
179
  }
180
180
  if (item.children && item.children.length) {
@@ -182,7 +182,11 @@ export default {
182
182
  this.$emit('into', this.cache[this.cache.length - 1])
183
183
  }
184
184
  },
185
- async reloadLazy (current) {
185
+ reloadLazy () {
186
+ const { current } = this
187
+ this.requestLazy(current)
188
+ },
189
+ async requestLazy (current) {
186
190
  const { lazyLoad, lazy, useProps } = this
187
191
  if (lazy && lazyLoad) {
188
192
  const list = await lazyLoad.call(this.currVM, current)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.0.94",
3
+ "version": "1.0.95",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",