@mptw/skylens-ui 1.2.11 → 1.2.12
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.
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
.select-menu-popup(ref="popupEl")
|
|
13
13
|
.select-header
|
|
14
14
|
SLSearchInput(
|
|
15
|
-
v-model='
|
|
15
|
+
v-model='queryProxy',
|
|
16
16
|
:placeholder='searchPlaceholder',
|
|
17
17
|
:lazy='500',
|
|
18
|
-
:isSearch='
|
|
18
|
+
:isSearch='queryProxy !== ""',
|
|
19
19
|
@clear="onClearQuery"
|
|
20
20
|
)
|
|
21
21
|
.select-body
|
|
@@ -146,7 +146,7 @@ export default defineComponent({
|
|
|
146
146
|
return options.value;
|
|
147
147
|
}
|
|
148
148
|
|
|
149
|
-
const regexp = new RegExp(`.*${
|
|
149
|
+
const regexp = new RegExp(`.*${queryProxy.value}.*`, "i");
|
|
150
150
|
return options.value
|
|
151
151
|
.map((option) => {
|
|
152
152
|
if (regexp.test(option.name)) {
|
|
@@ -218,7 +218,7 @@ export default defineComponent({
|
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
function onClearQuery() {
|
|
221
|
-
|
|
221
|
+
queryProxy.value = "";
|
|
222
222
|
}
|
|
223
223
|
|
|
224
224
|
function subscribeClick() {
|
|
@@ -284,7 +284,7 @@ export default defineComponent({
|
|
|
284
284
|
modifiers: [{ name: "eventListeners", enabled: false }],
|
|
285
285
|
});
|
|
286
286
|
|
|
287
|
-
|
|
287
|
+
queryProxy.value = "";
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
function onClickedToggle() {
|