@kaiyinchem/ky-uniui 1.0.7 → 1.0.9

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.
@@ -357,13 +357,13 @@
357
357
  justify-content: flex-start;
358
358
  }
359
359
  }
360
- &.top {
360
+ &.top .opt-item-main {
361
361
  align-items: flex-start;
362
362
  }
363
- &.end {
363
+ &.end .opt-item-main {
364
364
  align-items: flex-end;
365
365
  }
366
- &.left {
366
+ &.left .opt-item-main {
367
367
  justify-content: flex-start;
368
368
  .opt-txt {
369
369
  width: 140rpx;
@@ -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,7 +129,9 @@
129
129
  name: j.name,
130
130
  })
131
131
  })
132
- }
132
+ } else {
133
+ e.child = []
134
+ }
133
135
  return { id: e.id, name: e.name, index: i }
134
136
  })
135
137
  this.names = [firstColumn, secondColumn]
@@ -154,7 +156,7 @@
154
156
 
155
157
  // 根据id进行反选索引, 延迟是因为等待value变化
156
158
  setMultiIndex(v, firstColumn, secondColumn) {
157
- if (v.length) {
159
+ if (v && v.length) {
158
160
  v.forEach(i => {
159
161
  firstColumn.forEach((e) => {
160
162
  if (i === e.id) {
@@ -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.7",
10
+ "version": "1.0.9",
11
11
  "repository": {
12
12
  "type": "git",
13
13
  "url": "git+https://github.com/yezipi/ky-uniui.git"