@afeefa/vue-app 0.0.222 → 0.0.223
Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.223
|
package/package.json
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
:label="label"
|
20
20
|
:rules="validationRules"
|
21
21
|
placeholder="Mausklick oder Space/↓-Taste zum Auswählen"
|
22
|
-
:clearable="!!selectedItems.length"
|
22
|
+
:clearable="clearable && !!selectedItems.length"
|
23
23
|
appendIcon="$dropdown"
|
24
24
|
@keydown.space.prevent="open"
|
25
25
|
@keydown.down.prevent="open"
|
@@ -91,6 +91,13 @@ export default class FormFieldSearchSelect extends Mixins(FormFieldMixin) {
|
|
91
91
|
return (this.model[this.name] && this.model[this.name].getTitle()) || null
|
92
92
|
}
|
93
93
|
|
94
|
+
get clearable () {
|
95
|
+
if (this.validator && this.validator.getParam('filled')) {
|
96
|
+
return false
|
97
|
+
}
|
98
|
+
return true
|
99
|
+
}
|
100
|
+
|
94
101
|
calculateSelectorSize () {
|
95
102
|
const input = this.$refs.input.$el
|
96
103
|
const inputWidth = input.offsetWidth
|
@@ -7,6 +7,8 @@
|
|
7
7
|
item-text="itemText"
|
8
8
|
item-value="itemValue"
|
9
9
|
|
10
|
+
:clearable="clearable && !!model[name]"
|
11
|
+
|
10
12
|
:validator="validator"
|
11
13
|
v-bind="$attrs"
|
12
14
|
v-on="$listeners"
|
@@ -33,6 +35,13 @@ export default class FormFieldSelect extends Mixins(FormFieldMixin) {
|
|
33
35
|
}
|
34
36
|
}
|
35
37
|
|
38
|
+
get clearable () {
|
39
|
+
if (this.validator && this.validator.getParam('filled')) {
|
40
|
+
return false
|
41
|
+
}
|
42
|
+
return true
|
43
|
+
}
|
44
|
+
|
36
45
|
get _items () {
|
37
46
|
return this.$attrs.items || this.items || []
|
38
47
|
}
|