pukaad-ui-lib 1.189.1 → 1.190.0
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/dist/module.json
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
interface Province {
|
|
2
2
|
id: number;
|
|
3
|
+
code: string;
|
|
3
4
|
name_th: string;
|
|
4
5
|
name_en: string;
|
|
5
6
|
domain: string;
|
|
6
7
|
image_cover_url: string | null;
|
|
8
|
+
is_active: number;
|
|
7
9
|
}
|
|
8
10
|
type __VLS_Props = {
|
|
9
11
|
items?: Province[];
|
|
@@ -16,11 +18,9 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
16
18
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
19
|
select: (province: Province) => any;
|
|
18
20
|
"update:modelValue": (value: Province | undefined) => any;
|
|
19
|
-
open: () => any;
|
|
20
21
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
22
|
onSelect?: ((province: Province) => any) | undefined;
|
|
22
23
|
"onUpdate:modelValue"?: ((value: Province | undefined) => any) | undefined;
|
|
23
|
-
onOpen?: (() => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
25
|
items: Province[];
|
|
26
26
|
itemsPopular: Province[];
|
|
@@ -98,20 +98,15 @@
|
|
|
98
98
|
</template>
|
|
99
99
|
|
|
100
100
|
<script setup>
|
|
101
|
-
import { ref, computed
|
|
101
|
+
import { ref, computed } from "vue";
|
|
102
102
|
const props = defineProps({
|
|
103
103
|
items: { type: Array, required: false, default: () => [] },
|
|
104
104
|
itemsPopular: { type: Array, required: false, default: () => [] }
|
|
105
105
|
});
|
|
106
|
-
const emit = defineEmits(["select"
|
|
106
|
+
const emit = defineEmits(["select"]);
|
|
107
107
|
const modelValue = defineModel({ type: Object });
|
|
108
108
|
const open = ref(false);
|
|
109
109
|
const search = ref("");
|
|
110
|
-
watch(open, (isOpen) => {
|
|
111
|
-
if (isOpen) {
|
|
112
|
-
emit("open");
|
|
113
|
-
}
|
|
114
|
-
});
|
|
115
110
|
const selectedLabel = computed(() => {
|
|
116
111
|
return modelValue.value?.name_th || "";
|
|
117
112
|
});
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
interface Province {
|
|
2
2
|
id: number;
|
|
3
|
+
code: string;
|
|
3
4
|
name_th: string;
|
|
4
5
|
name_en: string;
|
|
5
6
|
domain: string;
|
|
6
7
|
image_cover_url: string | null;
|
|
8
|
+
is_active: number;
|
|
7
9
|
}
|
|
8
10
|
type __VLS_Props = {
|
|
9
11
|
items?: Province[];
|
|
@@ -16,11 +18,9 @@ type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
|
16
18
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
17
19
|
select: (province: Province) => any;
|
|
18
20
|
"update:modelValue": (value: Province | undefined) => any;
|
|
19
|
-
open: () => any;
|
|
20
21
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
21
22
|
onSelect?: ((province: Province) => any) | undefined;
|
|
22
23
|
"onUpdate:modelValue"?: ((value: Province | undefined) => any) | undefined;
|
|
23
|
-
onOpen?: (() => any) | undefined;
|
|
24
24
|
}>, {
|
|
25
25
|
items: Province[];
|
|
26
26
|
itemsPopular: Province[];
|