tanxin-ui 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +45 -0
- package/README.md +11 -0
- package/dist/logo.png +0 -0
- package/dist/style.css +1 -0
- package/dist/tanxin-ui.es.js +23163 -0
- package/dist/tanxin-ui.umd.js +17 -0
- package/es/affix/index.d.ts +100 -0
- package/es/affix/index.js +4 -0
- package/es/affix/src/affix.d.ts +30 -0
- package/es/affix/src/affix.js +139 -0
- package/es/alert/index.d.ts +183 -0
- package/es/alert/index.js +4 -0
- package/es/alert/src/alert.d.ts +65 -0
- package/es/alert/src/alert.js +156 -0
- package/es/anchor/index.d.ts +114 -0
- package/es/anchor/index.js +6 -0
- package/es/anchor/src/anchor-link.d.ts +6 -0
- package/es/anchor/src/anchor-link.js +69 -0
- package/es/anchor/src/anchor.d.ts +10 -0
- package/es/anchor/src/anchor.js +163 -0
- package/es/anchor/src/context.d.ts +11 -0
- package/es/anchor/src/context.js +9 -0
- package/es/avatar/index.d.ts +193 -0
- package/es/avatar/index.js +4 -0
- package/es/avatar/src/avatar.d.ts +73 -0
- package/es/avatar/src/avatar.js +137 -0
- package/es/back-top/index.d.ts +133 -0
- package/es/back-top/index.js +4 -0
- package/es/back-top/src/back-top.d.ts +45 -0
- package/es/back-top/src/back-top.js +163 -0
- package/es/badge/index.d.ts +111 -0
- package/es/badge/index.js +4 -0
- package/es/badge/src/badge.d.ts +33 -0
- package/es/badge/src/badge.js +76 -0
- package/es/breadcrumb/index.d.ts +154 -0
- package/es/breadcrumb/index.js +6 -0
- package/es/breadcrumb/src/breadcrumb-item.d.ts +28 -0
- package/es/breadcrumb/src/breadcrumb-item.js +14 -0
- package/es/breadcrumb/src/breadcrumb.d.ts +23 -0
- package/es/breadcrumb/src/breadcrumb.js +81 -0
- package/es/button/index.d.ts +530 -0
- package/es/button/index.js +4 -0
- package/es/button/src/button.d.ts +292 -0
- package/es/button/src/button.js +214 -0
- package/es/calendar/index.d.ts +254 -0
- package/es/calendar/index.js +4 -0
- package/es/calendar/src/calendar.d.ts +101 -0
- package/es/calendar/src/calendar.js +329 -0
- package/es/card/index.d.ts +206 -0
- package/es/card/index.js +4 -0
- package/es/card/src/card.d.ts +78 -0
- package/es/card/src/card.js +76 -0
- package/es/carousel/index.d.ts +240 -0
- package/es/carousel/index.js +4 -0
- package/es/carousel/src/carousel.d.ts +103 -0
- package/es/carousel/src/carousel.js +354 -0
- package/es/cascader/index.d.ts +631 -0
- package/es/cascader/index.js +4 -0
- package/es/cascader/src/cascader.d.ts +282 -0
- package/es/cascader/src/cascader.js +328 -0
- package/es/cascader-panel/index.d.ts +444 -0
- package/es/cascader-panel/index.js +4 -0
- package/es/cascader-panel/src/cascader-panel.d.ts +188 -0
- package/es/cascader-panel/src/cascader-panel.js +514 -0
- package/es/cascader-panel/src/context.d.ts +101 -0
- package/es/cascader-panel/src/context.js +33 -0
- package/es/checkbox/index.d.ts +495 -0
- package/es/checkbox/index.js +6 -0
- package/es/checkbox/src/checkbox-group.d.ts +77 -0
- package/es/checkbox/src/checkbox-group.js +77 -0
- package/es/checkbox/src/checkbox.d.ts +118 -0
- package/es/checkbox/src/checkbox.js +202 -0
- package/es/checkbox/src/context.d.ts +15 -0
- package/es/checkbox/src/context.js +9 -0
- package/es/color-picker/index.d.ts +328 -0
- package/es/color-picker/index.js +4 -0
- package/es/color-picker/src/color-picker-content.d.ts +88 -0
- package/es/color-picker/src/color-picker-content.js +568 -0
- package/es/color-picker/src/color-picker.d.ts +133 -0
- package/es/color-picker/src/color-picker.js +262 -0
- package/es/color-picker/src/context.d.ts +17 -0
- package/es/color-picker/src/context.js +9 -0
- package/es/components.d.ts +59 -0
- package/es/components.js +59 -0
- package/es/config-provider/index.d.ts +80 -0
- package/es/config-provider/index.js +4 -0
- package/es/config-provider/src/config-provider.d.ts +25 -0
- package/es/config-provider/src/config-provider.js +21 -0
- package/es/config-provider/src/context.d.ts +10 -0
- package/es/config-provider/src/context.js +11 -0
- package/es/date-picker/index.d.ts +493 -0
- package/es/date-picker/index.js +4 -0
- package/es/date-picker/src/context.d.ts +45 -0
- package/es/date-picker/src/context.js +9 -0
- package/es/date-picker/src/date-picker-date.d.ts +168 -0
- package/es/date-picker/src/date-picker-date.js +571 -0
- package/es/date-picker/src/date-picker-time.d.ts +157 -0
- package/es/date-picker/src/date-picker-time.js +324 -0
- package/es/date-picker/src/date-picker-week.d.ts +167 -0
- package/es/date-picker/src/date-picker-week.js +546 -0
- package/es/date-picker/src/date-picker-year.d.ts +135 -0
- package/es/date-picker/src/date-picker-year.js +329 -0
- package/es/date-picker/src/date-picker.d.ts +218 -0
- package/es/date-picker/src/date-picker.js +962 -0
- package/es/divider/index.d.ts +50 -0
- package/es/divider/index.js +4 -0
- package/es/divider/src/divider.d.ts +4 -0
- package/es/divider/src/divider.js +62 -0
- package/es/drawer/index.d.ts +488 -0
- package/es/drawer/index.js +4 -0
- package/es/drawer/src/drawer.d.ts +302 -0
- package/es/drawer/src/drawer.js +346 -0
- package/es/dropdown/index.d.ts +571 -0
- package/es/dropdown/index.js +8 -0
- package/es/dropdown/src/context.d.ts +32 -0
- package/es/dropdown/src/context.js +9 -0
- package/es/dropdown/src/dropdown-group.d.ts +20 -0
- package/es/dropdown/src/dropdown-group.js +12 -0
- package/es/dropdown/src/dropdown-item.d.ts +63 -0
- package/es/dropdown/src/dropdown-item.js +29 -0
- package/es/dropdown/src/dropdown.d.ts +155 -0
- package/es/dropdown/src/dropdown.js +490 -0
- package/es/empty/index.d.ts +50 -0
- package/es/empty/index.js +4 -0
- package/es/empty/src/empty.d.ts +4 -0
- package/es/empty/src/empty.js +112 -0
- package/es/form/index.d.ts +534 -0
- package/es/form/index.js +6 -0
- package/es/form/src/context.d.ts +36 -0
- package/es/form/src/context.js +9 -0
- package/es/form/src/form-item.d.ts +86 -0
- package/es/form/src/form-item.js +304 -0
- package/es/form/src/form.d.ts +128 -0
- package/es/form/src/form.js +166 -0
- package/es/grid/index.d.ts +379 -0
- package/es/grid/index.js +6 -0
- package/es/grid/src/context.d.ts +17 -0
- package/es/grid/src/context.js +9 -0
- package/es/grid/src/grid-col.d.ts +57 -0
- package/es/grid/src/grid-col.js +100 -0
- package/es/grid/src/grid.d.ts +88 -0
- package/es/grid/src/grid.js +123 -0
- package/es/icon/index.d.ts +112 -0
- package/es/icon/index.js +4 -0
- package/es/icon/src/icon.d.ts +34 -0
- package/es/icon/src/icon.js +45 -0
- package/es/index.d.ts +7 -0
- package/es/index.js +73 -0
- package/es/input/index.d.ts +514 -0
- package/es/input/index.js +4 -0
- package/es/input/src/input.d.ts +214 -0
- package/es/input/src/input.js +344 -0
- package/es/input-number/index.d.ts +608 -0
- package/es/input-number/index.js +4 -0
- package/es/input-number/src/input-number.d.ts +266 -0
- package/es/input-number/src/input-number.js +429 -0
- package/es/layout/index.d.ts +632 -0
- package/es/layout/index.js +12 -0
- package/es/layout/src/content.d.ts +25 -0
- package/es/layout/src/content.js +36 -0
- package/es/layout/src/context.d.ts +8 -0
- package/es/layout/src/context.js +9 -0
- package/es/layout/src/footer.d.ts +25 -0
- package/es/layout/src/footer.js +36 -0
- package/es/layout/src/header.d.ts +25 -0
- package/es/layout/src/header.js +36 -0
- package/es/layout/src/layout.d.ts +25 -0
- package/es/layout/src/layout.js +45 -0
- package/es/layout/src/sider.d.ts +97 -0
- package/es/layout/src/sider.js +202 -0
- package/es/line-grid/index.d.ts +915 -0
- package/es/line-grid/index.js +8 -0
- package/es/line-grid/src/col.d.ts +100 -0
- package/es/line-grid/src/col.js +130 -0
- package/es/line-grid/src/context.d.ts +12 -0
- package/es/line-grid/src/context.js +13 -0
- package/es/line-grid/src/flex.d.ts +111 -0
- package/es/line-grid/src/flex.js +135 -0
- package/es/line-grid/src/row.d.ts +50 -0
- package/es/line-grid/src/row.js +95 -0
- package/es/link/index.d.ts +50 -0
- package/es/link/index.js +4 -0
- package/es/link/src/link.d.ts +4 -0
- package/es/link/src/link.js +68 -0
- package/es/list/index.d.ts +271 -0
- package/es/list/index.js +6 -0
- package/es/list/src/context.d.ts +11 -0
- package/es/list/src/context.js +9 -0
- package/es/list/src/list-item.d.ts +31 -0
- package/es/list/src/list-item.js +89 -0
- package/es/list/src/list.d.ts +58 -0
- package/es/list/src/list.js +86 -0
- package/es/loading/index.d.ts +224 -0
- package/es/loading/index.js +4 -0
- package/es/loading/src/loading.d.ts +86 -0
- package/es/loading/src/loading.js +264 -0
- package/es/loading-bar/index.d.ts +2 -0
- package/es/loading-bar/index.js +4 -0
- package/es/loading-bar/src/loading-bar-item.d.ts +80 -0
- package/es/loading-bar/src/loading-bar-item.js +124 -0
- package/es/loading-bar/src/loading-bar.d.ts +10 -0
- package/es/loading-bar/src/loading-bar.js +62 -0
- package/es/logo.png +0 -0
- package/es/menu/index.d.ts +552 -0
- package/es/menu/index.js +8 -0
- package/es/menu/src/context.d.ts +91 -0
- package/es/menu/src/context.js +25 -0
- package/es/menu/src/menu-group.d.ts +20 -0
- package/es/menu/src/menu-group.js +12 -0
- package/es/menu/src/menu-item.d.ts +63 -0
- package/es/menu/src/menu-item.js +17 -0
- package/es/menu/src/menu.d.ts +147 -0
- package/es/menu/src/menu.js +170 -0
- package/es/menu/src/use-horizontal.d.ts +3 -0
- package/es/menu/src/use-horizontal.js +161 -0
- package/es/menu/src/use-pop.d.ts +3 -0
- package/es/menu/src/use-pop.js +213 -0
- package/es/menu/src/use-vertical.d.ts +3 -0
- package/es/menu/src/use-vertical.js +195 -0
- package/es/message/index.d.ts +12 -0
- package/es/message/index.js +4 -0
- package/es/message/src/message-item.d.ts +130 -0
- package/es/message/src/message-item.js +171 -0
- package/es/message/src/message-list.d.ts +126 -0
- package/es/message/src/message-list.js +99 -0
- package/es/message/src/message.d.ts +26 -0
- package/es/message/src/message.js +63 -0
- package/es/message-box/index.d.ts +2 -0
- package/es/message-box/index.js +4 -0
- package/es/message-box/src/message-box-item.d.ts +310 -0
- package/es/message-box/src/message-box-item.js +298 -0
- package/es/message-box/src/message-box.d.ts +16 -0
- package/es/message-box/src/message-box.js +60 -0
- package/es/modal/index.d.ts +584 -0
- package/es/modal/index.js +4 -0
- package/es/modal/src/modal.d.ts +369 -0
- package/es/modal/src/modal.js +455 -0
- package/es/notification/index.d.ts +11 -0
- package/es/notification/index.js +4 -0
- package/es/notification/src/notification-item.d.ts +150 -0
- package/es/notification/src/notification-item.js +170 -0
- package/es/notification/src/notification-list.d.ts +103 -0
- package/es/notification/src/notification-list.js +93 -0
- package/es/notification/src/notification.d.ts +25 -0
- package/es/notification/src/notification.js +85 -0
- package/es/pagination/index.d.ts +444 -0
- package/es/pagination/index.js +4 -0
- package/es/pagination/src/pagination.d.ts +270 -0
- package/es/pagination/src/pagination.js +350 -0
- package/es/popconfirm/index.d.ts +278 -0
- package/es/popconfirm/index.js +4 -0
- package/es/popconfirm/src/popconfirm.d.ts +108 -0
- package/es/popconfirm/src/popconfirm.js +185 -0
- package/es/popover/index.d.ts +193 -0
- package/es/popover/index.js +4 -0
- package/es/popover/src/popover.d.ts +71 -0
- package/es/popover/src/popover.js +56 -0
- package/es/popper/index.d.ts +435 -0
- package/es/popper/index.js +4 -0
- package/es/popper/src/popper.d.ts +193 -0
- package/es/popper/src/popper.js +497 -0
- package/es/progress/index.d.ts +232 -0
- package/es/progress/index.js +4 -0
- package/es/progress/src/circle.d.ts +90 -0
- package/es/progress/src/circle.js +182 -0
- package/es/progress/src/line.d.ts +130 -0
- package/es/progress/src/line.js +166 -0
- package/es/progress/src/progress.d.ts +90 -0
- package/es/progress/src/progress.js +24 -0
- package/es/radio/index.d.ts +402 -0
- package/es/radio/index.js +6 -0
- package/es/radio/src/context.d.ts +15 -0
- package/es/radio/src/context.js +9 -0
- package/es/radio/src/radio-group.d.ts +75 -0
- package/es/radio/src/radio-group.js +78 -0
- package/es/radio/src/radio.d.ts +76 -0
- package/es/radio/src/radio.js +148 -0
- package/es/select/index.d.ts +786 -0
- package/es/select/index.js +8 -0
- package/es/select/src/context.d.ts +45 -0
- package/es/select/src/context.js +9 -0
- package/es/select/src/select-content.d.ts +130 -0
- package/es/select/src/select-content.js +553 -0
- package/es/select/src/select-group.d.ts +16 -0
- package/es/select/src/select-group.js +11 -0
- package/es/select/src/select-option.d.ts +81 -0
- package/es/select/src/select-option.js +15 -0
- package/es/select/src/select-trigger.d.ts +141 -0
- package/es/select/src/select-trigger.js +215 -0
- package/es/select/src/select.d.ts +242 -0
- package/es/select/src/select.js +449 -0
- package/es/skeleton/index.d.ts +175 -0
- package/es/skeleton/index.js +6 -0
- package/es/skeleton/src/skeleton-item.d.ts +18 -0
- package/es/skeleton/src/skeleton-item.js +81 -0
- package/es/skeleton/src/skeleton.d.ts +25 -0
- package/es/skeleton/src/skeleton.js +51 -0
- package/es/slider/index.d.ts +325 -0
- package/es/slider/index.js +4 -0
- package/es/slider/src/slider.d.ts +140 -0
- package/es/slider/src/slider.js +430 -0
- package/es/space/index.d.ts +219 -0
- package/es/space/index.js +4 -0
- package/es/space/src/space.d.ts +87 -0
- package/es/space/src/space.js +147 -0
- package/es/status/index.d.ts +76 -0
- package/es/status/index.js +4 -0
- package/es/status/src/status.d.ts +16 -0
- package/es/status/src/status.js +54 -0
- package/es/steps/index.d.ts +207 -0
- package/es/steps/index.js +6 -0
- package/es/steps/src/step.d.ts +39 -0
- package/es/steps/src/step.js +20 -0
- package/es/steps/src/steps.d.ts +39 -0
- package/es/steps/src/steps.js +176 -0
- package/es/switch/index.d.ts +250 -0
- package/es/switch/index.js +4 -0
- package/es/switch/src/switch.d.ts +98 -0
- package/es/switch/src/switch.js +222 -0
- package/es/table/index.d.ts +580 -0
- package/es/table/index.js +4 -0
- package/es/table/src/context.d.ts +36 -0
- package/es/table/src/context.js +9 -0
- package/es/table/src/table-body.d.ts +129 -0
- package/es/table/src/table-body.js +206 -0
- package/es/table/src/table-header.d.ts +111 -0
- package/es/table/src/table-header.js +219 -0
- package/es/table/src/table.d.ts +363 -0
- package/es/table/src/table.js +403 -0
- package/es/tabs/index.d.ts +240 -0
- package/es/tabs/index.js +6 -0
- package/es/tabs/src/context.d.ts +8 -0
- package/es/tabs/src/context.js +9 -0
- package/es/tabs/src/tab.d.ts +48 -0
- package/es/tabs/src/tab.js +40 -0
- package/es/tabs/src/tabs.d.ts +44 -0
- package/es/tabs/src/tabs.js +163 -0
- package/es/tag/index.d.ts +203 -0
- package/es/tag/index.js +4 -0
- package/es/tag/src/tag.d.ts +76 -0
- package/es/tag/src/tag.js +188 -0
- package/es/textarea/index.d.ts +318 -0
- package/es/textarea/index.js +4 -0
- package/es/textarea/src/textarea.d.ts +130 -0
- package/es/textarea/src/textarea.js +308 -0
- package/es/time-picker/index.d.ts +50 -0
- package/es/time-picker/index.js +4 -0
- package/es/time-picker/src/time-picker.d.ts +4 -0
- package/es/time-picker/src/time-picker.js +26 -0
- package/es/tooltip/index.d.ts +204 -0
- package/es/tooltip/index.js +4 -0
- package/es/tooltip/src/tooltip.d.ts +74 -0
- package/es/tooltip/src/tooltip.js +99 -0
- package/es/tree/index.d.ts +512 -0
- package/es/tree/index.js +4 -0
- package/es/tree/src/context.d.ts +109 -0
- package/es/tree/src/context.js +33 -0
- package/es/tree/src/tree.d.ts +220 -0
- package/es/tree/src/tree.js +422 -0
- package/es/tree-select/index.d.ts +726 -0
- package/es/tree-select/index.js +4 -0
- package/es/tree-select/src/tree-select.d.ts +327 -0
- package/es/tree-select/src/tree-select.js +315 -0
- package/es/upload/index.d.ts +559 -0
- package/es/upload/index.js +4 -0
- package/es/upload/src/request.d.ts +21 -0
- package/es/upload/src/request.js +69 -0
- package/es/upload/src/upload.d.ts +264 -0
- package/es/upload/src/upload.js +684 -0
- package/es/utils/ScrollbarWidth2.js +24 -0
- package/es/utils/colorPalette.d.ts +4 -0
- package/es/utils/colorPalette.js +161 -0
- package/es/utils/common.d.ts +80 -0
- package/es/utils/common.js +128 -0
- package/es/utils/compare.d.ts +3 -0
- package/es/utils/compare.js +55 -0
- package/es/utils/components/icons/AddOutline.d.ts +2 -0
- package/es/utils/components/icons/AddOutline.js +25 -0
- package/es/utils/components/icons/AlertCircle.d.ts +2 -0
- package/es/utils/components/icons/AlertCircle.js +14 -0
- package/es/utils/components/icons/AlertCircleOutline.d.ts +2 -0
- package/es/utils/components/icons/AlertCircleOutline.js +27 -0
- package/es/utils/components/icons/ArrowDropDownSharp.d.ts +2 -0
- package/es/utils/components/icons/ArrowDropDownSharp.js +14 -0
- package/es/utils/components/icons/ArrowDropUpSharp.d.ts +2 -0
- package/es/utils/components/icons/ArrowDropUpSharp.js +14 -0
- package/es/utils/components/icons/ArrowForward.d.ts +2 -0
- package/es/utils/components/icons/ArrowForward.js +25 -0
- package/es/utils/components/icons/ArrowForwardIosFilled.d.ts +2 -0
- package/es/utils/components/icons/ArrowForwardIosFilled.js +14 -0
- package/es/utils/components/icons/ArrowNext24Filled.d.ts +2 -0
- package/es/utils/components/icons/ArrowNext24Filled.js +16 -0
- package/es/utils/components/icons/ArrowPrevious24Filled.d.ts +2 -0
- package/es/utils/components/icons/ArrowPrevious24Filled.js +16 -0
- package/es/utils/components/icons/ArrowUp.d.ts +2 -0
- package/es/utils/components/icons/ArrowUp.js +25 -0
- package/es/utils/components/icons/ArrowUpCircle.d.ts +2 -0
- package/es/utils/components/icons/ArrowUpCircle.js +13 -0
- package/es/utils/components/icons/ArrowsMaximize.d.ts +2 -0
- package/es/utils/components/icons/ArrowsMaximize.js +33 -0
- package/es/utils/components/icons/ArrowsMinimize.d.ts +2 -0
- package/es/utils/components/icons/ArrowsMinimize.js +33 -0
- package/es/utils/components/icons/Bars.d.ts +2 -0
- package/es/utils/components/icons/Bars.js +13 -0
- package/es/utils/components/icons/CalendarClearOutline.d.ts +2 -0
- package/es/utils/components/icons/CalendarClearOutline.js +42 -0
- package/es/utils/components/icons/Checkmark.d.ts +2 -0
- package/es/utils/components/icons/Checkmark.js +18 -0
- package/es/utils/components/icons/CheckmarkCircle.d.ts +2 -0
- package/es/utils/components/icons/CheckmarkCircle.js +14 -0
- package/es/utils/components/icons/CheckmarkCircleOutline.d.ts +2 -0
- package/es/utils/components/icons/CheckmarkCircleOutline.js +24 -0
- package/es/utils/components/icons/CheckmarkOutline.d.ts +2 -0
- package/es/utils/components/icons/CheckmarkOutline.js +18 -0
- package/es/utils/components/icons/CheckmarkSharp.d.ts +2 -0
- package/es/utils/components/icons/CheckmarkSharp.js +18 -0
- package/es/utils/components/icons/ChevronDoubleLeft16Filled.d.ts +2 -0
- package/es/utils/components/icons/ChevronDoubleLeft16Filled.js +16 -0
- package/es/utils/components/icons/ChevronDoubleRight16Filled.d.ts +2 -0
- package/es/utils/components/icons/ChevronDoubleRight16Filled.js +16 -0
- package/es/utils/components/icons/ChevronDown.d.ts +2 -0
- package/es/utils/components/icons/ChevronDown.js +14 -0
- package/es/utils/components/icons/ChevronForward.d.ts +2 -0
- package/es/utils/components/icons/ChevronForward.js +18 -0
- package/es/utils/components/icons/ChevronLeft24Filled.d.ts +2 -0
- package/es/utils/components/icons/ChevronLeft24Filled.js +16 -0
- package/es/utils/components/icons/ChevronRight24Filled.d.ts +2 -0
- package/es/utils/components/icons/ChevronRight24Filled.js +16 -0
- package/es/utils/components/icons/ChevronUp.d.ts +2 -0
- package/es/utils/components/icons/ChevronUp.js +14 -0
- package/es/utils/components/icons/Close.d.ts +2 -0
- package/es/utils/components/icons/Close.js +14 -0
- package/es/utils/components/icons/CloseCircle.d.ts +2 -0
- package/es/utils/components/icons/CloseCircle.js +14 -0
- package/es/utils/components/icons/CloseCircleOutline.d.ts +2 -0
- package/es/utils/components/icons/CloseCircleOutline.js +31 -0
- package/es/utils/components/icons/CloseOutline.d.ts +2 -0
- package/es/utils/components/icons/CloseOutline.js +25 -0
- package/es/utils/components/icons/CloudUploadOutline.d.ts +2 -0
- package/es/utils/components/icons/CloudUploadOutline.js +32 -0
- package/es/utils/components/icons/EllipsisHorizontal.d.ts +2 -0
- package/es/utils/components/icons/EllipsisHorizontal.js +26 -0
- package/es/utils/components/icons/Empty.d.ts +2 -0
- package/es/utils/components/icons/Empty.js +17 -0
- package/es/utils/components/icons/EyeOffOutline.d.ts +2 -0
- package/es/utils/components/icons/EyeOffOutline.js +26 -0
- package/es/utils/components/icons/EyeOutline.d.ts +2 -0
- package/es/utils/components/icons/EyeOutline.js +26 -0
- package/es/utils/components/icons/HelpCircleSharp.d.ts +2 -0
- package/es/utils/components/icons/HelpCircleSharp.js +17 -0
- package/es/utils/components/icons/ImageOutline.d.ts +2 -0
- package/es/utils/components/icons/ImageSharp.d.ts +2 -0
- package/es/utils/components/icons/ImageSharp.js +14 -0
- package/es/utils/components/icons/InformationCircle.d.ts +2 -0
- package/es/utils/components/icons/InformationCircle.js +14 -0
- package/es/utils/components/icons/InformationCircleOutline.d.ts +2 -0
- package/es/utils/components/icons/InformationCircleOutline.js +34 -0
- package/es/utils/components/icons/IosArrowBack.d.ts +2 -0
- package/es/utils/components/icons/IosArrowBack.js +17 -0
- package/es/utils/components/icons/IosArrowDown.d.ts +2 -0
- package/es/utils/components/icons/IosArrowDown.js +17 -0
- package/es/utils/components/icons/IosArrowForward.d.ts +2 -0
- package/es/utils/components/icons/IosArrowForward.js +17 -0
- package/es/utils/components/icons/IosCheckmark.d.ts +2 -0
- package/es/utils/components/icons/IosCheckmark.js +16 -0
- package/es/utils/components/icons/KeyboardArrowLeftRound.d.ts +2 -0
- package/es/utils/components/icons/KeyboardArrowLeftRound.js +14 -0
- package/es/utils/components/icons/KeyboardArrowRightRound.d.ts +2 -0
- package/es/utils/components/icons/KeyboardArrowRightRound.js +14 -0
- package/es/utils/components/icons/KeyboardDoubleArrowLeftRound.d.ts +2 -0
- package/es/utils/components/icons/KeyboardDoubleArrowLeftRound.js +17 -0
- package/es/utils/components/icons/KeyboardDoubleArrowRightRound.d.ts +2 -0
- package/es/utils/components/icons/KeyboardDoubleArrowRightRound.js +17 -0
- package/es/utils/components/icons/LoadingOutlined.d.ts +2 -0
- package/es/utils/components/icons/LoadingOutlined.js +14 -0
- package/es/utils/components/icons/MenuFoldOutlined.d.ts +2 -0
- package/es/utils/components/icons/MenuFoldOutlined.js +14 -0
- package/es/utils/components/icons/Pause.d.ts +2 -0
- package/es/utils/components/icons/Pause.js +17 -0
- package/es/utils/components/icons/QuestionCircle24Regular.d.ts +2 -0
- package/es/utils/components/icons/QuestionCircle24Regular.js +16 -0
- package/es/utils/components/icons/Refresh.d.ts +2 -0
- package/es/utils/components/icons/Refresh.js +25 -0
- package/es/utils/components/icons/RemoveOutline.d.ts +2 -0
- package/es/utils/components/icons/RemoveOutline.js +18 -0
- package/es/utils/components/icons/TimeOutline.d.ts +2 -0
- package/es/utils/components/icons/TimeOutline.js +24 -0
- package/es/utils/components/icons/UploadFileFilled.d.ts +2 -0
- package/es/utils/components/icons/UploadFileFilled.js +14 -0
- package/es/utils/components/icons/index.d.ts +57 -0
- package/es/utils/components/resize-observer.d.ts +27 -0
- package/es/utils/components/resize-observer.js +64 -0
- package/es/utils/components/transition/dropdown-transition.d.ts +4 -0
- package/es/utils/components/transition/dropdown-transition.js +54 -0
- package/es/utils/components/transition/slide-up-transition.d.ts +4 -0
- package/es/utils/components/transition/slide-up-transition.js +57 -0
- package/es/utils/directives/click-outside.js +137 -0
- package/es/utils/dom.d.ts +1 -0
- package/es/utils/dom.js +9 -0
- package/es/utils/element.d.ts +17 -0
- package/es/utils/element.js +59 -0
- package/es/utils/error.d.ts +1 -0
- package/es/utils/getElementRect.d.ts +1 -0
- package/es/utils/hooks/useConfig.d.ts +9 -0
- package/es/utils/hooks/useConfig.js +17 -0
- package/es/utils/hooks/useGetSlot.d.ts +2 -0
- package/es/utils/hooks/useGetSlot.js +12 -0
- package/es/utils/hooks/useMediaQuery.d.ts +2 -0
- package/es/utils/hooks/useMediaQuery.js +12 -0
- package/es/utils/scrollbarWidth.js +65 -0
- package/es/utils/transition.d.ts +2 -0
- package/es/utils/transition.js +31 -0
- package/es/utils/type.d.ts +26 -0
- package/es/utils/type.js +50 -0
- package/es/utils/validator-messages/cn.d.ts +3 -0
- package/es/utils/validator-messages/cn.js +56 -0
- package/lib/affix/index.d.ts +100 -0
- package/lib/affix/index.js +6 -0
- package/lib/affix/src/affix.d.ts +30 -0
- package/lib/affix/src/affix.js +141 -0
- package/lib/alert/index.d.ts +183 -0
- package/lib/alert/index.js +6 -0
- package/lib/alert/src/alert.d.ts +65 -0
- package/lib/alert/src/alert.js +158 -0
- package/lib/anchor/index.d.ts +114 -0
- package/lib/anchor/index.js +9 -0
- package/lib/anchor/src/anchor-link.d.ts +6 -0
- package/lib/anchor/src/anchor-link.js +71 -0
- package/lib/anchor/src/anchor.d.ts +10 -0
- package/lib/anchor/src/anchor.js +165 -0
- package/lib/anchor/src/context.d.ts +11 -0
- package/lib/anchor/src/context.js +13 -0
- package/lib/avatar/index.d.ts +193 -0
- package/lib/avatar/index.js +6 -0
- package/lib/avatar/src/avatar.d.ts +73 -0
- package/lib/avatar/src/avatar.js +139 -0
- package/lib/back-top/index.d.ts +133 -0
- package/lib/back-top/index.js +6 -0
- package/lib/back-top/src/back-top.d.ts +45 -0
- package/lib/back-top/src/back-top.js +165 -0
- package/lib/badge/index.d.ts +111 -0
- package/lib/badge/index.js +6 -0
- package/lib/badge/src/badge.d.ts +33 -0
- package/lib/badge/src/badge.js +78 -0
- package/lib/breadcrumb/index.d.ts +154 -0
- package/lib/breadcrumb/index.js +9 -0
- package/lib/breadcrumb/src/breadcrumb-item.d.ts +28 -0
- package/lib/breadcrumb/src/breadcrumb-item.js +17 -0
- package/lib/breadcrumb/src/breadcrumb.d.ts +23 -0
- package/lib/breadcrumb/src/breadcrumb.js +83 -0
- package/lib/button/index.d.ts +530 -0
- package/lib/button/index.js +6 -0
- package/lib/button/src/button.d.ts +292 -0
- package/lib/button/src/button.js +217 -0
- package/lib/calendar/index.d.ts +254 -0
- package/lib/calendar/index.js +6 -0
- package/lib/calendar/src/calendar.d.ts +101 -0
- package/lib/calendar/src/calendar.js +337 -0
- package/lib/card/index.d.ts +206 -0
- package/lib/card/index.js +6 -0
- package/lib/card/src/card.d.ts +78 -0
- package/lib/card/src/card.js +78 -0
- package/lib/carousel/index.d.ts +240 -0
- package/lib/carousel/index.js +6 -0
- package/lib/carousel/src/carousel.d.ts +103 -0
- package/lib/carousel/src/carousel.js +362 -0
- package/lib/cascader/index.d.ts +631 -0
- package/lib/cascader/index.js +6 -0
- package/lib/cascader/src/cascader.d.ts +282 -0
- package/lib/cascader/src/cascader.js +330 -0
- package/lib/cascader-panel/index.d.ts +444 -0
- package/lib/cascader-panel/index.js +6 -0
- package/lib/cascader-panel/src/cascader-panel.d.ts +188 -0
- package/lib/cascader-panel/src/cascader-panel.js +520 -0
- package/lib/cascader-panel/src/context.d.ts +101 -0
- package/lib/cascader-panel/src/context.js +35 -0
- package/lib/checkbox/index.d.ts +495 -0
- package/lib/checkbox/index.js +9 -0
- package/lib/checkbox/src/checkbox-group.d.ts +77 -0
- package/lib/checkbox/src/checkbox-group.js +79 -0
- package/lib/checkbox/src/checkbox.d.ts +118 -0
- package/lib/checkbox/src/checkbox.js +208 -0
- package/lib/checkbox/src/context.d.ts +15 -0
- package/lib/checkbox/src/context.js +13 -0
- package/lib/color-picker/index.d.ts +328 -0
- package/lib/color-picker/index.js +6 -0
- package/lib/color-picker/src/color-picker-content.d.ts +88 -0
- package/lib/color-picker/src/color-picker-content.js +574 -0
- package/lib/color-picker/src/color-picker.d.ts +133 -0
- package/lib/color-picker/src/color-picker.js +264 -0
- package/lib/color-picker/src/context.d.ts +17 -0
- package/lib/color-picker/src/context.js +13 -0
- package/lib/components.d.ts +59 -0
- package/lib/components.js +142 -0
- package/lib/config-provider/index.d.ts +80 -0
- package/lib/config-provider/index.js +6 -0
- package/lib/config-provider/src/config-provider.d.ts +25 -0
- package/lib/config-provider/src/config-provider.js +24 -0
- package/lib/config-provider/src/context.d.ts +10 -0
- package/lib/config-provider/src/context.js +15 -0
- package/lib/date-picker/index.d.ts +493 -0
- package/lib/date-picker/index.js +6 -0
- package/lib/date-picker/src/context.d.ts +45 -0
- package/lib/date-picker/src/context.js +13 -0
- package/lib/date-picker/src/date-picker-date.d.ts +168 -0
- package/lib/date-picker/src/date-picker-date.js +580 -0
- package/lib/date-picker/src/date-picker-time.d.ts +157 -0
- package/lib/date-picker/src/date-picker-time.js +330 -0
- package/lib/date-picker/src/date-picker-week.d.ts +167 -0
- package/lib/date-picker/src/date-picker-week.js +555 -0
- package/lib/date-picker/src/date-picker-year.d.ts +135 -0
- package/lib/date-picker/src/date-picker-year.js +335 -0
- package/lib/date-picker/src/date-picker.d.ts +218 -0
- package/lib/date-picker/src/date-picker.js +972 -0
- package/lib/divider/index.d.ts +50 -0
- package/lib/divider/index.js +6 -0
- package/lib/divider/src/divider.d.ts +4 -0
- package/lib/divider/src/divider.js +64 -0
- package/lib/drawer/index.d.ts +488 -0
- package/lib/drawer/index.js +6 -0
- package/lib/drawer/src/drawer.d.ts +302 -0
- package/lib/drawer/src/drawer.js +349 -0
- package/lib/dropdown/index.d.ts +571 -0
- package/lib/dropdown/index.js +12 -0
- package/lib/dropdown/src/context.d.ts +32 -0
- package/lib/dropdown/src/context.js +13 -0
- package/lib/dropdown/src/dropdown-group.d.ts +20 -0
- package/lib/dropdown/src/dropdown-group.js +15 -0
- package/lib/dropdown/src/dropdown-item.d.ts +63 -0
- package/lib/dropdown/src/dropdown-item.js +32 -0
- package/lib/dropdown/src/dropdown.d.ts +155 -0
- package/lib/dropdown/src/dropdown.js +496 -0
- package/lib/empty/index.d.ts +50 -0
- package/lib/empty/index.js +6 -0
- package/lib/empty/src/empty.d.ts +4 -0
- package/lib/empty/src/empty.js +114 -0
- package/lib/form/index.d.ts +534 -0
- package/lib/form/index.js +9 -0
- package/lib/form/src/context.d.ts +36 -0
- package/lib/form/src/context.js +13 -0
- package/lib/form/src/form-item.d.ts +86 -0
- package/lib/form/src/form-item.js +311 -0
- package/lib/form/src/form.d.ts +128 -0
- package/lib/form/src/form.js +168 -0
- package/lib/grid/index.d.ts +379 -0
- package/lib/grid/index.js +9 -0
- package/lib/grid/src/context.d.ts +17 -0
- package/lib/grid/src/context.js +13 -0
- package/lib/grid/src/grid-col.d.ts +57 -0
- package/lib/grid/src/grid-col.js +102 -0
- package/lib/grid/src/grid.d.ts +88 -0
- package/lib/grid/src/grid.js +125 -0
- package/lib/icon/index.d.ts +112 -0
- package/lib/icon/index.js +6 -0
- package/lib/icon/src/icon.d.ts +34 -0
- package/lib/icon/src/icon.js +47 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +157 -0
- package/lib/input/index.d.ts +514 -0
- package/lib/input/index.js +6 -0
- package/lib/input/src/input.d.ts +214 -0
- package/lib/input/src/input.js +346 -0
- package/lib/input-number/index.d.ts +608 -0
- package/lib/input-number/index.js +6 -0
- package/lib/input-number/src/input-number.d.ts +266 -0
- package/lib/input-number/src/input-number.js +431 -0
- package/lib/layout/index.d.ts +632 -0
- package/lib/layout/index.js +18 -0
- package/lib/layout/src/content.d.ts +25 -0
- package/lib/layout/src/content.js +38 -0
- package/lib/layout/src/context.d.ts +8 -0
- package/lib/layout/src/context.js +13 -0
- package/lib/layout/src/footer.d.ts +25 -0
- package/lib/layout/src/footer.js +38 -0
- package/lib/layout/src/header.d.ts +25 -0
- package/lib/layout/src/header.js +38 -0
- package/lib/layout/src/layout.d.ts +25 -0
- package/lib/layout/src/layout.js +47 -0
- package/lib/layout/src/sider.d.ts +97 -0
- package/lib/layout/src/sider.js +204 -0
- package/lib/line-grid/index.d.ts +915 -0
- package/lib/line-grid/index.js +12 -0
- package/lib/line-grid/src/col.d.ts +100 -0
- package/lib/line-grid/src/col.js +132 -0
- package/lib/line-grid/src/context.d.ts +12 -0
- package/lib/line-grid/src/context.js +19 -0
- package/lib/line-grid/src/flex.d.ts +111 -0
- package/lib/line-grid/src/flex.js +137 -0
- package/lib/line-grid/src/row.d.ts +50 -0
- package/lib/line-grid/src/row.js +97 -0
- package/lib/link/index.d.ts +50 -0
- package/lib/link/index.js +6 -0
- package/lib/link/src/link.d.ts +4 -0
- package/lib/link/src/link.js +70 -0
- package/lib/list/index.d.ts +271 -0
- package/lib/list/index.js +9 -0
- package/lib/list/src/context.d.ts +11 -0
- package/lib/list/src/context.js +13 -0
- package/lib/list/src/list-item.d.ts +31 -0
- package/lib/list/src/list-item.js +91 -0
- package/lib/list/src/list.d.ts +58 -0
- package/lib/list/src/list.js +88 -0
- package/lib/loading/index.d.ts +224 -0
- package/lib/loading/index.js +6 -0
- package/lib/loading/src/loading.d.ts +86 -0
- package/lib/loading/src/loading.js +266 -0
- package/lib/loading-bar/index.d.ts +2 -0
- package/lib/loading-bar/index.js +6 -0
- package/lib/loading-bar/src/loading-bar-item.d.ts +80 -0
- package/lib/loading-bar/src/loading-bar-item.js +127 -0
- package/lib/loading-bar/src/loading-bar.d.ts +10 -0
- package/lib/loading-bar/src/loading-bar.js +64 -0
- package/lib/menu/index.d.ts +552 -0
- package/lib/menu/index.js +12 -0
- package/lib/menu/src/context.d.ts +91 -0
- package/lib/menu/src/context.js +27 -0
- package/lib/menu/src/menu-group.d.ts +20 -0
- package/lib/menu/src/menu-group.js +15 -0
- package/lib/menu/src/menu-item.d.ts +63 -0
- package/lib/menu/src/menu-item.js +20 -0
- package/lib/menu/src/menu.d.ts +147 -0
- package/lib/menu/src/menu.js +172 -0
- package/lib/menu/src/use-horizontal.d.ts +3 -0
- package/lib/menu/src/use-horizontal.js +163 -0
- package/lib/menu/src/use-pop.d.ts +3 -0
- package/lib/menu/src/use-pop.js +215 -0
- package/lib/menu/src/use-vertical.d.ts +3 -0
- package/lib/menu/src/use-vertical.js +197 -0
- package/lib/message/index.d.ts +12 -0
- package/lib/message/index.js +6 -0
- package/lib/message/src/message-item.d.ts +130 -0
- package/lib/message/src/message-item.js +174 -0
- package/lib/message/src/message-list.d.ts +126 -0
- package/lib/message/src/message-list.js +102 -0
- package/lib/message/src/message.d.ts +26 -0
- package/lib/message/src/message.js +65 -0
- package/lib/message-box/index.d.ts +2 -0
- package/lib/message-box/index.js +6 -0
- package/lib/message-box/src/message-box-item.d.ts +310 -0
- package/lib/message-box/src/message-box-item.js +301 -0
- package/lib/message-box/src/message-box.d.ts +16 -0
- package/lib/message-box/src/message-box.js +62 -0
- package/lib/modal/index.d.ts +584 -0
- package/lib/modal/index.js +6 -0
- package/lib/modal/src/modal.d.ts +369 -0
- package/lib/modal/src/modal.js +458 -0
- package/lib/notification/index.d.ts +11 -0
- package/lib/notification/index.js +6 -0
- package/lib/notification/src/notification-item.d.ts +150 -0
- package/lib/notification/src/notification-item.js +173 -0
- package/lib/notification/src/notification-list.d.ts +103 -0
- package/lib/notification/src/notification-list.js +97 -0
- package/lib/notification/src/notification.d.ts +25 -0
- package/lib/notification/src/notification.js +87 -0
- package/lib/pagination/index.d.ts +444 -0
- package/lib/pagination/index.js +6 -0
- package/lib/pagination/src/pagination.d.ts +270 -0
- package/lib/pagination/src/pagination.js +352 -0
- package/lib/popconfirm/index.d.ts +278 -0
- package/lib/popconfirm/index.js +6 -0
- package/lib/popconfirm/src/popconfirm.d.ts +108 -0
- package/lib/popconfirm/src/popconfirm.js +187 -0
- package/lib/popover/index.d.ts +193 -0
- package/lib/popover/index.js +6 -0
- package/lib/popover/src/popover.d.ts +71 -0
- package/lib/popover/src/popover.js +58 -0
- package/lib/popper/index.d.ts +435 -0
- package/lib/popper/index.js +6 -0
- package/lib/popper/src/popper.d.ts +193 -0
- package/lib/popper/src/popper.js +500 -0
- package/lib/progress/index.d.ts +232 -0
- package/lib/progress/index.js +6 -0
- package/lib/progress/src/circle.d.ts +90 -0
- package/lib/progress/src/circle.js +184 -0
- package/lib/progress/src/line.d.ts +130 -0
- package/lib/progress/src/line.js +169 -0
- package/lib/progress/src/progress.d.ts +90 -0
- package/lib/progress/src/progress.js +26 -0
- package/lib/radio/index.d.ts +402 -0
- package/lib/radio/index.js +9 -0
- package/lib/radio/src/context.d.ts +15 -0
- package/lib/radio/src/context.js +13 -0
- package/lib/radio/src/radio-group.d.ts +75 -0
- package/lib/radio/src/radio-group.js +80 -0
- package/lib/radio/src/radio.d.ts +76 -0
- package/lib/radio/src/radio.js +150 -0
- package/lib/select/index.d.ts +786 -0
- package/lib/select/index.js +12 -0
- package/lib/select/src/context.d.ts +45 -0
- package/lib/select/src/context.js +13 -0
- package/lib/select/src/select-content.d.ts +130 -0
- package/lib/select/src/select-content.js +555 -0
- package/lib/select/src/select-group.d.ts +16 -0
- package/lib/select/src/select-group.js +13 -0
- package/lib/select/src/select-option.d.ts +81 -0
- package/lib/select/src/select-option.js +18 -0
- package/lib/select/src/select-trigger.d.ts +141 -0
- package/lib/select/src/select-trigger.js +217 -0
- package/lib/select/src/select.d.ts +242 -0
- package/lib/select/src/select.js +451 -0
- package/lib/skeleton/index.d.ts +175 -0
- package/lib/skeleton/index.js +9 -0
- package/lib/skeleton/src/skeleton-item.d.ts +18 -0
- package/lib/skeleton/src/skeleton-item.js +83 -0
- package/lib/skeleton/src/skeleton.d.ts +25 -0
- package/lib/skeleton/src/skeleton.js +53 -0
- package/lib/slider/index.d.ts +325 -0
- package/lib/slider/index.js +6 -0
- package/lib/slider/src/slider.d.ts +140 -0
- package/lib/slider/src/slider.js +432 -0
- package/lib/space/index.d.ts +219 -0
- package/lib/space/index.js +6 -0
- package/lib/space/src/space.d.ts +87 -0
- package/lib/space/src/space.js +149 -0
- package/lib/status/index.d.ts +76 -0
- package/lib/status/index.js +6 -0
- package/lib/status/src/status.d.ts +16 -0
- package/lib/status/src/status.js +56 -0
- package/lib/steps/index.d.ts +207 -0
- package/lib/steps/index.js +9 -0
- package/lib/steps/src/step.d.ts +39 -0
- package/lib/steps/src/step.js +23 -0
- package/lib/steps/src/steps.d.ts +39 -0
- package/lib/steps/src/steps.js +178 -0
- package/lib/switch/index.d.ts +250 -0
- package/lib/switch/index.js +6 -0
- package/lib/switch/src/switch.d.ts +98 -0
- package/lib/switch/src/switch.js +224 -0
- package/lib/table/index.d.ts +580 -0
- package/lib/table/index.js +6 -0
- package/lib/table/src/context.d.ts +36 -0
- package/lib/table/src/context.js +13 -0
- package/lib/table/src/table-body.d.ts +129 -0
- package/lib/table/src/table-body.js +212 -0
- package/lib/table/src/table-header.d.ts +111 -0
- package/lib/table/src/table-header.js +224 -0
- package/lib/table/src/table.d.ts +363 -0
- package/lib/table/src/table.js +410 -0
- package/lib/tabs/index.d.ts +240 -0
- package/lib/tabs/index.js +9 -0
- package/lib/tabs/src/context.d.ts +8 -0
- package/lib/tabs/src/context.js +13 -0
- package/lib/tabs/src/tab.d.ts +48 -0
- package/lib/tabs/src/tab.js +43 -0
- package/lib/tabs/src/tabs.d.ts +44 -0
- package/lib/tabs/src/tabs.js +165 -0
- package/lib/tag/index.d.ts +203 -0
- package/lib/tag/index.js +6 -0
- package/lib/tag/src/tag.d.ts +76 -0
- package/lib/tag/src/tag.js +194 -0
- package/lib/textarea/index.d.ts +318 -0
- package/lib/textarea/index.js +6 -0
- package/lib/textarea/src/textarea.d.ts +130 -0
- package/lib/textarea/src/textarea.js +310 -0
- package/lib/time-picker/index.d.ts +50 -0
- package/lib/time-picker/index.js +6 -0
- package/lib/time-picker/src/time-picker.d.ts +4 -0
- package/lib/time-picker/src/time-picker.js +28 -0
- package/lib/tooltip/index.d.ts +204 -0
- package/lib/tooltip/index.js +6 -0
- package/lib/tooltip/src/tooltip.d.ts +74 -0
- package/lib/tooltip/src/tooltip.js +101 -0
- package/lib/tree/index.d.ts +512 -0
- package/lib/tree/index.js +6 -0
- package/lib/tree/src/context.d.ts +109 -0
- package/lib/tree/src/context.js +35 -0
- package/lib/tree/src/tree.d.ts +220 -0
- package/lib/tree/src/tree.js +428 -0
- package/lib/tree-select/index.d.ts +726 -0
- package/lib/tree-select/index.js +6 -0
- package/lib/tree-select/src/tree-select.d.ts +327 -0
- package/lib/tree-select/src/tree-select.js +317 -0
- package/lib/upload/index.d.ts +559 -0
- package/lib/upload/index.js +6 -0
- package/lib/upload/src/request.d.ts +21 -0
- package/lib/upload/src/request.js +71 -0
- package/lib/upload/src/upload.d.ts +264 -0
- package/lib/upload/src/upload.js +690 -0
- package/lib/utils/ScrollbarWidth2.js +26 -0
- package/lib/utils/colorPalette.d.ts +4 -0
- package/lib/utils/colorPalette.js +166 -0
- package/lib/utils/common.d.ts +80 -0
- package/lib/utils/common.js +144 -0
- package/lib/utils/compare.d.ts +3 -0
- package/lib/utils/compare.js +59 -0
- package/lib/utils/components/icons/AddOutline.d.ts +2 -0
- package/lib/utils/components/icons/AddOutline.js +27 -0
- package/lib/utils/components/icons/AlertCircle.d.ts +2 -0
- package/lib/utils/components/icons/AlertCircle.js +16 -0
- package/lib/utils/components/icons/AlertCircleOutline.d.ts +2 -0
- package/lib/utils/components/icons/AlertCircleOutline.js +29 -0
- package/lib/utils/components/icons/ArrowDropDownSharp.d.ts +2 -0
- package/lib/utils/components/icons/ArrowDropDownSharp.js +16 -0
- package/lib/utils/components/icons/ArrowDropUpSharp.d.ts +2 -0
- package/lib/utils/components/icons/ArrowDropUpSharp.js +16 -0
- package/lib/utils/components/icons/ArrowForward.d.ts +2 -0
- package/lib/utils/components/icons/ArrowForward.js +27 -0
- package/lib/utils/components/icons/ArrowForwardIosFilled.d.ts +2 -0
- package/lib/utils/components/icons/ArrowForwardIosFilled.js +16 -0
- package/lib/utils/components/icons/ArrowNext24Filled.d.ts +2 -0
- package/lib/utils/components/icons/ArrowNext24Filled.js +18 -0
- package/lib/utils/components/icons/ArrowPrevious24Filled.d.ts +2 -0
- package/lib/utils/components/icons/ArrowPrevious24Filled.js +18 -0
- package/lib/utils/components/icons/ArrowUp.d.ts +2 -0
- package/lib/utils/components/icons/ArrowUp.js +27 -0
- package/lib/utils/components/icons/ArrowUpCircle.d.ts +2 -0
- package/lib/utils/components/icons/ArrowUpCircle.js +14 -0
- package/lib/utils/components/icons/ArrowsMaximize.d.ts +2 -0
- package/lib/utils/components/icons/ArrowsMaximize.js +35 -0
- package/lib/utils/components/icons/ArrowsMinimize.d.ts +2 -0
- package/lib/utils/components/icons/ArrowsMinimize.js +35 -0
- package/lib/utils/components/icons/Bars.d.ts +2 -0
- package/lib/utils/components/icons/Bars.js +14 -0
- package/lib/utils/components/icons/CalendarClearOutline.d.ts +2 -0
- package/lib/utils/components/icons/CalendarClearOutline.js +44 -0
- package/lib/utils/components/icons/Checkmark.d.ts +2 -0
- package/lib/utils/components/icons/Checkmark.js +20 -0
- package/lib/utils/components/icons/CheckmarkCircle.d.ts +2 -0
- package/lib/utils/components/icons/CheckmarkCircle.js +16 -0
- package/lib/utils/components/icons/CheckmarkCircleOutline.d.ts +2 -0
- package/lib/utils/components/icons/CheckmarkCircleOutline.js +26 -0
- package/lib/utils/components/icons/CheckmarkOutline.d.ts +2 -0
- package/lib/utils/components/icons/CheckmarkOutline.js +20 -0
- package/lib/utils/components/icons/CheckmarkSharp.d.ts +2 -0
- package/lib/utils/components/icons/CheckmarkSharp.js +20 -0
- package/lib/utils/components/icons/ChevronDoubleLeft16Filled.d.ts +2 -0
- package/lib/utils/components/icons/ChevronDoubleLeft16Filled.js +18 -0
- package/lib/utils/components/icons/ChevronDoubleRight16Filled.d.ts +2 -0
- package/lib/utils/components/icons/ChevronDoubleRight16Filled.js +18 -0
- package/lib/utils/components/icons/ChevronDown.d.ts +2 -0
- package/lib/utils/components/icons/ChevronDown.js +16 -0
- package/lib/utils/components/icons/ChevronForward.d.ts +2 -0
- package/lib/utils/components/icons/ChevronForward.js +20 -0
- package/lib/utils/components/icons/ChevronLeft24Filled.d.ts +2 -0
- package/lib/utils/components/icons/ChevronLeft24Filled.js +18 -0
- package/lib/utils/components/icons/ChevronRight24Filled.d.ts +2 -0
- package/lib/utils/components/icons/ChevronRight24Filled.js +18 -0
- package/lib/utils/components/icons/ChevronUp.d.ts +2 -0
- package/lib/utils/components/icons/ChevronUp.js +16 -0
- package/lib/utils/components/icons/Close.d.ts +2 -0
- package/lib/utils/components/icons/Close.js +16 -0
- package/lib/utils/components/icons/CloseCircle.d.ts +2 -0
- package/lib/utils/components/icons/CloseCircle.js +16 -0
- package/lib/utils/components/icons/CloseCircleOutline.d.ts +2 -0
- package/lib/utils/components/icons/CloseCircleOutline.js +33 -0
- package/lib/utils/components/icons/CloseOutline.d.ts +2 -0
- package/lib/utils/components/icons/CloseOutline.js +27 -0
- package/lib/utils/components/icons/CloudUploadOutline.d.ts +2 -0
- package/lib/utils/components/icons/CloudUploadOutline.js +34 -0
- package/lib/utils/components/icons/EllipsisHorizontal.d.ts +2 -0
- package/lib/utils/components/icons/EllipsisHorizontal.js +28 -0
- package/lib/utils/components/icons/Empty.d.ts +2 -0
- package/lib/utils/components/icons/Empty.js +19 -0
- package/lib/utils/components/icons/EyeOffOutline.d.ts +2 -0
- package/lib/utils/components/icons/EyeOffOutline.js +28 -0
- package/lib/utils/components/icons/EyeOutline.d.ts +2 -0
- package/lib/utils/components/icons/EyeOutline.js +28 -0
- package/lib/utils/components/icons/HelpCircleSharp.d.ts +2 -0
- package/lib/utils/components/icons/HelpCircleSharp.js +19 -0
- package/lib/utils/components/icons/ImageOutline.d.ts +2 -0
- package/lib/utils/components/icons/ImageSharp.d.ts +2 -0
- package/lib/utils/components/icons/ImageSharp.js +16 -0
- package/lib/utils/components/icons/InformationCircle.d.ts +2 -0
- package/lib/utils/components/icons/InformationCircle.js +16 -0
- package/lib/utils/components/icons/InformationCircleOutline.d.ts +2 -0
- package/lib/utils/components/icons/InformationCircleOutline.js +36 -0
- package/lib/utils/components/icons/IosArrowBack.d.ts +2 -0
- package/lib/utils/components/icons/IosArrowBack.js +19 -0
- package/lib/utils/components/icons/IosArrowDown.d.ts +2 -0
- package/lib/utils/components/icons/IosArrowDown.js +19 -0
- package/lib/utils/components/icons/IosArrowForward.d.ts +2 -0
- package/lib/utils/components/icons/IosArrowForward.js +19 -0
- package/lib/utils/components/icons/IosCheckmark.d.ts +2 -0
- package/lib/utils/components/icons/IosCheckmark.js +17 -0
- package/lib/utils/components/icons/KeyboardArrowLeftRound.d.ts +2 -0
- package/lib/utils/components/icons/KeyboardArrowLeftRound.js +16 -0
- package/lib/utils/components/icons/KeyboardArrowRightRound.d.ts +2 -0
- package/lib/utils/components/icons/KeyboardArrowRightRound.js +16 -0
- package/lib/utils/components/icons/KeyboardDoubleArrowLeftRound.d.ts +2 -0
- package/lib/utils/components/icons/KeyboardDoubleArrowLeftRound.js +19 -0
- package/lib/utils/components/icons/KeyboardDoubleArrowRightRound.d.ts +2 -0
- package/lib/utils/components/icons/KeyboardDoubleArrowRightRound.js +19 -0
- package/lib/utils/components/icons/LoadingOutlined.d.ts +2 -0
- package/lib/utils/components/icons/LoadingOutlined.js +16 -0
- package/lib/utils/components/icons/MenuFoldOutlined.d.ts +2 -0
- package/lib/utils/components/icons/MenuFoldOutlined.js +16 -0
- package/lib/utils/components/icons/Pause.d.ts +2 -0
- package/lib/utils/components/icons/Pause.js +19 -0
- package/lib/utils/components/icons/QuestionCircle24Regular.d.ts +2 -0
- package/lib/utils/components/icons/QuestionCircle24Regular.js +18 -0
- package/lib/utils/components/icons/Refresh.d.ts +2 -0
- package/lib/utils/components/icons/Refresh.js +27 -0
- package/lib/utils/components/icons/RemoveOutline.d.ts +2 -0
- package/lib/utils/components/icons/RemoveOutline.js +20 -0
- package/lib/utils/components/icons/TimeOutline.d.ts +2 -0
- package/lib/utils/components/icons/TimeOutline.js +26 -0
- package/lib/utils/components/icons/UploadFileFilled.d.ts +2 -0
- package/lib/utils/components/icons/UploadFileFilled.js +16 -0
- package/lib/utils/components/icons/index.d.ts +57 -0
- package/lib/utils/components/resize-observer.d.ts +27 -0
- package/lib/utils/components/resize-observer.js +70 -0
- package/lib/utils/components/transition/dropdown-transition.d.ts +4 -0
- package/lib/utils/components/transition/dropdown-transition.js +56 -0
- package/lib/utils/components/transition/slide-up-transition.d.ts +4 -0
- package/lib/utils/components/transition/slide-up-transition.js +59 -0
- package/lib/utils/directives/click-outside.js +139 -0
- package/lib/utils/dom.d.ts +1 -0
- package/lib/utils/dom.js +11 -0
- package/lib/utils/element.d.ts +17 -0
- package/lib/utils/element.js +64 -0
- package/lib/utils/error.d.ts +1 -0
- package/lib/utils/getElementRect.d.ts +1 -0
- package/lib/utils/hooks/useConfig.d.ts +9 -0
- package/lib/utils/hooks/useConfig.js +19 -0
- package/lib/utils/hooks/useGetSlot.d.ts +2 -0
- package/lib/utils/hooks/useGetSlot.js +14 -0
- package/lib/utils/hooks/useMediaQuery.d.ts +2 -0
- package/lib/utils/hooks/useMediaQuery.js +14 -0
- package/lib/utils/scrollbarWidth.js +69 -0
- package/lib/utils/transition.d.ts +2 -0
- package/lib/utils/transition.js +33 -0
- package/lib/utils/type.d.ts +26 -0
- package/lib/utils/type.js +62 -0
- package/lib/utils/validator-messages/cn.d.ts +3 -0
- package/lib/utils/validator-messages/cn.js +59 -0
- package/package.json +138 -0
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
declare const TAvatar: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{
|
|
6
|
+
size: string;
|
|
7
|
+
space: import("../utils/type").Width;
|
|
8
|
+
shape: string;
|
|
9
|
+
src: string;
|
|
10
|
+
bgColor: string;
|
|
11
|
+
bgColorHover: string;
|
|
12
|
+
iconColor: string;
|
|
13
|
+
iconColorHover: string;
|
|
14
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
shape: import("vue-types").VueTypeDef<string> & {
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
size: import("vue-types").VueTypeDef<string> & {
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
width: import("vue").PropType<import("../utils/type").Width>;
|
|
22
|
+
iconWidth: import("vue").PropType<import("../utils/type").Width>;
|
|
23
|
+
space: {
|
|
24
|
+
type: import("vue").PropType<import("../utils/type").Width>;
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
src: import("vue-types").VueTypeValidableDef<string> & {
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
icon: import("vue").PropType<import("../utils/type").VueNode | (() => import("../utils/type").VueNode)>;
|
|
31
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
bgColorHover: import("vue-types").VueTypeValidableDef<string> & {
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
iconColor: import("vue-types").VueTypeValidableDef<string> & {
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
iconColorHover: import("vue-types").VueTypeValidableDef<string> & {
|
|
41
|
+
default: string;
|
|
42
|
+
};
|
|
43
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "size" | "space" | "shape" | "src" | "bgColor" | "bgColorHover" | "iconColor" | "iconColorHover">;
|
|
44
|
+
$attrs: {
|
|
45
|
+
[x: string]: unknown;
|
|
46
|
+
};
|
|
47
|
+
$refs: {
|
|
48
|
+
[x: string]: unknown;
|
|
49
|
+
};
|
|
50
|
+
$slots: Readonly<{
|
|
51
|
+
[name: string]: import("vue").Slot;
|
|
52
|
+
}>;
|
|
53
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
54
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
55
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
56
|
+
$el: any;
|
|
57
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
58
|
+
shape: import("vue-types").VueTypeDef<string> & {
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
size: import("vue-types").VueTypeDef<string> & {
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
width: import("vue").PropType<import("../utils/type").Width>;
|
|
65
|
+
iconWidth: import("vue").PropType<import("../utils/type").Width>;
|
|
66
|
+
space: {
|
|
67
|
+
type: import("vue").PropType<import("../utils/type").Width>;
|
|
68
|
+
default: number;
|
|
69
|
+
};
|
|
70
|
+
src: import("vue-types").VueTypeValidableDef<string> & {
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
icon: import("vue").PropType<import("../utils/type").VueNode | (() => import("../utils/type").VueNode)>;
|
|
74
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
bgColorHover: import("vue-types").VueTypeValidableDef<string> & {
|
|
78
|
+
default: string;
|
|
79
|
+
};
|
|
80
|
+
iconColor: import("vue-types").VueTypeValidableDef<string> & {
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
iconColorHover: import("vue-types").VueTypeValidableDef<string> & {
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
}>>, {
|
|
87
|
+
render: () => JSX.Element;
|
|
88
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
89
|
+
size: string;
|
|
90
|
+
space: import("../utils/type").Width;
|
|
91
|
+
shape: string;
|
|
92
|
+
src: string;
|
|
93
|
+
bgColor: string;
|
|
94
|
+
bgColorHover: string;
|
|
95
|
+
iconColor: string;
|
|
96
|
+
iconColorHover: string;
|
|
97
|
+
}> & {
|
|
98
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
99
|
+
created?: (() => void) | (() => void)[];
|
|
100
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
101
|
+
mounted?: (() => void) | (() => void)[];
|
|
102
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
103
|
+
updated?: (() => void) | (() => void)[];
|
|
104
|
+
activated?: (() => void) | (() => void)[];
|
|
105
|
+
deactivated?: (() => void) | (() => void)[];
|
|
106
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
107
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
108
|
+
destroyed?: (() => void) | (() => void)[];
|
|
109
|
+
unmounted?: (() => void) | (() => void)[];
|
|
110
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
111
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
112
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
|
113
|
+
};
|
|
114
|
+
$forceUpdate: () => void;
|
|
115
|
+
$nextTick: typeof import("vue").nextTick;
|
|
116
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
117
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
118
|
+
shape: import("vue-types").VueTypeDef<string> & {
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
size: import("vue-types").VueTypeDef<string> & {
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
width: import("vue").PropType<import("../utils/type").Width>;
|
|
125
|
+
iconWidth: import("vue").PropType<import("../utils/type").Width>;
|
|
126
|
+
space: {
|
|
127
|
+
type: import("vue").PropType<import("../utils/type").Width>;
|
|
128
|
+
default: number;
|
|
129
|
+
};
|
|
130
|
+
src: import("vue-types").VueTypeValidableDef<string> & {
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
icon: import("vue").PropType<import("../utils/type").VueNode | (() => import("../utils/type").VueNode)>;
|
|
134
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
bgColorHover: import("vue-types").VueTypeValidableDef<string> & {
|
|
138
|
+
default: string;
|
|
139
|
+
};
|
|
140
|
+
iconColor: import("vue-types").VueTypeValidableDef<string> & {
|
|
141
|
+
default: string;
|
|
142
|
+
};
|
|
143
|
+
iconColorHover: import("vue-types").VueTypeValidableDef<string> & {
|
|
144
|
+
default: string;
|
|
145
|
+
};
|
|
146
|
+
}>> & import("vue").ShallowUnwrapRef<{
|
|
147
|
+
render: () => JSX.Element;
|
|
148
|
+
}> & {} & import("vue").ComponentCustomProperties;
|
|
149
|
+
__isFragment?: never;
|
|
150
|
+
__isTeleport?: never;
|
|
151
|
+
__isSuspense?: never;
|
|
152
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
153
|
+
shape: import("vue-types").VueTypeDef<string> & {
|
|
154
|
+
default: string;
|
|
155
|
+
};
|
|
156
|
+
size: import("vue-types").VueTypeDef<string> & {
|
|
157
|
+
default: string;
|
|
158
|
+
};
|
|
159
|
+
width: import("vue").PropType<import("../utils/type").Width>;
|
|
160
|
+
iconWidth: import("vue").PropType<import("../utils/type").Width>;
|
|
161
|
+
space: {
|
|
162
|
+
type: import("vue").PropType<import("../utils/type").Width>;
|
|
163
|
+
default: number;
|
|
164
|
+
};
|
|
165
|
+
src: import("vue-types").VueTypeValidableDef<string> & {
|
|
166
|
+
default: string;
|
|
167
|
+
};
|
|
168
|
+
icon: import("vue").PropType<import("../utils/type").VueNode | (() => import("../utils/type").VueNode)>;
|
|
169
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
|
170
|
+
default: string;
|
|
171
|
+
};
|
|
172
|
+
bgColorHover: import("vue-types").VueTypeValidableDef<string> & {
|
|
173
|
+
default: string;
|
|
174
|
+
};
|
|
175
|
+
iconColor: import("vue-types").VueTypeValidableDef<string> & {
|
|
176
|
+
default: string;
|
|
177
|
+
};
|
|
178
|
+
iconColorHover: import("vue-types").VueTypeValidableDef<string> & {
|
|
179
|
+
default: string;
|
|
180
|
+
};
|
|
181
|
+
}>>, {
|
|
182
|
+
render: () => JSX.Element;
|
|
183
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
184
|
+
size: string;
|
|
185
|
+
space: import("../utils/type").Width;
|
|
186
|
+
shape: string;
|
|
187
|
+
src: string;
|
|
188
|
+
bgColor: string;
|
|
189
|
+
bgColorHover: string;
|
|
190
|
+
iconColor: string;
|
|
191
|
+
iconColorHover: string;
|
|
192
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
|
193
|
+
export { TAvatar };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { Width } from '../../utils/type';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
shape: import("vue-types").VueTypeDef<string> & {
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
size: import("vue-types").VueTypeDef<string> & {
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
width: PropType<Width>;
|
|
11
|
+
iconWidth: PropType<Width>;
|
|
12
|
+
space: {
|
|
13
|
+
type: PropType<Width>;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
src: import("vue-types").VueTypeValidableDef<string> & {
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
icon: PropType<import("../../utils/type").VueNode | (() => import("../../utils/type").VueNode)>;
|
|
20
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
bgColorHover: import("vue-types").VueTypeValidableDef<string> & {
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
iconColor: import("vue-types").VueTypeValidableDef<string> & {
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
iconColorHover: import("vue-types").VueTypeValidableDef<string> & {
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
}, {
|
|
33
|
+
render: () => JSX.Element;
|
|
34
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
shape: import("vue-types").VueTypeDef<string> & {
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
size: import("vue-types").VueTypeDef<string> & {
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
width: PropType<Width>;
|
|
42
|
+
iconWidth: PropType<Width>;
|
|
43
|
+
space: {
|
|
44
|
+
type: PropType<Width>;
|
|
45
|
+
default: number;
|
|
46
|
+
};
|
|
47
|
+
src: import("vue-types").VueTypeValidableDef<string> & {
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
icon: PropType<import("../../utils/type").VueNode | (() => import("../../utils/type").VueNode)>;
|
|
51
|
+
bgColor: import("vue-types").VueTypeValidableDef<string> & {
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
bgColorHover: import("vue-types").VueTypeValidableDef<string> & {
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
iconColor: import("vue-types").VueTypeValidableDef<string> & {
|
|
58
|
+
default: string;
|
|
59
|
+
};
|
|
60
|
+
iconColorHover: import("vue-types").VueTypeValidableDef<string> & {
|
|
61
|
+
default: string;
|
|
62
|
+
};
|
|
63
|
+
}>>, {
|
|
64
|
+
size: string;
|
|
65
|
+
space: Width;
|
|
66
|
+
shape: string;
|
|
67
|
+
src: string;
|
|
68
|
+
bgColor: string;
|
|
69
|
+
bgColorHover: string;
|
|
70
|
+
iconColor: string;
|
|
71
|
+
iconColorHover: string;
|
|
72
|
+
}>;
|
|
73
|
+
export default _default;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, watch, toRef, onMounted, nextTick, createVNode, Fragment, mergeProps, resolveComponent } from "vue";
|
|
2
|
+
import { PropTypes, StrOrVNode } from "../../utils/type.js";
|
|
3
|
+
import { useConfig } from "../../utils/hooks/useConfig.js";
|
|
4
|
+
import { getLength, getLengthNumber } from "../../utils/common.js";
|
|
5
|
+
const avatarProps = {
|
|
6
|
+
shape: PropTypes.oneOf(["circle", "square"]).def("circle"),
|
|
7
|
+
size: PropTypes.oneOf(["xs", "sm", "md", "lg", "xl"]).def("md"),
|
|
8
|
+
width: [String, Number],
|
|
9
|
+
iconWidth: [String, Number],
|
|
10
|
+
space: {
|
|
11
|
+
type: [String, Number],
|
|
12
|
+
default: 4
|
|
13
|
+
},
|
|
14
|
+
src: PropTypes.string,
|
|
15
|
+
icon: StrOrVNode,
|
|
16
|
+
bgColor: PropTypes.string,
|
|
17
|
+
bgColorHover: PropTypes.string,
|
|
18
|
+
iconColor: PropTypes.string,
|
|
19
|
+
iconColorHover: PropTypes.string
|
|
20
|
+
};
|
|
21
|
+
var Avatar = defineComponent({
|
|
22
|
+
name: "TAvatar",
|
|
23
|
+
inheritAttrs: false,
|
|
24
|
+
props: avatarProps,
|
|
25
|
+
setup(props, {
|
|
26
|
+
slots,
|
|
27
|
+
attrs
|
|
28
|
+
}) {
|
|
29
|
+
const {
|
|
30
|
+
prefixCls,
|
|
31
|
+
rootPrefix
|
|
32
|
+
} = useConfig("avatar", props);
|
|
33
|
+
const refAvatar = ref();
|
|
34
|
+
const refString = ref();
|
|
35
|
+
const iconWidth = ref(0);
|
|
36
|
+
const classes = computed(() => {
|
|
37
|
+
var _a;
|
|
38
|
+
return [[`${prefixCls.value}`], {
|
|
39
|
+
[`size-${props.size}`]: props.size,
|
|
40
|
+
[`is-square`]: props.shape == "square",
|
|
41
|
+
[`is-image`]: props.src,
|
|
42
|
+
[`${prefixCls.value}-hover`]: (_a = props.bgColorHover) != null ? _a : null
|
|
43
|
+
}];
|
|
44
|
+
});
|
|
45
|
+
const iconClasses = computed(() => {
|
|
46
|
+
var _a;
|
|
47
|
+
return [{
|
|
48
|
+
[`${rootPrefix.value}-icon-hover`]: (_a = props.iconColorHover) != null ? _a : null
|
|
49
|
+
}];
|
|
50
|
+
});
|
|
51
|
+
const icon = computed(() => {
|
|
52
|
+
var _a;
|
|
53
|
+
return slots.icon ? slots.icon() : (_a = props.icon) != null ? _a : null;
|
|
54
|
+
});
|
|
55
|
+
const styles = computed(() => {
|
|
56
|
+
const styles2 = {};
|
|
57
|
+
if (props.width) {
|
|
58
|
+
styles2["width"] = getLength(props.width);
|
|
59
|
+
styles2["height"] = styles2["width"];
|
|
60
|
+
styles2["lineHeight"] = styles2["width"];
|
|
61
|
+
}
|
|
62
|
+
if (props.bgColor)
|
|
63
|
+
styles2[`--${prefixCls.value}-bg-color`] = props.bgColor;
|
|
64
|
+
if (props.bgColorHover)
|
|
65
|
+
styles2[`--${prefixCls.value}-bg-color-hover`] = props.bgColorHover;
|
|
66
|
+
if (props.iconColorHover)
|
|
67
|
+
styles2[`--${prefixCls.value}-icon-color-hover`] = props.iconColorHover;
|
|
68
|
+
return styles2;
|
|
69
|
+
});
|
|
70
|
+
const updateScaleRate = () => {
|
|
71
|
+
if (!slots.default)
|
|
72
|
+
return;
|
|
73
|
+
if (!refAvatar.value)
|
|
74
|
+
return;
|
|
75
|
+
const avatarWidth = refAvatar.value.clientWidth;
|
|
76
|
+
refString.value.style.transform = ` scale(1)`;
|
|
77
|
+
if (slots.default) {
|
|
78
|
+
nextTick(() => {
|
|
79
|
+
const space = getLengthNumber(props.space) * 2;
|
|
80
|
+
const stringWidth = refString.value.getBoundingClientRect().width;
|
|
81
|
+
let rate = (avatarWidth - space) / stringWidth;
|
|
82
|
+
if (rate > 1) {
|
|
83
|
+
rate = 1;
|
|
84
|
+
}
|
|
85
|
+
refString.value.style.transform = ` scale(${rate})`;
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
if (slots.default) {
|
|
90
|
+
watch([slots.default, toRef(props, "size"), toRef(props, "width")], () => {
|
|
91
|
+
updateScaleRate();
|
|
92
|
+
}, {
|
|
93
|
+
deep: true
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
const render = () => {
|
|
97
|
+
var _a;
|
|
98
|
+
const iconWidth2 = props.iconWidth ? getLength(props.iconWidth) : null;
|
|
99
|
+
return createVNode(Fragment, null, [createVNode("div", mergeProps({
|
|
100
|
+
"ref": refAvatar,
|
|
101
|
+
"class": classes.value
|
|
102
|
+
}, attrs, {
|
|
103
|
+
"style": styles.value
|
|
104
|
+
}), [icon.value ? createVNode(resolveComponent("t-icon"), {
|
|
105
|
+
"class": iconClasses.value,
|
|
106
|
+
"style": [{
|
|
107
|
+
[`width`]: iconWidth2,
|
|
108
|
+
[`height`]: iconWidth2,
|
|
109
|
+
[`--t-avatar-icon-color`]: (_a = props.iconColor) != null ? _a : null
|
|
110
|
+
}]
|
|
111
|
+
}, {
|
|
112
|
+
default: () => [icon.value]
|
|
113
|
+
}) : null, slots.default ? createVNode("span", {
|
|
114
|
+
"ref": refString,
|
|
115
|
+
"class": "is-string"
|
|
116
|
+
}, [slots.default()]) : null, props.src ? createVNode("img", {
|
|
117
|
+
"src": props.src,
|
|
118
|
+
"style": [{
|
|
119
|
+
[`width`]: iconWidth2,
|
|
120
|
+
[`height`]: iconWidth2
|
|
121
|
+
}]
|
|
122
|
+
}, null) : null])]);
|
|
123
|
+
};
|
|
124
|
+
onMounted(() => {
|
|
125
|
+
const avatarWidth = refAvatar.value.clientWidth;
|
|
126
|
+
iconWidth.value = avatarWidth / 2.5;
|
|
127
|
+
updateScaleRate();
|
|
128
|
+
});
|
|
129
|
+
return {
|
|
130
|
+
render
|
|
131
|
+
};
|
|
132
|
+
},
|
|
133
|
+
render() {
|
|
134
|
+
return this.render();
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
export { Avatar as default };
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
declare const TBackTop: {
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: Partial<{
|
|
6
|
+
bottom: import("../utils/type").Width;
|
|
7
|
+
height: import("../utils/type").Width;
|
|
8
|
+
right: import("../utils/type").Width;
|
|
9
|
+
duration: number;
|
|
10
|
+
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
height: {
|
|
12
|
+
type: import("vue").PropType<import("../utils/type").Width>;
|
|
13
|
+
default: number;
|
|
14
|
+
};
|
|
15
|
+
right: {
|
|
16
|
+
type: import("vue").PropType<import("../utils/type").Width>;
|
|
17
|
+
default: number;
|
|
18
|
+
};
|
|
19
|
+
bottom: {
|
|
20
|
+
type: import("vue").PropType<import("../utils/type").Width>;
|
|
21
|
+
default: number;
|
|
22
|
+
};
|
|
23
|
+
duration: {
|
|
24
|
+
type: NumberConstructor;
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "bottom" | "height" | "right" | "duration">;
|
|
28
|
+
$attrs: {
|
|
29
|
+
[x: string]: unknown;
|
|
30
|
+
};
|
|
31
|
+
$refs: {
|
|
32
|
+
[x: string]: unknown;
|
|
33
|
+
};
|
|
34
|
+
$slots: Readonly<{
|
|
35
|
+
[name: string]: import("vue").Slot;
|
|
36
|
+
}>;
|
|
37
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
38
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
|
|
39
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
40
|
+
$el: any;
|
|
41
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
+
height: {
|
|
43
|
+
type: import("vue").PropType<import("../utils/type").Width>;
|
|
44
|
+
default: number;
|
|
45
|
+
};
|
|
46
|
+
right: {
|
|
47
|
+
type: import("vue").PropType<import("../utils/type").Width>;
|
|
48
|
+
default: number;
|
|
49
|
+
};
|
|
50
|
+
bottom: {
|
|
51
|
+
type: import("vue").PropType<import("../utils/type").Width>;
|
|
52
|
+
default: number;
|
|
53
|
+
};
|
|
54
|
+
duration: {
|
|
55
|
+
type: NumberConstructor;
|
|
56
|
+
default: number;
|
|
57
|
+
};
|
|
58
|
+
}>>, {
|
|
59
|
+
render: () => JSX.Element;
|
|
60
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
61
|
+
bottom: import("../utils/type").Width;
|
|
62
|
+
height: import("../utils/type").Width;
|
|
63
|
+
right: import("../utils/type").Width;
|
|
64
|
+
duration: number;
|
|
65
|
+
}> & {
|
|
66
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
67
|
+
created?: (() => void) | (() => void)[];
|
|
68
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
69
|
+
mounted?: (() => void) | (() => void)[];
|
|
70
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
71
|
+
updated?: (() => void) | (() => void)[];
|
|
72
|
+
activated?: (() => void) | (() => void)[];
|
|
73
|
+
deactivated?: (() => void) | (() => void)[];
|
|
74
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
75
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
76
|
+
destroyed?: (() => void) | (() => void)[];
|
|
77
|
+
unmounted?: (() => void) | (() => void)[];
|
|
78
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
79
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
|
80
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>, info: string) => boolean | void)[];
|
|
81
|
+
};
|
|
82
|
+
$forceUpdate: () => void;
|
|
83
|
+
$nextTick: typeof import("vue").nextTick;
|
|
84
|
+
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
|
85
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
86
|
+
height: {
|
|
87
|
+
type: import("vue").PropType<import("../utils/type").Width>;
|
|
88
|
+
default: number;
|
|
89
|
+
};
|
|
90
|
+
right: {
|
|
91
|
+
type: import("vue").PropType<import("../utils/type").Width>;
|
|
92
|
+
default: number;
|
|
93
|
+
};
|
|
94
|
+
bottom: {
|
|
95
|
+
type: import("vue").PropType<import("../utils/type").Width>;
|
|
96
|
+
default: number;
|
|
97
|
+
};
|
|
98
|
+
duration: {
|
|
99
|
+
type: NumberConstructor;
|
|
100
|
+
default: number;
|
|
101
|
+
};
|
|
102
|
+
}>> & import("vue").ShallowUnwrapRef<{
|
|
103
|
+
render: () => JSX.Element;
|
|
104
|
+
}> & {} & import("vue").ComponentCustomProperties;
|
|
105
|
+
__isFragment?: never;
|
|
106
|
+
__isTeleport?: never;
|
|
107
|
+
__isSuspense?: never;
|
|
108
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
109
|
+
height: {
|
|
110
|
+
type: import("vue").PropType<import("../utils/type").Width>;
|
|
111
|
+
default: number;
|
|
112
|
+
};
|
|
113
|
+
right: {
|
|
114
|
+
type: import("vue").PropType<import("../utils/type").Width>;
|
|
115
|
+
default: number;
|
|
116
|
+
};
|
|
117
|
+
bottom: {
|
|
118
|
+
type: import("vue").PropType<import("../utils/type").Width>;
|
|
119
|
+
default: number;
|
|
120
|
+
};
|
|
121
|
+
duration: {
|
|
122
|
+
type: NumberConstructor;
|
|
123
|
+
default: number;
|
|
124
|
+
};
|
|
125
|
+
}>>, {
|
|
126
|
+
render: () => JSX.Element;
|
|
127
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
|
|
128
|
+
bottom: import("../utils/type").Width;
|
|
129
|
+
height: import("../utils/type").Width;
|
|
130
|
+
right: import("../utils/type").Width;
|
|
131
|
+
duration: number;
|
|
132
|
+
}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("@vue/runtime-core").Plugin;
|
|
133
|
+
export { TBackTop };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
import type { Width } from '../../utils/type';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
height: {
|
|
5
|
+
type: PropType<Width>;
|
|
6
|
+
default: number;
|
|
7
|
+
};
|
|
8
|
+
right: {
|
|
9
|
+
type: PropType<Width>;
|
|
10
|
+
default: number;
|
|
11
|
+
};
|
|
12
|
+
bottom: {
|
|
13
|
+
type: PropType<Width>;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
duration: {
|
|
17
|
+
type: NumberConstructor;
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
render: () => JSX.Element;
|
|
22
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
height: {
|
|
24
|
+
type: PropType<Width>;
|
|
25
|
+
default: number;
|
|
26
|
+
};
|
|
27
|
+
right: {
|
|
28
|
+
type: PropType<Width>;
|
|
29
|
+
default: number;
|
|
30
|
+
};
|
|
31
|
+
bottom: {
|
|
32
|
+
type: PropType<Width>;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
duration: {
|
|
36
|
+
type: NumberConstructor;
|
|
37
|
+
default: number;
|
|
38
|
+
};
|
|
39
|
+
}>>, {
|
|
40
|
+
bottom: Width;
|
|
41
|
+
height: Width;
|
|
42
|
+
right: Width;
|
|
43
|
+
duration: number;
|
|
44
|
+
}>;
|
|
45
|
+
export default _default;
|