glib-web 4.35.0 → 4.35.2
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/fields/_select.vue +9 -1
- package/nav/appBar.vue +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
<!-- Set `menu-props` so the menu will never be wider than the select field.
|
|
4
4
|
See https://github.com/vuetifyjs/vuetify/issues/17751 -->
|
|
5
5
|
<component :is="compName" :color="gcolor" v-model="fieldModel" :label="label" :items="normalizedOptions"
|
|
6
|
-
:chips="
|
|
6
|
+
:chips="useChips" :disabled="inputDisabled" :multiple="spec.multiple" :readonly="spec.readOnly"
|
|
7
7
|
:clearable="spec.clearable" :placeholder="spec.placeholder" :rules="$validation()" persistent-hint
|
|
8
8
|
:append-icon="append.icon" validate-on="blur" item-title='text' :variant="variant" :closable-chips="spec.multiple"
|
|
9
9
|
:density="density" persistent-placeholder @update:modelValue="onChange" @focus="focused = true"
|
|
@@ -58,6 +58,8 @@ import inputVariant from '../mixins/inputVariant';
|
|
|
58
58
|
import { determineDensity } from "../../utils/constant";
|
|
59
59
|
import { triggerOnChange, triggerOnInput, useGlibInput } from "../composable/form";
|
|
60
60
|
import Hash from '../../utils/hash';
|
|
61
|
+
import { isBoolean } from '../../utils/type';
|
|
62
|
+
|
|
61
63
|
import { useGlibSelectable, watchNoneOfAbove } from '../composable/selectable';
|
|
62
64
|
import { ref } from 'vue';
|
|
63
65
|
import SelectItemDefault from "./_selectItemDefault.vue";
|
|
@@ -94,6 +96,12 @@ export default {
|
|
|
94
96
|
};
|
|
95
97
|
},
|
|
96
98
|
computed: {
|
|
99
|
+
useChips() {
|
|
100
|
+
if (isBoolean(this.spec.useChips)) {
|
|
101
|
+
return this.spec.useChips;
|
|
102
|
+
}
|
|
103
|
+
return this.spec.multiple;
|
|
104
|
+
},
|
|
97
105
|
compName() {
|
|
98
106
|
return this.spec.searchable ? 'v-autocomplete' : 'v-select';
|
|
99
107
|
},
|
package/nav/appBar.vue
CHANGED