@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.
- package/components/ky-picker.vue +5 -4
- package/package.json +1 -1
package/components/ky-picker.vue
CHANGED
|
@@ -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 }}
|
|
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
|
-
|
|
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
|
}
|