|
1 | 1 | <template lang="pug"> |
2 | | -control-wrapper( |
3 | | - v-bind="controlWrapper" |
4 | | - :styles="styles" |
5 | | - :is-focused="isFocused" |
6 | | - :applied-options="appliedOptions" |
7 | | - v-model:is-hovered="isHovered" |
8 | | -) |
9 | | - q-select( |
10 | | - :model-value="selectedKey" |
11 | | - :label="computedLabel" |
12 | | - :options="normalizedOptions" |
13 | | - :placeholder="appliedOptions.placeholder" |
14 | | - :disable="!control.enabled && !isReadonly" |
15 | | - :readonly="isReadonly" |
16 | | - clear-icon="mdi-close" |
17 | | - :required="control.required" |
18 | | - :hint="control.description" |
19 | | - :hide-hint="persistentHint()" |
20 | | - :error="control.errors !== ''" |
21 | | - :error-message="control.errors" |
22 | | - :clearable="isClearable" |
23 | | - option-label="label" |
24 | | - option-value="key" |
25 | | - emit-value |
26 | | - map-options |
27 | | - outlined |
28 | | - stack-label |
29 | | - dense |
30 | | - @focus="isFocused = true" |
31 | | - @blur="isFocused = false" |
32 | | - @update:model-value="onUpdate" |
33 | | - v-bind="quasarProps('q-select')" |
| 2 | + control-wrapper( |
| 3 | + v-bind="controlWrapper" |
| 4 | + :styles="styles" |
| 5 | + :is-focused="isFocused" |
| 6 | + :applied-options="appliedOptions" |
| 7 | + v-model:is-hovered="isHovered" |
34 | 8 | ) |
| 9 | + q-select( |
| 10 | + :model-value="selectedKey" |
| 11 | + :label="computedLabel" |
| 12 | + :options="normalizedOptions" |
| 13 | + :placeholder="appliedOptions.placeholder" |
| 14 | + :disable="!control.enabled && !isReadonly" |
| 15 | + :readonly="isReadonly" |
| 16 | + clear-icon="mdi-close" |
| 17 | + :required="control.required" |
| 18 | + :hint="control.description" |
| 19 | + :hide-hint="persistentHint()" |
| 20 | + :error="control.errors !== ''" |
| 21 | + :error-message="control.errors" |
| 22 | + :clearable="isClearable" |
| 23 | + option-label="label" |
| 24 | + option-value="key" |
| 25 | + emit-value |
| 26 | + map-options |
| 27 | + outlined |
| 28 | + stack-label |
| 29 | + dense |
| 30 | + @focus="isFocused = true" |
| 31 | + @blur="isFocused = false" |
| 32 | + @update:model-value="onUpdate" |
| 33 | + v-bind="quasarProps('q-select')" |
| 34 | + ) |
| 35 | + template(#before v-if="appliedOptions?.addons?.before && appliedOptions.addons.before.length") |
| 36 | + field-addons( |
| 37 | + position="before" |
| 38 | + :items="appliedOptions.addons.before" |
| 39 | + :control-id="control.id" |
| 40 | + ) |
| 41 | + template(#prepend) |
| 42 | + field-addons( |
| 43 | + v-if="appliedOptions?.addons?.prepend && appliedOptions.addons.prepend.length" |
| 44 | + position="prepend" |
| 45 | + :items="appliedOptions.addons.prepend" |
| 46 | + :control-id="control.id" |
| 47 | + ) |
| 48 | + template(#append) |
| 49 | + field-addons( |
| 50 | + v-if="appliedOptions?.addons?.append && appliedOptions.addons.append.length" |
| 51 | + position="append" |
| 52 | + :items="appliedOptions.addons.append" |
| 53 | + :control-id="control.id" |
| 54 | + ) |
| 55 | + template(#after) |
| 56 | + field-addons( |
| 57 | + v-if="appliedOptions?.addons?.after && appliedOptions.addons.after.length" |
| 58 | + position="after" |
| 59 | + :items="appliedOptions.addons.after" |
| 60 | + :control-id="control.id" |
| 61 | + ) |
35 | 62 | </template> |
36 | 63 |
|
37 | 64 | <script lang="ts"> |
|
0 commit comments