pukaad-ui-lib 1.408.0 → 1.410.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 +1 -1
- package/dist/runtime/components/card/card-recommend/card-recommend-place.d.vue.ts +5 -3
- package/dist/runtime/components/card/card-recommend/card-recommend-place.vue +3 -3
- package/dist/runtime/components/card/card-recommend/card-recommend-place.vue.d.ts +5 -3
- package/dist/runtime/components/card/card-recommend/card-recommend-profile.d.vue.ts +6 -4
- package/dist/runtime/components/card/card-recommend/card-recommend-profile.vue +5 -4
- package/dist/runtime/components/card/card-recommend/card-recommend-profile.vue.d.ts +6 -4
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface Item {
|
|
2
|
-
id: number;
|
|
2
|
+
id: string | number;
|
|
3
3
|
title: string;
|
|
4
4
|
image: string;
|
|
5
5
|
rating: number;
|
|
@@ -9,9 +9,11 @@ type __VLS_Props = {
|
|
|
9
9
|
items?: Item[];
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
-
"item-click": (
|
|
12
|
+
"item-click": (item: Item) => any;
|
|
13
|
+
"view-all": () => any;
|
|
13
14
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
-
"onItem-click"?: ((
|
|
15
|
+
"onItem-click"?: ((item: Item) => any) | undefined;
|
|
16
|
+
"onView-all"?: (() => any) | undefined;
|
|
15
17
|
}>, {
|
|
16
18
|
items: Item[];
|
|
17
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
</div>
|
|
32
32
|
<div class="flex items-center gap-[4px] text-gray font-body-small">
|
|
33
33
|
<InputRating v-model="item.rating" readonly :rating-size="10" />
|
|
34
|
-
{{ $
|
|
34
|
+
{{ $convert.convertNumber(item.review_count) }}
|
|
35
35
|
</div>
|
|
36
36
|
</div>
|
|
37
37
|
</div>
|
|
@@ -50,11 +50,11 @@
|
|
|
50
50
|
const props = defineProps({
|
|
51
51
|
items: { type: Array, required: false, default: () => [] }
|
|
52
52
|
});
|
|
53
|
-
const emit = defineEmits(["item-click"]);
|
|
53
|
+
const emit = defineEmits(["item-click", "view-all"]);
|
|
54
54
|
const handleClickCard = (item) => {
|
|
55
55
|
emit("item-click", item);
|
|
56
56
|
};
|
|
57
57
|
const onViewAll = () => {
|
|
58
|
-
|
|
58
|
+
emit("view-all");
|
|
59
59
|
};
|
|
60
60
|
</script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
interface Item {
|
|
2
|
-
id: number;
|
|
2
|
+
id: string | number;
|
|
3
3
|
title: string;
|
|
4
4
|
image: string;
|
|
5
5
|
rating: number;
|
|
@@ -9,9 +9,11 @@ type __VLS_Props = {
|
|
|
9
9
|
items?: Item[];
|
|
10
10
|
};
|
|
11
11
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
-
"item-click": (
|
|
12
|
+
"item-click": (item: Item) => any;
|
|
13
|
+
"view-all": () => any;
|
|
13
14
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
-
"onItem-click"?: ((
|
|
15
|
+
"onItem-click"?: ((item: Item) => any) | undefined;
|
|
16
|
+
"onView-all"?: (() => any) | undefined;
|
|
15
17
|
}>, {
|
|
16
18
|
items: Item[];
|
|
17
19
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
interface Item {
|
|
2
|
-
id: number;
|
|
2
|
+
id: string | number;
|
|
3
3
|
name: string;
|
|
4
|
-
verified
|
|
4
|
+
verified?: boolean;
|
|
5
5
|
post_count: number;
|
|
6
6
|
follower_count: number;
|
|
7
7
|
image: string;
|
|
@@ -10,9 +10,11 @@ type __VLS_Props = {
|
|
|
10
10
|
items?: Item[];
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
-
"item-click": (
|
|
13
|
+
"item-click": (item: Item) => any;
|
|
14
|
+
"view-all": () => any;
|
|
14
15
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
"onItem-click"?: ((
|
|
16
|
+
"onItem-click"?: ((item: Item) => any) | undefined;
|
|
17
|
+
"onView-all"?: (() => any) | undefined;
|
|
16
18
|
}>, {
|
|
17
19
|
items: Item[];
|
|
18
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -30,8 +30,9 @@
|
|
|
30
30
|
/>
|
|
31
31
|
</div>
|
|
32
32
|
<div class="text-gray font-body-small">
|
|
33
|
-
กำลังเผยแพร่ {{ $
|
|
34
|
-
|
|
33
|
+
กำลังเผยแพร่ {{ $convert.convertNumber(item.post_count) }} •
|
|
34
|
+
ผู้ติดตาม
|
|
35
|
+
{{ $convert.convertNumber(item.follower_count) }}
|
|
35
36
|
</div>
|
|
36
37
|
</div>
|
|
37
38
|
</div>
|
|
@@ -51,11 +52,11 @@
|
|
|
51
52
|
const props = defineProps({
|
|
52
53
|
items: { type: Array, required: false, default: () => [] }
|
|
53
54
|
});
|
|
54
|
-
const emit = defineEmits(["item-click"]);
|
|
55
|
+
const emit = defineEmits(["item-click", "view-all"]);
|
|
55
56
|
const handleClickCard = (item) => {
|
|
56
57
|
emit("item-click", item);
|
|
57
58
|
};
|
|
58
59
|
const onViewAll = () => {
|
|
59
|
-
|
|
60
|
+
emit("view-all");
|
|
60
61
|
};
|
|
61
62
|
</script>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
interface Item {
|
|
2
|
-
id: number;
|
|
2
|
+
id: string | number;
|
|
3
3
|
name: string;
|
|
4
|
-
verified
|
|
4
|
+
verified?: boolean;
|
|
5
5
|
post_count: number;
|
|
6
6
|
follower_count: number;
|
|
7
7
|
image: string;
|
|
@@ -10,9 +10,11 @@ type __VLS_Props = {
|
|
|
10
10
|
items?: Item[];
|
|
11
11
|
};
|
|
12
12
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
-
"item-click": (
|
|
13
|
+
"item-click": (item: Item) => any;
|
|
14
|
+
"view-all": () => any;
|
|
14
15
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
-
"onItem-click"?: ((
|
|
16
|
+
"onItem-click"?: ((item: Item) => any) | undefined;
|
|
17
|
+
"onView-all"?: (() => any) | undefined;
|
|
16
18
|
}>, {
|
|
17
19
|
items: Item[];
|
|
18
20
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|