@unsource/ui 1.4.0 → 1.5.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/dist/module.json +1 -1
- package/dist/runtime/components/Un/Dropdown.d.vue.ts +4 -4
- package/dist/runtime/components/Un/Dropdown.vue.d.ts +4 -4
- package/dist/runtime/components/Un/Input.d.vue.ts +4 -4
- package/dist/runtime/components/Un/Input.vue.d.ts +4 -4
- package/dist/runtime/components/Un/Log.d.vue.ts +2 -2
- package/dist/runtime/components/Un/Log.vue.d.ts +2 -2
- package/dist/runtime/components/Un/UploadFile.d.vue.ts +2 -2
- package/dist/runtime/components/Un/UploadFile.vue.d.ts +2 -2
- package/dist/runtime/components/UnCard.d.vue.ts +15 -13
- package/dist/runtime/components/UnCard.vue +17 -11
- package/dist/runtime/components/UnCard.vue.d.ts +15 -13
- package/dist/runtime/components/UnChips.d.vue.ts +1 -1
- package/dist/runtime/components/UnChips.vue.d.ts +1 -1
- package/dist/runtime/components/UnList.d.vue.ts +21 -0
- package/dist/runtime/components/UnList.vue +35 -0
- package/dist/runtime/components/UnList.vue.d.ts +21 -0
- package/dist/runtime/components/UnNuxtIcon.vue +1 -1
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -2,10 +2,10 @@ declare const _default: typeof __VLS_export;
|
|
|
2
2
|
export default _default;
|
|
3
3
|
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
4
|
$props: Partial<typeof props>;
|
|
5
|
-
title: string;
|
|
6
|
-
label: string;
|
|
7
5
|
icon: string;
|
|
8
6
|
appendIcon: string;
|
|
7
|
+
label: string;
|
|
8
|
+
title: string;
|
|
9
9
|
appendText: string;
|
|
10
10
|
data: unknown[];
|
|
11
11
|
disabled: boolean;
|
|
@@ -17,10 +17,10 @@ declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
|
17
17
|
px: string;
|
|
18
18
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
19
|
declare const props: {
|
|
20
|
-
readonly title: string;
|
|
21
|
-
readonly label: string;
|
|
22
20
|
readonly icon: string;
|
|
23
21
|
readonly appendIcon: string;
|
|
22
|
+
readonly label: string;
|
|
23
|
+
readonly title: string;
|
|
24
24
|
readonly appendText: string;
|
|
25
25
|
readonly data: unknown[];
|
|
26
26
|
readonly disabled: boolean;
|
|
@@ -2,10 +2,10 @@ declare const _default: typeof __VLS_export;
|
|
|
2
2
|
export default _default;
|
|
3
3
|
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
4
|
$props: Partial<typeof props>;
|
|
5
|
-
title: string;
|
|
6
|
-
label: string;
|
|
7
5
|
icon: string;
|
|
8
6
|
appendIcon: string;
|
|
7
|
+
label: string;
|
|
8
|
+
title: string;
|
|
9
9
|
appendText: string;
|
|
10
10
|
data: unknown[];
|
|
11
11
|
disabled: boolean;
|
|
@@ -17,10 +17,10 @@ declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
|
17
17
|
px: string;
|
|
18
18
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
19
19
|
declare const props: {
|
|
20
|
-
readonly title: string;
|
|
21
|
-
readonly label: string;
|
|
22
20
|
readonly icon: string;
|
|
23
21
|
readonly appendIcon: string;
|
|
22
|
+
readonly label: string;
|
|
23
|
+
readonly title: string;
|
|
24
24
|
readonly appendText: string;
|
|
25
25
|
readonly data: unknown[];
|
|
26
26
|
readonly disabled: boolean;
|
|
@@ -27,11 +27,14 @@ type __VLS_ModelProps = {
|
|
|
27
27
|
};
|
|
28
28
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
29
29
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {
|
|
30
|
-
label: string;
|
|
31
30
|
appendIcon: string;
|
|
31
|
+
label: string;
|
|
32
32
|
appendText: string;
|
|
33
33
|
disabled: boolean;
|
|
34
34
|
prependIcon: string;
|
|
35
|
+
date: boolean;
|
|
36
|
+
placeholder: string;
|
|
37
|
+
focusable: boolean;
|
|
35
38
|
className: string;
|
|
36
39
|
valueClassName: string;
|
|
37
40
|
focusClassName: string;
|
|
@@ -39,13 +42,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
39
42
|
appendIconType: string;
|
|
40
43
|
appendIconClass: string;
|
|
41
44
|
inputType: string;
|
|
42
|
-
placeholder: string;
|
|
43
45
|
password: boolean;
|
|
44
|
-
date: boolean;
|
|
45
46
|
inputMode: string;
|
|
46
47
|
iconColor: string;
|
|
47
48
|
bgStyle: string;
|
|
48
|
-
focusable: boolean;
|
|
49
49
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
50
|
declare const _default: typeof __VLS_export;
|
|
51
51
|
export default _default;
|
|
@@ -27,11 +27,14 @@ type __VLS_ModelProps = {
|
|
|
27
27
|
};
|
|
28
28
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
29
29
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {
|
|
30
|
-
label: string;
|
|
31
30
|
appendIcon: string;
|
|
31
|
+
label: string;
|
|
32
32
|
appendText: string;
|
|
33
33
|
disabled: boolean;
|
|
34
34
|
prependIcon: string;
|
|
35
|
+
date: boolean;
|
|
36
|
+
placeholder: string;
|
|
37
|
+
focusable: boolean;
|
|
35
38
|
className: string;
|
|
36
39
|
valueClassName: string;
|
|
37
40
|
focusClassName: string;
|
|
@@ -39,13 +42,10 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
39
42
|
appendIconType: string;
|
|
40
43
|
appendIconClass: string;
|
|
41
44
|
inputType: string;
|
|
42
|
-
placeholder: string;
|
|
43
45
|
password: boolean;
|
|
44
|
-
date: boolean;
|
|
45
46
|
inputMode: string;
|
|
46
47
|
iconColor: string;
|
|
47
48
|
bgStyle: string;
|
|
48
|
-
focusable: boolean;
|
|
49
49
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
50
50
|
declare const _default: typeof __VLS_export;
|
|
51
51
|
export default _default;
|
|
@@ -3,9 +3,9 @@ export default _default;
|
|
|
3
3
|
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
4
|
$props: Partial<typeof __VLS_props>;
|
|
5
5
|
fixed: boolean;
|
|
6
|
-
data: string | number | boolean |
|
|
6
|
+
data: string | number | boolean | Record<string, any> | unknown[];
|
|
7
7
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
8
|
declare const __VLS_props: {
|
|
9
9
|
readonly fixed: boolean;
|
|
10
|
-
readonly data: string | number | boolean |
|
|
10
|
+
readonly data: string | number | boolean | Record<string, any> | unknown[];
|
|
11
11
|
};
|
|
@@ -3,9 +3,9 @@ export default _default;
|
|
|
3
3
|
declare const __VLS_export: import("vue").DefineComponent<{}, {
|
|
4
4
|
$props: Partial<typeof __VLS_props>;
|
|
5
5
|
fixed: boolean;
|
|
6
|
-
data: string | number | boolean |
|
|
6
|
+
data: string | number | boolean | Record<string, any> | unknown[];
|
|
7
7
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
8
8
|
declare const __VLS_props: {
|
|
9
9
|
readonly fixed: boolean;
|
|
10
|
-
readonly data: string | number | boolean |
|
|
10
|
+
readonly data: string | number | boolean | Record<string, any> | unknown[];
|
|
11
11
|
};
|
|
@@ -6,8 +6,8 @@ type __VLS_WithSlots<T, S> = T & (new () => {
|
|
|
6
6
|
});
|
|
7
7
|
declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
8
8
|
$props: Partial<typeof props>;
|
|
9
|
-
label: string;
|
|
10
9
|
icon: string;
|
|
10
|
+
label: string;
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
accept: string;
|
|
13
13
|
edit: boolean;
|
|
@@ -16,8 +16,8 @@ type __VLS_Slots = {
|
|
|
16
16
|
icon?: ((props: {}) => any) | undefined;
|
|
17
17
|
};
|
|
18
18
|
declare const props: {
|
|
19
|
-
readonly label: string;
|
|
20
19
|
readonly icon: string;
|
|
20
|
+
readonly label: string;
|
|
21
21
|
readonly disabled: boolean;
|
|
22
22
|
readonly accept: string;
|
|
23
23
|
readonly edit: boolean;
|
|
@@ -6,8 +6,8 @@ type __VLS_WithSlots<T, S> = T & (new () => {
|
|
|
6
6
|
});
|
|
7
7
|
declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
8
8
|
$props: Partial<typeof props>;
|
|
9
|
-
label: string;
|
|
10
9
|
icon: string;
|
|
10
|
+
label: string;
|
|
11
11
|
disabled: boolean;
|
|
12
12
|
accept: string;
|
|
13
13
|
edit: boolean;
|
|
@@ -16,8 +16,8 @@ type __VLS_Slots = {
|
|
|
16
16
|
icon?: ((props: {}) => any) | undefined;
|
|
17
17
|
};
|
|
18
18
|
declare const props: {
|
|
19
|
-
readonly label: string;
|
|
20
19
|
readonly icon: string;
|
|
20
|
+
readonly label: string;
|
|
21
21
|
readonly disabled: boolean;
|
|
22
22
|
readonly accept: string;
|
|
23
23
|
readonly edit: boolean;
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
+
export type CardCustomClass = Record<'main' | 'inside' | 'logoName' | 'name' | 'desc' | 'body' | 'logo' | 'slider' | 'sliderWrapper' | 'sliderSlides' | 'title' | 'titleText' | 'tags' | 'tag' | 'description' | 'footer' | 'image' | 'avatar', string>;
|
|
2
|
+
export type CardItem = {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
image?: string;
|
|
6
|
+
avatar?: string;
|
|
7
|
+
images?: string[];
|
|
8
|
+
tags?: {
|
|
9
|
+
value?: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
variant?: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
1
14
|
type __VLS_Props = {
|
|
2
15
|
direction?: 'column' | 'row' | 'row-reverse' | 'column-reverse';
|
|
3
|
-
customClass?:
|
|
4
|
-
item:
|
|
5
|
-
title?: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
image?: string;
|
|
8
|
-
avatar?: string;
|
|
9
|
-
images?: string[];
|
|
10
|
-
tags?: {
|
|
11
|
-
value?: string;
|
|
12
|
-
icon?: string;
|
|
13
|
-
variant?: string;
|
|
14
|
-
}[];
|
|
15
|
-
};
|
|
16
|
+
customClass?: CardCustomClass;
|
|
17
|
+
item: CardItem;
|
|
16
18
|
to?: string;
|
|
17
19
|
};
|
|
18
20
|
declare var __VLS_33: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<
|
|
2
|
+
<component
|
|
3
|
+
:is="to ? NuxtLink : 'div'"
|
|
3
4
|
class="flex items-stretch bg-white rounded-2xl overflow-hidden"
|
|
4
5
|
:class="headerClass[direction]"
|
|
5
6
|
no-prefetch
|
|
@@ -10,7 +11,6 @@
|
|
|
10
11
|
class="grow-1 basis-1"
|
|
11
12
|
:class="[customClass.image, { 'min-h-50': direction.includes('column') }]"
|
|
12
13
|
:name="item.image"
|
|
13
|
-
icon-type="img"
|
|
14
14
|
/>
|
|
15
15
|
<UnSwiperSlider
|
|
16
16
|
v-else-if="item.images"
|
|
@@ -31,7 +31,6 @@
|
|
|
31
31
|
<div class="h-full self-stretch max-w-screen">
|
|
32
32
|
<UnNuxtIcon
|
|
33
33
|
:name="item"
|
|
34
|
-
icon-type="img"
|
|
35
34
|
class="object-cover !w-full !h-full"
|
|
36
35
|
/>
|
|
37
36
|
</div>
|
|
@@ -49,7 +48,6 @@
|
|
|
49
48
|
v-if="item.avatar"
|
|
50
49
|
:class="customClass.avatar"
|
|
51
50
|
:name="item.avatar"
|
|
52
|
-
icon-type="img"
|
|
53
51
|
class="!object-cover shrink-0 w-14 h-14 aspect-square rounded-full border-(2 solid primary-500)"
|
|
54
52
|
/>
|
|
55
53
|
<div
|
|
@@ -64,7 +62,6 @@
|
|
|
64
62
|
v-if="item.logo"
|
|
65
63
|
:class="customClass.logo"
|
|
66
64
|
:name="item.logo"
|
|
67
|
-
icon-type="img"
|
|
68
65
|
class="!object-cover shrink-0 w-14 h-14 aspect-square rounded-full border-(2 solid primary-500)"
|
|
69
66
|
/>
|
|
70
67
|
<div class="flex flex-col">
|
|
@@ -72,12 +69,16 @@
|
|
|
72
69
|
v-if="item.name"
|
|
73
70
|
:class="customClass.name"
|
|
74
71
|
class="text-(lg gray-600) font-medium"
|
|
75
|
-
>
|
|
72
|
+
>
|
|
73
|
+
{{ item.name }}
|
|
74
|
+
</h3>
|
|
76
75
|
<p
|
|
77
76
|
v-if="item.desc"
|
|
78
77
|
:class="customClass.desc"
|
|
79
78
|
class="text-(base gray-500)"
|
|
80
|
-
>
|
|
79
|
+
>
|
|
80
|
+
{{ item.desc }}
|
|
81
|
+
</p>
|
|
81
82
|
</div>
|
|
82
83
|
</div>
|
|
83
84
|
<slot
|
|
@@ -93,7 +94,9 @@
|
|
|
93
94
|
v-if="item.title"
|
|
94
95
|
:class="customClass.titleText"
|
|
95
96
|
class="text-(lg gray-600) font-medium"
|
|
96
|
-
>
|
|
97
|
+
>
|
|
98
|
+
{{ item.title }}
|
|
99
|
+
</h3>
|
|
97
100
|
<slot
|
|
98
101
|
name="title"
|
|
99
102
|
:item="item"
|
|
@@ -103,7 +106,9 @@
|
|
|
103
106
|
v-if="item.description"
|
|
104
107
|
:class="customClass.description"
|
|
105
108
|
class="text-(base gray-500)"
|
|
106
|
-
>
|
|
109
|
+
>
|
|
110
|
+
{{ item.description }}
|
|
111
|
+
</p>
|
|
107
112
|
<div
|
|
108
113
|
v-if="item.tags?.length"
|
|
109
114
|
:class="customClass.tags"
|
|
@@ -145,11 +150,12 @@
|
|
|
145
150
|
/>
|
|
146
151
|
</div>
|
|
147
152
|
</div>
|
|
148
|
-
</
|
|
153
|
+
</component>
|
|
149
154
|
</template>
|
|
150
155
|
|
|
151
156
|
<script setup>
|
|
152
|
-
|
|
157
|
+
import { NuxtLink } from "#components";
|
|
158
|
+
const { direction = "column", customClass = {}, to = "" } = defineProps({
|
|
153
159
|
direction: { type: String, required: false },
|
|
154
160
|
customClass: { type: Object, required: false },
|
|
155
161
|
item: { type: Object, required: true },
|
|
@@ -1,18 +1,20 @@
|
|
|
1
|
+
export type CardCustomClass = Record<'main' | 'inside' | 'logoName' | 'name' | 'desc' | 'body' | 'logo' | 'slider' | 'sliderWrapper' | 'sliderSlides' | 'title' | 'titleText' | 'tags' | 'tag' | 'description' | 'footer' | 'image' | 'avatar', string>;
|
|
2
|
+
export type CardItem = {
|
|
3
|
+
title?: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
image?: string;
|
|
6
|
+
avatar?: string;
|
|
7
|
+
images?: string[];
|
|
8
|
+
tags?: {
|
|
9
|
+
value?: string;
|
|
10
|
+
icon?: string;
|
|
11
|
+
variant?: string;
|
|
12
|
+
}[];
|
|
13
|
+
};
|
|
1
14
|
type __VLS_Props = {
|
|
2
15
|
direction?: 'column' | 'row' | 'row-reverse' | 'column-reverse';
|
|
3
|
-
customClass?:
|
|
4
|
-
item:
|
|
5
|
-
title?: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
image?: string;
|
|
8
|
-
avatar?: string;
|
|
9
|
-
images?: string[];
|
|
10
|
-
tags?: {
|
|
11
|
-
value?: string;
|
|
12
|
-
icon?: string;
|
|
13
|
-
variant?: string;
|
|
14
|
-
}[];
|
|
15
|
-
};
|
|
16
|
+
customClass?: CardCustomClass;
|
|
17
|
+
item: CardItem;
|
|
16
18
|
to?: string;
|
|
17
19
|
};
|
|
18
20
|
declare var __VLS_33: {
|
|
@@ -7,8 +7,8 @@ type __VLS_Props = {
|
|
|
7
7
|
mini?: boolean;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
|
|
10
|
-
variant: string;
|
|
11
10
|
mini: boolean;
|
|
11
|
+
variant: string;
|
|
12
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
export default _default;
|
|
@@ -7,8 +7,8 @@ type __VLS_Props = {
|
|
|
7
7
|
mini?: boolean;
|
|
8
8
|
};
|
|
9
9
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, any, string, import("vue").PublicProps, any, {
|
|
10
|
-
variant: string;
|
|
11
10
|
mini: boolean;
|
|
11
|
+
variant: string;
|
|
12
12
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
export default _default;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CardCustomClass, CardItem } from "~/src/runtime/components/UnCard.vue";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
items?: CardItem[];
|
|
5
|
+
customClass?: Record<'main' | 'title' | 'header' | 'items', unknown> & {
|
|
6
|
+
item?: CardCustomClass;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_1: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div
|
|
3
|
+
id="booking"
|
|
4
|
+
class="flex flex-col p-3 bg-white rounded-2xl gap-4"
|
|
5
|
+
>
|
|
6
|
+
<div
|
|
7
|
+
:class="customClass?.header"
|
|
8
|
+
class="flex items-center justify-between"
|
|
9
|
+
>
|
|
10
|
+
<p
|
|
11
|
+
v-if="title"
|
|
12
|
+
:class="customClass?.title"
|
|
13
|
+
class="text-(lg gray-600) font-semibold"
|
|
14
|
+
>
|
|
15
|
+
{{ title }}
|
|
16
|
+
</p>
|
|
17
|
+
<slot />
|
|
18
|
+
</div>
|
|
19
|
+
<UnCard
|
|
20
|
+
v-for="(item, index) in items"
|
|
21
|
+
:key="index"
|
|
22
|
+
:class="customClass.items"
|
|
23
|
+
:custom-class="customClass.items"
|
|
24
|
+
:item="item"
|
|
25
|
+
/>
|
|
26
|
+
</div>
|
|
27
|
+
</template>
|
|
28
|
+
|
|
29
|
+
<script setup>
|
|
30
|
+
const { customClass = {} } = defineProps({
|
|
31
|
+
title: { type: String, required: false },
|
|
32
|
+
items: { type: Array, required: false },
|
|
33
|
+
customClass: { type: Object, required: false }
|
|
34
|
+
});
|
|
35
|
+
</script>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { CardCustomClass, CardItem } from "~/src/runtime/components/UnCard.vue";
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
title?: string;
|
|
4
|
+
items?: CardItem[];
|
|
5
|
+
customClass?: Record<'main' | 'title' | 'header' | 'items', unknown> & {
|
|
6
|
+
item?: CardCustomClass;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_1: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
15
|
+
declare const _default: typeof __VLS_export;
|
|
16
|
+
export default _default;
|
|
17
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
18
|
+
new (): {
|
|
19
|
+
$slots: S;
|
|
20
|
+
};
|
|
21
|
+
};
|