@yh-ui/components 0.1.10 → 0.1.15
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/ai-action-group/__tests__/ai-action-group.ssr.test.cjs +55 -0
- package/dist/ai-action-group/__tests__/ai-action-group.ssr.test.d.ts +1 -0
- package/dist/ai-action-group/__tests__/ai-action-group.ssr.test.mjs +39 -0
- package/dist/ai-action-group/__tests__/ai-action-group.test.cjs +149 -0
- package/dist/ai-action-group/__tests__/ai-action-group.test.d.ts +1 -0
- package/dist/ai-action-group/__tests__/ai-action-group.test.mjs +104 -0
- package/dist/ai-action-group/index.cjs +26 -0
- package/dist/ai-action-group/index.d.ts +3 -0
- package/dist/ai-action-group/index.mjs +5 -0
- package/dist/ai-action-group/src/ai-action-group.cjs +50 -0
- package/dist/ai-action-group/src/ai-action-group.css +517 -0
- package/dist/ai-action-group/src/ai-action-group.d.ts +55 -0
- package/dist/ai-action-group/src/ai-action-group.d.vue.ts +40 -0
- package/dist/ai-action-group/src/ai-action-group.mjs +44 -0
- package/dist/ai-action-group/src/ai-action-group.vue +602 -0
- package/dist/ai-action-group/src/ai-action-group.vue.d.ts +40 -0
- package/dist/ai-agent-card/__tests__/ai-agent-card.ssr.test.cjs +61 -0
- package/dist/ai-agent-card/__tests__/ai-agent-card.ssr.test.d.ts +1 -0
- package/dist/ai-agent-card/__tests__/ai-agent-card.ssr.test.mjs +65 -0
- package/dist/ai-agent-card/__tests__/ai-agent-card.test.cjs +70 -0
- package/dist/ai-agent-card/__tests__/ai-agent-card.test.d.ts +1 -0
- package/dist/ai-agent-card/__tests__/ai-agent-card.test.mjs +64 -0
- package/dist/ai-agent-card/index.cjs +26 -0
- package/dist/ai-agent-card/index.d.ts +3 -0
- package/dist/ai-agent-card/index.mjs +5 -0
- package/dist/ai-agent-card/src/ai-agent-card.cjs +74 -0
- package/dist/ai-agent-card/src/ai-agent-card.css +859 -0
- package/dist/ai-agent-card/src/ai-agent-card.d.ts +122 -0
- package/dist/ai-agent-card/src/ai-agent-card.d.vue.ts +62 -0
- package/dist/ai-agent-card/src/ai-agent-card.mjs +68 -0
- package/dist/ai-agent-card/src/ai-agent-card.vue +1029 -0
- package/dist/ai-agent-card/src/ai-agent-card.vue.d.ts +62 -0
- package/dist/ai-artifacts/__tests__/ai-artifacts.ssr.test.cjs +73 -0
- package/dist/ai-artifacts/__tests__/ai-artifacts.ssr.test.d.ts +1 -0
- package/dist/ai-artifacts/__tests__/ai-artifacts.ssr.test.mjs +68 -0
- package/dist/ai-artifacts/__tests__/ai-artifacts.test.cjs +128 -0
- package/dist/ai-artifacts/__tests__/ai-artifacts.test.d.ts +1 -0
- package/dist/ai-artifacts/__tests__/ai-artifacts.test.mjs +109 -0
- package/dist/ai-artifacts/index.cjs +26 -0
- package/dist/ai-artifacts/index.d.ts +3 -0
- package/dist/ai-artifacts/index.mjs +5 -0
- package/dist/ai-artifacts/src/ai-artifacts.cjs +55 -0
- package/dist/ai-artifacts/src/ai-artifacts.css +633 -0
- package/dist/ai-artifacts/src/ai-artifacts.d.ts +93 -0
- package/dist/ai-artifacts/src/ai-artifacts.d.vue.ts +50 -0
- package/dist/ai-artifacts/src/ai-artifacts.mjs +49 -0
- package/dist/ai-artifacts/src/ai-artifacts.vue +831 -0
- package/dist/ai-artifacts/src/ai-artifacts.vue.d.ts +50 -0
- package/dist/ai-bubble/__tests__/ai-bubble.ssr.test.cjs +87 -0
- package/dist/ai-bubble/__tests__/ai-bubble.ssr.test.d.ts +1 -0
- package/dist/ai-bubble/__tests__/ai-bubble.ssr.test.mjs +58 -0
- package/dist/ai-bubble/__tests__/ai-bubble.test.cjs +227 -0
- package/dist/ai-bubble/__tests__/ai-bubble.test.d.ts +1 -0
- package/dist/ai-bubble/__tests__/ai-bubble.test.mjs +123 -0
- package/dist/ai-bubble/index.cjs +26 -0
- package/dist/ai-bubble/index.d.ts +3 -0
- package/dist/ai-bubble/index.mjs +5 -0
- package/dist/ai-bubble/src/ai-bubble.cjs +86 -0
- package/dist/ai-bubble/src/ai-bubble.css +932 -0
- package/dist/ai-bubble/src/ai-bubble.d.ts +126 -0
- package/dist/ai-bubble/src/ai-bubble.d.vue.ts +110 -0
- package/dist/ai-bubble/src/ai-bubble.mjs +80 -0
- package/dist/ai-bubble/src/ai-bubble.vue +1300 -0
- package/dist/ai-bubble/src/ai-bubble.vue.d.ts +110 -0
- package/dist/ai-chat/__tests__/ai-chat.ssr.test.cjs +82 -0
- package/dist/ai-chat/__tests__/ai-chat.ssr.test.d.ts +1 -0
- package/dist/ai-chat/__tests__/ai-chat.ssr.test.mjs +69 -0
- package/dist/ai-chat/__tests__/ai-chat.test.cjs +169 -0
- package/dist/ai-chat/__tests__/ai-chat.test.d.ts +1 -0
- package/dist/ai-chat/__tests__/ai-chat.test.mjs +121 -0
- package/dist/ai-chat/index.cjs +26 -0
- package/dist/ai-chat/index.d.ts +3 -0
- package/dist/ai-chat/index.mjs +5 -0
- package/dist/ai-chat/src/ai-chat.cjs +41 -0
- package/dist/ai-chat/src/ai-chat.css +503 -0
- package/dist/ai-chat/src/ai-chat.d.ts +57 -0
- package/dist/ai-chat/src/ai-chat.d.vue.ts +43 -0
- package/dist/ai-chat/src/ai-chat.mjs +35 -0
- package/dist/ai-chat/src/ai-chat.vue +606 -0
- package/dist/ai-chat/src/ai-chat.vue.d.ts +43 -0
- package/dist/ai-code-block/__tests__/ai-code-block.ssr.test.cjs +66 -0
- package/dist/ai-code-block/__tests__/ai-code-block.ssr.test.d.ts +1 -0
- package/dist/ai-code-block/__tests__/ai-code-block.ssr.test.mjs +48 -0
- package/dist/ai-code-block/__tests__/ai-code-block.test.cjs +174 -0
- package/dist/ai-code-block/__tests__/ai-code-block.test.d.ts +1 -0
- package/dist/ai-code-block/__tests__/ai-code-block.test.mjs +108 -0
- package/dist/ai-code-block/index.cjs +26 -0
- package/dist/ai-code-block/index.d.ts +3 -0
- package/dist/ai-code-block/index.mjs +5 -0
- package/dist/ai-code-block/src/ai-code-block.cjs +79 -0
- package/dist/ai-code-block/src/ai-code-block.css +589 -0
- package/dist/ai-code-block/src/ai-code-block.d.ts +76 -0
- package/dist/ai-code-block/src/ai-code-block.d.vue.ts +63 -0
- package/dist/ai-code-block/src/ai-code-block.mjs +73 -0
- package/dist/ai-code-block/src/ai-code-block.vue +706 -0
- package/dist/ai-code-block/src/ai-code-block.vue.d.ts +63 -0
- package/dist/ai-conversations/__tests__/ai-conversations.ssr.test.cjs +50 -0
- package/dist/ai-conversations/__tests__/ai-conversations.ssr.test.d.ts +1 -0
- package/dist/ai-conversations/__tests__/ai-conversations.ssr.test.mjs +42 -0
- package/dist/ai-conversations/__tests__/ai-conversations.test.cjs +67 -0
- package/dist/ai-conversations/__tests__/ai-conversations.test.d.ts +1 -0
- package/dist/ai-conversations/__tests__/ai-conversations.test.mjs +51 -0
- package/dist/ai-conversations/index.cjs +26 -0
- package/dist/ai-conversations/index.d.ts +3 -0
- package/dist/ai-conversations/index.mjs +5 -0
- package/dist/ai-conversations/src/ai-conversations.cjs +69 -0
- package/dist/ai-conversations/src/ai-conversations.css +679 -0
- package/dist/ai-conversations/src/ai-conversations.d.ts +67 -0
- package/dist/ai-conversations/src/ai-conversations.d.vue.ts +52 -0
- package/dist/ai-conversations/src/ai-conversations.mjs +63 -0
- package/dist/ai-conversations/src/ai-conversations.vue +949 -0
- package/dist/ai-conversations/src/ai-conversations.vue.d.ts +52 -0
- package/dist/ai-editor-sender/__tests__/ai-editor-sender.ssr.test.cjs +62 -0
- package/dist/ai-editor-sender/__tests__/ai-editor-sender.ssr.test.d.ts +1 -0
- package/dist/ai-editor-sender/__tests__/ai-editor-sender.ssr.test.mjs +50 -0
- package/dist/ai-editor-sender/__tests__/ai-editor-sender.test.cjs +315 -0
- package/dist/ai-editor-sender/__tests__/ai-editor-sender.test.d.ts +1 -0
- package/dist/ai-editor-sender/__tests__/ai-editor-sender.test.mjs +226 -0
- package/dist/ai-editor-sender/index.cjs +26 -0
- package/dist/ai-editor-sender/index.d.ts +3 -0
- package/dist/ai-editor-sender/index.mjs +5 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.cjs +66 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.css +566 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.d.ts +70 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.d.vue.ts +70 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.mjs +60 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.vue +713 -0
- package/dist/ai-editor-sender/src/ai-editor-sender.vue.d.ts +70 -0
- package/dist/ai-mention/__tests__/ai-mention.ssr.test.cjs +38 -0
- package/dist/ai-mention/__tests__/ai-mention.ssr.test.d.ts +1 -0
- package/dist/ai-mention/__tests__/ai-mention.ssr.test.mjs +37 -0
- package/dist/ai-mention/__tests__/ai-mention.test.cjs +113 -0
- package/dist/ai-mention/__tests__/ai-mention.test.d.ts +1 -0
- package/dist/ai-mention/__tests__/ai-mention.test.mjs +84 -0
- package/dist/ai-mention/index.cjs +26 -0
- package/dist/ai-mention/index.d.ts +29 -0
- package/dist/ai-mention/index.mjs +5 -0
- package/dist/ai-mention/src/ai-mention.cjs +95 -0
- package/dist/ai-mention/src/ai-mention.css +545 -0
- package/dist/ai-mention/src/ai-mention.d.ts +99 -0
- package/dist/ai-mention/src/ai-mention.d.vue.ts +68 -0
- package/dist/ai-mention/src/ai-mention.mjs +89 -0
- package/dist/ai-mention/src/ai-mention.vue +650 -0
- package/dist/ai-mention/src/ai-mention.vue.d.ts +68 -0
- package/dist/ai-prompts/__tests__/ai-prompts.ssr.test.cjs +49 -0
- package/dist/ai-prompts/__tests__/ai-prompts.ssr.test.d.ts +1 -0
- package/dist/ai-prompts/__tests__/ai-prompts.ssr.test.mjs +41 -0
- package/dist/ai-prompts/__tests__/ai-prompts.test.cjs +54 -0
- package/dist/ai-prompts/__tests__/ai-prompts.test.d.ts +1 -0
- package/dist/ai-prompts/__tests__/ai-prompts.test.mjs +38 -0
- package/dist/ai-prompts/index.cjs +26 -0
- package/dist/ai-prompts/index.d.ts +3 -0
- package/dist/ai-prompts/index.mjs +5 -0
- package/dist/ai-prompts/src/ai-prompts.cjs +42 -0
- package/dist/ai-prompts/src/ai-prompts.css +572 -0
- package/dist/ai-prompts/src/ai-prompts.d.ts +45 -0
- package/dist/ai-prompts/src/ai-prompts.d.vue.ts +44 -0
- package/dist/ai-prompts/src/ai-prompts.mjs +36 -0
- package/dist/ai-prompts/src/ai-prompts.vue +646 -0
- package/dist/ai-prompts/src/ai-prompts.vue.d.ts +44 -0
- package/dist/ai-provider/__tests__/ai-provider.ssr.test.cjs +33 -0
- package/dist/ai-provider/__tests__/ai-provider.ssr.test.d.ts +1 -0
- package/dist/ai-provider/__tests__/ai-provider.ssr.test.mjs +34 -0
- package/dist/ai-provider/__tests__/ai-provider.test.cjs +38 -0
- package/dist/ai-provider/__tests__/ai-provider.test.d.ts +1 -0
- package/dist/ai-provider/__tests__/ai-provider.test.mjs +33 -0
- package/dist/ai-provider/index.cjs +38 -0
- package/dist/ai-provider/index.d.ts +4 -0
- package/dist/ai-provider/index.mjs +6 -0
- package/dist/ai-provider/src/ai-provider.cjs +7 -0
- package/dist/ai-provider/src/ai-provider.d.ts +88 -0
- package/dist/ai-provider/src/ai-provider.d.vue.ts +48 -0
- package/dist/ai-provider/src/ai-provider.mjs +1 -0
- package/dist/ai-provider/src/ai-provider.vue +24 -0
- package/dist/ai-provider/src/ai-provider.vue.d.ts +48 -0
- package/dist/ai-provider/src/use-ai-provider.cjs +11 -0
- package/dist/ai-provider/src/use-ai-provider.d.ts +10 -0
- package/dist/ai-provider/src/use-ai-provider.mjs +5 -0
- package/dist/ai-sender/__tests__/ai-sender.ssr.test.cjs +46 -0
- package/dist/ai-sender/__tests__/ai-sender.ssr.test.d.ts +1 -0
- package/dist/ai-sender/__tests__/ai-sender.ssr.test.mjs +37 -0
- package/dist/ai-sender/__tests__/ai-sender.test.cjs +395 -0
- package/dist/ai-sender/__tests__/ai-sender.test.d.ts +1 -0
- package/dist/ai-sender/__tests__/ai-sender.test.mjs +255 -0
- package/dist/ai-sender/index.cjs +26 -0
- package/dist/ai-sender/index.d.ts +3 -0
- package/dist/ai-sender/index.mjs +5 -0
- package/dist/ai-sender/src/ai-sender.cjs +98 -0
- package/dist/ai-sender/src/ai-sender.css +754 -0
- package/dist/ai-sender/src/ai-sender.d.ts +147 -0
- package/dist/ai-sender/src/ai-sender.d.vue.ts +74 -0
- package/dist/ai-sender/src/ai-sender.mjs +92 -0
- package/dist/ai-sender/src/ai-sender.vue +1039 -0
- package/dist/ai-sender/src/ai-sender.vue.d.ts +74 -0
- package/dist/ai-sources/__tests__/ai-sources.ssr.test.cjs +72 -0
- package/dist/ai-sources/__tests__/ai-sources.ssr.test.d.ts +1 -0
- package/dist/ai-sources/__tests__/ai-sources.ssr.test.mjs +82 -0
- package/dist/ai-sources/__tests__/ai-sources.test.cjs +93 -0
- package/dist/ai-sources/__tests__/ai-sources.test.d.ts +1 -0
- package/dist/ai-sources/__tests__/ai-sources.test.mjs +89 -0
- package/dist/ai-sources/index.cjs +26 -0
- package/dist/ai-sources/index.d.ts +3 -0
- package/dist/ai-sources/index.mjs +5 -0
- package/dist/ai-sources/src/ai-sources.cjs +59 -0
- package/dist/ai-sources/src/ai-sources.css +830 -0
- package/dist/ai-sources/src/ai-sources.d.ts +79 -0
- package/dist/ai-sources/src/ai-sources.d.vue.ts +45 -0
- package/dist/ai-sources/src/ai-sources.mjs +53 -0
- package/dist/ai-sources/src/ai-sources.vue +1093 -0
- package/dist/ai-sources/src/ai-sources.vue.d.ts +45 -0
- package/dist/ai-thinking/__tests__/ai-thinking.ssr.test.cjs +56 -0
- package/dist/ai-thinking/__tests__/ai-thinking.ssr.test.d.ts +1 -0
- package/dist/ai-thinking/__tests__/ai-thinking.ssr.test.mjs +42 -0
- package/dist/ai-thinking/__tests__/ai-thinking.test.cjs +151 -0
- package/dist/ai-thinking/__tests__/ai-thinking.test.d.ts +1 -0
- package/dist/ai-thinking/__tests__/ai-thinking.test.mjs +96 -0
- package/dist/ai-thinking/index.cjs +26 -0
- package/dist/ai-thinking/index.d.ts +3 -0
- package/dist/ai-thinking/index.mjs +5 -0
- package/dist/ai-thinking/src/ai-thinking.cjs +44 -0
- package/dist/ai-thinking/src/ai-thinking.css +543 -0
- package/dist/ai-thinking/src/ai-thinking.d.ts +42 -0
- package/dist/ai-thinking/src/ai-thinking.d.vue.ts +33 -0
- package/dist/ai-thinking/src/ai-thinking.mjs +38 -0
- package/dist/ai-thinking/src/ai-thinking.vue +631 -0
- package/dist/ai-thinking/src/ai-thinking.vue.d.ts +33 -0
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.ssr.test.cjs +83 -0
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.ssr.test.d.ts +1 -0
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.ssr.test.mjs +52 -0
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.test.cjs +204 -0
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.test.d.ts +1 -0
- package/dist/ai-thought-chain/__tests__/ai-thought-chain.test.mjs +134 -0
- package/dist/ai-thought-chain/index.cjs +26 -0
- package/dist/ai-thought-chain/index.d.ts +3 -0
- package/dist/ai-thought-chain/index.mjs +5 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.cjs +68 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.css +668 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.d.ts +82 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.d.vue.ts +83 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.mjs +62 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.vue +813 -0
- package/dist/ai-thought-chain/src/ai-thought-chain.vue.d.ts +83 -0
- package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.ssr.test.cjs +32 -0
- package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.ssr.test.d.ts +1 -0
- package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.ssr.test.mjs +25 -0
- package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.test.cjs +130 -0
- package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.test.d.ts +1 -0
- package/dist/ai-voice-trigger/__tests__/ai-voice-trigger.test.mjs +103 -0
- package/dist/ai-voice-trigger/index.cjs +26 -0
- package/dist/ai-voice-trigger/index.d.ts +3 -0
- package/dist/ai-voice-trigger/index.mjs +5 -0
- package/dist/ai-voice-trigger/src/ai-voice-trigger.cjs +67 -0
- package/dist/ai-voice-trigger/src/ai-voice-trigger.css +702 -0
- package/dist/ai-voice-trigger/src/ai-voice-trigger.d.ts +69 -0
- package/dist/ai-voice-trigger/src/ai-voice-trigger.d.vue.ts +49 -0
- package/dist/ai-voice-trigger/src/ai-voice-trigger.mjs +61 -0
- package/dist/ai-voice-trigger/src/ai-voice-trigger.vue +859 -0
- package/dist/ai-voice-trigger/src/ai-voice-trigger.vue.d.ts +49 -0
- package/dist/ai-welcome/__tests__/ai-welcome.ssr.test.cjs +57 -0
- package/dist/ai-welcome/__tests__/ai-welcome.ssr.test.d.ts +1 -0
- package/dist/ai-welcome/__tests__/ai-welcome.ssr.test.mjs +39 -0
- package/dist/ai-welcome/__tests__/ai-welcome.test.cjs +169 -0
- package/dist/ai-welcome/__tests__/ai-welcome.test.d.ts +1 -0
- package/dist/ai-welcome/__tests__/ai-welcome.test.mjs +113 -0
- package/dist/ai-welcome/index.cjs +26 -0
- package/dist/ai-welcome/index.d.ts +3 -0
- package/dist/ai-welcome/index.mjs +5 -0
- package/dist/ai-welcome/src/ai-welcome.cjs +56 -0
- package/dist/ai-welcome/src/ai-welcome.css +591 -0
- package/dist/ai-welcome/src/ai-welcome.d.ts +59 -0
- package/dist/ai-welcome/src/ai-welcome.d.vue.ts +51 -0
- package/dist/ai-welcome/src/ai-welcome.mjs +50 -0
- package/dist/ai-welcome/src/ai-welcome.vue +655 -0
- package/dist/ai-welcome/src/ai-welcome.vue.d.ts +51 -0
- package/dist/alert/src/alert.d.vue.ts +6 -6
- package/dist/alert/src/alert.vue.d.ts +6 -6
- package/dist/autocomplete/src/autocomplete.d.vue.ts +4 -4
- package/dist/autocomplete/src/autocomplete.vue.d.ts +4 -4
- package/dist/avatar/index.d.ts +39 -1
- package/dist/back-top/src/back-top.d.vue.ts +1 -1
- package/dist/back-top/src/back-top.vue.d.ts +1 -1
- package/dist/button/index.d.ts +3 -3
- package/dist/button/src/button.css +3 -3
- package/dist/button/src/button.d.vue.ts +1 -1
- package/dist/button/src/button.vue +3 -3
- package/dist/button/src/button.vue.d.ts +1 -1
- package/dist/calendar/src/calendar.d.vue.ts +3 -3
- package/dist/calendar/src/calendar.vue.d.ts +3 -3
- package/dist/cascader/src/cascader-panel.d.vue.ts +2 -2
- package/dist/cascader/src/cascader-panel.vue.d.ts +2 -2
- package/dist/checkbox/index.d.ts +3 -3
- package/dist/checkbox/src/checkbox-group.d.vue.ts +1 -1
- package/dist/checkbox/src/checkbox-group.vue +13 -1
- package/dist/checkbox/src/checkbox-group.vue.d.ts +1 -1
- package/dist/checkbox/src/checkbox.d.ts +12 -0
- package/dist/col/src/col.d.vue.ts +4 -4
- package/dist/col/src/col.vue.d.ts +4 -4
- package/dist/color-picker/src/color-picker.d.vue.ts +1 -1
- package/dist/color-picker/src/color-picker.vue.d.ts +1 -1
- package/dist/component.d.ts +63 -0
- package/dist/date-picker/src/date-picker.d.vue.ts +6 -6
- package/dist/date-picker/src/date-picker.vue.d.ts +6 -6
- package/dist/descriptions/src/description-item.d.vue.ts +1 -1
- package/dist/descriptions/src/description-item.vue.d.ts +1 -1
- package/dist/dialog/src/dialog.d.vue.ts +12 -12
- package/dist/dialog/src/dialog.vue.d.ts +12 -12
- package/dist/drawer/index.d.ts +42 -1
- package/dist/drawer/src/drawer.d.vue.ts +6 -6
- package/dist/drawer/src/drawer.vue.d.ts +6 -6
- package/dist/dropdown/src/dropdown-item.d.vue.ts +1 -1
- package/dist/dropdown/src/dropdown-item.vue.d.ts +1 -1
- package/dist/dropdown/src/dropdown.d.vue.ts +8 -8
- package/dist/dropdown/src/dropdown.vue.d.ts +8 -8
- package/dist/form/__tests__/form-schema.test.cjs +477 -24
- package/dist/form/__tests__/form-schema.test.mjs +277 -57
- package/dist/form/index.cjs +12 -0
- package/dist/form/index.d.ts +1 -2
- package/dist/form/index.mjs +1 -0
- package/dist/form/src/form-item.d.vue.ts +2 -1
- package/dist/form/src/form-item.vue +3 -1
- package/dist/form/src/form-item.vue.d.ts +2 -1
- package/dist/form/src/form-schema.cjs +2 -1
- package/dist/form/src/form-schema.d.ts +124 -19
- package/dist/form/src/form-schema.d.vue.ts +69 -19
- package/dist/form/src/form-schema.mjs +2 -1
- package/dist/form/src/form-schema.vue +522 -160
- package/dist/form/src/form-schema.vue.d.ts +69 -19
- package/dist/form/src/form.cjs +7 -0
- package/dist/form/src/form.d.ts +20 -0
- package/dist/form/src/form.d.vue.ts +10 -1
- package/dist/form/src/form.mjs +7 -0
- package/dist/form/src/form.vue +22 -10
- package/dist/form/src/form.vue.d.ts +10 -1
- package/dist/grid/src/grid.d.vue.ts +1 -1
- package/dist/grid/src/grid.vue.d.ts +1 -1
- package/dist/icon/src/icons/index.cjs +127 -2
- package/dist/icon/src/icons/index.d.ts +25 -0
- package/dist/icon/src/icons/index.mjs +151 -1
- package/dist/image/index.d.ts +356 -2
- package/dist/image/src/image-viewer.d.vue.ts +3 -3
- package/dist/image/src/image-viewer.vue.d.ts +3 -3
- package/dist/image/src/image.d.vue.ts +4 -4
- package/dist/image/src/image.vue.d.ts +4 -4
- package/dist/index.cjs +205 -1
- package/dist/index.d.ts +17 -0
- package/dist/index.mjs +52 -1
- package/dist/infinite-scroll/src/infinite-scroll.d.vue.ts +1 -1
- package/dist/infinite-scroll/src/infinite-scroll.vue.d.ts +1 -1
- package/dist/input/index.d.ts +21 -21
- package/dist/input/src/input.d.vue.ts +7 -7
- package/dist/input/src/input.vue.d.ts +7 -7
- package/dist/input-number/index.d.ts +3 -3
- package/dist/input-number/src/input-number.d.vue.ts +1 -1
- package/dist/input-number/src/input-number.vue.d.ts +1 -1
- package/dist/input-tag/src/input-tag.d.vue.ts +3 -3
- package/dist/input-tag/src/input-tag.vue.d.ts +3 -3
- package/dist/mention/index.d.ts +181 -1
- package/dist/mention/src/mention.d.vue.ts +9 -9
- package/dist/mention/src/mention.vue +6 -2
- package/dist/mention/src/mention.vue.d.ts +9 -9
- package/dist/menu/src/menu.d.vue.ts +4 -4
- package/dist/menu/src/menu.vue.d.ts +4 -4
- package/dist/message/src/message.d.vue.ts +1 -1
- package/dist/message/src/message.vue.d.ts +1 -1
- package/dist/notification/src/notification.d.vue.ts +1 -1
- package/dist/notification/src/notification.vue.d.ts +1 -1
- package/dist/popconfirm/src/popconfirm.d.vue.ts +5 -5
- package/dist/popconfirm/src/popconfirm.vue.d.ts +5 -5
- package/dist/popover/src/popover.d.vue.ts +4 -4
- package/dist/popover/src/popover.vue.d.ts +4 -4
- package/dist/progress/src/progress.d.vue.ts +1 -1
- package/dist/progress/src/progress.vue.d.ts +1 -1
- package/dist/radio/src/radio-group.d.vue.ts +1 -1
- package/dist/radio/src/radio-group.vue +25 -4
- package/dist/radio/src/radio-group.vue.d.ts +1 -1
- package/dist/radio/src/radio.d.ts +12 -0
- package/dist/rate/src/rate.d.vue.ts +1 -1
- package/dist/rate/src/rate.vue.d.ts +1 -1
- package/dist/select/src/select.d.vue.ts +4 -4
- package/dist/select/src/select.vue.d.ts +4 -4
- package/dist/slider/src/slider.d.vue.ts +1 -1
- package/dist/slider/src/slider.vue.d.ts +1 -1
- package/dist/steps/src/step.d.vue.ts +1 -1
- package/dist/steps/src/step.vue.d.ts +1 -1
- package/dist/switch/src/switch.d.vue.ts +2 -2
- package/dist/switch/src/switch.vue.d.ts +2 -2
- package/dist/table/__tests__/table.perf.test.cjs +2 -2
- package/dist/table/__tests__/table.perf.test.mjs +2 -2
- package/dist/table/__tests__/table.test.cjs +18 -0
- package/dist/table/__tests__/table.test.mjs +18 -0
- package/dist/table/__tests__/use-table-import.test.cjs +6 -0
- package/dist/table/__tests__/use-table-import.test.mjs +8 -1
- package/dist/table/src/table-column.d.vue.ts +2 -2
- package/dist/table/src/table-column.vue.d.ts +2 -2
- package/dist/table/src/table.d.vue.ts +3 -3
- package/dist/table/src/table.vue.d.ts +3 -3
- package/dist/tabs/src/tab-pane.d.vue.ts +1 -1
- package/dist/tabs/src/tab-pane.vue.d.ts +1 -1
- package/dist/tabs/src/tabs.d.vue.ts +2 -2
- package/dist/tabs/src/tabs.vue.d.ts +2 -2
- package/dist/time-picker/src/time-picker.d.vue.ts +1 -1
- package/dist/time-picker/src/time-picker.vue.d.ts +1 -1
- package/dist/tooltip/index.d.ts +7 -7
- package/dist/tooltip/src/tooltip.d.vue.ts +7 -7
- package/dist/tooltip/src/tooltip.vue.d.ts +7 -7
- package/dist/tree/src/tree.d.vue.ts +1 -1
- package/dist/tree/src/tree.vue.d.ts +1 -1
- package/dist/tree-select/src/tree-select.d.vue.ts +3 -3
- package/dist/tree-select/src/tree-select.vue.d.ts +3 -3
- package/dist/upload/src/upload.d.vue.ts +1 -1
- package/dist/upload/src/upload.vue.d.ts +1 -1
- package/package.json +8 -5
package/dist/mention/index.d.ts
CHANGED
|
@@ -3,7 +3,187 @@
|
|
|
3
3
|
* @description 提及组件导出
|
|
4
4
|
*/
|
|
5
5
|
import Mention from './src/mention.vue';
|
|
6
|
-
export declare const YhMention:
|
|
6
|
+
export declare const YhMention: import("@yh-ui/utils").SFCWithInstall<{
|
|
7
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./src/mention").MentionProps> & Readonly<{
|
|
8
|
+
onSearch?: ((keyword: string, trigger: string) => any) | undefined;
|
|
9
|
+
onChange?: ((value: string) => any) | undefined;
|
|
10
|
+
onOpen?: (() => any) | undefined;
|
|
11
|
+
onClear?: (() => any) | undefined;
|
|
12
|
+
onInput?: ((value: string) => any) | undefined;
|
|
13
|
+
onSelect?: ((option: import("./src/mention").MentionOption, trigger: string) => any) | undefined;
|
|
14
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
15
|
+
onClose?: (() => any) | undefined;
|
|
16
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
17
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
18
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
21
|
+
wrapperRef: HTMLElement | undefined;
|
|
22
|
+
focus: () => void;
|
|
23
|
+
blur: () => void;
|
|
24
|
+
clear: () => void;
|
|
25
|
+
insertMention: (option: import("./src/mention").MentionOption, trigger?: string) => void;
|
|
26
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
27
|
+
search: (keyword: string, trigger: string) => any;
|
|
28
|
+
change: (value: string) => any;
|
|
29
|
+
open: () => any;
|
|
30
|
+
clear: () => any;
|
|
31
|
+
input: (value: string) => any;
|
|
32
|
+
select: (option: import("./src/mention").MentionOption, trigger: string) => any;
|
|
33
|
+
blur: (event: FocusEvent) => any;
|
|
34
|
+
close: () => any;
|
|
35
|
+
focus: (event: FocusEvent) => any;
|
|
36
|
+
keydown: (event: KeyboardEvent) => any;
|
|
37
|
+
"update:modelValue": (value: string) => any;
|
|
38
|
+
}, import("vue").PublicProps, {
|
|
39
|
+
teleported: boolean;
|
|
40
|
+
disabled: boolean;
|
|
41
|
+
split: string;
|
|
42
|
+
type: "input" | "textarea";
|
|
43
|
+
size: import("./src/mention").MentionSize;
|
|
44
|
+
loading: boolean;
|
|
45
|
+
placement: import("./src/mention").MentionPlacement;
|
|
46
|
+
popperClass: string;
|
|
47
|
+
triggers: string[];
|
|
48
|
+
options: import("./src/mention").MentionOption[];
|
|
49
|
+
autofocus: boolean;
|
|
50
|
+
modelValue: string;
|
|
51
|
+
readonly: boolean;
|
|
52
|
+
clearable: boolean;
|
|
53
|
+
showWordLimit: boolean;
|
|
54
|
+
maxCount: number;
|
|
55
|
+
filterOption: ((keyword: string, option: import("./src/mention").MentionOption) => boolean) | false;
|
|
56
|
+
loadingText: string;
|
|
57
|
+
noDataText: string;
|
|
58
|
+
wholeWord: boolean;
|
|
59
|
+
rows: number;
|
|
60
|
+
debounce: number;
|
|
61
|
+
validateEvent: boolean;
|
|
62
|
+
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
63
|
+
P: {};
|
|
64
|
+
B: {};
|
|
65
|
+
D: {};
|
|
66
|
+
C: {};
|
|
67
|
+
M: {};
|
|
68
|
+
Defaults: {};
|
|
69
|
+
}, Readonly<import("./src/mention").MentionProps> & Readonly<{
|
|
70
|
+
onSearch?: ((keyword: string, trigger: string) => any) | undefined;
|
|
71
|
+
onChange?: ((value: string) => any) | undefined;
|
|
72
|
+
onOpen?: (() => any) | undefined;
|
|
73
|
+
onClear?: (() => any) | undefined;
|
|
74
|
+
onInput?: ((value: string) => any) | undefined;
|
|
75
|
+
onSelect?: ((option: import("./src/mention").MentionOption, trigger: string) => any) | undefined;
|
|
76
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
77
|
+
onClose?: (() => any) | undefined;
|
|
78
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
79
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
80
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
81
|
+
}>, {
|
|
82
|
+
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
83
|
+
wrapperRef: HTMLElement | undefined;
|
|
84
|
+
focus: () => void;
|
|
85
|
+
blur: () => void;
|
|
86
|
+
clear: () => void;
|
|
87
|
+
insertMention: (option: import("./src/mention").MentionOption, trigger?: string) => void;
|
|
88
|
+
}, {}, {}, {}, {
|
|
89
|
+
teleported: boolean;
|
|
90
|
+
disabled: boolean;
|
|
91
|
+
split: string;
|
|
92
|
+
type: "input" | "textarea";
|
|
93
|
+
size: import("./src/mention").MentionSize;
|
|
94
|
+
loading: boolean;
|
|
95
|
+
placement: import("./src/mention").MentionPlacement;
|
|
96
|
+
popperClass: string;
|
|
97
|
+
triggers: string[];
|
|
98
|
+
options: import("./src/mention").MentionOption[];
|
|
99
|
+
autofocus: boolean;
|
|
100
|
+
modelValue: string;
|
|
101
|
+
readonly: boolean;
|
|
102
|
+
clearable: boolean;
|
|
103
|
+
showWordLimit: boolean;
|
|
104
|
+
maxCount: number;
|
|
105
|
+
filterOption: ((keyword: string, option: import("./src/mention").MentionOption) => boolean) | false;
|
|
106
|
+
loadingText: string;
|
|
107
|
+
noDataText: string;
|
|
108
|
+
wholeWord: boolean;
|
|
109
|
+
rows: number;
|
|
110
|
+
debounce: number;
|
|
111
|
+
validateEvent: boolean;
|
|
112
|
+
}>;
|
|
113
|
+
__isFragment?: never;
|
|
114
|
+
__isTeleport?: never;
|
|
115
|
+
__isSuspense?: never;
|
|
116
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("./src/mention").MentionProps> & Readonly<{
|
|
117
|
+
onSearch?: ((keyword: string, trigger: string) => any) | undefined;
|
|
118
|
+
onChange?: ((value: string) => any) | undefined;
|
|
119
|
+
onOpen?: (() => any) | undefined;
|
|
120
|
+
onClear?: (() => any) | undefined;
|
|
121
|
+
onInput?: ((value: string) => any) | undefined;
|
|
122
|
+
onSelect?: ((option: import("./src/mention").MentionOption, trigger: string) => any) | undefined;
|
|
123
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
124
|
+
onClose?: (() => any) | undefined;
|
|
125
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
126
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
127
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
128
|
+
}>, {
|
|
129
|
+
ref: HTMLInputElement | HTMLTextAreaElement | undefined;
|
|
130
|
+
wrapperRef: HTMLElement | undefined;
|
|
131
|
+
focus: () => void;
|
|
132
|
+
blur: () => void;
|
|
133
|
+
clear: () => void;
|
|
134
|
+
insertMention: (option: import("./src/mention").MentionOption, trigger?: string) => void;
|
|
135
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
136
|
+
search: (keyword: string, trigger: string) => any;
|
|
137
|
+
change: (value: string) => any;
|
|
138
|
+
open: () => any;
|
|
139
|
+
clear: () => any;
|
|
140
|
+
input: (value: string) => any;
|
|
141
|
+
select: (option: import("./src/mention").MentionOption, trigger: string) => any;
|
|
142
|
+
blur: (event: FocusEvent) => any;
|
|
143
|
+
close: () => any;
|
|
144
|
+
focus: (event: FocusEvent) => any;
|
|
145
|
+
keydown: (event: KeyboardEvent) => any;
|
|
146
|
+
"update:modelValue": (value: string) => any;
|
|
147
|
+
}, string, {
|
|
148
|
+
teleported: boolean;
|
|
149
|
+
disabled: boolean;
|
|
150
|
+
split: string;
|
|
151
|
+
type: "input" | "textarea";
|
|
152
|
+
size: import("./src/mention").MentionSize;
|
|
153
|
+
loading: boolean;
|
|
154
|
+
placement: import("./src/mention").MentionPlacement;
|
|
155
|
+
popperClass: string;
|
|
156
|
+
triggers: string[];
|
|
157
|
+
options: import("./src/mention").MentionOption[];
|
|
158
|
+
autofocus: boolean;
|
|
159
|
+
modelValue: string;
|
|
160
|
+
readonly: boolean;
|
|
161
|
+
clearable: boolean;
|
|
162
|
+
showWordLimit: boolean;
|
|
163
|
+
maxCount: number;
|
|
164
|
+
filterOption: ((keyword: string, option: import("./src/mention").MentionOption) => boolean) | false;
|
|
165
|
+
loadingText: string;
|
|
166
|
+
noDataText: string;
|
|
167
|
+
wholeWord: boolean;
|
|
168
|
+
rows: number;
|
|
169
|
+
debounce: number;
|
|
170
|
+
validateEvent: boolean;
|
|
171
|
+
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
172
|
+
$slots: {
|
|
173
|
+
prefix?: (props: {}) => any;
|
|
174
|
+
} & {
|
|
175
|
+
suffix?: (props: {}) => any;
|
|
176
|
+
} & {
|
|
177
|
+
loading?: (props: {}) => any;
|
|
178
|
+
} & {
|
|
179
|
+
empty?: (props: {}) => any;
|
|
180
|
+
} & {
|
|
181
|
+
option?: (props: {
|
|
182
|
+
option: any;
|
|
183
|
+
keyword: any;
|
|
184
|
+
}) => any;
|
|
185
|
+
};
|
|
186
|
+
})> & Record<string, unknown>;
|
|
7
187
|
export default YhMention;
|
|
8
188
|
export * from './src/mention';
|
|
9
189
|
export type MentionInstance = InstanceType<typeof Mention>;
|
|
@@ -56,24 +56,24 @@ declare const __VLS_component: import("vue").DefineComponent<MentionProps, {
|
|
|
56
56
|
split: string;
|
|
57
57
|
type: "input" | "textarea";
|
|
58
58
|
size: import("./mention").MentionSize;
|
|
59
|
-
|
|
60
|
-
clearable: boolean;
|
|
61
|
-
debounce: number;
|
|
59
|
+
loading: boolean;
|
|
62
60
|
placement: import("./mention").MentionPlacement;
|
|
63
61
|
popperClass: string;
|
|
64
|
-
|
|
62
|
+
triggers: string[];
|
|
63
|
+
options: MentionOption[];
|
|
65
64
|
autofocus: boolean;
|
|
66
|
-
|
|
65
|
+
modelValue: string;
|
|
67
66
|
readonly: boolean;
|
|
68
|
-
|
|
69
|
-
options: MentionOption[];
|
|
70
|
-
triggers: string[];
|
|
71
|
-
loadingText: string;
|
|
67
|
+
clearable: boolean;
|
|
72
68
|
showWordLimit: boolean;
|
|
73
69
|
maxCount: number;
|
|
74
70
|
filterOption: ((keyword: string, option: MentionOption) => boolean) | false;
|
|
71
|
+
loadingText: string;
|
|
75
72
|
noDataText: string;
|
|
76
73
|
wholeWord: boolean;
|
|
74
|
+
rows: number;
|
|
75
|
+
debounce: number;
|
|
76
|
+
validateEvent: boolean;
|
|
77
77
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
78
78
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
79
79
|
export default _default;
|
|
@@ -288,8 +288,12 @@ const focus = () => inputRef.value?.focus();
|
|
|
288
288
|
const blur = () => inputRef.value?.blur();
|
|
289
289
|
const clear = () => handleClear();
|
|
290
290
|
defineExpose({
|
|
291
|
-
ref
|
|
292
|
-
|
|
291
|
+
get ref() {
|
|
292
|
+
return inputRef.value;
|
|
293
|
+
},
|
|
294
|
+
get wrapperRef() {
|
|
295
|
+
return wrapperRef.value;
|
|
296
|
+
},
|
|
293
297
|
focus,
|
|
294
298
|
blur,
|
|
295
299
|
clear,
|
|
@@ -56,24 +56,24 @@ declare const __VLS_component: import("vue").DefineComponent<MentionProps, {
|
|
|
56
56
|
split: string;
|
|
57
57
|
type: "input" | "textarea";
|
|
58
58
|
size: import("./mention").MentionSize;
|
|
59
|
-
|
|
60
|
-
clearable: boolean;
|
|
61
|
-
debounce: number;
|
|
59
|
+
loading: boolean;
|
|
62
60
|
placement: import("./mention").MentionPlacement;
|
|
63
61
|
popperClass: string;
|
|
64
|
-
|
|
62
|
+
triggers: string[];
|
|
63
|
+
options: MentionOption[];
|
|
65
64
|
autofocus: boolean;
|
|
66
|
-
|
|
65
|
+
modelValue: string;
|
|
67
66
|
readonly: boolean;
|
|
68
|
-
|
|
69
|
-
options: MentionOption[];
|
|
70
|
-
triggers: string[];
|
|
71
|
-
loadingText: string;
|
|
67
|
+
clearable: boolean;
|
|
72
68
|
showWordLimit: boolean;
|
|
73
69
|
maxCount: number;
|
|
74
70
|
filterOption: ((keyword: string, option: MentionOption) => boolean) | false;
|
|
71
|
+
loadingText: string;
|
|
75
72
|
noDataText: string;
|
|
76
73
|
wholeWord: boolean;
|
|
74
|
+
rows: number;
|
|
75
|
+
debounce: number;
|
|
76
|
+
validateEvent: boolean;
|
|
77
77
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
78
78
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
79
79
|
export default _default;
|
|
@@ -169,20 +169,20 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
169
169
|
readonly backgroundColor: string;
|
|
170
170
|
readonly gap: number;
|
|
171
171
|
readonly popperClass: string;
|
|
172
|
-
readonly
|
|
172
|
+
readonly persistent: boolean;
|
|
173
|
+
readonly popperStyle: string | object;
|
|
173
174
|
readonly options: import("./menu").MenuItemData[];
|
|
175
|
+
readonly mode: import("./menu").MenuMode;
|
|
174
176
|
readonly textColor: string;
|
|
175
|
-
readonly popperStyle: string | object;
|
|
176
177
|
readonly expandAll: boolean;
|
|
177
|
-
readonly persistent: boolean;
|
|
178
178
|
readonly responsive: boolean;
|
|
179
|
-
readonly activeTextColor: string;
|
|
180
179
|
readonly defaultActive: string;
|
|
181
180
|
readonly defaultOpeneds: string[];
|
|
182
181
|
readonly uniqueOpened: boolean;
|
|
183
182
|
readonly menuTrigger: import("./menu").MenuTrigger;
|
|
184
183
|
readonly collapseTransition: boolean;
|
|
185
184
|
readonly router: boolean;
|
|
185
|
+
readonly activeTextColor: string;
|
|
186
186
|
readonly popperZIndex: number;
|
|
187
187
|
readonly ellipsisIcon: string | import("vue").Component;
|
|
188
188
|
readonly popperOffset: number;
|
|
@@ -169,20 +169,20 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
169
169
|
readonly backgroundColor: string;
|
|
170
170
|
readonly gap: number;
|
|
171
171
|
readonly popperClass: string;
|
|
172
|
-
readonly
|
|
172
|
+
readonly persistent: boolean;
|
|
173
|
+
readonly popperStyle: string | object;
|
|
173
174
|
readonly options: import("./menu").MenuItemData[];
|
|
175
|
+
readonly mode: import("./menu").MenuMode;
|
|
174
176
|
readonly textColor: string;
|
|
175
|
-
readonly popperStyle: string | object;
|
|
176
177
|
readonly expandAll: boolean;
|
|
177
|
-
readonly persistent: boolean;
|
|
178
178
|
readonly responsive: boolean;
|
|
179
|
-
readonly activeTextColor: string;
|
|
180
179
|
readonly defaultActive: string;
|
|
181
180
|
readonly defaultOpeneds: string[];
|
|
182
181
|
readonly uniqueOpened: boolean;
|
|
183
182
|
readonly menuTrigger: import("./menu").MenuTrigger;
|
|
184
183
|
readonly collapseTransition: boolean;
|
|
185
184
|
readonly router: boolean;
|
|
185
|
+
readonly activeTextColor: string;
|
|
186
186
|
readonly popperZIndex: number;
|
|
187
187
|
readonly ellipsisIcon: string | import("vue").Component;
|
|
188
188
|
readonly popperOffset: number;
|
|
@@ -16,9 +16,9 @@ declare const __VLS_component: import("vue").DefineComponent<MessageProps, {
|
|
|
16
16
|
offset: number;
|
|
17
17
|
type: import("./message").MessageType;
|
|
18
18
|
center: boolean;
|
|
19
|
-
duration: number;
|
|
20
19
|
placement: import("./message").MessagePlacement;
|
|
21
20
|
showClose: boolean;
|
|
21
|
+
duration: number;
|
|
22
22
|
dangerouslyUseHTMLString: boolean;
|
|
23
23
|
grouping: boolean;
|
|
24
24
|
repeatNum: number;
|
|
@@ -16,9 +16,9 @@ declare const __VLS_component: import("vue").DefineComponent<MessageProps, {
|
|
|
16
16
|
offset: number;
|
|
17
17
|
type: import("./message").MessageType;
|
|
18
18
|
center: boolean;
|
|
19
|
-
duration: number;
|
|
20
19
|
placement: import("./message").MessagePlacement;
|
|
21
20
|
showClose: boolean;
|
|
21
|
+
duration: number;
|
|
22
22
|
dangerouslyUseHTMLString: boolean;
|
|
23
23
|
grouping: boolean;
|
|
24
24
|
repeatNum: number;
|
|
@@ -17,8 +17,8 @@ declare const __VLS_component: import("vue").DefineComponent<NotificationProps,
|
|
|
17
17
|
}>, {
|
|
18
18
|
offset: number;
|
|
19
19
|
position: import("./notification").NotificationPosition;
|
|
20
|
-
duration: number;
|
|
21
20
|
showClose: boolean;
|
|
21
|
+
duration: number;
|
|
22
22
|
dangerouslyUseHTMLString: boolean;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -17,8 +17,8 @@ declare const __VLS_component: import("vue").DefineComponent<NotificationProps,
|
|
|
17
17
|
}>, {
|
|
18
18
|
offset: number;
|
|
19
19
|
position: import("./notification").NotificationPosition;
|
|
20
|
-
duration: number;
|
|
21
20
|
showClose: boolean;
|
|
21
|
+
duration: number;
|
|
22
22
|
dangerouslyUseHTMLString: boolean;
|
|
23
23
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
24
24
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -122,15 +122,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
122
122
|
readonly visible: boolean | null;
|
|
123
123
|
readonly icon: string;
|
|
124
124
|
readonly title: string;
|
|
125
|
-
readonly
|
|
126
|
-
readonly
|
|
125
|
+
readonly placement: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
126
|
+
readonly showArrow: boolean;
|
|
127
127
|
readonly popperClass: string;
|
|
128
128
|
readonly popperStyle: Record<string, unknown>;
|
|
129
|
-
readonly
|
|
129
|
+
readonly description: string;
|
|
130
130
|
readonly confirmButtonText: string;
|
|
131
131
|
readonly cancelButtonText: string;
|
|
132
|
-
readonly confirmButtonType: "default" | "
|
|
133
|
-
readonly cancelButtonType: "default" | "
|
|
132
|
+
readonly confirmButtonType: "default" | "info" | "warning" | "success" | "primary" | "danger";
|
|
133
|
+
readonly cancelButtonType: "default" | "info" | "warning" | "success" | "primary" | "danger";
|
|
134
134
|
readonly iconColor: string;
|
|
135
135
|
readonly hideIcon: boolean;
|
|
136
136
|
readonly hideCancel: boolean;
|
|
@@ -122,15 +122,15 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
122
122
|
readonly visible: boolean | null;
|
|
123
123
|
readonly icon: string;
|
|
124
124
|
readonly title: string;
|
|
125
|
-
readonly
|
|
126
|
-
readonly
|
|
125
|
+
readonly placement: "top" | "bottom" | "left" | "right" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "left-start" | "left-end" | "right-start" | "right-end";
|
|
126
|
+
readonly showArrow: boolean;
|
|
127
127
|
readonly popperClass: string;
|
|
128
128
|
readonly popperStyle: Record<string, unknown>;
|
|
129
|
-
readonly
|
|
129
|
+
readonly description: string;
|
|
130
130
|
readonly confirmButtonText: string;
|
|
131
131
|
readonly cancelButtonText: string;
|
|
132
|
-
readonly confirmButtonType: "default" | "
|
|
133
|
-
readonly cancelButtonType: "default" | "
|
|
132
|
+
readonly confirmButtonType: "default" | "info" | "warning" | "success" | "primary" | "danger";
|
|
133
|
+
readonly cancelButtonType: "default" | "info" | "warning" | "success" | "primary" | "danger";
|
|
134
134
|
readonly iconColor: string;
|
|
135
135
|
readonly hideIcon: boolean;
|
|
136
136
|
readonly hideCancel: boolean;
|
|
@@ -118,17 +118,17 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
118
118
|
readonly visible: boolean | null;
|
|
119
119
|
readonly maxHeight: string | number;
|
|
120
120
|
readonly transition: string;
|
|
121
|
-
readonly effect: string;
|
|
122
|
-
readonly scrollable: boolean;
|
|
123
121
|
readonly placement: import("@floating-ui/dom").Placement;
|
|
124
|
-
readonly popperClass: string;
|
|
125
|
-
readonly popperStyle: CSSProperties;
|
|
126
122
|
readonly trigger: "click" | "contextmenu" | "focus" | "hover" | ("click" | "contextmenu" | "focus" | "hover")[];
|
|
127
123
|
readonly showAfter: number;
|
|
128
124
|
readonly hideAfter: number;
|
|
129
125
|
readonly showArrow: boolean;
|
|
130
126
|
readonly interactive: boolean;
|
|
127
|
+
readonly effect: string;
|
|
128
|
+
readonly popperClass: string;
|
|
131
129
|
readonly persistent: boolean;
|
|
130
|
+
readonly scrollable: boolean;
|
|
131
|
+
readonly popperStyle: CSSProperties;
|
|
132
132
|
readonly matchTriggerWidth: boolean;
|
|
133
133
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
134
134
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -118,17 +118,17 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
118
118
|
readonly visible: boolean | null;
|
|
119
119
|
readonly maxHeight: string | number;
|
|
120
120
|
readonly transition: string;
|
|
121
|
-
readonly effect: string;
|
|
122
|
-
readonly scrollable: boolean;
|
|
123
121
|
readonly placement: import("@floating-ui/dom").Placement;
|
|
124
|
-
readonly popperClass: string;
|
|
125
|
-
readonly popperStyle: CSSProperties;
|
|
126
122
|
readonly trigger: "click" | "contextmenu" | "focus" | "hover" | ("click" | "contextmenu" | "focus" | "hover")[];
|
|
127
123
|
readonly showAfter: number;
|
|
128
124
|
readonly hideAfter: number;
|
|
129
125
|
readonly showArrow: boolean;
|
|
130
126
|
readonly interactive: boolean;
|
|
127
|
+
readonly effect: string;
|
|
128
|
+
readonly popperClass: string;
|
|
131
129
|
readonly persistent: boolean;
|
|
130
|
+
readonly scrollable: boolean;
|
|
131
|
+
readonly popperStyle: CSSProperties;
|
|
132
132
|
readonly matchTriggerWidth: boolean;
|
|
133
133
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
134
134
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -178,10 +178,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
178
178
|
readonly icon: string;
|
|
179
179
|
readonly strokeLinecap: "round" | "butt" | "square";
|
|
180
180
|
readonly strokeWidth: number;
|
|
181
|
+
readonly percentage: number | number[];
|
|
181
182
|
readonly duration: number;
|
|
182
183
|
readonly indeterminate: boolean;
|
|
183
184
|
readonly steps: number;
|
|
184
|
-
readonly percentage: number | number[];
|
|
185
185
|
readonly secondaryPercentage: number;
|
|
186
186
|
readonly textInside: boolean;
|
|
187
187
|
readonly showText: boolean;
|
|
@@ -178,10 +178,10 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
178
178
|
readonly icon: string;
|
|
179
179
|
readonly strokeLinecap: "round" | "butt" | "square";
|
|
180
180
|
readonly strokeWidth: number;
|
|
181
|
+
readonly percentage: number | number[];
|
|
181
182
|
readonly duration: number;
|
|
182
183
|
readonly indeterminate: boolean;
|
|
183
184
|
readonly steps: number;
|
|
184
|
-
readonly percentage: number | number[];
|
|
185
185
|
readonly secondaryPercentage: number;
|
|
186
186
|
readonly textInside: boolean;
|
|
187
187
|
readonly showText: boolean;
|
|
@@ -11,8 +11,8 @@ declare const __VLS_component: import("vue").DefineComponent<RadioGroupProps, {}
|
|
|
11
11
|
"onUpdate:modelValue"?: ((value: RadioValueType) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
13
|
disabled: boolean;
|
|
14
|
-
validateEvent: boolean;
|
|
15
14
|
tag: string | import("vue").Component;
|
|
15
|
+
validateEvent: boolean;
|
|
16
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
18
|
export default _default;
|
|
@@ -3,12 +3,14 @@ import { computed, provide, toRefs } from "vue";
|
|
|
3
3
|
import { useNamespace, useFormItem, useId } from "@yh-ui/hooks";
|
|
4
4
|
import { useComponentTheme } from "@yh-ui/theme";
|
|
5
5
|
import { useConfig } from "@yh-ui/hooks";
|
|
6
|
+
import YhRadio from "./radio.vue";
|
|
6
7
|
import { radioGroupContextKey } from "./radio";
|
|
7
8
|
defineOptions({
|
|
8
9
|
name: "YhRadioGroup"
|
|
9
10
|
});
|
|
10
11
|
const props = defineProps({
|
|
11
12
|
modelValue: { type: [String, Number, Boolean], required: false },
|
|
13
|
+
options: { type: Array, required: false },
|
|
12
14
|
size: { type: null, required: false },
|
|
13
15
|
disabled: { type: Boolean, required: false, default: false },
|
|
14
16
|
name: { type: String, required: false },
|
|
@@ -20,7 +22,10 @@ const props = defineProps({
|
|
|
20
22
|
});
|
|
21
23
|
const emit = defineEmits(["update:modelValue", "change"]);
|
|
22
24
|
const ns = useNamespace("radio-group");
|
|
23
|
-
const { themeStyle } = useComponentTheme(
|
|
25
|
+
const { themeStyle } = useComponentTheme(
|
|
26
|
+
"radio-group",
|
|
27
|
+
computed(() => props.themeOverrides)
|
|
28
|
+
);
|
|
24
29
|
const { formItem } = useFormItem();
|
|
25
30
|
const { validate } = useFormItem();
|
|
26
31
|
const labelId = useId().value;
|
|
@@ -65,10 +70,26 @@ const groupClasses = computed(() => [
|
|
|
65
70
|
</script>
|
|
66
71
|
|
|
67
72
|
<template>
|
|
68
|
-
<component
|
|
73
|
+
<component
|
|
74
|
+
:is="tag"
|
|
75
|
+
:class="groupClasses"
|
|
76
|
+
:style="themeStyle"
|
|
77
|
+
role="radiogroup"
|
|
78
|
+
:aria-labelledby="labelId"
|
|
69
79
|
:aria-invalid="formItem?.validateStatus === 'error'"
|
|
70
|
-
:aria-describedby="formItem?.validateStatus === 'error' ? formItem?.errorId : void 0"
|
|
71
|
-
|
|
80
|
+
:aria-describedby="formItem?.validateStatus === 'error' ? formItem?.errorId : void 0"
|
|
81
|
+
>
|
|
82
|
+
<slot>
|
|
83
|
+
<template v-if="options && options.length">
|
|
84
|
+
<yh-radio
|
|
85
|
+
v-for="item in options"
|
|
86
|
+
:key="String(item.value)"
|
|
87
|
+
:value="item.value"
|
|
88
|
+
:label="item.label"
|
|
89
|
+
:disabled="item.disabled"
|
|
90
|
+
/>
|
|
91
|
+
</template>
|
|
92
|
+
</slot>
|
|
72
93
|
</component>
|
|
73
94
|
</template>
|
|
74
95
|
|
|
@@ -11,8 +11,8 @@ declare const __VLS_component: import("vue").DefineComponent<RadioGroupProps, {}
|
|
|
11
11
|
"onUpdate:modelValue"?: ((value: RadioValueType) => any) | undefined;
|
|
12
12
|
}>, {
|
|
13
13
|
disabled: boolean;
|
|
14
|
-
validateEvent: boolean;
|
|
15
14
|
tag: string | import("vue").Component;
|
|
15
|
+
validateEvent: boolean;
|
|
16
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
17
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
18
|
export default _default;
|
|
@@ -93,6 +93,14 @@ export interface RadioExpose {
|
|
|
93
93
|
*/
|
|
94
94
|
blur: () => void;
|
|
95
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* RadioGroup 选项定义
|
|
98
|
+
*/
|
|
99
|
+
export interface RadioGroupOption {
|
|
100
|
+
value: RadioValueType;
|
|
101
|
+
label?: string;
|
|
102
|
+
disabled?: boolean;
|
|
103
|
+
}
|
|
96
104
|
/**
|
|
97
105
|
* RadioGroup Props 定义
|
|
98
106
|
*/
|
|
@@ -101,6 +109,10 @@ export interface RadioGroupProps {
|
|
|
101
109
|
* @description 绑定值
|
|
102
110
|
*/
|
|
103
111
|
modelValue?: RadioValueType;
|
|
112
|
+
/**
|
|
113
|
+
* @description 单选配置项
|
|
114
|
+
*/
|
|
115
|
+
options?: RadioGroupOption[];
|
|
104
116
|
/**
|
|
105
117
|
* @description 单选框组尺寸
|
|
106
118
|
*/
|
|
@@ -87,6 +87,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
87
87
|
readonly icon: string | import("vue").Component;
|
|
88
88
|
readonly modelValue: number;
|
|
89
89
|
readonly clearable: boolean;
|
|
90
|
+
readonly showScore: boolean;
|
|
90
91
|
readonly max: number;
|
|
91
92
|
readonly textColor: string;
|
|
92
93
|
readonly texts: string[];
|
|
@@ -97,7 +98,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
97
98
|
readonly colors: string | string[] | Record<number, string>;
|
|
98
99
|
readonly voidColor: string;
|
|
99
100
|
readonly disabledVoidColor: string;
|
|
100
|
-
readonly showScore: boolean;
|
|
101
101
|
readonly scoreTemplate: string;
|
|
102
102
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
103
103
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -87,6 +87,7 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
87
87
|
readonly icon: string | import("vue").Component;
|
|
88
88
|
readonly modelValue: number;
|
|
89
89
|
readonly clearable: boolean;
|
|
90
|
+
readonly showScore: boolean;
|
|
90
91
|
readonly max: number;
|
|
91
92
|
readonly textColor: string;
|
|
92
93
|
readonly texts: string[];
|
|
@@ -97,7 +98,6 @@ declare const __VLS_component: import("vue").DefineComponent<import("vue").Extra
|
|
|
97
98
|
readonly colors: string | string[] | Record<number, string>;
|
|
98
99
|
readonly voidColor: string;
|
|
99
100
|
readonly disabledVoidColor: string;
|
|
100
|
-
readonly showScore: boolean;
|
|
101
101
|
readonly scoreTemplate: string;
|
|
102
102
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
103
103
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
@@ -39,19 +39,19 @@ declare const __VLS_component: import("vue").DefineComponent<SelectProps, {
|
|
|
39
39
|
height: number;
|
|
40
40
|
size: import("./select").SelectSize;
|
|
41
41
|
multiple: boolean;
|
|
42
|
+
loading: boolean;
|
|
42
43
|
clearable: boolean;
|
|
44
|
+
loadingText: string;
|
|
45
|
+
noDataText: string;
|
|
46
|
+
validateEvent: boolean;
|
|
43
47
|
valueKey: string;
|
|
44
48
|
fitInputWidth: boolean;
|
|
45
|
-
validateEvent: boolean;
|
|
46
|
-
loading: boolean;
|
|
47
49
|
itemHeight: number;
|
|
48
50
|
filterable: boolean;
|
|
49
51
|
collapseTags: boolean;
|
|
50
52
|
collapseTagsTooltip: boolean;
|
|
51
53
|
maxCollapseTags: number;
|
|
52
54
|
tagType: import("./select").SelectTagType;
|
|
53
|
-
loadingText: string;
|
|
54
|
-
noDataText: string;
|
|
55
55
|
multipleLimit: number;
|
|
56
56
|
remote: boolean;
|
|
57
57
|
noMatchText: string;
|