@mptw/skylens-ui 1.2.11 → 1.2.13

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='query',
15
+ v-model='queryProxy',
16
16
  :placeholder='searchPlaceholder',
17
17
  :lazy='500',
18
- :isSearch='query !== ""',
18
+ :isSearch='queryProxy !== ""',
19
19
  @clear="onClearQuery"
20
20
  )
21
21
  .select-body
@@ -131,7 +131,7 @@ export default defineComponent({
131
131
  let clickSubscriber: any = null;
132
132
 
133
133
  const queryProxy = computed({
134
- get() { query.value || selfQuery },
134
+ get() { query.value || selfQuery.value },
135
135
  set(newValue: string) {
136
136
  emit('update:query', newValue);
137
137
  selfQuery.value = newValue;
@@ -146,7 +146,7 @@ export default defineComponent({
146
146
  return options.value;
147
147
  }
148
148
 
149
- const regexp = new RegExp(`.*${query.value}.*`, "i");
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
- query.value = "";
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
- query.value = "";
287
+ queryProxy.value = "";
288
288
  }
289
289
 
290
290
  function onClickedToggle() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mptw/skylens-ui",
3
3
  "type": "module",
4
- "version": "1.2.11",
4
+ "version": "1.2.13",
5
5
  "main": "./nuxt.config.ts",
6
6
  "scripts": {
7
7
  "dev": "nuxi dev .playground",