@afeefa/vue-app 0.0.87 → 0.0.88
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.88
|
package/package.json
CHANGED
@@ -5,7 +5,10 @@
|
|
5
5
|
style="width: max-content;"
|
6
6
|
@click="open"
|
7
7
|
>
|
8
|
-
<slot
|
8
|
+
<slot
|
9
|
+
v-if="!autoOpen"
|
10
|
+
name="activator"
|
11
|
+
>
|
9
12
|
<a-icon class="contextButton">
|
10
13
|
$dotsHorizontalIcon
|
11
14
|
</a-icon>
|
@@ -99,9 +102,10 @@ import { ComponentWidthMixin } from './mixins/ComponentWidthMixin'
|
|
99
102
|
'listAction',
|
100
103
|
'q',
|
101
104
|
'width',
|
102
|
-
'closeOnSelect',
|
103
105
|
'loadOnlyIfKeyword',
|
104
106
|
{
|
107
|
+
autoOpen: false,
|
108
|
+
closeOnSelect: true,
|
105
109
|
selectedItems: []
|
106
110
|
}
|
107
111
|
],
|
@@ -120,6 +124,12 @@ export default class ASearchSelect extends Mixins(ComponentWidthMixin, UsesPosit
|
|
120
124
|
filters = []
|
121
125
|
count = 0
|
122
126
|
|
127
|
+
mounted () {
|
128
|
+
if (this.autoOpen) {
|
129
|
+
this.open()
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
123
133
|
destroyed () {
|
124
134
|
this.close()
|
125
135
|
}
|
@@ -167,10 +177,6 @@ export default class ASearchSelect extends Mixins(ComponentWidthMixin, UsesPosit
|
|
167
177
|
return this.loadOnlyIfKeyword === undefined || this.loadOnlyIfKeyword
|
168
178
|
}
|
169
179
|
|
170
|
-
get _closeOnSelect () {
|
171
|
-
return this.closeOnSelect === undefined || this.closeOnSelect
|
172
|
-
}
|
173
|
-
|
174
180
|
positionize () {
|
175
181
|
const position = new PositionConfig()
|
176
182
|
.setAnchor(this, '.activator')
|
@@ -249,7 +255,7 @@ export default class ASearchSelect extends Mixins(ComponentWidthMixin, UsesPosit
|
|
249
255
|
|
250
256
|
selectHandler (model) {
|
251
257
|
return event => {
|
252
|
-
if (this.
|
258
|
+
if (this.closeOnSelect) {
|
253
259
|
this.close()
|
254
260
|
}
|
255
261
|
this.$emit('select', model, {
|