@yh-ui/components 0.1.17 → 0.1.21
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/README.md +193 -6
- package/dist/affix/index.d.ts +202 -1
- package/dist/affix/src/affix.vue.d.ts +55 -6
- package/dist/ai-action-group/__tests__/ai-action-group.test.cjs +86 -0
- package/dist/ai-action-group/__tests__/ai-action-group.test.mjs +53 -0
- package/dist/ai-action-group/index.d.ts +110 -1
- package/dist/ai-action-group/src/ai-action-group.vue +8 -8
- package/dist/ai-action-group/src/ai-action-group.vue.d.ts +29 -4
- package/dist/ai-agent-card/__tests__/ai-agent-card.test.cjs +135 -0
- package/dist/ai-agent-card/__tests__/ai-agent-card.test.mjs +69 -0
- package/dist/ai-agent-card/index.d.ts +176 -1
- package/dist/ai-agent-card/src/ai-agent-card.vue +4 -4
- package/dist/ai-agent-card/src/ai-agent-card.vue.d.ts +50 -7
- package/dist/ai-artifacts/index.d.ts +276 -1
- package/dist/ai-artifacts/src/ai-artifacts.cjs +60 -0
- package/dist/ai-artifacts/src/ai-artifacts.css +5 -1
- package/dist/ai-artifacts/src/ai-artifacts.d.ts +99 -18
- package/dist/ai-artifacts/src/ai-artifacts.mjs +60 -0
- package/dist/ai-artifacts/src/ai-artifacts.vue +177 -28
- package/dist/ai-artifacts/src/ai-artifacts.vue.d.ts +149 -36
- package/dist/ai-attachments/__tests__/ai-attachments.ssr.test.cjs +50 -0
- package/dist/ai-attachments/__tests__/ai-attachments.ssr.test.mjs +33 -0
- package/dist/ai-attachments/__tests__/ai-attachments.test.cjs +113 -0
- package/dist/ai-attachments/__tests__/ai-attachments.test.mjs +81 -0
- package/dist/ai-attachments/index.cjs +26 -0
- package/dist/ai-attachments/index.d.ts +363 -0
- package/dist/ai-attachments/index.mjs +5 -0
- package/dist/ai-attachments/src/ai-attachments.cjs +96 -0
- package/dist/ai-attachments/src/ai-attachments.css +685 -0
- package/dist/ai-attachments/src/ai-attachments.d.ts +127 -0
- package/dist/ai-attachments/src/ai-attachments.mjs +90 -0
- package/dist/ai-attachments/src/ai-attachments.vue +1012 -0
- package/dist/ai-attachments/src/ai-attachments.vue.d.ts +218 -0
- package/dist/ai-bubble/__tests__/ai-bubble.ssr.test.cjs +8 -0
- package/dist/ai-bubble/__tests__/ai-bubble.ssr.test.mjs +8 -0
- package/dist/ai-bubble/__tests__/ai-bubble.test.cjs +442 -45
- package/dist/ai-bubble/__tests__/ai-bubble.test.mjs +288 -18
- package/dist/ai-bubble/index.d.ts +442 -1
- package/dist/ai-bubble/src/ai-bubble.cjs +130 -0
- package/dist/ai-bubble/src/ai-bubble.css +104 -0
- package/dist/ai-bubble/src/ai-bubble.d.ts +369 -30
- package/dist/ai-bubble/src/ai-bubble.mjs +172 -0
- package/dist/ai-bubble/src/ai-bubble.vue +1228 -54
- package/dist/ai-bubble/src/ai-bubble.vue.d.ts +235 -72
- package/dist/ai-bubble-list/__tests__/ai-bubble-list.ssr.test.cjs +51 -0
- package/dist/ai-bubble-list/__tests__/ai-bubble-list.ssr.test.mjs +51 -0
- package/dist/ai-bubble-list/__tests__/ai-bubble-list.test.cjs +138 -0
- package/dist/ai-bubble-list/__tests__/ai-bubble-list.test.mjs +112 -0
- package/dist/ai-bubble-list/index.cjs +26 -0
- package/dist/ai-bubble-list/index.d.ts +156 -0
- package/dist/ai-bubble-list/index.mjs +5 -0
- package/dist/ai-bubble-list/src/ai-bubble-list.cjs +57 -0
- package/dist/ai-bubble-list/src/ai-bubble-list.css +490 -0
- package/dist/ai-bubble-list/src/ai-bubble-list.d.ts +58 -0
- package/dist/ai-bubble-list/src/ai-bubble-list.mjs +51 -0
- package/dist/ai-bubble-list/src/ai-bubble-list.vue +594 -0
- package/dist/ai-bubble-list/src/ai-bubble-list.vue.d.ts +93 -0
- package/dist/ai-chat/__tests__/ai-chat.ssr.test.cjs +8 -0
- package/dist/ai-chat/__tests__/ai-chat.ssr.test.mjs +8 -0
- package/dist/ai-chat/__tests__/ai-chat.test.cjs +8 -0
- package/dist/ai-chat/__tests__/ai-chat.test.mjs +8 -0
- package/dist/ai-chat/index.d.ts +164 -1
- package/dist/ai-chat/src/ai-chat.cjs +21 -0
- package/dist/ai-chat/src/ai-chat.css +25 -0
- package/dist/ai-chat/src/ai-chat.d.ts +21 -0
- package/dist/ai-chat/src/ai-chat.mjs +21 -0
- package/dist/ai-chat/src/ai-chat.vue +93 -16
- package/dist/ai-chat/src/ai-chat.vue.d.ts +64 -7
- package/dist/ai-code-block/__tests__/ai-code-block.ssr.test.cjs +9 -0
- package/dist/ai-code-block/__tests__/ai-code-block.ssr.test.mjs +9 -0
- package/dist/ai-code-block/index.d.ts +220 -1
- package/dist/ai-code-block/src/ai-code-block.cjs +17 -1
- package/dist/ai-code-block/src/ai-code-block.css +23 -0
- package/dist/ai-code-block/src/ai-code-block.d.ts +18 -1
- package/dist/ai-code-block/src/ai-code-block.mjs +17 -1
- package/dist/ai-code-block/src/ai-code-block.vue +132 -27
- package/dist/ai-code-block/src/ai-code-block.vue.d.ts +72 -6
- package/dist/ai-code-editor/__tests__/ai-code-editor.ssr.test.cjs +46 -0
- package/dist/ai-code-editor/__tests__/ai-code-editor.ssr.test.mjs +39 -0
- package/dist/ai-code-editor/__tests__/ai-code-editor.test.cjs +90 -0
- package/dist/ai-code-editor/__tests__/ai-code-editor.test.mjs +78 -0
- package/dist/ai-code-editor/index.cjs +26 -0
- package/dist/ai-code-editor/index.d.ts +135 -0
- package/dist/ai-code-editor/index.mjs +5 -0
- package/dist/ai-code-editor/src/ai-code-editor.cjs +100 -0
- package/dist/ai-code-editor/src/ai-code-editor.css +473 -0
- package/dist/ai-code-editor/src/ai-code-editor.d.ts +104 -0
- package/dist/ai-code-editor/src/ai-code-editor.mjs +94 -0
- package/dist/ai-code-editor/src/ai-code-editor.vue +673 -0
- package/dist/ai-code-editor/src/ai-code-editor.vue.d.ts +132 -0
- package/dist/ai-code-runner/__tests__/ai-code-runner.ssr.test.cjs +28 -0
- package/dist/ai-code-runner/__tests__/ai-code-runner.ssr.test.mjs +26 -0
- package/dist/ai-code-runner/__tests__/ai-code-runner.test.cjs +69 -0
- package/dist/ai-code-runner/__tests__/ai-code-runner.test.mjs +66 -0
- package/dist/ai-code-runner/index.cjs +26 -0
- package/dist/ai-code-runner/index.d.ts +70 -0
- package/dist/ai-code-runner/index.mjs +5 -0
- package/dist/ai-code-runner/src/ai-code-runner.cjs +50 -0
- package/dist/ai-code-runner/src/ai-code-runner.css +504 -0
- package/dist/ai-code-runner/src/ai-code-runner.d.ts +55 -0
- package/dist/ai-code-runner/src/ai-code-runner.mjs +44 -0
- package/dist/ai-code-runner/src/ai-code-runner.vue +692 -0
- package/dist/ai-code-runner/src/ai-code-runner.vue.d.ts +67 -0
- package/dist/ai-code-runner/src/webcontainer.cjs +17 -0
- package/dist/ai-code-runner/src/webcontainer.d.ts +4 -0
- package/dist/ai-code-runner/src/webcontainer.mjs +9 -0
- package/dist/ai-conversations/index.d.ts +216 -1
- package/dist/ai-conversations/src/ai-conversations.cjs +29 -0
- package/dist/ai-conversations/src/ai-conversations.css +45 -7
- package/dist/ai-conversations/src/ai-conversations.d.ts +28 -0
- package/dist/ai-conversations/src/ai-conversations.mjs +29 -0
- package/dist/ai-conversations/src/ai-conversations.vue +172 -42
- package/dist/ai-conversations/src/ai-conversations.vue.d.ts +78 -3
- package/dist/ai-editor-sender/index.d.ts +417 -1
- package/dist/ai-editor-sender/src/ai-editor-sender.cjs +92 -1
- package/dist/ai-editor-sender/src/ai-editor-sender.css +96 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.d.ts +144 -29
- package/dist/ai-editor-sender/src/ai-editor-sender.mjs +92 -1
- package/dist/ai-editor-sender/src/ai-editor-sender.vue +309 -3
- package/dist/ai-editor-sender/src/ai-editor-sender.vue.d.ts +221 -50
- package/dist/ai-file-card/__tests__/ai-file-card.ssr.test.cjs +45 -0
- package/dist/ai-file-card/__tests__/ai-file-card.ssr.test.mjs +29 -0
- package/dist/ai-file-card/__tests__/ai-file-card.test.cjs +160 -0
- package/dist/ai-file-card/__tests__/ai-file-card.test.mjs +109 -0
- package/dist/ai-file-card/index.cjs +26 -0
- package/dist/ai-file-card/index.d.ts +231 -0
- package/dist/ai-file-card/index.mjs +5 -0
- package/dist/ai-file-card/src/ai-file-card.cjs +76 -0
- package/dist/ai-file-card/src/ai-file-card.css +757 -0
- package/dist/ai-file-card/src/ai-file-card.d.ts +176 -0
- package/dist/ai-file-card/src/ai-file-card.mjs +70 -0
- package/dist/ai-file-card/src/ai-file-card.vue +1054 -0
- package/dist/ai-file-card/src/ai-file-card.vue.d.ts +135 -0
- package/dist/ai-mention/index.d.ts +368 -14
- package/dist/ai-mention/src/ai-mention.cjs +73 -2
- package/dist/ai-mention/src/ai-mention.css +125 -0
- package/dist/ai-mention/src/ai-mention.d.ts +105 -1
- package/dist/ai-mention/src/ai-mention.mjs +73 -2
- package/dist/ai-mention/src/ai-mention.vue +596 -10
- package/dist/ai-mention/src/ai-mention.vue.d.ts +158 -15
- package/dist/ai-mermaid/__tests__/ai-mermaid.ssr.test.cjs +43 -0
- package/dist/ai-mermaid/__tests__/ai-mermaid.ssr.test.mjs +33 -0
- package/dist/ai-mermaid/__tests__/ai-mermaid.test.cjs +113 -0
- package/dist/ai-mermaid/__tests__/ai-mermaid.test.mjs +92 -0
- package/dist/ai-mermaid/index.cjs +26 -0
- package/dist/ai-mermaid/index.d.ts +228 -0
- package/dist/ai-mermaid/index.mjs +5 -0
- package/dist/ai-mermaid/src/ai-mermaid.cjs +72 -0
- package/dist/ai-mermaid/src/ai-mermaid.css +601 -0
- package/dist/ai-mermaid/src/ai-mermaid.d.ts +113 -0
- package/dist/ai-mermaid/src/ai-mermaid.mjs +66 -0
- package/dist/ai-mermaid/src/ai-mermaid.vue +841 -0
- package/dist/ai-mermaid/src/ai-mermaid.vue.d.ts +133 -0
- package/dist/ai-prompts/index.d.ts +104 -1
- package/dist/ai-prompts/src/ai-prompts.vue.d.ts +27 -6
- package/dist/ai-provider/index.d.ts +139 -1
- package/dist/ai-provider/src/ai-provider.cjs +61 -1
- package/dist/ai-provider/src/ai-provider.d.ts +116 -6
- package/dist/ai-provider/src/ai-provider.mjs +57 -0
- package/dist/ai-provider/src/ai-provider.vue +58 -3
- package/dist/ai-provider/src/ai-provider.vue.d.ts +44 -7
- package/dist/ai-sender/__tests__/ai-sender.test.cjs +118 -2
- package/dist/ai-sender/__tests__/ai-sender.test.mjs +68 -1
- package/dist/ai-sender/index.d.ts +236 -1
- package/dist/ai-sender/src/ai-sender.cjs +5 -1
- package/dist/ai-sender/src/ai-sender.css +38 -0
- package/dist/ai-sender/src/ai-sender.d.ts +4 -0
- package/dist/ai-sender/src/ai-sender.mjs +5 -1
- package/dist/ai-sender/src/ai-sender.vue +86 -2
- package/dist/ai-sender/src/ai-sender.vue.d.ts +77 -15
- package/dist/ai-sources/__tests__/ai-sources.test.cjs +112 -5
- package/dist/ai-sources/__tests__/ai-sources.test.mjs +78 -7
- package/dist/ai-sources/index.d.ts +136 -1
- package/dist/ai-sources/src/ai-sources.css +24 -0
- package/dist/ai-sources/src/ai-sources.d.ts +3 -0
- package/dist/ai-sources/src/ai-sources.vue +88 -21
- package/dist/ai-sources/src/ai-sources.vue.d.ts +38 -5
- package/dist/ai-thinking/index.d.ts +152 -1
- package/dist/ai-thinking/src/ai-thinking.cjs +28 -0
- package/dist/ai-thinking/src/ai-thinking.d.ts +28 -0
- package/dist/ai-thinking/src/ai-thinking.mjs +28 -0
- package/dist/ai-thinking/src/ai-thinking.vue +9 -6
- package/dist/ai-thinking/src/ai-thinking.vue.d.ts +58 -2
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.ssr.test.cjs +6 -1
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.ssr.test.mjs +4 -1
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.test.cjs +141 -1
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.test.mjs +104 -1
- package/dist/ai-thought-chain/index.d.ts +286 -1
- package/dist/ai-thought-chain/src/ai-thought-chain.cjs +61 -1
- package/dist/ai-thought-chain/src/ai-thought-chain.css +106 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.d.ts +68 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.mjs +61 -1
- package/dist/ai-thought-chain/src/ai-thought-chain.vue +285 -20
- package/dist/ai-thought-chain/src/ai-thought-chain.vue.d.ts +95 -11
- package/dist/ai-voice-trigger/index.d.ts +155 -1
- package/dist/ai-voice-trigger/src/ai-voice-trigger.vue +2 -2
- package/dist/ai-voice-trigger/src/ai-voice-trigger.vue.d.ts +43 -4
- package/dist/ai-welcome/index.d.ts +131 -1
- package/dist/ai-welcome/src/ai-welcome.vue.d.ts +32 -3
- package/dist/alert/index.d.ts +289 -1
- package/dist/alert/src/alert.vue.d.ts +81 -10
- package/dist/autocomplete/index.d.ts +134 -1
- package/dist/autocomplete/src/autocomplete.vue.d.ts +15 -12
- package/dist/avatar/index.d.ts +9 -6
- package/dist/avatar/src/avatar.d.ts +4 -0
- package/dist/avatar/src/avatar.vue +2 -0
- package/dist/avatar/src/avatar.vue.d.ts +2 -1
- package/dist/back-top/index.d.ts +153 -1
- package/dist/back-top/src/back-top.vue.d.ts +42 -5
- package/dist/badge/index.d.ts +40 -1
- package/dist/badge/src/badge.vue.d.ts +1 -1
- package/dist/breadcrumb/index.d.ts +177 -2
- package/dist/breadcrumb/src/breadcrumb-item.vue.d.ts +1 -1
- package/dist/button/index.d.ts +33 -33
- package/dist/button/src/button.css +11 -6
- package/dist/button/src/button.vue +11 -6
- package/dist/button/src/button.vue.d.ts +6 -6
- package/dist/calendar/index.d.ts +1653 -1
- package/dist/calendar/src/calendar.vue +12 -11
- package/dist/calendar/src/calendar.vue.d.ts +241 -121
- package/dist/card/index.d.ts +44 -1
- package/dist/card/src/card.vue.d.ts +2 -2
- package/dist/carousel/__tests__/carousel.ssr.test.cjs +27 -0
- package/dist/carousel/__tests__/carousel.ssr.test.mjs +27 -0
- package/dist/carousel/__tests__/carousel.test.cjs +115 -0
- package/dist/carousel/__tests__/carousel.test.mjs +98 -0
- package/dist/carousel/index.cjs +43 -0
- package/dist/carousel/index.d.ts +456 -0
- package/dist/carousel/index.mjs +10 -0
- package/dist/carousel/src/carousel-item.cjs +10 -0
- package/dist/carousel/src/carousel-item.d.ts +9 -0
- package/dist/carousel/src/carousel-item.mjs +4 -0
- package/dist/carousel/src/carousel-item.vue +277 -0
- package/dist/{menu/src/menu-item-group.d.vue.ts → carousel/src/carousel-item.vue.d.ts} +4 -12
- package/dist/carousel/src/carousel.cjs +118 -0
- package/dist/carousel/src/carousel.css +705 -0
- package/dist/carousel/src/carousel.d.ts +137 -0
- package/dist/carousel/src/carousel.mjs +112 -0
- package/dist/carousel/src/carousel.vue +1070 -0
- package/dist/carousel/src/carousel.vue.d.ts +235 -0
- package/dist/cascader/index.d.ts +211 -2
- package/dist/cascader/src/cascader-panel.vue.d.ts +3 -3
- package/dist/cascader/src/cascader.vue.d.ts +14 -14
- package/dist/category-nav/__tests__/category-nav.ssr.test.cjs +35 -0
- package/dist/category-nav/__tests__/category-nav.ssr.test.mjs +21 -0
- package/dist/category-nav/__tests__/category-nav.test.cjs +53 -0
- package/dist/category-nav/__tests__/category-nav.test.mjs +33 -0
- package/dist/category-nav/index.cjs +26 -0
- package/dist/category-nav/index.d.ts +225 -0
- package/dist/category-nav/index.mjs +5 -0
- package/dist/category-nav/src/category-nav.cjs +66 -0
- package/dist/category-nav/src/category-nav.css +663 -0
- package/dist/category-nav/src/category-nav.d.ts +86 -0
- package/dist/category-nav/src/category-nav.mjs +60 -0
- package/dist/category-nav/src/category-nav.vue +966 -0
- package/dist/category-nav/src/category-nav.vue.d.ts +137 -0
- package/dist/checkbox/index.d.ts +44 -44
- package/dist/checkbox/src/checkbox-group.vue.d.ts +1 -1
- package/dist/checkbox/src/checkbox.vue.d.ts +2 -2
- package/dist/col/index.d.ts +338 -1
- package/dist/col/src/col.vue.d.ts +4 -4
- package/dist/color-picker/index.d.ts +84 -1
- package/dist/color-picker/src/color-picker.vue.d.ts +45 -4
- package/dist/component.d.ts +56 -1
- package/dist/config-provider/index.d.ts +2 -2
- package/dist/config-provider/src/config-provider.d.ts +2 -2
- package/dist/container/index.d.ts +103 -5
- package/dist/countdown/index.d.ts +419 -1
- package/dist/countdown/src/countdown.vue.d.ts +121 -16
- package/dist/coupon-card/__tests__/coupon-card.ssr.test.cjs +21 -0
- package/dist/coupon-card/__tests__/coupon-card.ssr.test.mjs +18 -0
- package/dist/coupon-card/__tests__/coupon-card.test.cjs +67 -0
- package/dist/coupon-card/__tests__/coupon-card.test.mjs +64 -0
- package/dist/coupon-card/index.cjs +26 -0
- package/dist/coupon-card/index.d.ts +346 -0
- package/dist/coupon-card/index.mjs +5 -0
- package/dist/coupon-card/src/coupon-card.cjs +108 -0
- package/dist/coupon-card/src/coupon-card.css +786 -0
- package/dist/coupon-card/src/coupon-card.d.ts +106 -0
- package/dist/coupon-card/src/coupon-card.mjs +102 -0
- package/dist/coupon-card/src/coupon-card.vue +963 -0
- package/dist/coupon-card/src/coupon-card.vue.d.ts +206 -0
- package/dist/date-picker/index.d.ts +606 -1
- package/dist/date-picker/src/date-picker.vue +3 -1
- package/dist/date-picker/src/date-picker.vue.d.ts +29 -27
- package/dist/date-picker/src/date-table.vue.d.ts +2 -1
- package/dist/descriptions/index.d.ts +492 -2
- package/dist/descriptions/src/description-item.vue.d.ts +5 -5
- package/dist/descriptions/src/descriptions.vue.d.ts +4 -4
- package/dist/dialog/index.d.ts +665 -2
- package/dist/dialog/src/dialog.vue +3 -2
- package/dist/dialog/src/dialog.vue.d.ts +200 -22
- package/dist/divider/index.d.ts +113 -1
- package/dist/divider/src/divider.vue.d.ts +3 -3
- package/dist/drawer/index.d.ts +391 -13
- package/dist/drawer/src/drawer.vue.d.ts +120 -10
- package/dist/dropdown/index.d.ts +627 -3
- package/dist/dropdown/src/dropdown-item.vue.d.ts +2 -2
- package/dist/dropdown/src/dropdown.vue.d.ts +135 -18
- package/dist/empty/index.d.ts +27 -1
- package/dist/env.d.ts +6 -0
- package/dist/filter-bar/__tests__/filter-bar.ssr.test.cjs +29 -0
- package/dist/filter-bar/__tests__/filter-bar.ssr.test.mjs +16 -0
- package/dist/filter-bar/__tests__/filter-bar.test.cjs +51 -0
- package/dist/filter-bar/__tests__/filter-bar.test.mjs +29 -0
- package/dist/filter-bar/index.cjs +26 -0
- package/dist/filter-bar/index.d.ts +287 -0
- package/dist/filter-bar/index.mjs +5 -0
- package/dist/filter-bar/src/filter-bar.cjs +90 -0
- package/dist/filter-bar/src/filter-bar.css +761 -0
- package/dist/filter-bar/src/filter-bar.d.ts +124 -0
- package/dist/filter-bar/src/filter-bar.mjs +81 -0
- package/dist/filter-bar/src/filter-bar.vue +1087 -0
- package/dist/filter-bar/src/filter-bar.vue.d.ts +170 -0
- package/dist/form/index.d.ts +690 -3
- package/dist/form/src/form-item.vue.d.ts +7 -7
- package/dist/form/src/form-schema.vue.d.ts +32 -26
- package/dist/form/src/form.vue.d.ts +3 -3
- package/dist/gantt-chart/__tests__/debug_ssr.test.cjs +51 -0
- package/dist/gantt-chart/__tests__/debug_ssr.test.mjs +37 -0
- package/dist/gantt-chart/__tests__/gantt-chart.ssr.test.cjs +95 -0
- package/dist/gantt-chart/__tests__/gantt-chart.ssr.test.mjs +94 -0
- package/dist/gantt-chart/__tests__/gantt-chart.test.cjs +86 -0
- package/dist/gantt-chart/__tests__/gantt-chart.test.mjs +79 -0
- package/dist/gantt-chart/index.cjs +26 -0
- package/dist/gantt-chart/index.d.ts +115 -0
- package/dist/gantt-chart/index.mjs +5 -0
- package/dist/gantt-chart/src/gantt-chart.cjs +1 -0
- package/dist/gantt-chart/src/gantt-chart.css +853 -0
- package/dist/gantt-chart/src/gantt-chart.d.ts +112 -0
- package/dist/gantt-chart/src/gantt-chart.mjs +0 -0
- package/dist/gantt-chart/src/gantt-chart.vue +1583 -0
- package/dist/gantt-chart/src/gantt-chart.vue.d.ts +51 -0
- package/dist/grid/index.d.ts +67 -2
- package/dist/grid/src/grid-item.vue.d.ts +1 -1
- package/dist/grid/src/grid.vue.d.ts +1 -1
- package/dist/icon/index.d.ts +15 -15
- package/dist/icon/src/icon.vue.d.ts +5 -5
- package/dist/icon/src/icons/index.cjs +39 -2
- package/dist/icon/src/icons/index.d.ts +7 -0
- package/dist/icon/src/icons/index.mjs +44 -1
- package/dist/image/index.d.ts +72 -21
- package/dist/image/src/image-viewer.vue.d.ts +55 -4
- package/dist/image/src/image.vue.d.ts +5 -5
- package/dist/image-magnifier/__tests__/image-magnifier.ssr.test.cjs +54 -0
- package/dist/image-magnifier/__tests__/image-magnifier.ssr.test.mjs +35 -0
- package/dist/image-magnifier/__tests__/image-magnifier.test.cjs +257 -0
- package/dist/image-magnifier/__tests__/image-magnifier.test.mjs +177 -0
- package/dist/image-magnifier/index.cjs +26 -0
- package/dist/image-magnifier/index.d.ts +468 -0
- package/dist/image-magnifier/index.mjs +5 -0
- package/dist/image-magnifier/src/image-magnifier.cjs +142 -0
- package/dist/image-magnifier/src/image-magnifier.css +754 -0
- package/dist/image-magnifier/src/image-magnifier.d.ts +146 -0
- package/dist/image-magnifier/src/image-magnifier.mjs +136 -0
- package/dist/image-magnifier/src/image-magnifier.vue +1134 -0
- package/dist/image-magnifier/src/image-magnifier.vue.d.ts +271 -0
- package/dist/index.cjs +229 -1
- package/dist/index.d.ts +19 -0
- package/dist/index.mjs +59 -1
- package/dist/infinite-scroll/index.d.ts +270 -1
- package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +71 -6
- package/dist/input/index.d.ts +51 -51
- package/dist/input/src/input.vue.d.ts +16 -16
- package/dist/input-number/index.d.ts +33 -33
- package/dist/input-number/src/input-number.vue.d.ts +9 -9
- package/dist/input-tag/index.d.ts +151 -1
- package/dist/input-tag/src/input-tag.vue.d.ts +22 -22
- package/dist/loading/index.d.ts +1 -1
- package/dist/lucky-draw/__tests__/lucky-draw.ssr.test.cjs +33 -0
- package/dist/lucky-draw/__tests__/lucky-draw.ssr.test.mjs +31 -0
- package/dist/lucky-draw/__tests__/lucky-draw.test.cjs +56 -0
- package/dist/lucky-draw/__tests__/lucky-draw.test.mjs +48 -0
- package/dist/lucky-draw/index.cjs +26 -0
- package/dist/lucky-draw/index.d.ts +209 -0
- package/dist/lucky-draw/index.mjs +5 -0
- package/dist/lucky-draw/src/lucky-draw.cjs +63 -0
- package/dist/lucky-draw/src/lucky-draw.css +683 -0
- package/dist/lucky-draw/src/lucky-draw.d.ts +69 -0
- package/dist/lucky-draw/src/lucky-draw.mjs +57 -0
- package/dist/lucky-draw/src/lucky-draw.vue +865 -0
- package/dist/lucky-draw/src/lucky-draw.vue.d.ts +123 -0
- package/dist/marquee/index.d.ts +305 -1
- package/dist/marquee/src/marquee.vue.d.ts +80 -6
- package/dist/mention/index.d.ts +75 -75
- package/dist/mention/src/mention.vue.d.ts +26 -26
- package/dist/menu/index.d.ts +890 -4
- package/dist/menu/src/menu-item.vue.d.ts +1 -1
- package/dist/menu/src/menu-recursive-item.vue +30 -11
- package/dist/menu/src/menu.cjs +1 -1
- package/dist/menu/src/menu.d.ts +3 -3
- package/dist/menu/src/menu.mjs +1 -1
- package/dist/menu/src/menu.vue +1 -1
- package/dist/menu/src/menu.vue.d.ts +179 -16
- package/dist/menu/src/sub-menu.vue +10 -3
- package/dist/menu/src/sub-menu.vue.d.ts +1 -1
- package/dist/message/index.d.ts +1 -1
- package/dist/message/src/message.vue.d.ts +2 -2
- package/dist/message-box/index.cjs +1 -1
- package/dist/message-box/index.d.ts +1 -1
- package/dist/message-box/index.mjs +1 -1
- package/dist/notification/index.d.ts +1 -1
- package/dist/notification/src/notification.vue.d.ts +2 -2
- package/dist/pagination/index.d.ts +15 -15
- package/dist/pagination/src/pagination.vue.d.ts +5 -5
- package/dist/popconfirm/index.d.ts +433 -1
- package/dist/popconfirm/src/popconfirm.cjs +1 -1
- package/dist/popconfirm/src/popconfirm.d.ts +2 -2
- package/dist/popconfirm/src/popconfirm.mjs +1 -1
- package/dist/popconfirm/src/popconfirm.vue.d.ts +125 -16
- package/dist/popover/index.d.ts +392 -1
- package/dist/popover/src/popover.cjs +1 -1
- package/dist/popover/src/popover.d.ts +2 -2
- package/dist/popover/src/popover.mjs +1 -1
- package/dist/popover/src/popover.vue.d.ts +113 -16
- package/dist/price/__tests__/price.ssr.test.cjs +20 -0
- package/dist/price/__tests__/price.ssr.test.mjs +19 -0
- package/dist/price/__tests__/price.test.cjs +45 -0
- package/dist/price/__tests__/price.test.mjs +42 -0
- package/dist/price/index.cjs +26 -0
- package/dist/price/index.d.ts +369 -0
- package/dist/price/index.mjs +5 -0
- package/dist/price/src/price.cjs +118 -0
- package/dist/price/src/price.css +601 -0
- package/dist/price/src/price.d.ts +114 -0
- package/dist/price/src/price.mjs +112 -0
- package/dist/price/src/price.vue +749 -0
- package/dist/price/src/price.vue.d.ts +223 -0
- package/dist/product-card/__tests__/product-card.ssr.test.cjs +21 -0
- package/dist/product-card/__tests__/product-card.ssr.test.mjs +18 -0
- package/dist/product-card/__tests__/product-card.test.cjs +54 -0
- package/dist/product-card/__tests__/product-card.test.mjs +53 -0
- package/dist/product-card/index.cjs +26 -0
- package/dist/product-card/index.d.ts +563 -0
- package/dist/product-card/index.mjs +5 -0
- package/dist/product-card/src/product-card.cjs +184 -0
- package/dist/product-card/src/product-card.css +856 -0
- package/dist/product-card/src/product-card.d.ts +188 -0
- package/dist/product-card/src/product-card.mjs +178 -0
- package/dist/product-card/src/product-card.vue +1097 -0
- package/dist/product-card/src/product-card.vue.d.ts +333 -0
- package/dist/progress/index.d.ts +321 -1
- package/dist/progress/src/progress.vue.d.ts +9 -9
- package/dist/radio/index.d.ts +147 -3
- package/dist/radio/src/radio-button.vue +19 -5
- package/dist/radio/src/radio-group.vue.d.ts +1 -1
- package/dist/rate/index.d.ts +313 -1
- package/dist/rate/src/rate.vue.d.ts +90 -11
- package/dist/result/index.d.ts +31 -1
- package/dist/row/index.d.ts +98 -1
- package/dist/row/src/row.d.ts +2 -2
- package/dist/row/src/row.vue.d.ts +2 -2
- package/dist/scrollbar/__tests__/scrollbar.ssr.test.cjs +49 -0
- package/dist/scrollbar/__tests__/scrollbar.ssr.test.mjs +54 -0
- package/dist/scrollbar/__tests__/scrollbar.test.cjs +43 -0
- package/dist/scrollbar/__tests__/scrollbar.test.mjs +40 -0
- package/dist/scrollbar/index.cjs +26 -0
- package/dist/scrollbar/index.d.ts +213 -0
- package/dist/scrollbar/index.mjs +5 -0
- package/dist/scrollbar/src/scrollbar.cjs +82 -0
- package/dist/scrollbar/src/scrollbar.css +521 -0
- package/dist/scrollbar/src/scrollbar.d.ts +82 -0
- package/dist/scrollbar/src/scrollbar.mjs +73 -0
- package/dist/scrollbar/src/scrollbar.vue +680 -0
- package/dist/scrollbar/src/scrollbar.vue.d.ts +115 -0
- package/dist/scrollbar/src/thumb.vue +112 -0
- package/dist/scrollbar/src/thumb.vue.d.ts +16 -0
- package/dist/scrollbar/src/util.cjs +42 -0
- package/dist/scrollbar/src/util.d.ts +27 -0
- package/dist/scrollbar/src/util.mjs +35 -0
- package/dist/select/index.d.ts +177 -2
- package/dist/select/src/select.vue.d.ts +18 -18
- package/dist/skeleton/index.d.ts +278 -2
- package/dist/skeleton/src/skeleton-item.vue +12 -1
- package/dist/skeleton/src/skeleton-item.vue.d.ts +2 -2
- package/dist/skeleton/src/skeleton.css +12 -1
- package/dist/skeleton/src/skeleton.vue +12 -1
- package/dist/skeleton/src/skeleton.vue.d.ts +1 -1
- package/dist/sku-selector/__tests__/sku-selector.ssr.test.cjs +32 -0
- package/dist/sku-selector/__tests__/sku-selector.ssr.test.mjs +19 -0
- package/dist/sku-selector/__tests__/sku-selector.test.cjs +64 -0
- package/dist/sku-selector/__tests__/sku-selector.test.mjs +53 -0
- package/dist/sku-selector/index.cjs +26 -0
- package/dist/sku-selector/index.d.ts +228 -0
- package/dist/sku-selector/index.mjs +5 -0
- package/dist/sku-selector/src/sku-selector.cjs +70 -0
- package/dist/sku-selector/src/sku-selector.css +664 -0
- package/dist/sku-selector/src/sku-selector.d.ts +96 -0
- package/dist/sku-selector/src/sku-selector.mjs +64 -0
- package/dist/sku-selector/src/sku-selector.vue +779 -0
- package/dist/sku-selector/src/sku-selector.vue.d.ts +137 -0
- package/dist/slider/index.d.ts +463 -1
- package/dist/slider/src/slider-button.vue.d.ts +4 -4
- package/dist/slider/src/slider.vue.d.ts +133 -13
- package/dist/smart-address/__tests__/smart-address.ssr.test.cjs +28 -0
- package/dist/smart-address/__tests__/smart-address.ssr.test.mjs +25 -0
- package/dist/smart-address/__tests__/smart-address.test.cjs +68 -0
- package/dist/smart-address/__tests__/smart-address.test.mjs +56 -0
- package/dist/smart-address/index.cjs +38 -0
- package/dist/smart-address/index.d.ts +331 -0
- package/dist/smart-address/index.mjs +6 -0
- package/dist/smart-address/src/smart-address.cjs +108 -0
- package/dist/smart-address/src/smart-address.css +616 -0
- package/dist/smart-address/src/smart-address.d.ts +114 -0
- package/dist/smart-address/src/smart-address.mjs +102 -0
- package/dist/smart-address/src/smart-address.vue +966 -0
- package/dist/smart-address/src/smart-address.vue.d.ts +204 -0
- package/dist/smart-address/src/use-address-parser.cjs +137 -0
- package/dist/smart-address/src/use-address-parser.d.ts +28 -0
- package/dist/smart-address/src/use-address-parser.mjs +132 -0
- package/dist/space/index.d.ts +40 -1
- package/dist/space/src/space.vue.d.ts +2 -2
- package/dist/spin/index.d.ts +162 -7
- package/dist/spin/src/spin.vue.d.ts +48 -5
- package/dist/steps/index.d.ts +606 -2
- package/dist/steps/src/step.vue.d.ts +4 -4
- package/dist/steps/src/steps.vue.d.ts +77 -8
- package/dist/submit-bar/__tests__/submit-bar.ssr.test.cjs +21 -0
- package/dist/submit-bar/__tests__/submit-bar.ssr.test.mjs +18 -0
- package/dist/submit-bar/__tests__/submit-bar.test.cjs +50 -0
- package/dist/submit-bar/__tests__/submit-bar.test.mjs +36 -0
- package/dist/submit-bar/index.cjs +26 -0
- package/dist/submit-bar/index.d.ts +297 -0
- package/dist/submit-bar/index.mjs +5 -0
- package/dist/submit-bar/src/submit-bar.cjs +94 -0
- package/dist/submit-bar/src/submit-bar.css +639 -0
- package/dist/submit-bar/src/submit-bar.d.ts +93 -0
- package/dist/submit-bar/src/submit-bar.mjs +88 -0
- package/dist/submit-bar/src/submit-bar.vue +749 -0
- package/dist/submit-bar/src/submit-bar.vue.d.ts +175 -0
- package/dist/switch/index.d.ts +372 -1
- package/dist/switch/src/switch.vue.d.ts +98 -7
- package/dist/table/index.d.ts +1248 -2
- package/dist/table/src/table-column.vue +7 -3
- package/dist/table/src/table-column.vue.d.ts +9 -19
- package/dist/table/src/table.d.ts +3 -3
- package/dist/table/src/table.vue +28 -9
- package/dist/table/src/table.vue.d.ts +346 -34
- package/dist/table/src/use-table-import.cjs +1 -1
- package/dist/table/src/use-table-import.mjs +1 -1
- package/dist/tabs/index.d.ts +583 -2
- package/dist/tabs/src/tab-pane.vue.d.ts +2 -2
- package/dist/tabs/src/tabs.vue.d.ts +98 -8
- package/dist/tag/index.d.ts +86 -1
- package/dist/tag/src/tag.vue.d.ts +8 -8
- package/dist/time-picker/index.d.ts +166 -1
- package/dist/time-picker/src/time-picker.vue.d.ts +19 -19
- package/dist/time-select/index.d.ts +112 -1
- package/dist/time-select/src/time-select.vue.d.ts +12 -12
- package/dist/tooltip/index.d.ts +467 -19
- package/dist/tooltip/src/tooltip.cjs +4 -4
- package/dist/tooltip/src/tooltip.d.ts +5 -5
- package/dist/tooltip/src/tooltip.mjs +4 -4
- package/dist/tooltip/src/tooltip.vue +2 -1
- package/dist/tooltip/src/tooltip.vue.d.ts +146 -21
- package/dist/transfer/src/transfer-panel.vue.d.ts +7 -7
- package/dist/transfer/src/transfer.vue.d.ts +10 -10
- package/dist/tree/index.d.ts +623 -2
- package/dist/tree/src/tree.vue.d.ts +176 -28
- package/dist/tree-select/index.d.ts +435 -1
- package/dist/tree-select/src/tree-select.vue.d.ts +128 -18
- package/dist/typography/index.d.ts +180 -4
- package/dist/typography/src/link.vue.d.ts +1 -1
- package/dist/typography/src/paragraph.vue.d.ts +2 -2
- package/dist/typography/src/text.vue.d.ts +4 -4
- package/dist/typography/src/title.vue.d.ts +3 -3
- package/dist/upload/index.d.ts +391 -1
- package/dist/upload/src/upload.css +0 -441
- package/dist/upload/src/upload.vue +1 -441
- package/dist/upload/src/upload.vue.d.ts +108 -11
- package/dist/waterfall/index.d.ts +57 -1
- package/dist/waterfall/src/waterfall.vue.d.ts +3 -3
- package/dist/watermark/index.d.ts +284 -1
- package/dist/watermark/src/watermark.vue.d.ts +6 -6
- package/package.json +26 -11
- package/dist/__tests__/resolver.test.cjs +0 -56
- package/dist/__tests__/resolver.test.d.ts +0 -1
- package/dist/__tests__/resolver.test.mjs +0 -52
- package/dist/__tests__/utils/ssr.cjs +0 -114
- package/dist/__tests__/utils/ssr.d.ts +0 -29
- package/dist/__tests__/utils/ssr.mjs +0 -119
- package/dist/affix/__tests__/affix.bottom.test.d.ts +0 -1
- package/dist/affix/__tests__/affix.ssr.test.d.ts +0 -1
- package/dist/affix/__tests__/affix.test.d.ts +0 -1
- package/dist/affix/src/affix.d.vue.ts +0 -66
- package/dist/ai-action-group/__tests__/ai-action-group.ssr.test.d.ts +0 -1
- package/dist/ai-action-group/__tests__/ai-action-group.test.d.ts +0 -1
- package/dist/ai-action-group/src/ai-action-group.d.vue.ts +0 -40
- package/dist/ai-agent-card/__tests__/ai-agent-card.ssr.test.d.ts +0 -1
- package/dist/ai-agent-card/__tests__/ai-agent-card.test.d.ts +0 -1
- package/dist/ai-agent-card/src/ai-agent-card.d.vue.ts +0 -62
- package/dist/ai-artifacts/__tests__/ai-artifacts.ssr.test.d.ts +0 -1
- package/dist/ai-artifacts/__tests__/ai-artifacts.test.d.ts +0 -1
- package/dist/ai-artifacts/src/ai-artifacts.d.vue.ts +0 -50
- package/dist/ai-bubble/__tests__/ai-bubble.ssr.test.d.ts +0 -1
- package/dist/ai-bubble/__tests__/ai-bubble.test.d.ts +0 -1
- package/dist/ai-bubble/src/ai-bubble.d.vue.ts +0 -110
- package/dist/ai-chat/__tests__/ai-chat.ssr.test.d.ts +0 -1
- package/dist/ai-chat/__tests__/ai-chat.test.d.ts +0 -1
- package/dist/ai-chat/src/ai-chat.d.vue.ts +0 -43
- package/dist/ai-code-block/__tests__/ai-code-block.ssr.test.d.ts +0 -1
- package/dist/ai-code-block/__tests__/ai-code-block.test.d.ts +0 -1
- package/dist/ai-code-block/src/ai-code-block.d.vue.ts +0 -63
- package/dist/ai-conversations/__tests__/ai-conversations.ssr.test.d.ts +0 -1
- package/dist/ai-conversations/__tests__/ai-conversations.test.d.ts +0 -1
- package/dist/ai-conversations/src/ai-conversations.d.vue.ts +0 -52
- package/dist/ai-editor-sender/__tests__/ai-editor-sender.ssr.test.d.ts +0 -1
- package/dist/ai-editor-sender/__tests__/ai-editor-sender.test.d.ts +0 -1
- package/dist/ai-editor-sender/src/ai-editor-sender.d.vue.ts +0 -70
- package/dist/ai-mention/__tests__/ai-mention.ssr.test.d.ts +0 -1
- package/dist/ai-mention/__tests__/ai-mention.test.d.ts +0 -1
- package/dist/ai-mention/src/ai-mention.d.vue.ts +0 -68
- package/dist/ai-prompts/__tests__/ai-prompts.ssr.test.d.ts +0 -1
- package/dist/ai-prompts/__tests__/ai-prompts.test.d.ts +0 -1
- package/dist/ai-prompts/src/ai-prompts.d.vue.ts +0 -44
- package/dist/ai-provider/__tests__/ai-provider.ssr.test.d.ts +0 -1
- package/dist/ai-provider/__tests__/ai-provider.test.d.ts +0 -1
- package/dist/ai-provider/src/ai-provider.d.vue.ts +0 -48
- package/dist/ai-sender/__tests__/ai-sender.ssr.test.d.ts +0 -1
- package/dist/ai-sender/__tests__/ai-sender.test.d.ts +0 -1
- package/dist/ai-sender/src/ai-sender.d.vue.ts +0 -74
- package/dist/ai-sources/__tests__/ai-sources.ssr.test.d.ts +0 -1
- package/dist/ai-sources/__tests__/ai-sources.test.d.ts +0 -1
- package/dist/ai-sources/src/ai-sources.d.vue.ts +0 -45
- package/dist/ai-thinking/__tests__/ai-thinking.ssr.test.d.ts +0 -1
- package/dist/ai-thinking/__tests__/ai-thinking.test.d.ts +0 -1
- package/dist/ai-thinking/src/ai-thinking.d.vue.ts +0 -33
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.ssr.test.d.ts +0 -1
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.test.d.ts +0 -1
- package/dist/ai-thought-chain/src/ai-thought-chain.d.vue.ts +0 -83
- package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.ssr.test.d.ts +0 -1
- package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.test.d.ts +0 -1
- package/dist/ai-voice-trigger/src/ai-voice-trigger.d.vue.ts +0 -49
- package/dist/ai-welcome/__tests__/ai-welcome.ssr.test.d.ts +0 -1
- package/dist/ai-welcome/__tests__/ai-welcome.test.d.ts +0 -1
- package/dist/ai-welcome/src/ai-welcome.d.vue.ts +0 -51
- package/dist/alert/__tests__/alert.ssr.test.d.ts +0 -1
- package/dist/alert/__tests__/alert.test.d.ts +0 -1
- package/dist/alert/src/alert.d.vue.ts +0 -106
- package/dist/autocomplete/__tests__/autocomplete.ssr.test.d.ts +0 -1
- package/dist/autocomplete/__tests__/autocomplete.test.d.ts +0 -1
- package/dist/autocomplete/src/autocomplete.d.vue.ts +0 -63
- package/dist/avatar/__tests__/avatar.ssr.test.d.ts +0 -1
- package/dist/avatar/__tests__/avatar.test.d.ts +0 -1
- package/dist/avatar/src/avatar.d.vue.ts +0 -21
- package/dist/back-top/__tests__/back-top.ssr.test.d.ts +0 -1
- package/dist/back-top/__tests__/back-top.test.d.ts +0 -1
- package/dist/back-top/src/back-top.d.vue.ts +0 -54
- package/dist/badge/__tests__/badge.ssr.test.d.ts +0 -1
- package/dist/badge/__tests__/badge.test.d.ts +0 -1
- package/dist/badge/src/badge.d.vue.ts +0 -22
- package/dist/breadcrumb/__tests__/breadcrumb.ssr.test.d.ts +0 -1
- package/dist/breadcrumb/__tests__/breadcrumb.test.d.ts +0 -1
- package/dist/breadcrumb/src/breadcrumb-item.d.vue.ts +0 -42
- package/dist/breadcrumb/src/breadcrumb.d.vue.ts +0 -41
- package/dist/button/__tests__/button.ssr.test.d.ts +0 -1
- package/dist/button/__tests__/button.test.d.ts +0 -1
- package/dist/button/src/button.d.vue.ts +0 -44
- package/dist/calendar/__tests__/calendar.ssr.test.d.ts +0 -1
- package/dist/calendar/__tests__/calendar.test.d.ts +0 -1
- package/dist/calendar/src/calendar.d.vue.ts +0 -551
- package/dist/card/__tests__/card.ssr.test.d.ts +0 -1
- package/dist/card/__tests__/card.test.d.ts +0 -1
- package/dist/card/src/card.d.vue.ts +0 -26
- package/dist/cascader/__tests__/cascader-panel.test.d.ts +0 -1
- package/dist/cascader/__tests__/cascader.ssr.test.d.ts +0 -1
- package/dist/cascader/__tests__/cascader.test.d.ts +0 -1
- package/dist/cascader/src/cascader-panel.d.vue.ts +0 -39
- package/dist/cascader/src/cascader.d.vue.ts +0 -63
- package/dist/checkbox/__tests__/checkbox.ssr.test.d.ts +0 -1
- package/dist/checkbox/__tests__/checkbox.test.d.ts +0 -1
- package/dist/checkbox/src/checkbox-group.d.vue.ts +0 -24
- package/dist/checkbox/src/checkbox.d.vue.ts +0 -32
- package/dist/col/__tests__/col.ssr.test.d.ts +0 -1
- package/dist/col/__tests__/col.test.d.ts +0 -1
- package/dist/col/src/col.d.vue.ts +0 -189
- package/dist/color-picker/__tests__/color-picker.ssr.test.d.ts +0 -1
- package/dist/color-picker/__tests__/color-picker.test.d.ts +0 -1
- package/dist/color-picker/src/alpha-slider.d.vue.ts +0 -10
- package/dist/color-picker/src/color-picker.d.vue.ts +0 -55
- package/dist/color-picker/src/hue-slider.d.vue.ts +0 -9
- package/dist/color-picker/src/sv-panel.d.vue.ts +0 -11
- package/dist/config-provider/__tests__/config-provider.ssr.test.d.ts +0 -1
- package/dist/config-provider/__tests__/config-provider.test.d.ts +0 -1
- package/dist/container/__tests__/container.ssr.test.d.ts +0 -1
- package/dist/container/__tests__/container.test.d.ts +0 -1
- package/dist/container/src/aside.d.vue.ts +0 -15
- package/dist/container/src/container.d.vue.ts +0 -13
- package/dist/container/src/footer.d.vue.ts +0 -15
- package/dist/container/src/header.d.vue.ts +0 -15
- package/dist/container/src/main.d.vue.ts +0 -13
- package/dist/countdown/__tests__/countdown.ssr.test.d.ts +0 -1
- package/dist/countdown/__tests__/countdown.test.d.ts +0 -1
- package/dist/countdown/src/countdown.d.vue.ts +0 -146
- package/dist/date-picker/__tests__/date-picker-extended.test.d.ts +0 -1
- package/dist/date-picker/__tests__/date-picker.ssr.test.d.ts +0 -1
- package/dist/date-picker/__tests__/date-picker.test.d.ts +0 -1
- package/dist/date-picker/src/date-picker.d.vue.ts +0 -372
- package/dist/date-picker/src/date-table.d.vue.ts +0 -37
- package/dist/date-picker/src/month-table.d.vue.ts +0 -19
- package/dist/date-picker/src/quarter-table.d.vue.ts +0 -19
- package/dist/date-picker/src/year-table.d.vue.ts +0 -19
- package/dist/descriptions/__tests__/descriptions.ssr.test.d.ts +0 -1
- package/dist/descriptions/__tests__/descriptions.test.d.ts +0 -1
- package/dist/descriptions/src/description-item.d.vue.ts +0 -99
- package/dist/descriptions/src/descriptions.d.vue.ts +0 -106
- package/dist/dialog/__tests__/dialog.functional.test.d.ts +0 -1
- package/dist/dialog/__tests__/dialog.ssr.test.d.ts +0 -1
- package/dist/dialog/__tests__/dialog.test.d.ts +0 -1
- package/dist/dialog/src/dialog.d.vue.ts +0 -217
- package/dist/divider/__tests__/divider.ssr.test.d.ts +0 -1
- package/dist/divider/__tests__/divider.test.d.ts +0 -1
- package/dist/divider/src/divider.d.vue.ts +0 -69
- package/dist/drawer/__tests__/drawer.ssr.test.d.ts +0 -1
- package/dist/drawer/__tests__/drawer.test.d.ts +0 -1
- package/dist/drawer/src/drawer.d.vue.ts +0 -141
- package/dist/dropdown/__tests__/dropdown.ssr.test.d.ts +0 -1
- package/dist/dropdown/__tests__/dropdown.test.d.ts +0 -1
- package/dist/dropdown/src/dropdown-item.d.vue.ts +0 -78
- package/dist/dropdown/src/dropdown-menu.d.vue.ts +0 -24
- package/dist/dropdown/src/dropdown.d.vue.ts +0 -158
- package/dist/empty/__tests__/empty.ssr.test.d.ts +0 -1
- package/dist/empty/__tests__/empty.test.d.ts +0 -1
- package/dist/empty/src/empty.d.vue.ts +0 -19
- package/dist/form/__tests__/form-schema.test.d.ts +0 -1
- package/dist/form/__tests__/form.ssr.test.d.ts +0 -1
- package/dist/form/__tests__/form.test.d.ts +0 -1
- package/dist/form/src/form-item.d.vue.ts +0 -144
- package/dist/form/src/form-schema.d.vue.ts +0 -116
- package/dist/form/src/form.d.vue.ts +0 -158
- package/dist/grid/__tests__/grid.ssr.test.d.ts +0 -1
- package/dist/grid/__tests__/grid.test.d.ts +0 -1
- package/dist/grid/src/grid-item.d.vue.ts +0 -17
- package/dist/grid/src/grid.d.vue.ts +0 -20
- package/dist/icon/__tests__/icon.ssr.test.d.ts +0 -1
- package/dist/icon/__tests__/icon.test.d.ts +0 -1
- package/dist/icon/src/icon.d.vue.ts +0 -87
- package/dist/image/__tests__/image-viewer.test.d.ts +0 -1
- package/dist/image/__tests__/image.ssr.test.d.ts +0 -1
- package/dist/image/__tests__/image.test.d.ts +0 -1
- package/dist/image/src/image-viewer.d.vue.ts +0 -60
- package/dist/image/src/image.d.vue.ts +0 -178
- package/dist/infinite-scroll/__tests__/infinite-scroll.ssr.test.d.ts +0 -1
- package/dist/infinite-scroll/__tests__/infinite-scroll.test.d.ts +0 -1
- package/dist/infinite-scroll/src/infinite-scroll.d.vue.ts +0 -95
- package/dist/input/__tests__/input-utils.test.d.ts +0 -1
- package/dist/input/__tests__/input.ssr.test.d.ts +0 -1
- package/dist/input/__tests__/input.test.d.ts +0 -1
- package/dist/input/src/input.d.vue.ts +0 -76
- package/dist/input-number/__tests__/input-number.hydration.test.d.ts +0 -1
- package/dist/input-number/__tests__/input-number.ssr.test.d.ts +0 -1
- package/dist/input-number/__tests__/input-number.test.d.ts +0 -1
- package/dist/input-number/src/input-number.d.vue.ts +0 -50
- package/dist/input-tag/__tests__/input-tag.ssr.test.d.ts +0 -1
- package/dist/input-tag/__tests__/input-tag.test.d.ts +0 -1
- package/dist/input-tag/src/input-tag.d.vue.ts +0 -71
- package/dist/loading/__tests__/loading.ssr.test.d.ts +0 -1
- package/dist/loading/__tests__/loading.test.d.ts +0 -1
- package/dist/marquee/__tests__/marquee.ssr.test.d.ts +0 -1
- package/dist/marquee/__tests__/marquee.test.d.ts +0 -1
- package/dist/marquee/src/marquee.d.vue.ts +0 -109
- package/dist/mention/__tests__/mention.ssr.test.d.ts +0 -1
- package/dist/mention/__tests__/mention.test.d.ts +0 -1
- package/dist/mention/src/mention.d.vue.ts +0 -84
- package/dist/menu/__tests__/menu.ssr.test.d.ts +0 -1
- package/dist/menu/__tests__/menu.test.d.ts +0 -1
- package/dist/menu/src/menu-item.d.vue.ts +0 -52
- package/dist/menu/src/menu-recursive-item.d.vue.ts +0 -6
- package/dist/menu/src/menu.d.vue.ts +0 -209
- package/dist/menu/src/sub-menu.d.vue.ts +0 -87
- package/dist/message/__tests__/message.ssr.test.d.ts +0 -1
- package/dist/message/__tests__/message.test.d.ts +0 -1
- package/dist/message/src/message.d.vue.ts +0 -32
- package/dist/message-box/__tests__/message-box.ssr.test.d.ts +0 -1
- package/dist/message-box/__tests__/message-box.test.d.ts +0 -1
- package/dist/message-box/src/message-box.d.vue.ts +0 -17
- package/dist/notification/__tests__/notification.ssr.test.d.ts +0 -1
- package/dist/notification/__tests__/notification.test.d.ts +0 -1
- package/dist/notification/src/notification.d.vue.ts +0 -30
- package/dist/pagination/__tests__/pagination.ssr.test.d.ts +0 -1
- package/dist/pagination/__tests__/pagination.test.d.ts +0 -1
- package/dist/pagination/src/pagination.d.vue.ts +0 -149
- package/dist/popconfirm/__tests__/popconfirm.ssr.test.d.ts +0 -1
- package/dist/popconfirm/__tests__/popconfirm.test.d.ts +0 -1
- package/dist/popconfirm/src/popconfirm.d.vue.ts +0 -148
- package/dist/popover/__tests__/popover.ssr.test.d.ts +0 -1
- package/dist/popover/__tests__/popover.test.d.ts +0 -1
- package/dist/popover/src/popover.d.vue.ts +0 -140
- package/dist/progress/__tests__/progress.ssr.test.d.ts +0 -1
- package/dist/progress/__tests__/progress.test.d.ts +0 -1
- package/dist/progress/src/progress.d.vue.ts +0 -199
- package/dist/radio/__tests__/radio-button.test.d.ts +0 -1
- package/dist/radio/__tests__/radio.ssr.test.d.ts +0 -1
- package/dist/radio/__tests__/radio.test.d.ts +0 -1
- package/dist/radio/src/radio-button.d.vue.ts +0 -25
- package/dist/radio/src/radio-group.d.vue.ts +0 -23
- package/dist/radio/src/radio.d.vue.ts +0 -26
- package/dist/rate/__tests__/rate.ssr.test.d.ts +0 -1
- package/dist/rate/__tests__/rate.test.d.ts +0 -1
- package/dist/rate/src/rate.d.vue.ts +0 -109
- package/dist/result/__tests__/result.ssr.test.d.ts +0 -1
- package/dist/result/__tests__/result.test.d.ts +0 -1
- package/dist/result/src/result.d.vue.ts +0 -23
- package/dist/row/__tests__/row.ssr.test.d.ts +0 -1
- package/dist/row/__tests__/row.test.d.ts +0 -1
- package/dist/row/__tests__/row_ts.test.d.ts +0 -1
- package/dist/row/src/row.d.vue.ts +0 -60
- package/dist/select/__tests__/select.perf.test.d.ts +0 -1
- package/dist/select/__tests__/select.ssr.test.d.ts +0 -1
- package/dist/select/__tests__/select.test.d.ts +0 -1
- package/dist/select/src/option.d.vue.ts +0 -15
- package/dist/select/src/select.d.vue.ts +0 -68
- package/dist/skeleton/__tests__/skeleton.ssr.test.d.ts +0 -1
- package/dist/skeleton/__tests__/skeleton.test.d.ts +0 -1
- package/dist/skeleton/src/skeleton-item.d.vue.ts +0 -83
- package/dist/skeleton/src/skeleton.d.vue.ts +0 -89
- package/dist/slider/__tests__/repro.test.d.ts +0 -1
- package/dist/slider/__tests__/slider.ssr.test.d.ts +0 -1
- package/dist/slider/__tests__/slider.test.d.ts +0 -1
- package/dist/slider/src/slider-button.d.vue.ts +0 -43
- package/dist/slider/src/slider.d.vue.ts +0 -160
- package/dist/space/__tests__/space.ssr.test.d.ts +0 -1
- package/dist/space/__tests__/space.test.d.ts +0 -1
- package/dist/space/src/space.d.vue.ts +0 -22
- package/dist/spin/__tests__/spin.ssr.test.d.ts +0 -1
- package/dist/spin/__tests__/spin.test.d.ts +0 -1
- package/dist/spin/src/spin.d.vue.ts +0 -67
- package/dist/steps/__tests__/steps.ssr.test.d.ts +0 -1
- package/dist/steps/__tests__/steps.test.d.ts +0 -1
- package/dist/steps/src/step.d.vue.ts +0 -105
- package/dist/steps/src/steps.d.vue.ts +0 -94
- package/dist/switch/__tests__/switch.ssr.test.d.ts +0 -1
- package/dist/switch/__tests__/switch.test.d.ts +0 -1
- package/dist/switch/src/switch.d.vue.ts +0 -133
- package/dist/table/__tests__/table-advance.test.d.ts +0 -1
- package/dist/table/__tests__/table-interaction.test.d.ts +0 -1
- package/dist/table/__tests__/table-utils.test.d.ts +0 -1
- package/dist/table/__tests__/table.perf.test.d.ts +0 -1
- package/dist/table/__tests__/table.ssr.test.d.ts +0 -5
- package/dist/table/__tests__/table.test.d.ts +0 -1
- package/dist/table/__tests__/use-column-drag.test.d.ts +0 -1
- package/dist/table/__tests__/use-table-export.test.d.ts +0 -1
- package/dist/table/__tests__/use-table-import.test.d.ts +0 -1
- package/dist/table/__tests__/use-table-print.test.d.ts +0 -1
- package/dist/table/__tests__/use-virtual-scroll.test.d.ts +0 -1
- package/dist/table/src/table-column.d.vue.ts +0 -81
- package/dist/table/src/table.d.vue.ts +0 -493
- package/dist/tabs/__tests__/tabs.ssr.test.d.ts +0 -1
- package/dist/tabs/__tests__/tabs.test.d.ts +0 -1
- package/dist/tabs/src/tab-pane.d.vue.ts +0 -77
- package/dist/tabs/src/tabs.d.vue.ts +0 -110
- package/dist/tag/__tests__/tag.ssr.test.d.ts +0 -1
- package/dist/tag/__tests__/tag.test.d.ts +0 -1
- package/dist/tag/src/tag.d.vue.ts +0 -42
- package/dist/time-picker/__tests__/time-picker.ssr.test.d.ts +0 -1
- package/dist/time-picker/__tests__/time-picker.test.d.ts +0 -1
- package/dist/time-picker/__tests__/time-spinner.test.d.ts +0 -1
- package/dist/time-picker/src/time-picker.d.vue.ts +0 -67
- package/dist/time-picker/src/time-spinner.d.vue.ts +0 -46
- package/dist/time-select/__tests__/time-select.ssr.test.d.ts +0 -1
- package/dist/time-select/__tests__/time-select.test.d.ts +0 -5
- package/dist/time-select/src/time-select.d.vue.ts +0 -51
- package/dist/tooltip/__tests__/tooltip.ssr.test.d.ts +0 -1
- package/dist/tooltip/__tests__/tooltip.test.d.ts +0 -1
- package/dist/tooltip/src/tooltip.d.vue.ts +0 -167
- package/dist/transfer/__tests__/transfer.ssr.test.d.ts +0 -1
- package/dist/transfer/__tests__/transfer.test.d.ts +0 -5
- package/dist/transfer/src/transfer-panel.d.vue.ts +0 -45
- package/dist/transfer/src/transfer.d.vue.ts +0 -68
- package/dist/tree/__tests__/tree.perf.test.d.ts +0 -1
- package/dist/tree/__tests__/tree.ssr.test.d.ts +0 -1
- package/dist/tree/__tests__/tree.test.d.ts +0 -1
- package/dist/tree/src/tree-node.d.vue.ts +0 -18
- package/dist/tree/src/tree.d.vue.ts +0 -228
- package/dist/tree-select/__tests__/tree-select.ssr.test.d.ts +0 -1
- package/dist/tree-select/__tests__/tree-select.test.d.ts +0 -1
- package/dist/tree-select/src/tree-select.d.vue.ts +0 -141
- package/dist/typography/__tests__/typography.ssr.test.d.ts +0 -1
- package/dist/typography/__tests__/typography.test.d.ts +0 -1
- package/dist/typography/src/link.d.vue.ts +0 -21
- package/dist/typography/src/paragraph.d.vue.ts +0 -22
- package/dist/typography/src/text.d.vue.ts +0 -29
- package/dist/typography/src/title.d.vue.ts +0 -26
- package/dist/upload/__tests__/upload.ssr.test.d.ts +0 -1
- package/dist/upload/__tests__/upload.test.d.ts +0 -1
- package/dist/upload/src/upload.d.vue.ts +0 -133
- package/dist/waterfall/__tests__/waterfall.ssr.test.d.ts +0 -1
- package/dist/waterfall/__tests__/waterfall.test.d.ts +0 -1
- package/dist/waterfall/src/waterfall.d.vue.ts +0 -56
- package/dist/watermark/__tests__/watermark.ssr.test.d.ts +0 -1
- package/dist/watermark/__tests__/watermark.test.d.ts +0 -1
- package/dist/watermark/src/watermark.d.vue.ts +0 -167
package/dist/popover/index.d.ts
CHANGED
|
@@ -1,5 +1,396 @@
|
|
|
1
1
|
import Popover from './src/popover.vue';
|
|
2
|
-
export declare const YhPopover:
|
|
2
|
+
export declare const YhPopover: import("@yh-ui/utils").SFCWithInstall<{
|
|
3
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
4
|
+
readonly title: StringConstructor;
|
|
5
|
+
readonly description: StringConstructor;
|
|
6
|
+
readonly icon: StringConstructor;
|
|
7
|
+
readonly iconColor: StringConstructor;
|
|
8
|
+
readonly content: StringConstructor;
|
|
9
|
+
readonly placement: {
|
|
10
|
+
readonly type: import("vue").PropType<import("@floating-ui/utils").Placement>;
|
|
11
|
+
readonly default: "bottom";
|
|
12
|
+
};
|
|
13
|
+
readonly trigger: {
|
|
14
|
+
readonly type: import("vue").PropType<import("./index.js").PopoverTrigger | import("./index.js").PopoverTrigger[]>;
|
|
15
|
+
readonly default: "click";
|
|
16
|
+
};
|
|
17
|
+
readonly visible: {
|
|
18
|
+
readonly type: import("vue").PropType<boolean | null>;
|
|
19
|
+
readonly default: null;
|
|
20
|
+
};
|
|
21
|
+
readonly effect: {
|
|
22
|
+
readonly type: import("vue").PropType<"light" | "dark" | string>;
|
|
23
|
+
readonly default: "light";
|
|
24
|
+
};
|
|
25
|
+
readonly disabled: {
|
|
26
|
+
readonly type: BooleanConstructor;
|
|
27
|
+
readonly default: false;
|
|
28
|
+
};
|
|
29
|
+
readonly showArrow: {
|
|
30
|
+
readonly type: BooleanConstructor;
|
|
31
|
+
readonly default: true;
|
|
32
|
+
};
|
|
33
|
+
readonly showAfter: {
|
|
34
|
+
readonly type: NumberConstructor;
|
|
35
|
+
readonly default: 0;
|
|
36
|
+
};
|
|
37
|
+
readonly hideAfter: {
|
|
38
|
+
readonly type: NumberConstructor;
|
|
39
|
+
readonly default: 100;
|
|
40
|
+
};
|
|
41
|
+
readonly offset: {
|
|
42
|
+
readonly type: import("vue").PropType<[number, number]>;
|
|
43
|
+
readonly default: () => number[];
|
|
44
|
+
};
|
|
45
|
+
readonly width: {
|
|
46
|
+
readonly type: import("vue").PropType<string | number>;
|
|
47
|
+
readonly default: "auto";
|
|
48
|
+
};
|
|
49
|
+
readonly maxHeight: {
|
|
50
|
+
readonly type: import("vue").PropType<string | number>;
|
|
51
|
+
readonly default: "none";
|
|
52
|
+
};
|
|
53
|
+
readonly scrollable: {
|
|
54
|
+
readonly type: BooleanConstructor;
|
|
55
|
+
readonly default: false;
|
|
56
|
+
};
|
|
57
|
+
readonly interactive: {
|
|
58
|
+
readonly type: BooleanConstructor;
|
|
59
|
+
readonly default: true;
|
|
60
|
+
};
|
|
61
|
+
readonly matchTriggerWidth: {
|
|
62
|
+
readonly type: BooleanConstructor;
|
|
63
|
+
readonly default: false;
|
|
64
|
+
};
|
|
65
|
+
readonly zIndex: {
|
|
66
|
+
readonly type: NumberConstructor;
|
|
67
|
+
readonly default: 2003;
|
|
68
|
+
};
|
|
69
|
+
readonly teleported: {
|
|
70
|
+
readonly type: BooleanConstructor;
|
|
71
|
+
readonly default: true;
|
|
72
|
+
};
|
|
73
|
+
readonly popperClass: {
|
|
74
|
+
readonly type: StringConstructor;
|
|
75
|
+
readonly default: "";
|
|
76
|
+
};
|
|
77
|
+
readonly popperStyle: {
|
|
78
|
+
readonly type: import("vue").PropType<import("vue").StyleValue>;
|
|
79
|
+
readonly default: () => {};
|
|
80
|
+
};
|
|
81
|
+
readonly transition: {
|
|
82
|
+
readonly type: StringConstructor;
|
|
83
|
+
readonly default: "yh-popover-fade";
|
|
84
|
+
};
|
|
85
|
+
readonly persistent: {
|
|
86
|
+
readonly type: BooleanConstructor;
|
|
87
|
+
readonly default: true;
|
|
88
|
+
};
|
|
89
|
+
readonly themeOverrides: {
|
|
90
|
+
readonly type: import("vue").PropType<import("@yh-ui/theme").ComponentThemeVars>;
|
|
91
|
+
readonly default: undefined;
|
|
92
|
+
};
|
|
93
|
+
}>> & Readonly<{
|
|
94
|
+
onHide?: (() => any) | undefined;
|
|
95
|
+
onShow?: (() => any) | undefined;
|
|
96
|
+
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
97
|
+
}>, {
|
|
98
|
+
toggle: (val: boolean) => boolean;
|
|
99
|
+
visible: import("vue").WritableComputedRef<boolean, boolean>;
|
|
100
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
101
|
+
hide: () => void;
|
|
102
|
+
show: () => void;
|
|
103
|
+
"update:visible": (visible: boolean) => void;
|
|
104
|
+
}, import("vue").PublicProps, {
|
|
105
|
+
readonly trigger: "hover" | "focus" | "click" | "contextmenu" | ("hover" | "focus" | "click" | "contextmenu")[];
|
|
106
|
+
readonly effect: string;
|
|
107
|
+
readonly transition: string;
|
|
108
|
+
readonly disabled: boolean;
|
|
109
|
+
readonly width: string | number;
|
|
110
|
+
readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
|
|
111
|
+
readonly maxHeight: string | number;
|
|
112
|
+
readonly zIndex: number;
|
|
113
|
+
readonly offset: [number, number];
|
|
114
|
+
readonly visible: boolean | null;
|
|
115
|
+
readonly placement: import("@floating-ui/utils").Placement;
|
|
116
|
+
readonly popperClass: string;
|
|
117
|
+
readonly teleported: boolean;
|
|
118
|
+
readonly popperStyle: import("vue").StyleValue;
|
|
119
|
+
readonly scrollable: boolean;
|
|
120
|
+
readonly showAfter: number;
|
|
121
|
+
readonly hideAfter: number;
|
|
122
|
+
readonly showArrow: boolean;
|
|
123
|
+
readonly interactive: boolean;
|
|
124
|
+
readonly persistent: boolean;
|
|
125
|
+
readonly matchTriggerWidth: boolean;
|
|
126
|
+
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
127
|
+
P: {};
|
|
128
|
+
B: {};
|
|
129
|
+
D: {};
|
|
130
|
+
C: {};
|
|
131
|
+
M: {};
|
|
132
|
+
Defaults: {};
|
|
133
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
134
|
+
readonly title: StringConstructor;
|
|
135
|
+
readonly description: StringConstructor;
|
|
136
|
+
readonly icon: StringConstructor;
|
|
137
|
+
readonly iconColor: StringConstructor;
|
|
138
|
+
readonly content: StringConstructor;
|
|
139
|
+
readonly placement: {
|
|
140
|
+
readonly type: import("vue").PropType<import("@floating-ui/utils").Placement>;
|
|
141
|
+
readonly default: "bottom";
|
|
142
|
+
};
|
|
143
|
+
readonly trigger: {
|
|
144
|
+
readonly type: import("vue").PropType<import("./index.js").PopoverTrigger | import("./index.js").PopoverTrigger[]>;
|
|
145
|
+
readonly default: "click";
|
|
146
|
+
};
|
|
147
|
+
readonly visible: {
|
|
148
|
+
readonly type: import("vue").PropType<boolean | null>;
|
|
149
|
+
readonly default: null;
|
|
150
|
+
};
|
|
151
|
+
readonly effect: {
|
|
152
|
+
readonly type: import("vue").PropType<"light" | "dark" | string>;
|
|
153
|
+
readonly default: "light";
|
|
154
|
+
};
|
|
155
|
+
readonly disabled: {
|
|
156
|
+
readonly type: BooleanConstructor;
|
|
157
|
+
readonly default: false;
|
|
158
|
+
};
|
|
159
|
+
readonly showArrow: {
|
|
160
|
+
readonly type: BooleanConstructor;
|
|
161
|
+
readonly default: true;
|
|
162
|
+
};
|
|
163
|
+
readonly showAfter: {
|
|
164
|
+
readonly type: NumberConstructor;
|
|
165
|
+
readonly default: 0;
|
|
166
|
+
};
|
|
167
|
+
readonly hideAfter: {
|
|
168
|
+
readonly type: NumberConstructor;
|
|
169
|
+
readonly default: 100;
|
|
170
|
+
};
|
|
171
|
+
readonly offset: {
|
|
172
|
+
readonly type: import("vue").PropType<[number, number]>;
|
|
173
|
+
readonly default: () => number[];
|
|
174
|
+
};
|
|
175
|
+
readonly width: {
|
|
176
|
+
readonly type: import("vue").PropType<string | number>;
|
|
177
|
+
readonly default: "auto";
|
|
178
|
+
};
|
|
179
|
+
readonly maxHeight: {
|
|
180
|
+
readonly type: import("vue").PropType<string | number>;
|
|
181
|
+
readonly default: "none";
|
|
182
|
+
};
|
|
183
|
+
readonly scrollable: {
|
|
184
|
+
readonly type: BooleanConstructor;
|
|
185
|
+
readonly default: false;
|
|
186
|
+
};
|
|
187
|
+
readonly interactive: {
|
|
188
|
+
readonly type: BooleanConstructor;
|
|
189
|
+
readonly default: true;
|
|
190
|
+
};
|
|
191
|
+
readonly matchTriggerWidth: {
|
|
192
|
+
readonly type: BooleanConstructor;
|
|
193
|
+
readonly default: false;
|
|
194
|
+
};
|
|
195
|
+
readonly zIndex: {
|
|
196
|
+
readonly type: NumberConstructor;
|
|
197
|
+
readonly default: 2003;
|
|
198
|
+
};
|
|
199
|
+
readonly teleported: {
|
|
200
|
+
readonly type: BooleanConstructor;
|
|
201
|
+
readonly default: true;
|
|
202
|
+
};
|
|
203
|
+
readonly popperClass: {
|
|
204
|
+
readonly type: StringConstructor;
|
|
205
|
+
readonly default: "";
|
|
206
|
+
};
|
|
207
|
+
readonly popperStyle: {
|
|
208
|
+
readonly type: import("vue").PropType<import("vue").StyleValue>;
|
|
209
|
+
readonly default: () => {};
|
|
210
|
+
};
|
|
211
|
+
readonly transition: {
|
|
212
|
+
readonly type: StringConstructor;
|
|
213
|
+
readonly default: "yh-popover-fade";
|
|
214
|
+
};
|
|
215
|
+
readonly persistent: {
|
|
216
|
+
readonly type: BooleanConstructor;
|
|
217
|
+
readonly default: true;
|
|
218
|
+
};
|
|
219
|
+
readonly themeOverrides: {
|
|
220
|
+
readonly type: import("vue").PropType<import("@yh-ui/theme").ComponentThemeVars>;
|
|
221
|
+
readonly default: undefined;
|
|
222
|
+
};
|
|
223
|
+
}>> & Readonly<{
|
|
224
|
+
onHide?: (() => any) | undefined;
|
|
225
|
+
onShow?: (() => any) | undefined;
|
|
226
|
+
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
227
|
+
}>, {
|
|
228
|
+
toggle: (val: boolean) => boolean;
|
|
229
|
+
visible: import("vue").WritableComputedRef<boolean, boolean>;
|
|
230
|
+
}, {}, {}, {}, {
|
|
231
|
+
readonly trigger: "hover" | "focus" | "click" | "contextmenu" | ("hover" | "focus" | "click" | "contextmenu")[];
|
|
232
|
+
readonly effect: string;
|
|
233
|
+
readonly transition: string;
|
|
234
|
+
readonly disabled: boolean;
|
|
235
|
+
readonly width: string | number;
|
|
236
|
+
readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
|
|
237
|
+
readonly maxHeight: string | number;
|
|
238
|
+
readonly zIndex: number;
|
|
239
|
+
readonly offset: [number, number];
|
|
240
|
+
readonly visible: boolean | null;
|
|
241
|
+
readonly placement: import("@floating-ui/utils").Placement;
|
|
242
|
+
readonly popperClass: string;
|
|
243
|
+
readonly teleported: boolean;
|
|
244
|
+
readonly popperStyle: import("vue").StyleValue;
|
|
245
|
+
readonly scrollable: boolean;
|
|
246
|
+
readonly showAfter: number;
|
|
247
|
+
readonly hideAfter: number;
|
|
248
|
+
readonly showArrow: boolean;
|
|
249
|
+
readonly interactive: boolean;
|
|
250
|
+
readonly persistent: boolean;
|
|
251
|
+
readonly matchTriggerWidth: boolean;
|
|
252
|
+
}>;
|
|
253
|
+
__isFragment?: never;
|
|
254
|
+
__isTeleport?: never;
|
|
255
|
+
__isSuspense?: never;
|
|
256
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
257
|
+
readonly title: StringConstructor;
|
|
258
|
+
readonly description: StringConstructor;
|
|
259
|
+
readonly icon: StringConstructor;
|
|
260
|
+
readonly iconColor: StringConstructor;
|
|
261
|
+
readonly content: StringConstructor;
|
|
262
|
+
readonly placement: {
|
|
263
|
+
readonly type: import("vue").PropType<import("@floating-ui/utils").Placement>;
|
|
264
|
+
readonly default: "bottom";
|
|
265
|
+
};
|
|
266
|
+
readonly trigger: {
|
|
267
|
+
readonly type: import("vue").PropType<import("./index.js").PopoverTrigger | import("./index.js").PopoverTrigger[]>;
|
|
268
|
+
readonly default: "click";
|
|
269
|
+
};
|
|
270
|
+
readonly visible: {
|
|
271
|
+
readonly type: import("vue").PropType<boolean | null>;
|
|
272
|
+
readonly default: null;
|
|
273
|
+
};
|
|
274
|
+
readonly effect: {
|
|
275
|
+
readonly type: import("vue").PropType<"light" | "dark" | string>;
|
|
276
|
+
readonly default: "light";
|
|
277
|
+
};
|
|
278
|
+
readonly disabled: {
|
|
279
|
+
readonly type: BooleanConstructor;
|
|
280
|
+
readonly default: false;
|
|
281
|
+
};
|
|
282
|
+
readonly showArrow: {
|
|
283
|
+
readonly type: BooleanConstructor;
|
|
284
|
+
readonly default: true;
|
|
285
|
+
};
|
|
286
|
+
readonly showAfter: {
|
|
287
|
+
readonly type: NumberConstructor;
|
|
288
|
+
readonly default: 0;
|
|
289
|
+
};
|
|
290
|
+
readonly hideAfter: {
|
|
291
|
+
readonly type: NumberConstructor;
|
|
292
|
+
readonly default: 100;
|
|
293
|
+
};
|
|
294
|
+
readonly offset: {
|
|
295
|
+
readonly type: import("vue").PropType<[number, number]>;
|
|
296
|
+
readonly default: () => number[];
|
|
297
|
+
};
|
|
298
|
+
readonly width: {
|
|
299
|
+
readonly type: import("vue").PropType<string | number>;
|
|
300
|
+
readonly default: "auto";
|
|
301
|
+
};
|
|
302
|
+
readonly maxHeight: {
|
|
303
|
+
readonly type: import("vue").PropType<string | number>;
|
|
304
|
+
readonly default: "none";
|
|
305
|
+
};
|
|
306
|
+
readonly scrollable: {
|
|
307
|
+
readonly type: BooleanConstructor;
|
|
308
|
+
readonly default: false;
|
|
309
|
+
};
|
|
310
|
+
readonly interactive: {
|
|
311
|
+
readonly type: BooleanConstructor;
|
|
312
|
+
readonly default: true;
|
|
313
|
+
};
|
|
314
|
+
readonly matchTriggerWidth: {
|
|
315
|
+
readonly type: BooleanConstructor;
|
|
316
|
+
readonly default: false;
|
|
317
|
+
};
|
|
318
|
+
readonly zIndex: {
|
|
319
|
+
readonly type: NumberConstructor;
|
|
320
|
+
readonly default: 2003;
|
|
321
|
+
};
|
|
322
|
+
readonly teleported: {
|
|
323
|
+
readonly type: BooleanConstructor;
|
|
324
|
+
readonly default: true;
|
|
325
|
+
};
|
|
326
|
+
readonly popperClass: {
|
|
327
|
+
readonly type: StringConstructor;
|
|
328
|
+
readonly default: "";
|
|
329
|
+
};
|
|
330
|
+
readonly popperStyle: {
|
|
331
|
+
readonly type: import("vue").PropType<import("vue").StyleValue>;
|
|
332
|
+
readonly default: () => {};
|
|
333
|
+
};
|
|
334
|
+
readonly transition: {
|
|
335
|
+
readonly type: StringConstructor;
|
|
336
|
+
readonly default: "yh-popover-fade";
|
|
337
|
+
};
|
|
338
|
+
readonly persistent: {
|
|
339
|
+
readonly type: BooleanConstructor;
|
|
340
|
+
readonly default: true;
|
|
341
|
+
};
|
|
342
|
+
readonly themeOverrides: {
|
|
343
|
+
readonly type: import("vue").PropType<import("@yh-ui/theme").ComponentThemeVars>;
|
|
344
|
+
readonly default: undefined;
|
|
345
|
+
};
|
|
346
|
+
}>> & Readonly<{
|
|
347
|
+
onHide?: (() => any) | undefined;
|
|
348
|
+
onShow?: (() => any) | undefined;
|
|
349
|
+
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
350
|
+
}>, {
|
|
351
|
+
toggle: (val: boolean) => boolean;
|
|
352
|
+
visible: import("vue").WritableComputedRef<boolean, boolean>;
|
|
353
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
354
|
+
hide: () => void;
|
|
355
|
+
show: () => void;
|
|
356
|
+
"update:visible": (visible: boolean) => void;
|
|
357
|
+
}, string, {
|
|
358
|
+
readonly trigger: "hover" | "focus" | "click" | "contextmenu" | ("hover" | "focus" | "click" | "contextmenu")[];
|
|
359
|
+
readonly effect: string;
|
|
360
|
+
readonly transition: string;
|
|
361
|
+
readonly disabled: boolean;
|
|
362
|
+
readonly width: string | number;
|
|
363
|
+
readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
|
|
364
|
+
readonly maxHeight: string | number;
|
|
365
|
+
readonly zIndex: number;
|
|
366
|
+
readonly offset: [number, number];
|
|
367
|
+
readonly visible: boolean | null;
|
|
368
|
+
readonly placement: import("@floating-ui/utils").Placement;
|
|
369
|
+
readonly popperClass: string;
|
|
370
|
+
readonly teleported: boolean;
|
|
371
|
+
readonly popperStyle: import("vue").StyleValue;
|
|
372
|
+
readonly scrollable: boolean;
|
|
373
|
+
readonly showAfter: number;
|
|
374
|
+
readonly hideAfter: number;
|
|
375
|
+
readonly showArrow: boolean;
|
|
376
|
+
readonly interactive: boolean;
|
|
377
|
+
readonly persistent: boolean;
|
|
378
|
+
readonly matchTriggerWidth: boolean;
|
|
379
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
380
|
+
$slots: {
|
|
381
|
+
default?: (props: {}) => any;
|
|
382
|
+
} & {
|
|
383
|
+
icon?: (props: {}) => any;
|
|
384
|
+
} & {
|
|
385
|
+
header?: (props: {}) => any;
|
|
386
|
+
} & {
|
|
387
|
+
content?: (props: {}) => any;
|
|
388
|
+
} & {
|
|
389
|
+
default?: (props: {}) => any;
|
|
390
|
+
} & {
|
|
391
|
+
footer?: (props: {}) => any;
|
|
392
|
+
};
|
|
393
|
+
})> & Record<string, unknown>;
|
|
3
394
|
export default YhPopover;
|
|
4
395
|
export * from './src/popover';
|
|
5
396
|
export type PopoverInstance = InstanceType<typeof Popover>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExtractPropTypes, PropType,
|
|
1
|
+
import type { ExtractPropTypes, PropType, StyleValue } 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];
|
|
@@ -100,7 +100,7 @@ export declare const popoverProps: {
|
|
|
100
100
|
};
|
|
101
101
|
/** 弹出层自定义样式 */
|
|
102
102
|
readonly popperStyle: {
|
|
103
|
-
readonly type: PropType<
|
|
103
|
+
readonly type: PropType<StyleValue>;
|
|
104
104
|
readonly default: () => {};
|
|
105
105
|
};
|
|
106
106
|
/** 动画名称 */
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { CSSProperties } from 'vue';
|
|
2
1
|
declare var __VLS_12: {}, __VLS_14: {}, __VLS_20: {}, __VLS_22: {}, __VLS_24: {}, __VLS_26: {};
|
|
3
2
|
type __VLS_Slots = {} & {
|
|
4
3
|
default?: (props: typeof __VLS_12) => any;
|
|
@@ -20,7 +19,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
20
19
|
readonly iconColor: StringConstructor;
|
|
21
20
|
readonly content: StringConstructor;
|
|
22
21
|
readonly placement: {
|
|
23
|
-
readonly type: import("vue").PropType<import("@floating-ui/
|
|
22
|
+
readonly type: import("vue").PropType<import("@floating-ui/utils").Placement>;
|
|
24
23
|
readonly default: "bottom";
|
|
25
24
|
};
|
|
26
25
|
readonly trigger: {
|
|
@@ -88,7 +87,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
88
87
|
readonly default: "";
|
|
89
88
|
};
|
|
90
89
|
readonly popperStyle: {
|
|
91
|
-
readonly type: import("vue").PropType<
|
|
90
|
+
readonly type: import("vue").PropType<import("vue").StyleValue>;
|
|
92
91
|
readonly default: () => {};
|
|
93
92
|
};
|
|
94
93
|
readonly transition: {
|
|
@@ -108,27 +107,125 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
108
107
|
toggle: (val: boolean) => boolean;
|
|
109
108
|
/** 弹出状态 */
|
|
110
109
|
visible: import("vue").WritableComputedRef<boolean, boolean>;
|
|
111
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
110
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
111
|
+
hide: () => void;
|
|
112
|
+
show: () => void;
|
|
113
|
+
"update:visible": (visible: boolean) => void;
|
|
114
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
115
|
+
readonly title: StringConstructor;
|
|
116
|
+
readonly description: StringConstructor;
|
|
117
|
+
readonly icon: StringConstructor;
|
|
118
|
+
readonly iconColor: StringConstructor;
|
|
119
|
+
readonly content: StringConstructor;
|
|
120
|
+
readonly placement: {
|
|
121
|
+
readonly type: import("vue").PropType<import("@floating-ui/utils").Placement>;
|
|
122
|
+
readonly default: "bottom";
|
|
123
|
+
};
|
|
124
|
+
readonly trigger: {
|
|
125
|
+
readonly type: import("vue").PropType<import("./popover").PopoverTrigger | import("./popover").PopoverTrigger[]>;
|
|
126
|
+
readonly default: "click";
|
|
127
|
+
};
|
|
128
|
+
readonly visible: {
|
|
129
|
+
readonly type: import("vue").PropType<boolean | null>;
|
|
130
|
+
readonly default: null;
|
|
131
|
+
};
|
|
132
|
+
readonly effect: {
|
|
133
|
+
readonly type: import("vue").PropType<"light" | "dark" | string>;
|
|
134
|
+
readonly default: "light";
|
|
135
|
+
};
|
|
136
|
+
readonly disabled: {
|
|
137
|
+
readonly type: BooleanConstructor;
|
|
138
|
+
readonly default: false;
|
|
139
|
+
};
|
|
140
|
+
readonly showArrow: {
|
|
141
|
+
readonly type: BooleanConstructor;
|
|
142
|
+
readonly default: true;
|
|
143
|
+
};
|
|
144
|
+
readonly showAfter: {
|
|
145
|
+
readonly type: NumberConstructor;
|
|
146
|
+
readonly default: 0;
|
|
147
|
+
};
|
|
148
|
+
readonly hideAfter: {
|
|
149
|
+
readonly type: NumberConstructor;
|
|
150
|
+
readonly default: 100;
|
|
151
|
+
};
|
|
152
|
+
readonly offset: {
|
|
153
|
+
readonly type: import("vue").PropType<[number, number]>;
|
|
154
|
+
readonly default: () => number[];
|
|
155
|
+
};
|
|
156
|
+
readonly width: {
|
|
157
|
+
readonly type: import("vue").PropType<string | number>;
|
|
158
|
+
readonly default: "auto";
|
|
159
|
+
};
|
|
160
|
+
readonly maxHeight: {
|
|
161
|
+
readonly type: import("vue").PropType<string | number>;
|
|
162
|
+
readonly default: "none";
|
|
163
|
+
};
|
|
164
|
+
readonly scrollable: {
|
|
165
|
+
readonly type: BooleanConstructor;
|
|
166
|
+
readonly default: false;
|
|
167
|
+
};
|
|
168
|
+
readonly interactive: {
|
|
169
|
+
readonly type: BooleanConstructor;
|
|
170
|
+
readonly default: true;
|
|
171
|
+
};
|
|
172
|
+
readonly matchTriggerWidth: {
|
|
173
|
+
readonly type: BooleanConstructor;
|
|
174
|
+
readonly default: false;
|
|
175
|
+
};
|
|
176
|
+
readonly zIndex: {
|
|
177
|
+
readonly type: NumberConstructor;
|
|
178
|
+
readonly default: 2003;
|
|
179
|
+
};
|
|
180
|
+
readonly teleported: {
|
|
181
|
+
readonly type: BooleanConstructor;
|
|
182
|
+
readonly default: true;
|
|
183
|
+
};
|
|
184
|
+
readonly popperClass: {
|
|
185
|
+
readonly type: StringConstructor;
|
|
186
|
+
readonly default: "";
|
|
187
|
+
};
|
|
188
|
+
readonly popperStyle: {
|
|
189
|
+
readonly type: import("vue").PropType<import("vue").StyleValue>;
|
|
190
|
+
readonly default: () => {};
|
|
191
|
+
};
|
|
192
|
+
readonly transition: {
|
|
193
|
+
readonly type: StringConstructor;
|
|
194
|
+
readonly default: "yh-popover-fade";
|
|
195
|
+
};
|
|
196
|
+
readonly persistent: {
|
|
197
|
+
readonly type: BooleanConstructor;
|
|
198
|
+
readonly default: true;
|
|
199
|
+
};
|
|
200
|
+
readonly themeOverrides: {
|
|
201
|
+
readonly type: import("vue").PropType<import("@yh-ui/theme").ComponentThemeVars>;
|
|
202
|
+
readonly default: undefined;
|
|
203
|
+
};
|
|
204
|
+
}>> & Readonly<{
|
|
205
|
+
onHide?: (() => any) | undefined;
|
|
206
|
+
onShow?: (() => any) | undefined;
|
|
207
|
+
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
208
|
+
}>, {
|
|
209
|
+
readonly trigger: "hover" | "focus" | "click" | "contextmenu" | ("hover" | "focus" | "click" | "contextmenu")[];
|
|
210
|
+
readonly effect: string;
|
|
211
|
+
readonly transition: string;
|
|
115
212
|
readonly disabled: boolean;
|
|
116
|
-
readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
|
|
117
213
|
readonly width: string | number;
|
|
118
|
-
readonly
|
|
214
|
+
readonly themeOverrides: import("@yh-ui/theme").ComponentThemeVars;
|
|
119
215
|
readonly maxHeight: string | number;
|
|
120
|
-
readonly
|
|
121
|
-
readonly
|
|
122
|
-
readonly
|
|
216
|
+
readonly zIndex: number;
|
|
217
|
+
readonly offset: [number, number];
|
|
218
|
+
readonly visible: boolean | null;
|
|
219
|
+
readonly placement: import("@floating-ui/utils").Placement;
|
|
220
|
+
readonly popperClass: string;
|
|
221
|
+
readonly teleported: boolean;
|
|
222
|
+
readonly popperStyle: import("vue").StyleValue;
|
|
223
|
+
readonly scrollable: boolean;
|
|
123
224
|
readonly showAfter: number;
|
|
124
225
|
readonly hideAfter: number;
|
|
125
226
|
readonly showArrow: boolean;
|
|
126
227
|
readonly interactive: boolean;
|
|
127
|
-
readonly effect: string;
|
|
128
|
-
readonly popperClass: string;
|
|
129
228
|
readonly persistent: boolean;
|
|
130
|
-
readonly scrollable: boolean;
|
|
131
|
-
readonly popperStyle: CSSProperties;
|
|
132
229
|
readonly matchTriggerWidth: boolean;
|
|
133
230
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
134
231
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _serverRenderer = require("@vue/server-renderer");
|
|
4
|
+
var _vitest = require("vitest");
|
|
5
|
+
var _vue = require("vue");
|
|
6
|
+
var _price = _interopRequireDefault(require("../src/price.vue"));
|
|
7
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
(0, _vitest.describe)("Price SSR", () => {
|
|
9
|
+
(0, _vitest.it)("renders correctly on server", async () => {
|
|
10
|
+
const html = await (0, _serverRenderer.renderToString)((0, _vue.h)(_price.default, {
|
|
11
|
+
value: 123.45,
|
|
12
|
+
symbol: "$",
|
|
13
|
+
precision: 2
|
|
14
|
+
}));
|
|
15
|
+
(0, _vitest.expect)(html).toContain("yh-price");
|
|
16
|
+
(0, _vitest.expect)(html).toContain("123");
|
|
17
|
+
(0, _vitest.expect)(html).toContain(".45");
|
|
18
|
+
(0, _vitest.expect)(html).toContain("$");
|
|
19
|
+
});
|
|
20
|
+
});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { renderToString } from "@vue/server-renderer";
|
|
2
|
+
import { describe, it, expect } from "vitest";
|
|
3
|
+
import { h } from "vue";
|
|
4
|
+
import Price from "../src/price.vue";
|
|
5
|
+
describe("Price SSR", () => {
|
|
6
|
+
it("renders correctly on server", async () => {
|
|
7
|
+
const html = await renderToString(
|
|
8
|
+
h(Price, {
|
|
9
|
+
value: 123.45,
|
|
10
|
+
symbol: "$",
|
|
11
|
+
precision: 2
|
|
12
|
+
})
|
|
13
|
+
);
|
|
14
|
+
expect(html).toContain("yh-price");
|
|
15
|
+
expect(html).toContain("123");
|
|
16
|
+
expect(html).toContain(".45");
|
|
17
|
+
expect(html).toContain("$");
|
|
18
|
+
});
|
|
19
|
+
});
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _vitest = require("vitest");
|
|
4
|
+
var _testUtils = require("@vue/test-utils");
|
|
5
|
+
var _price = _interopRequireDefault(require("../src/price.vue"));
|
|
6
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
7
|
+
(0, _vitest.describe)("Price", () => {
|
|
8
|
+
(0, _vitest.it)("renders numeric values correctly", () => {
|
|
9
|
+
const wrapper = (0, _testUtils.mount)(_price.default, {
|
|
10
|
+
props: {
|
|
11
|
+
value: 123.456
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
(0, _vitest.expect)(wrapper.text()).toContain("\xA5");
|
|
15
|
+
(0, _vitest.expect)(wrapper.text()).toContain("123");
|
|
16
|
+
(0, _vitest.expect)(wrapper.text()).toContain(".46");
|
|
17
|
+
});
|
|
18
|
+
(0, _vitest.it)("customizes currency symbol", () => {
|
|
19
|
+
const wrapper = (0, _testUtils.mount)(_price.default, {
|
|
20
|
+
props: {
|
|
21
|
+
value: 10,
|
|
22
|
+
symbol: "$"
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
(0, _vitest.expect)(wrapper.text()).toContain("$");
|
|
26
|
+
});
|
|
27
|
+
(0, _vitest.it)("renders line-through style", () => {
|
|
28
|
+
const wrapper = (0, _testUtils.mount)(_price.default, {
|
|
29
|
+
props: {
|
|
30
|
+
value: 50,
|
|
31
|
+
lineThrough: true
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
(0, _vitest.expect)(wrapper.classes()).toContain("is-line-through");
|
|
35
|
+
});
|
|
36
|
+
(0, _vitest.it)("handles small/large sizes", () => {
|
|
37
|
+
const wrapper = (0, _testUtils.mount)(_price.default, {
|
|
38
|
+
props: {
|
|
39
|
+
value: 10,
|
|
40
|
+
size: "large"
|
|
41
|
+
}
|
|
42
|
+
});
|
|
43
|
+
(0, _vitest.expect)(wrapper.classes()).toContain("yh-price--large");
|
|
44
|
+
});
|
|
45
|
+
});
|