@kaiyinchem/ky-uniui 1.0.8 → 1.0.10

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.
@@ -14,7 +14,7 @@
14
14
  <text v-else class="gray-color">{{ placeholder }}</text>
15
15
  </view>
16
16
  <view v-else class="picker">
17
- <text v-if="checked !== '' && checked.data[0]">{{ checked.data[0].name }} / {{ checked.data[1].name }}</text>
17
+ <text v-if="checked !== '' && checked.data[0]">{{ checked.data[0].name }} {{ checked.data[1].name ? `/${checked.data[1].name}` : '' }}</text>
18
18
  <text v-else class="gray-color">{{ placeholder }}</text>
19
19
  </view>
20
20
  </view>
@@ -129,8 +129,10 @@
129
129
  name: j.name,
130
130
  })
131
131
  })
132
- }
133
- return { id: e.id, name: e.name, index: i }
132
+ } else {
133
+ e.child = []
134
+ }
135
+ return { ...e, id: e.id, name: e.name, index: i }
134
136
  })
135
137
  this.names = [firstColumn, secondColumn]
136
138
  setTimeout(() => {
@@ -201,7 +203,6 @@
201
203
  }
202
204
  if (!noEmit) {
203
205
  this.$emit('update:value', this.checked)
204
- this.$emit('input', val)
205
206
  }
206
207
  }
207
208
  }
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "style"
8
8
  ],
9
9
  "description": "an uniapp ui",
10
- "version": "1.0.8",
10
+ "version": "1.0.10",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "git+https://github.com/yezipi/ky-uniui.git"