@yh-ui/components 0.1.56 → 1.0.4
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/affix/index.d.ts +11 -6
- package/dist/affix/src/affix.d.ts +10 -0
- package/dist/affix/src/affix.vue.d.ts +2 -2
- package/dist/ai-action-group/index.d.ts +5 -0
- package/dist/ai-action-group/src/ai-action-group.d.ts +3 -0
- package/dist/ai-agent-card/index.d.ts +7 -0
- package/dist/ai-agent-card/src/ai-agent-card.d.ts +10 -0
- package/dist/ai-artifacts/index.d.ts +8 -0
- package/dist/ai-artifacts/src/ai-artifacts.d.ts +11 -1
- package/dist/ai-attachments/index.d.ts +5 -0
- package/dist/ai-attachments/src/ai-attachments.d.ts +12 -1
- package/dist/ai-bubble/index.d.ts +12 -0
- package/dist/ai-bubble/src/ai-bubble.d.ts +8 -1
- package/dist/ai-bubble/src/ai-bubble.vue +24 -20
- package/dist/ai-bubble-list/index.d.ts +3 -0
- package/dist/ai-bubble-list/src/ai-bubble-list.d.ts +14 -1
- package/dist/ai-chat/index.d.ts +5 -0
- package/dist/ai-chat/src/ai-chat.d.ts +9 -0
- package/dist/ai-code-block/index.d.ts +4 -0
- package/dist/ai-code-block/src/ai-code-block.d.ts +4 -0
- package/dist/ai-code-editor/index.d.ts +5 -0
- package/dist/ai-code-editor/src/ai-code-editor.d.ts +2 -0
- package/dist/ai-code-runner/index.d.ts +5 -0
- package/dist/ai-code-runner/src/ai-code-runner.d.ts +2 -0
- package/dist/ai-conversations/index.d.ts +5 -0
- package/dist/ai-conversations/src/ai-conversations.d.ts +16 -1
- package/dist/ai-editor-sender/index.d.ts +9 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.d.ts +15 -0
- package/dist/ai-file-card/index.d.ts +8 -0
- package/dist/ai-file-card/src/ai-file-card.d.ts +5 -1
- package/dist/ai-mention/index.d.ts +9 -0
- package/dist/ai-mention/src/ai-mention.d.ts +3 -0
- package/dist/ai-mermaid/index.d.ts +5 -0
- package/dist/ai-mermaid/src/ai-mermaid.d.ts +6 -1
- package/dist/ai-mermaid/src/ai-mermaid.vue +6 -1
- package/dist/ai-prompts/index.d.ts +5 -0
- package/dist/ai-prompts/src/ai-prompts.d.ts +10 -0
- package/dist/ai-provider/index.d.ts +10 -0
- package/dist/ai-provider/src/ai-provider.d.ts +28 -0
- package/dist/ai-sender/index.d.ts +6 -0
- package/dist/ai-sender/src/ai-sender.d.ts +11 -1
- package/dist/ai-sources/index.d.ts +6 -0
- package/dist/ai-sources/src/ai-sources.d.ts +5 -1
- package/dist/ai-thinking/index.d.ts +5 -0
- package/dist/ai-thinking/src/ai-thinking.d.ts +3 -0
- package/dist/ai-thought-chain/index.d.ts +6 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.d.ts +3 -0
- package/dist/ai-voice-trigger/index.d.ts +5 -0
- package/dist/ai-voice-trigger/src/ai-voice-trigger.d.ts +4 -0
- package/dist/ai-welcome/index.d.ts +5 -0
- package/dist/ai-welcome/src/ai-welcome.d.ts +6 -0
- package/dist/alert/index.d.ts +6 -0
- package/dist/alert/src/alert.d.ts +7 -0
- package/dist/alert/src/alert.vue +1 -1
- package/dist/autocomplete/index.d.ts +8 -0
- package/dist/avatar/index.cjs +15 -0
- package/dist/avatar/index.d.ts +19 -9
- package/dist/avatar/index.mjs +1 -0
- package/dist/back-top/index.d.ts +4 -0
- package/dist/back-top/src/back-top.d.ts +3 -0
- package/dist/badge/index.d.ts +4 -0
- package/dist/breadcrumb/index.d.ts +6 -0
- package/dist/breadcrumb/src/breadcrumb.d.ts +6 -0
- package/dist/button/index.d.ts +9 -0
- package/dist/calendar/index.d.ts +16 -1230
- package/dist/calendar/src/calendar.d.ts +16 -0
- package/dist/calendar/src/calendar.vue.d.ts +2 -415
- package/dist/card/index.d.ts +4 -0
- package/dist/carousel/index.d.ts +9 -0
- package/dist/carousel/src/carousel-item.d.ts +3 -0
- package/dist/carousel/src/carousel.d.ts +25 -0
- package/dist/cascader/index.d.ts +9 -7
- package/dist/cascader/src/cascader.d.ts +2 -2
- package/dist/cascader/src/cascader.vue +82 -30
- package/dist/cascader/src/cascader.vue.d.ts +1 -1
- package/dist/category-nav/index.d.ts +4 -0
- package/dist/category-nav/src/category-nav.d.ts +15 -0
- package/dist/checkbox/index.d.ts +10 -0
- package/dist/col/index.d.ts +34 -180
- package/dist/col/src/col.d.ts +14 -30
- package/dist/col/src/col.vue.d.ts +15 -90
- package/dist/color-picker/index.d.ts +11 -1
- package/dist/color-picker/src/color-picker.d.ts +8 -0
- package/dist/color-picker/src/color-picker.vue +6 -0
- package/dist/color-picker/src/color-picker.vue.d.ts +6 -1
- package/dist/config-provider/index.d.ts +3 -0
- package/dist/config-provider/src/config-provider.cjs +9 -0
- package/dist/config-provider/src/config-provider.d.ts +3 -0
- package/dist/config-provider/src/config-provider.mjs +9 -0
- package/dist/container/index.d.ts +15 -0
- package/dist/container/src/container.d.ts +12 -0
- package/dist/countdown/index.d.ts +9 -0
- package/dist/coupon-card/index.d.ts +3 -0
- package/dist/coupon-card/src/coupon-card.d.ts +10 -0
- package/dist/date-picker/index.d.ts +8 -0
- package/dist/date-picker/src/date-picker.d.ts +9 -0
- package/dist/descriptions/index.d.ts +6 -0
- package/dist/descriptions/src/descriptions.d.ts +9 -0
- package/dist/dialog/index.d.ts +12 -6
- package/dist/dialog/src/dialog.d.ts +13 -0
- package/dist/dialog/src/dialog.vue.d.ts +2 -2
- package/dist/divider/index.d.ts +2 -0
- package/dist/drawer/index.d.ts +8 -3
- package/dist/drawer/src/drawer.d.ts +11 -0
- package/dist/drawer/src/drawer.vue.d.ts +1 -1
- package/dist/dropdown/index.d.ts +11 -0
- package/dist/dropdown/src/dropdown.d.ts +10 -0
- package/dist/empty/index.cjs +15 -0
- package/dist/empty/index.d.ts +6 -0
- package/dist/empty/index.mjs +1 -0
- package/dist/filter-bar/index.d.ts +9 -0
- package/dist/filter-bar/src/filter-bar.d.ts +12 -0
- package/dist/form/index.d.ts +11 -0
- package/dist/gantt-chart/index.d.ts +8 -6
- package/dist/gantt-chart/src/gantt-chart.d.ts +1 -4
- package/dist/gantt-chart/src/gantt-chart.vue +43 -33
- package/dist/grid/index.d.ts +6 -0
- package/dist/grid/src/grid.d.ts +3 -0
- package/dist/icon/index.d.ts +5 -0
- package/dist/image/index.d.ts +18 -1
- package/dist/image/src/image-viewer.d.ts +11 -0
- package/dist/image/src/image-viewer.vue +56 -9
- package/dist/image/src/image-viewer.vue.d.ts +9 -1
- package/dist/image/src/image.d.ts +4 -0
- package/dist/image/src/image.vue +1 -1
- package/dist/image-magnifier/index.d.ts +6 -0
- package/dist/image-magnifier/src/image-magnifier.d.ts +15 -0
- package/dist/image-magnifier/src/image-magnifier.vue +9 -5
- package/dist/infinite-scroll/index.d.ts +5 -0
- package/dist/infinite-scroll/src/infinite-scroll.d.ts +10 -0
- package/dist/infinite-scroll/src/infinite-scroll.vue +37 -25
- package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +0 -2
- package/dist/input/index.d.ts +10 -0
- package/dist/input-number/index.d.ts +7 -0
- package/dist/input-tag/index.d.ts +7 -0
- package/dist/loading/index.d.ts +2 -0
- package/dist/loading/src/service.cjs +5 -1
- package/dist/loading/src/service.mjs +3 -1
- package/dist/lucky-draw/index.d.ts +4 -0
- package/dist/lucky-draw/src/lucky-draw.d.ts +6 -0
- package/dist/markdown-it.d.ts +2 -1
- package/dist/marquee/index.d.ts +12 -6
- package/dist/marquee/src/marquee.d.ts +8 -0
- package/dist/marquee/src/marquee.vue +16 -6
- package/dist/marquee/src/marquee.vue.d.ts +2 -5
- package/dist/mention/index.d.ts +9 -0
- package/dist/menu/index.d.ts +14 -0
- package/dist/menu/src/menu.d.ts +9 -0
- package/dist/message/index.d.ts +11 -0
- package/dist/message/src/message.d.ts +40 -32
- package/dist/message/src/message.vue.d.ts +1 -1
- package/dist/message-box/index.d.ts +7 -0
- package/dist/notification/index.d.ts +11 -0
- package/dist/notification/src/notification.d.ts +37 -33
- package/dist/notification/src/notification.vue.d.ts +1 -1
- package/dist/pagination/index.d.ts +6 -0
- package/dist/pagination/src/pagination.d.ts +3 -0
- package/dist/popconfirm/index.d.ts +5 -0
- package/dist/popconfirm/src/popconfirm.d.ts +11 -1
- package/dist/popover/index.d.ts +6 -0
- package/dist/popover/src/popover.d.ts +12 -1
- package/dist/price/index.d.ts +1 -0
- package/dist/price/src/price.d.ts +7 -0
- package/dist/product-card/index.d.ts +7 -3
- package/dist/product-card/src/product-card.cjs +1 -36
- package/dist/product-card/src/product-card.d.ts +5 -35
- package/dist/product-card/src/product-card.mjs +1 -36
- package/dist/product-card/src/product-card.vue +8 -14
- package/dist/product-card/src/product-card.vue.d.ts +1 -1
- package/dist/progress/index.d.ts +5 -0
- package/dist/progress/src/progress.d.ts +5 -0
- package/dist/radio/index.d.ts +14 -0
- package/dist/rate/index.d.ts +11 -6
- package/dist/rate/src/rate.d.ts +10 -1
- package/dist/rate/src/rate.vue.d.ts +3 -3
- package/dist/result/index.d.ts +4 -0
- package/dist/row/index.d.ts +18 -12
- package/dist/row/src/row.d.ts +13 -8
- package/dist/row/src/row.vue.d.ts +6 -6
- package/dist/scrollbar/index.d.ts +10 -20
- package/dist/scrollbar/src/scrollbar.d.ts +16 -4
- package/dist/scrollbar/src/scrollbar.vue.d.ts +2 -8
- package/dist/select/index.d.ts +15 -3
- package/dist/select/src/select.d.ts +4 -1
- package/dist/select/src/select.vue +1 -1
- package/dist/select/src/select.vue.d.ts +1 -1
- package/dist/skeleton/index.d.ts +6 -0
- package/dist/skeleton/src/skeleton.d.ts +4 -0
- package/dist/sku-selector/index.d.ts +5 -0
- package/dist/sku-selector/src/sku-selector.cjs +1 -14
- package/dist/sku-selector/src/sku-selector.d.ts +15 -17
- package/dist/sku-selector/src/sku-selector.mjs +1 -14
- package/dist/sku-selector/src/sku-selector.vue +6 -11
- package/dist/slider/index.d.ts +20 -3
- package/dist/slider/src/slider.d.ts +15 -0
- package/dist/slider/src/slider.vue +5 -0
- package/dist/slider/src/slider.vue.d.ts +5 -1
- package/dist/smart-address/index.d.ts +11 -6
- package/dist/smart-address/src/smart-address.cjs +0 -19
- package/dist/smart-address/src/smart-address.d.ts +13 -20
- package/dist/smart-address/src/smart-address.mjs +0 -19
- package/dist/smart-address/src/smart-address.vue.d.ts +3 -3
- package/dist/space/index.cjs +15 -0
- package/dist/space/index.d.ts +22 -12
- package/dist/space/index.mjs +1 -0
- package/dist/spin/index.d.ts +16 -10
- package/dist/spin/src/spin.cjs +5 -1
- package/dist/spin/src/spin.d.ts +13 -1
- package/dist/spin/src/spin.mjs +4 -0
- package/dist/spin/src/spin.vue +2 -2
- package/dist/spin/src/spin.vue.d.ts +4 -5
- package/dist/steps/index.d.ts +13 -0
- package/dist/steps/src/step.d.ts +6 -0
- package/dist/steps/src/steps.d.ts +3 -0
- package/dist/submit-bar/index.d.ts +3 -0
- package/dist/submit-bar/src/submit-bar.d.ts +7 -0
- package/dist/switch/index.d.ts +5 -0
- package/dist/switch/src/switch.d.ts +11 -1
- package/dist/table/index.d.ts +14 -4
- package/dist/tabs/index.d.ts +11 -0
- package/dist/tabs/src/tab-pane.d.ts +3 -0
- package/dist/tabs/src/tabs.d.ts +12 -0
- package/dist/tag/index.d.ts +7 -0
- package/dist/time-picker/index.d.ts +13 -3
- package/dist/time-picker/src/time-picker.d.ts +2 -2
- package/dist/time-picker/src/time-picker.vue +1 -1
- package/dist/time-picker/src/time-picker.vue.d.ts +1 -1
- package/dist/time-select/index.d.ts +10 -3
- package/dist/time-select/src/time-select.d.ts +2 -2
- package/dist/time-select/src/time-select.vue +79 -35
- package/dist/time-select/src/time-select.vue.d.ts +1 -1
- package/dist/tooltip/index.d.ts +7 -0
- package/dist/tooltip/src/tooltip.d.ts +11 -1
- package/dist/transfer/index.d.ts +6 -4
- package/dist/transfer/src/transfer-panel.vue +78 -27
- package/dist/transfer/src/transfer-panel.vue.d.ts +1 -1
- package/dist/transfer/src/transfer.d.ts +4 -4
- package/dist/transfer/src/transfer.vue +82 -26
- package/dist/transfer/src/transfer.vue.d.ts +2 -2
- package/dist/tree/index.d.ts +7 -0
- package/dist/tree-select/index.d.ts +8 -0
- package/dist/typography/index.d.ts +11 -0
- package/dist/upload/index.d.ts +10 -0
- package/dist/upload/src/upload.d.ts +19 -0
- package/dist/viewerjs.d.ts +2 -1
- package/dist/waterfall/index.d.ts +6 -0
- package/dist/waterfall/src/waterfall.d.ts +25 -7
- package/dist/watermark/index.d.ts +11 -54
- package/dist/watermark/src/watermark.d.ts +16 -9
- package/dist/watermark/src/watermark.vue +27 -5
- package/dist/watermark/src/watermark.vue.d.ts +3 -27
- package/package.json +6 -5
|
@@ -1,132 +1,136 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Notification Types & Props
|
|
3
|
-
* @description
|
|
3
|
+
* @description 閫氱煡缁勪欢绫诲瀷瀹氫箟
|
|
4
4
|
*/
|
|
5
|
-
import type { VNode, ComponentPublicInstance } from 'vue';
|
|
5
|
+
import type { VNode, ComponentPublicInstance, Ref } from 'vue';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* 閫氱煡绫诲瀷
|
|
8
8
|
*/
|
|
9
9
|
export declare const notificationTypes: readonly ["success", "warning", "info", "error"];
|
|
10
10
|
export type NotificationType = (typeof notificationTypes)[number];
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* 閫氱煡浣嶇疆
|
|
13
13
|
*/
|
|
14
14
|
export declare const notificationPositions: readonly ["top-right", "top-left", "top-center", "bottom-right", "bottom-left", "bottom-center"];
|
|
15
15
|
export type NotificationPosition = (typeof notificationPositions)[number];
|
|
16
16
|
/**
|
|
17
|
-
* Notification Props
|
|
17
|
+
* Notification Props 瀹氫箟
|
|
18
18
|
*/
|
|
19
19
|
export interface NotificationProps {
|
|
20
20
|
/**
|
|
21
|
-
* @description
|
|
21
|
+
* @description 鏍囬
|
|
22
22
|
*/
|
|
23
23
|
title?: string;
|
|
24
24
|
/**
|
|
25
|
-
* @description
|
|
25
|
+
* @description 閫氱煡鍐呭锛屽彲浠ユ槸瀛楃涓层€乂Node 鎴栬繑鍥?VNode 鐨勫嚱鏁?
|
|
26
26
|
*/
|
|
27
27
|
message?: string | VNode | (() => VNode);
|
|
28
28
|
/**
|
|
29
|
-
* @description
|
|
29
|
+
* @description 閫氱煡绫诲瀷
|
|
30
30
|
*/
|
|
31
31
|
type?: NotificationType;
|
|
32
32
|
/**
|
|
33
|
-
* @description
|
|
33
|
+
* @description 鑷畾涔夊浘鏍?
|
|
34
34
|
*/
|
|
35
35
|
icon?: string | VNode;
|
|
36
36
|
/**
|
|
37
|
-
* @description
|
|
37
|
+
* @description 鏄惁鏄剧ず鍏抽棴鎸夐挳
|
|
38
38
|
* @default true
|
|
39
39
|
*/
|
|
40
40
|
showClose?: boolean;
|
|
41
41
|
/**
|
|
42
|
-
* @description
|
|
42
|
+
* @description 鏄剧ず鏃堕棿锛堟绉掞級銆傝涓?0 鍒欎笉浼氳嚜鍔ㄥ叧闂?
|
|
43
43
|
* @default 4500
|
|
44
44
|
*/
|
|
45
45
|
duration?: number;
|
|
46
46
|
/**
|
|
47
|
-
* @description
|
|
47
|
+
* @description 璺濈绐楀彛杈圭紭鐨勫亸绉婚噺锛坧x锛?
|
|
48
48
|
* @default 16
|
|
49
49
|
*/
|
|
50
50
|
offset?: number;
|
|
51
51
|
/**
|
|
52
|
-
* @description
|
|
52
|
+
* @description 寮瑰嚭浣嶇疆
|
|
53
53
|
* @default 'top-right'
|
|
54
54
|
*/
|
|
55
55
|
position?: NotificationPosition;
|
|
56
56
|
/**
|
|
57
|
-
* @description
|
|
57
|
+
* @description 閫氱煡鐨勫敮涓€鏍囪瘑
|
|
58
58
|
*/
|
|
59
59
|
id?: string;
|
|
60
60
|
/**
|
|
61
|
-
* @description
|
|
61
|
+
* @description 鏄惁灏?message 浣滀负 HTML 鐗囨澶勭悊
|
|
62
62
|
* @default false
|
|
63
63
|
*/
|
|
64
64
|
dangerouslyUseHTMLString?: boolean;
|
|
65
65
|
/**
|
|
66
|
-
* @description
|
|
66
|
+
* @description 鍏抽棴鏃剁殑鍥炶皟鍑芥暟
|
|
67
67
|
*/
|
|
68
68
|
onClose?: () => void;
|
|
69
69
|
/**
|
|
70
|
-
* @description
|
|
70
|
+
* @description 鐐瑰嚮閫氱煡鏃剁殑鍥炶皟鍑芥暟
|
|
71
71
|
*/
|
|
72
72
|
onClick?: () => void;
|
|
73
73
|
/**
|
|
74
|
-
* @description z-index
|
|
74
|
+
* @description z-index 灞傜骇
|
|
75
75
|
*/
|
|
76
76
|
zIndex?: number;
|
|
77
77
|
/**
|
|
78
|
-
* @description
|
|
78
|
+
* @description 鑷畾涔夌被鍚?
|
|
79
79
|
*/
|
|
80
80
|
customClass?: string;
|
|
81
81
|
/**
|
|
82
|
-
* @description
|
|
82
|
+
* @description 鍚屼竴浣嶇疆鏈€澶氭樉绀虹殑閫氱煡鏁伴噺
|
|
83
83
|
*/
|
|
84
84
|
max?: number;
|
|
85
85
|
/**
|
|
86
|
-
* @description
|
|
86
|
+
* @description 涓婚瑕嗙洊鍙橀噺
|
|
87
87
|
*/
|
|
88
88
|
themeOverrides?: import('@yh-ui/theme').ComponentThemeVars;
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
|
-
* Notification Emits
|
|
91
|
+
* Notification Emits 瀹氫箟
|
|
92
92
|
*/
|
|
93
93
|
export interface NotificationEmits {
|
|
94
94
|
(e: 'destroy'): void;
|
|
95
95
|
(e: 'click'): void;
|
|
96
96
|
}
|
|
97
97
|
/**
|
|
98
|
-
* Notification Slots
|
|
98
|
+
* Notification Slots 瀹氫箟
|
|
99
99
|
*/
|
|
100
100
|
export interface NotificationSlots {
|
|
101
101
|
/**
|
|
102
|
-
*
|
|
102
|
+
* 閫氱煡鍐呭
|
|
103
103
|
*/
|
|
104
104
|
default?: () => void;
|
|
105
105
|
/**
|
|
106
|
-
*
|
|
106
|
+
* 鑷畾涔夊浘鏍?
|
|
107
107
|
*/
|
|
108
108
|
icon?: () => void;
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
|
-
* Notification
|
|
111
|
+
* Notification 暴露实例
|
|
112
112
|
*/
|
|
113
|
-
export
|
|
114
|
-
visible: boolean
|
|
113
|
+
export interface NotificationExpose {
|
|
114
|
+
visible: Ref<boolean>;
|
|
115
115
|
close: () => void;
|
|
116
|
-
}
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Notification 瀹炰緥绫诲瀷
|
|
119
|
+
*/
|
|
120
|
+
export type NotificationInstance = ComponentPublicInstance<NotificationExpose>;
|
|
117
121
|
/**
|
|
118
|
-
* Notification
|
|
122
|
+
* Notification 閰嶇疆閫夐」
|
|
119
123
|
*/
|
|
120
124
|
export type NotificationOptions = Partial<NotificationProps>;
|
|
121
125
|
/**
|
|
122
|
-
* Notification
|
|
126
|
+
* Notification 澶勭悊鍑芥暟
|
|
123
127
|
*/
|
|
124
128
|
export interface NotificationHandler {
|
|
125
129
|
close: () => void;
|
|
126
130
|
el?: HTMLElement;
|
|
127
131
|
}
|
|
128
132
|
/**
|
|
129
|
-
* Notification
|
|
133
|
+
* Notification 涓婁笅鏂囷紙鐢ㄤ簬瀹炰緥绠$悊锛?
|
|
130
134
|
*/
|
|
131
135
|
export interface NotificationContext {
|
|
132
136
|
id: string;
|
|
@@ -135,7 +139,7 @@ export interface NotificationContext {
|
|
|
135
139
|
vnode: import('vue').VNode;
|
|
136
140
|
}
|
|
137
141
|
/**
|
|
138
|
-
* Notification
|
|
142
|
+
* Notification 鏂规硶绫诲瀷
|
|
139
143
|
*/
|
|
140
144
|
export type NotificationFn = {
|
|
141
145
|
(options: NotificationOptions | string): NotificationHandler;
|
|
@@ -6,7 +6,7 @@ type __VLS_Slots = {} & {
|
|
|
6
6
|
default?: (props: typeof __VLS_11) => any;
|
|
7
7
|
};
|
|
8
8
|
declare const __VLS_component: import("vue").DefineComponent<NotificationProps, {
|
|
9
|
-
visible: import("vue").Ref<boolean
|
|
9
|
+
visible: import("vue").Ref<boolean>;
|
|
10
10
|
close: () => void;
|
|
11
11
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
12
12
|
click: () => any;
|
|
@@ -266,3 +266,9 @@ export declare const YhPagination: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
266
266
|
export default YhPagination;
|
|
267
267
|
export * from './src/pagination';
|
|
268
268
|
export type PaginationInstance = InstanceType<typeof Pagination>;
|
|
269
|
+
export type YhPaginationInstance = PaginationInstance;
|
|
270
|
+
export type YhPaginationProps = import('./src/pagination').PaginationProps;
|
|
271
|
+
export type YhPaginationEmits = import('./src/pagination').PaginationEmits;
|
|
272
|
+
export type YhPaginationExpose = import('./src/pagination').PaginationExpose;
|
|
273
|
+
export type YhPaginationSlots = import('./src/pagination').PaginationSlots;
|
|
274
|
+
export type YhPaginationLayout = import('./src/pagination').PaginationLayout;
|
|
@@ -434,3 +434,8 @@ export declare const YhPopconfirm: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
434
434
|
export default YhPopconfirm;
|
|
435
435
|
export * from './src/popconfirm';
|
|
436
436
|
export type { PopconfirmInstance } from './src/instance';
|
|
437
|
+
export type YhPopconfirmInstance = import('./src/instance').PopconfirmInstance;
|
|
438
|
+
export type YhPopconfirmProps = import('./src/popconfirm').PopconfirmProps;
|
|
439
|
+
export type YhPopconfirmEmits = import('./src/popconfirm').PopconfirmEmits;
|
|
440
|
+
export type YhPopconfirmSlots = import('./src/popconfirm').PopconfirmSlots;
|
|
441
|
+
export type YhPopconfirmExpose = import('./src/popconfirm').PopconfirmExpose;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractPropTypes, PropType, StyleValue } from 'vue';
|
|
1
|
+
import type { ExtractPropTypes, PropType, StyleValue, Ref } from 'vue';
|
|
2
2
|
import type { TooltipPlacement } from '../../tooltip/src/tooltip';
|
|
3
3
|
export declare const popconfirmProps: {
|
|
4
4
|
/** 标题 */
|
|
@@ -131,3 +131,13 @@ export declare const popconfirmEmits: {
|
|
|
131
131
|
};
|
|
132
132
|
export type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>;
|
|
133
133
|
export type PopconfirmEmits = typeof popconfirmEmits;
|
|
134
|
+
export interface PopconfirmSlots {
|
|
135
|
+
default?: () => unknown;
|
|
136
|
+
icon?: () => unknown;
|
|
137
|
+
title?: () => unknown;
|
|
138
|
+
description?: () => unknown;
|
|
139
|
+
}
|
|
140
|
+
export interface PopconfirmExpose {
|
|
141
|
+
visible: Ref<boolean>;
|
|
142
|
+
toggle: (val: boolean) => boolean;
|
|
143
|
+
}
|
package/dist/popover/index.d.ts
CHANGED
|
@@ -394,3 +394,9 @@ export declare const YhPopover: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
394
394
|
export default YhPopover;
|
|
395
395
|
export * from './src/popover';
|
|
396
396
|
export type PopoverInstance = InstanceType<typeof Popover>;
|
|
397
|
+
export type YhPopoverInstance = PopoverInstance;
|
|
398
|
+
export type YhPopoverProps = import('./src/popover').PopoverProps;
|
|
399
|
+
export type YhPopoverEmits = import('./src/popover').PopoverEmits;
|
|
400
|
+
export type YhPopoverSlots = import('./src/popover').PopoverSlots;
|
|
401
|
+
export type YhPopoverExpose = import('./src/popover').PopoverExpose;
|
|
402
|
+
export type YhPopoverTrigger = import('./src/popover').PopoverTrigger;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractPropTypes, PropType, StyleValue } from 'vue';
|
|
1
|
+
import type { ExtractPropTypes, PropType, StyleValue, Ref } from 'vue';
|
|
2
2
|
import type { Placement } from '@floating-ui/dom';
|
|
3
3
|
export declare const popoverTriggers: readonly ["hover", "click", "focus", "contextmenu"];
|
|
4
4
|
export type PopoverTrigger = (typeof popoverTriggers)[number];
|
|
@@ -126,3 +126,14 @@ export declare const popoverEmits: {
|
|
|
126
126
|
};
|
|
127
127
|
export type PopoverProps = ExtractPropTypes<typeof popoverProps>;
|
|
128
128
|
export type PopoverEmits = typeof popoverEmits;
|
|
129
|
+
export interface PopoverSlots {
|
|
130
|
+
default?: () => unknown;
|
|
131
|
+
header?: () => unknown;
|
|
132
|
+
content?: () => unknown;
|
|
133
|
+
icon?: () => unknown;
|
|
134
|
+
footer?: () => unknown;
|
|
135
|
+
}
|
|
136
|
+
export interface PopoverExpose {
|
|
137
|
+
toggle: (val: boolean) => boolean;
|
|
138
|
+
visible: Ref<boolean>;
|
|
139
|
+
}
|
package/dist/price/index.d.ts
CHANGED
|
@@ -367,3 +367,4 @@ export * from './src/price';
|
|
|
367
367
|
export type PriceInstance = InstanceType<typeof Price>;
|
|
368
368
|
export type YhPriceInstance = PriceInstance;
|
|
369
369
|
export type YhPriceProps = import('./src/price').PriceProps;
|
|
370
|
+
export type YhPriceSlots = import('./src/price').PriceSlots;
|
|
@@ -112,3 +112,10 @@ export declare const priceProps: {
|
|
|
112
112
|
};
|
|
113
113
|
};
|
|
114
114
|
export type PriceProps = ExtractPropTypes<typeof priceProps>;
|
|
115
|
+
export interface PriceSlots {
|
|
116
|
+
tag?: () => unknown;
|
|
117
|
+
prefix?: () => unknown;
|
|
118
|
+
symbol?: () => unknown;
|
|
119
|
+
unit?: () => unknown;
|
|
120
|
+
suffix?: () => unknown;
|
|
121
|
+
}
|
|
@@ -151,6 +151,7 @@ export declare const YhProductCard: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
151
151
|
image: string;
|
|
152
152
|
tag: string;
|
|
153
153
|
description: string;
|
|
154
|
+
soldOut: boolean;
|
|
154
155
|
readonly: boolean;
|
|
155
156
|
themeOverrides: Record<string, string>;
|
|
156
157
|
border: boolean;
|
|
@@ -173,7 +174,6 @@ export declare const YhProductCard: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
173
174
|
stockText: string;
|
|
174
175
|
actionText: string;
|
|
175
176
|
actionLoading: boolean;
|
|
176
|
-
soldOut: boolean;
|
|
177
177
|
exposure: boolean;
|
|
178
178
|
exposureThreshold: number;
|
|
179
179
|
exposureOnce: boolean;
|
|
@@ -334,6 +334,7 @@ export declare const YhProductCard: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
334
334
|
image: string;
|
|
335
335
|
tag: string;
|
|
336
336
|
description: string;
|
|
337
|
+
soldOut: boolean;
|
|
337
338
|
readonly: boolean;
|
|
338
339
|
themeOverrides: Record<string, string>;
|
|
339
340
|
border: boolean;
|
|
@@ -356,7 +357,6 @@ export declare const YhProductCard: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
356
357
|
stockText: string;
|
|
357
358
|
actionText: string;
|
|
358
359
|
actionLoading: boolean;
|
|
359
|
-
soldOut: boolean;
|
|
360
360
|
exposure: boolean;
|
|
361
361
|
exposureThreshold: number;
|
|
362
362
|
exposureOnce: boolean;
|
|
@@ -518,6 +518,7 @@ export declare const YhProductCard: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
518
518
|
image: string;
|
|
519
519
|
tag: string;
|
|
520
520
|
description: string;
|
|
521
|
+
soldOut: boolean;
|
|
521
522
|
readonly: boolean;
|
|
522
523
|
themeOverrides: Record<string, string>;
|
|
523
524
|
border: boolean;
|
|
@@ -540,7 +541,6 @@ export declare const YhProductCard: import("@yh-ui/utils").SFCWithInstall<{
|
|
|
540
541
|
stockText: string;
|
|
541
542
|
actionText: string;
|
|
542
543
|
actionLoading: boolean;
|
|
543
|
-
soldOut: boolean;
|
|
544
544
|
exposure: boolean;
|
|
545
545
|
exposureThreshold: number;
|
|
546
546
|
exposureOnce: boolean;
|
|
@@ -561,3 +561,7 @@ export * from './src/product-card';
|
|
|
561
561
|
export type ProductCardInstance = InstanceType<typeof ProductCard>;
|
|
562
562
|
export type YhProductCardInstance = ProductCardInstance;
|
|
563
563
|
export type YhProductCardProps = import('./src/product-card').ProductCardProps;
|
|
564
|
+
export type YhProductCardEmits = import('./src/product-card').ProductCardEmits;
|
|
565
|
+
export type YhProductCardSlots = import('./src/product-card').ProductCardSlots;
|
|
566
|
+
export type YhProductCardLayout = import('./src/product-card').ProductCardLayout;
|
|
567
|
+
export type YhProductBadge = import('./src/product-card').ProductBadge;
|
|
@@ -5,172 +5,138 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.productCardProps = exports.productCardEmits = void 0;
|
|
7
7
|
const productCardProps = exports.productCardProps = {
|
|
8
|
-
/** 商品图片 */
|
|
9
8
|
image: {
|
|
10
9
|
type: String,
|
|
11
10
|
default: ""
|
|
12
11
|
},
|
|
13
|
-
/** 鼠标悬浮切换图 */
|
|
14
12
|
hoverImage: {
|
|
15
13
|
type: String,
|
|
16
14
|
default: ""
|
|
17
15
|
},
|
|
18
|
-
/** 视频预览地址 */
|
|
19
16
|
videoSrc: {
|
|
20
17
|
type: String,
|
|
21
18
|
default: ""
|
|
22
19
|
},
|
|
23
|
-
/** 商品标题 */
|
|
24
20
|
title: {
|
|
25
21
|
type: String,
|
|
26
22
|
default: ""
|
|
27
23
|
},
|
|
28
|
-
/** 副标题/属性简述 */
|
|
29
24
|
description: {
|
|
30
25
|
type: String,
|
|
31
26
|
default: ""
|
|
32
27
|
},
|
|
33
|
-
/** 当前售价 */
|
|
34
28
|
price: {
|
|
35
29
|
type: [Number, String],
|
|
36
30
|
default: 0
|
|
37
31
|
},
|
|
38
|
-
/** 会员价/到手价 */
|
|
39
32
|
vipPrice: {
|
|
40
33
|
type: [Number, String],
|
|
41
34
|
default: ""
|
|
42
35
|
},
|
|
43
|
-
/** 会员价标签文本 (默认 "会员价") */
|
|
44
36
|
vipLabel: {
|
|
45
37
|
type: String,
|
|
46
|
-
default: "
|
|
38
|
+
default: ""
|
|
47
39
|
},
|
|
48
|
-
/** 划线价/参考价 */
|
|
49
40
|
marketPrice: {
|
|
50
41
|
type: [Number, String],
|
|
51
42
|
default: ""
|
|
52
43
|
},
|
|
53
|
-
/** 货币符号 */
|
|
54
44
|
currency: {
|
|
55
45
|
type: String,
|
|
56
46
|
default: "\xA5"
|
|
57
47
|
},
|
|
58
|
-
/** 价格后置单位 (如: /件, /kg) */
|
|
59
48
|
unit: {
|
|
60
49
|
type: String,
|
|
61
50
|
default: ""
|
|
62
51
|
},
|
|
63
|
-
/** 营销丝带文本 (推荐) */
|
|
64
52
|
ribbon: {
|
|
65
53
|
type: String,
|
|
66
54
|
default: ""
|
|
67
55
|
},
|
|
68
|
-
/** 丝带背景颜色 */
|
|
69
56
|
ribbonColor: {
|
|
70
57
|
type: String,
|
|
71
58
|
default: ""
|
|
72
59
|
},
|
|
73
|
-
/** 兼容性:标题标签文本 (不推荐,建议使用 ribbons 或 badges) */
|
|
74
60
|
tag: {
|
|
75
61
|
type: String,
|
|
76
62
|
default: ""
|
|
77
63
|
},
|
|
78
|
-
/** 兼容性:标签颜色类型 */
|
|
79
64
|
tagType: {
|
|
80
65
|
type: String,
|
|
81
66
|
default: "danger"
|
|
82
67
|
},
|
|
83
|
-
/** 标签组 (支持图片 or 文本标签) */
|
|
84
68
|
badges: {
|
|
85
69
|
type: Array,
|
|
86
70
|
default: () => []
|
|
87
71
|
},
|
|
88
|
-
/** 布局模式 */
|
|
89
72
|
layout: {
|
|
90
73
|
type: String,
|
|
91
74
|
default: "vertical"
|
|
92
75
|
},
|
|
93
|
-
/** 是否开启图片懒加载 */
|
|
94
76
|
lazy: {
|
|
95
77
|
type: Boolean,
|
|
96
78
|
default: true
|
|
97
79
|
},
|
|
98
|
-
/** 库存进度(0-100) */
|
|
99
80
|
stockProgress: {
|
|
100
81
|
type: Number,
|
|
101
82
|
default: 0
|
|
102
83
|
},
|
|
103
|
-
/** 库存进度条颜色 (支持渐变色) */
|
|
104
84
|
stockColor: {
|
|
105
85
|
type: String,
|
|
106
86
|
default: ""
|
|
107
87
|
},
|
|
108
|
-
/** 库存文字提示 */
|
|
109
88
|
stockText: {
|
|
110
89
|
type: String,
|
|
111
90
|
default: ""
|
|
112
91
|
},
|
|
113
|
-
/** 是否显示边框 */
|
|
114
92
|
border: {
|
|
115
93
|
type: Boolean,
|
|
116
94
|
default: true
|
|
117
95
|
},
|
|
118
|
-
/** 是否开启悬浮阴影 */
|
|
119
96
|
shadow: {
|
|
120
97
|
type: Boolean,
|
|
121
98
|
default: true
|
|
122
99
|
},
|
|
123
|
-
/** 是否只读 (隐藏所有操作按钮) */
|
|
124
100
|
readonly: {
|
|
125
101
|
type: Boolean,
|
|
126
102
|
default: false
|
|
127
103
|
},
|
|
128
|
-
/** 操作按钮文本 */
|
|
129
104
|
actionText: {
|
|
130
105
|
type: String,
|
|
131
106
|
default: ""
|
|
132
107
|
},
|
|
133
|
-
/** 按钮加载态 */
|
|
134
108
|
actionLoading: {
|
|
135
109
|
type: Boolean,
|
|
136
110
|
default: false
|
|
137
111
|
},
|
|
138
|
-
/** 是否已售罄/禁用 */
|
|
139
112
|
soldOut: {
|
|
140
113
|
type: Boolean,
|
|
141
114
|
default: false
|
|
142
115
|
},
|
|
143
|
-
/** 是否开启曝光监听 */
|
|
144
116
|
exposure: {
|
|
145
117
|
type: Boolean,
|
|
146
118
|
default: false
|
|
147
119
|
},
|
|
148
|
-
/** 曝光上报阈值 (0-1) */
|
|
149
120
|
exposureThreshold: {
|
|
150
121
|
type: Number,
|
|
151
122
|
default: 0.5
|
|
152
123
|
},
|
|
153
|
-
/** 曝光成功后是否只上报一次 */
|
|
154
124
|
exposureOnce: {
|
|
155
125
|
type: Boolean,
|
|
156
126
|
default: true
|
|
157
127
|
},
|
|
158
|
-
/** 标题显示行数限制 (多行截断) */
|
|
159
128
|
titleLines: {
|
|
160
129
|
type: Number,
|
|
161
130
|
default: 2
|
|
162
131
|
},
|
|
163
|
-
/** 描述显示行数限制 (多行截断) */
|
|
164
132
|
descriptionLines: {
|
|
165
133
|
type: Number,
|
|
166
134
|
default: 1
|
|
167
135
|
},
|
|
168
|
-
/** 标签显示位置 */
|
|
169
136
|
badgePosition: {
|
|
170
137
|
type: String,
|
|
171
138
|
default: "top"
|
|
172
139
|
},
|
|
173
|
-
/** 主题覆盖 */
|
|
174
140
|
themeOverrides: {
|
|
175
141
|
type: Object,
|
|
176
142
|
default: () => ({})
|
|
@@ -179,6 +145,5 @@ const productCardProps = exports.productCardProps = {
|
|
|
179
145
|
const productCardEmits = exports.productCardEmits = {
|
|
180
146
|
click: e => e instanceof MouseEvent,
|
|
181
147
|
action: e => e instanceof MouseEvent,
|
|
182
|
-
/** 曝光上报事件 */
|
|
183
148
|
expose: () => true
|
|
184
149
|
};
|