@usssa/component-library 1.0.0-alpha.176 → 1.0.0-alpha.178
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/README.md +1 -1
- package/package.json +1 -1
- package/src/components/core/UMultiSelectStd.vue +17 -2
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -118,7 +118,7 @@ const selectedTab = defineModel('selectedTab', {
|
|
|
118
118
|
|
|
119
119
|
const $screen = useScreenType()
|
|
120
120
|
|
|
121
|
-
|
|
121
|
+
let cloneOptions = JSON.parse(JSON.stringify(options.value))
|
|
122
122
|
|
|
123
123
|
const chipModelVal = ref(true)
|
|
124
124
|
const dialogs = ref([])
|
|
@@ -138,7 +138,7 @@ const filterSheetOptions = (val, update) => {
|
|
|
138
138
|
|
|
139
139
|
const typeValue = val.toLowerCase()
|
|
140
140
|
update(() => {
|
|
141
|
-
options.value =
|
|
141
|
+
options.value = cloneOptions.filter((option) =>
|
|
142
142
|
option.label.toLowerCase().includes(typeValue)
|
|
143
143
|
)
|
|
144
144
|
})
|
|
@@ -178,6 +178,7 @@ const handleClick = (event) => {
|
|
|
178
178
|
const handleClose = () => {
|
|
179
179
|
dialogs.value[0].open = false
|
|
180
180
|
selectedItems.value = props.modelValue.length ? props.modelValue : []
|
|
181
|
+
options.value = cloneOptions
|
|
181
182
|
}
|
|
182
183
|
|
|
183
184
|
const handleSheetItemClick = (val) => {
|
|
@@ -229,6 +230,13 @@ const updateVal = (val) => {
|
|
|
229
230
|
placeholderText.value = val.length ? '' : props.placeholder
|
|
230
231
|
}
|
|
231
232
|
|
|
233
|
+
watch(
|
|
234
|
+
() => dialogs.value[0]?.open,
|
|
235
|
+
() => {
|
|
236
|
+
options.value = cloneOptions
|
|
237
|
+
}
|
|
238
|
+
)
|
|
239
|
+
|
|
232
240
|
watch(
|
|
233
241
|
() => props.placeholder,
|
|
234
242
|
(value) => {
|
|
@@ -244,6 +252,10 @@ watch(
|
|
|
244
252
|
}
|
|
245
253
|
}
|
|
246
254
|
)
|
|
255
|
+
|
|
256
|
+
watch(selectedTab, () => {
|
|
257
|
+
cloneOptions = JSON.parse(JSON.stringify(options.value))
|
|
258
|
+
})
|
|
247
259
|
</script>
|
|
248
260
|
|
|
249
261
|
<template>
|
|
@@ -564,6 +576,9 @@ watch(
|
|
|
564
576
|
.q-field__prepend
|
|
565
577
|
padding-right: $xs
|
|
566
578
|
|
|
579
|
+
.q-chip
|
|
580
|
+
padding-left: $xs !important
|
|
581
|
+
|
|
567
582
|
.u-option-menu
|
|
568
583
|
border-radius: $xs
|
|
569
584
|
box-shadow: $shadow-2
|