mali-applet-ui 1.1.59 → 1.1.61

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/env/index.js CHANGED
@@ -137,7 +137,8 @@ function initEnvScript (rootPath, confs) {
137
137
  uni_mpqiwei_upload: 'npm run run_before && node script/run-build && vue-cli-service uni-build && node script/run-upload',
138
138
  uni_mpqiwei_build: 'npm run run_before && vue-cli-service uni-build',
139
139
  run_before: 'node script/run-before',
140
- clear: 'gulp clear_temp'
140
+ clear: 'gulp clear_temp',
141
+ 'generate:api': 'npx ts-codegen && eslint --fix --ext .js,.ts src/api'
141
142
  }
142
143
 
143
144
  console.log('\n正在检查配置')
@@ -176,10 +176,12 @@ export default {
176
176
  const selection = []
177
177
  const labels = []
178
178
  this.selectIndexs.slice(0, this.countLevel).forEach((valIndex, colIndex) => {
179
- const item = this.pickerDataMaps[colIndex][valIndex]
180
- selection.push(item || null)
181
- value.push(item ? item[this.optValueField] : null)
182
- labels.push(item ? item[this.optLabelField] : '')
179
+ if (valIndex !== null) {
180
+ const item = this.pickerDataMaps[colIndex][valIndex]
181
+ selection.push(item || null)
182
+ value.push(item ? item[this.optValueField] : null)
183
+ labels.push(item ? item[this.optLabelField] : '')
184
+ }
183
185
  })
184
186
  this.$emit('input', value)
185
187
  this.$emit('change', { value, labels, selection })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.1.59",
3
+ "version": "1.1.61",
4
4
  "description": "码里UI-小程序组件库(vue2)",
5
5
  "files": [
6
6
  "lib",