@adminforth/universal-search 1.4.0 → 1.4.1
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.
- package/build.log +2 -2
- package/custom/UniversalSearchInput.vue +16 -16
- package/dist/custom/UniversalSearchInput.vue +16 -16
- package/package.json +1 -1
package/build.log
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="af-universal-search flex items-center gap-1">
|
|
3
3
|
<slot name="prefix" />
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
<div class="relative w-64">
|
|
5
|
+
<input
|
|
6
|
+
v-model="localValue"
|
|
7
|
+
type="text"
|
|
8
|
+
:placeholder="props.meta?.placeholder ?? ''"
|
|
9
|
+
class="w-full border rounded text-sm dark:bg-gray-800 dark:border-gray-600 dark:text-white px-2 py-1 pr-6"
|
|
10
|
+
@keyup.enter="applyImmediate"
|
|
11
|
+
>
|
|
12
|
+
<p
|
|
13
|
+
v-if="localValue"
|
|
14
|
+
@click="clear"
|
|
15
|
+
class="absolute right-2 top-1/2 -translate-y-1/2 hover:cursor-pointer hover:text-gray-600 dark:text-white dark:hover:text-gray-400 "
|
|
16
|
+
>
|
|
17
|
+
✕
|
|
18
|
+
</p>
|
|
19
|
+
</div>
|
|
20
20
|
<slot name="suffix" />
|
|
21
21
|
</div>
|
|
22
22
|
</template>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="af-universal-search flex items-center gap-1">
|
|
3
3
|
<slot name="prefix" />
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
4
|
+
<div class="relative w-64">
|
|
5
|
+
<input
|
|
6
|
+
v-model="localValue"
|
|
7
|
+
type="text"
|
|
8
|
+
:placeholder="props.meta?.placeholder ?? ''"
|
|
9
|
+
class="w-full border rounded text-sm dark:bg-gray-800 dark:border-gray-600 dark:text-white px-2 py-1 pr-6"
|
|
10
|
+
@keyup.enter="applyImmediate"
|
|
11
|
+
>
|
|
12
|
+
<p
|
|
13
|
+
v-if="localValue"
|
|
14
|
+
@click="clear"
|
|
15
|
+
class="absolute right-2 top-1/2 -translate-y-1/2 hover:cursor-pointer hover:text-gray-600 dark:text-white dark:hover:text-gray-400 "
|
|
16
|
+
>
|
|
17
|
+
✕
|
|
18
|
+
</p>
|
|
19
|
+
</div>
|
|
20
20
|
<slot name="suffix" />
|
|
21
21
|
</div>
|
|
22
22
|
</template>
|