sard-uniapp 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/_template/index.scss +17 -0
- package/components/_template/index.vue +41 -0
- package/components/_template/variables.scss +5 -0
- package/components/accordion/accordion.vue +79 -0
- package/components/accordion/common.d.ts +47 -0
- package/components/accordion/common.js +15 -0
- package/components/accordion/index.d.ts +1 -0
- package/components/accordion/index.js +1 -0
- package/components/accordion/index.scss +9 -0
- package/components/accordion/variables.scss +16 -0
- package/components/accordion-item/accordion-item.vue +83 -0
- package/components/accordion-item/index.scss +56 -0
- package/components/action-sheet/action-sheet.vue +132 -0
- package/components/action-sheet/common.d.ts +42 -0
- package/components/action-sheet/common.js +18 -0
- package/components/action-sheet/index.d.ts +1 -0
- package/components/action-sheet/index.js +1 -0
- package/components/action-sheet/index.scss +103 -0
- package/components/action-sheet/variables.scss +31 -0
- package/components/avatar/avatar.vue +62 -0
- package/components/avatar/common.d.ts +28 -0
- package/components/avatar/common.js +14 -0
- package/components/avatar/index.d.ts +1 -0
- package/components/avatar/index.js +1 -0
- package/components/avatar/index.scss +29 -0
- package/components/avatar/variables.scss +10 -0
- package/components/badge/badge.vue +69 -0
- package/components/badge/common.d.ts +33 -0
- package/components/badge/common.js +18 -0
- package/components/badge/index.d.ts +1 -0
- package/components/badge/index.js +1 -0
- package/components/badge/index.scss +47 -0
- package/components/badge/variables.scss +12 -0
- package/components/button/button.vue +85 -0
- package/components/button/common.d.ts +42 -0
- package/components/button/common.js +23 -0
- package/components/button/index.d.ts +1 -0
- package/components/button/index.js +1 -0
- package/components/button/index.scss +186 -0
- package/components/button/test.scss +10 -0
- package/components/button/variables.scss +38 -0
- package/components/calendar/calendar.vue +290 -0
- package/components/calendar/common.d.ts +131 -0
- package/components/calendar/common.js +94 -0
- package/components/calendar/index.d.ts +1 -0
- package/components/calendar/index.js +1 -0
- package/components/calendar/index.scss +67 -0
- package/components/calendar/variables.scss +32 -0
- package/components/calendar-input/calendar-input.vue +158 -0
- package/components/calendar-input/common.d.ts +52 -0
- package/components/calendar-input/common.js +24 -0
- package/components/calendar-input/index.d.ts +1 -0
- package/components/calendar-input/index.js +1 -0
- package/components/calendar-month/calendar-month.vue +159 -0
- package/components/calendar-month/index.scss +111 -0
- package/components/card/card.vue +71 -0
- package/components/card/common.d.ts +24 -0
- package/components/card/common.js +7 -0
- package/components/card/index.d.ts +1 -0
- package/components/card/index.js +1 -0
- package/components/card/index.scss +44 -0
- package/components/card/variables.scss +19 -0
- package/components/cascader/cascader.vue +254 -0
- package/components/cascader/common.d.ts +50 -0
- package/components/cascader/common.js +34 -0
- package/components/cascader/index.d.ts +1 -0
- package/components/cascader/index.js +1 -0
- package/components/cascader/index.scss +99 -0
- package/components/cascader/variables.scss +19 -0
- package/components/cascader-input/cascader-input.vue +156 -0
- package/components/cascader-input/common.d.ts +45 -0
- package/components/cascader-input/common.js +21 -0
- package/components/cascader-input/index.d.ts +1 -0
- package/components/cascader-input/index.js +1 -0
- package/components/checkbox/checkbox.vue +127 -0
- package/components/checkbox/common.d.ts +102 -0
- package/components/checkbox/common.js +50 -0
- package/components/checkbox/index.d.ts +1 -0
- package/components/checkbox/index.js +1 -0
- package/components/checkbox/index.scss +44 -0
- package/components/checkbox/variables.scss +13 -0
- package/components/checkbox-group/checkbox-group.vue +81 -0
- package/components/checkbox-group/index.scss +19 -0
- package/components/col/col.vue +59 -0
- package/components/col/index.scss +47 -0
- package/components/col/variables.scss +2 -0
- package/components/collapse/collapse.vue +100 -0
- package/components/collapse/common.d.ts +18 -0
- package/components/collapse/common.js +7 -0
- package/components/collapse/index.d.ts +1 -0
- package/components/collapse/index.js +1 -0
- package/components/collapse/index.scss +9 -0
- package/components/collapse/variables.scss +5 -0
- package/components/config/index.d.ts +576 -0
- package/components/config/index.js +329 -0
- package/components/count-down/common.d.ts +45 -0
- package/components/count-down/common.js +45 -0
- package/components/count-down/count-down.vue +106 -0
- package/components/count-down/index.d.ts +1 -0
- package/components/count-down/index.js +1 -0
- package/components/datetime-picker/common.d.ts +54 -0
- package/components/datetime-picker/common.js +100 -0
- package/components/datetime-picker/datetime-picker.vue +154 -0
- package/components/datetime-picker/index.d.ts +1 -0
- package/components/datetime-picker/index.js +1 -0
- package/components/datetime-picker-input/common.d.ts +46 -0
- package/components/datetime-picker-input/common.js +26 -0
- package/components/datetime-picker-input/datetime-picker-input.vue +147 -0
- package/components/datetime-picker-input/index.d.ts +1 -0
- package/components/datetime-picker-input/index.js +1 -0
- package/components/dialog/common.d.ts +60 -0
- package/components/dialog/common.js +42 -0
- package/components/dialog/dialog.vue +189 -0
- package/components/dialog/index.d.ts +1 -0
- package/components/dialog/index.js +1 -0
- package/components/dialog/index.scss +120 -0
- package/components/dialog/variables.scss +28 -0
- package/components/dialog-agent/common.d.ts +62 -0
- package/components/dialog-agent/common.js +57 -0
- package/components/dialog-agent/dialog-agent.vue +67 -0
- package/components/dialog-agent/index.d.ts +1 -0
- package/components/dialog-agent/index.js +1 -0
- package/components/dropdown/common.d.ts +89 -0
- package/components/dropdown/common.js +50 -0
- package/components/dropdown/dropdown.vue +74 -0
- package/components/dropdown/index.d.ts +1 -0
- package/components/dropdown/index.js +1 -0
- package/components/dropdown/index.scss +27 -0
- package/components/dropdown/variables.scss +29 -0
- package/components/dropdown-item/dropdown-item.vue +265 -0
- package/components/dropdown-item/index.scss +117 -0
- package/components/empty/common.d.ts +25 -0
- package/components/empty/common.js +12 -0
- package/components/empty/empty.vue +60 -0
- package/components/empty/index.d.ts +1 -0
- package/components/empty/index.js +1 -0
- package/components/empty/index.scss +34 -0
- package/components/empty/variables.scss +12 -0
- package/components/form/Validator.d.ts +95 -0
- package/components/form/Validator.js +269 -0
- package/components/form/common.d.ts +179 -0
- package/components/form/common.js +99 -0
- package/components/form/form.vue +150 -0
- package/components/form/getUrlRegexp.d.ts +2 -0
- package/components/form/getUrlRegexp.js +53 -0
- package/components/form/index.d.ts +1 -0
- package/components/form/index.js +1 -0
- package/components/form/index.scss +12 -0
- package/components/form/variables.scss +26 -0
- package/components/form-item/form-item.vue +289 -0
- package/components/form-item/index.scss +112 -0
- package/components/grid/common.d.ts +64 -0
- package/components/grid/common.js +32 -0
- package/components/grid/grid.vue +73 -0
- package/components/grid/index.d.ts +1 -0
- package/components/grid/index.js +1 -0
- package/components/grid/index.scss +15 -0
- package/components/grid/variables.scss +16 -0
- package/components/grid-item/grid-item.vue +79 -0
- package/components/grid-item/index.scss +118 -0
- package/components/icon/common.d.ts +23 -0
- package/components/icon/common.js +19 -0
- package/components/icon/icon.vue +56 -0
- package/components/icon/index.d.ts +1 -0
- package/components/icon/index.js +1 -0
- package/components/icon/index.scss +22 -0
- package/components/icon/sari.scss +165 -0
- package/components/icon/variables.scss +2 -0
- package/components/indexes/common.d.ts +62 -0
- package/components/indexes/common.js +21 -0
- package/components/indexes/index.d.ts +1 -0
- package/components/indexes/index.js +1 -0
- package/components/indexes/index.scss +11 -0
- package/components/indexes/indexes.vue +184 -0
- package/components/indexes/variables.scss +25 -0
- package/components/indexes-anchor/index.scss +15 -0
- package/components/indexes-anchor/indexes-anchor.vue +66 -0
- package/components/indexes-nav/index.scss +65 -0
- package/components/indexes-nav/indexes-nav.vue +174 -0
- package/components/input/common.d.ts +128 -0
- package/components/input/common.js +71 -0
- package/components/input/index.d.ts +1 -0
- package/components/input/index.js +1 -0
- package/components/input/index.scss +118 -0
- package/components/input/input.vue +238 -0
- package/components/input/variables.scss +30 -0
- package/components/keyboard/common.d.ts +32 -0
- package/components/keyboard/common.js +117 -0
- package/components/keyboard/index.d.ts +1 -0
- package/components/keyboard/index.js +1 -0
- package/components/keyboard/index.scss +97 -0
- package/components/keyboard/keyboard.vue +210 -0
- package/components/keyboard/variables-dark.scss +12 -0
- package/components/keyboard/variables.scss +22 -0
- package/components/layout/common.d.ts +54 -0
- package/components/layout/common.js +29 -0
- package/components/layout/index.d.ts +1 -0
- package/components/layout/index.js +1 -0
- package/components/list/common.d.ts +64 -0
- package/components/list/common.js +29 -0
- package/components/list/index.d.ts +1 -0
- package/components/list/index.js +1 -0
- package/components/list/index.scss +50 -0
- package/components/list/list.vue +62 -0
- package/components/list/variables.scss +50 -0
- package/components/list-item/index.scss +91 -0
- package/components/list-item/list-item.vue +94 -0
- package/components/loading/common.d.ts +29 -0
- package/components/loading/common.js +18 -0
- package/components/loading/index.d.ts +1 -0
- package/components/loading/index.js +1 -0
- package/components/loading/index.scss +92 -0
- package/components/loading/loading.vue +76 -0
- package/components/loading/variables.scss +15 -0
- package/components/locale/index.d.ts +10 -0
- package/components/locale/index.js +44 -0
- package/components/locale/lang/zh-CN.d.ts +94 -0
- package/components/locale/lang/zh-CN.js +94 -0
- package/components/menu/common.d.ts +46 -0
- package/components/menu/common.js +21 -0
- package/components/menu/index.d.ts +1 -0
- package/components/menu/index.js +1 -0
- package/components/menu/index.scss +19 -0
- package/components/menu/menu.vue +67 -0
- package/components/menu/variables.scss +20 -0
- package/components/menu-item/index.scss +124 -0
- package/components/menu-item/menu-item.vue +51 -0
- package/components/navbar/common.d.ts +33 -0
- package/components/navbar/common.js +10 -0
- package/components/navbar/index.d.ts +1 -0
- package/components/navbar/index.js +1 -0
- package/components/navbar/index.scss +80 -0
- package/components/navbar/navbar.vue +60 -0
- package/components/navbar/variables.scss +18 -0
- package/components/navbar-item/index.scss +20 -0
- package/components/navbar-item/navbar-item.vue +45 -0
- package/components/notice-bar/common.d.ts +52 -0
- package/components/notice-bar/common.js +34 -0
- package/components/notice-bar/index.d.ts +1 -0
- package/components/notice-bar/index.js +1 -0
- package/components/notice-bar/index.scss +88 -0
- package/components/notice-bar/notice-bar.vue +146 -0
- package/components/notice-bar/variables.scss +19 -0
- package/components/notify/common.d.ts +45 -0
- package/components/notify/common.js +25 -0
- package/components/notify/index.d.ts +1 -0
- package/components/notify/index.js +1 -0
- package/components/notify/index.scss +31 -0
- package/components/notify/notify.vue +93 -0
- package/components/notify/variables.scss +8 -0
- package/components/notify-agent/common.d.ts +53 -0
- package/components/notify-agent/common.js +54 -0
- package/components/notify-agent/index.d.ts +1 -0
- package/components/notify-agent/index.js +1 -0
- package/components/notify-agent/notify-agent.vue +67 -0
- package/components/overlay/common.d.ts +28 -0
- package/components/overlay/common.js +16 -0
- package/components/overlay/index.d.ts +1 -0
- package/components/overlay/index.js +1 -0
- package/components/overlay/index.scss +27 -0
- package/components/overlay/overlay.vue +72 -0
- package/components/overlay/variables.scss +7 -0
- package/components/pagination/common.d.ts +60 -0
- package/components/pagination/common.js +66 -0
- package/components/pagination/index.d.ts +1 -0
- package/components/pagination/index.js +1 -0
- package/components/pagination/index.scss +110 -0
- package/components/pagination/pagination.vue +147 -0
- package/components/pagination/variables.scss +20 -0
- package/components/password-input/common.d.ts +42 -0
- package/components/password-input/common.js +29 -0
- package/components/password-input/index.d.ts +1 -0
- package/components/password-input/index.js +1 -0
- package/components/password-input/index.scss +138 -0
- package/components/password-input/password-input.vue +139 -0
- package/components/password-input/variables.scss +18 -0
- package/components/picker/common.d.ts +48 -0
- package/components/picker/common.js +124 -0
- package/components/picker/index.d.ts +1 -0
- package/components/picker/index.js +1 -0
- package/components/picker/index.scss +21 -0
- package/components/picker/picker.vue +171 -0
- package/components/picker/variables.scss +43 -0
- package/components/picker-input/common.d.ts +36 -0
- package/components/picker-input/common.js +18 -0
- package/components/picker-input/index.d.ts +1 -0
- package/components/picker-input/index.js +1 -0
- package/components/picker-input/picker-input.vue +144 -0
- package/components/popout/common.d.ts +71 -0
- package/components/popout/common.js +43 -0
- package/components/popout/index.d.ts +1 -0
- package/components/popout/index.js +1 -0
- package/components/popout/index.scss +92 -0
- package/components/popout/popout.vue +200 -0
- package/components/popout/variables.scss +24 -0
- package/components/popout-input/common.d.ts +26 -0
- package/components/popout-input/common.js +10 -0
- package/components/popout-input/index.d.ts +1 -0
- package/components/popout-input/index.js +1 -0
- package/components/popout-input/index.scss +48 -0
- package/components/popout-input/popout-input.vue +136 -0
- package/components/popout-input/variables.scss +10 -0
- package/components/popover/common.d.ts +79 -0
- package/components/popover/common.js +49 -0
- package/components/popover/index.d.ts +3 -0
- package/components/popover/index.js +1 -0
- package/components/popover/index.scss +74 -0
- package/components/popover/popover.vue +210 -0
- package/components/popover/usePopover.d.ts +7 -0
- package/components/popover/usePopover.js +35 -0
- package/components/popover/utils.d.ts +24 -0
- package/components/popover/utils.js +130 -0
- package/components/popover/variables.scss +14 -0
- package/components/popover-reference/index.d.ts +1 -0
- package/components/popover-reference/index.js +1 -0
- package/components/popover-reference/popover-reference.vue +60 -0
- package/components/popup/common.d.ts +56 -0
- package/components/popup/common.js +49 -0
- package/components/popup/index.d.ts +1 -0
- package/components/popup/index.js +1 -0
- package/components/popup/index.scss +126 -0
- package/components/popup/popup.vue +100 -0
- package/components/popup/variables.scss +6 -0
- package/components/progress-bar/common.d.ts +36 -0
- package/components/progress-bar/common.js +24 -0
- package/components/progress-bar/index.d.ts +1 -0
- package/components/progress-bar/index.js +1 -0
- package/components/progress-bar/index.scss +114 -0
- package/components/progress-bar/progress-bar.vue +82 -0
- package/components/progress-bar/variables.scss +28 -0
- package/components/progress-circle/common.d.ts +30 -0
- package/components/progress-circle/common.js +21 -0
- package/components/progress-circle/index.d.ts +1 -0
- package/components/progress-circle/index.js +1 -0
- package/components/progress-circle/index.scss +87 -0
- package/components/progress-circle/progress-circle.vue +119 -0
- package/components/progress-circle/variables.scss +15 -0
- package/components/radio/common.d.ts +94 -0
- package/components/radio/common.js +49 -0
- package/components/radio/index.d.ts +1 -0
- package/components/radio/index.js +1 -0
- package/components/radio/index.scss +44 -0
- package/components/radio/radio.vue +100 -0
- package/components/radio/variables.scss +13 -0
- package/components/radio-group/index.scss +18 -0
- package/components/radio-group/radio-group.vue +79 -0
- package/components/rate/common.d.ts +56 -0
- package/components/rate/common.js +39 -0
- package/components/rate/index.d.ts +1 -0
- package/components/rate/index.js +1 -0
- package/components/rate/index.scss +57 -0
- package/components/rate/rate.vue +233 -0
- package/components/rate/variables.scss +8 -0
- package/components/result/common.d.ts +37 -0
- package/components/result/common.js +24 -0
- package/components/result/index.d.ts +1 -0
- package/components/result/index.js +1 -0
- package/components/result/index.scss +58 -0
- package/components/result/result.vue +64 -0
- package/components/result/variables.scss +21 -0
- package/components/row/index.scss +12 -0
- package/components/row/row.vue +69 -0
- package/components/row/variables.scss +2 -0
- package/components/sard-uniapp/sard-uniapp.vue +7 -0
- package/components/search/common.d.ts +45 -0
- package/components/search/common.js +22 -0
- package/components/search/index.d.ts +1 -0
- package/components/search/index.js +1 -0
- package/components/search/index.scss +43 -0
- package/components/search/search.vue +129 -0
- package/components/search/variables.scss +11 -0
- package/components/share-sheet/common.d.ts +46 -0
- package/components/share-sheet/common.js +22 -0
- package/components/share-sheet/index.d.ts +1 -0
- package/components/share-sheet/index.js +1 -0
- package/components/share-sheet/index.scss +132 -0
- package/components/share-sheet/share-sheet.vue +170 -0
- package/components/share-sheet/variables.scss +46 -0
- package/components/skeleton/common.d.ts +84 -0
- package/components/skeleton/common.js +40 -0
- package/components/skeleton/index.d.ts +1 -0
- package/components/skeleton/index.js +1 -0
- package/components/skeleton/index.scss +75 -0
- package/components/skeleton/skeleton.vue +58 -0
- package/components/skeleton/variables-dark.scss +7 -0
- package/components/skeleton/variables.scss +19 -0
- package/components/skeleton-avatar/index.scss +11 -0
- package/components/skeleton-avatar/skeleton-avatar.vue +52 -0
- package/components/skeleton-block/index.scss +35 -0
- package/components/skeleton-block/skeleton-block.vue +49 -0
- package/components/skeleton-paragraph/index.scss +16 -0
- package/components/skeleton-paragraph/skeleton-paragraph.vue +49 -0
- package/components/skeleton-title/index.scss +9 -0
- package/components/skeleton-title/skeleton-title.vue +46 -0
- package/components/slider/common.d.ts +72 -0
- package/components/slider/common.js +43 -0
- package/components/slider/index.d.ts +1 -0
- package/components/slider/index.js +1 -0
- package/components/slider/index.scss +233 -0
- package/components/slider/slider.vue +367 -0
- package/components/slider/variables-dark.scss +7 -0
- package/components/slider/variables.scss +32 -0
- package/components/stepper/common.d.ts +68 -0
- package/components/stepper/common.js +54 -0
- package/components/stepper/index.d.ts +1 -0
- package/components/stepper/index.js +1 -0
- package/components/stepper/index.scss +75 -0
- package/components/stepper/stepper.vue +219 -0
- package/components/stepper/variables.scss +18 -0
- package/components/steps/common.d.ts +58 -0
- package/components/steps/common.js +46 -0
- package/components/steps/index.d.ts +1 -0
- package/components/steps/index.js +1 -0
- package/components/steps/index.scss +231 -0
- package/components/steps/steps.vue +90 -0
- package/components/steps/variables.scss +37 -0
- package/components/style/base.scss +3 -0
- package/components/style/configuration.scss +62 -0
- package/components/style/functions.scss +39 -0
- package/components/style/index.scss +0 -0
- package/components/style/mixins/bem.scss +225 -0
- package/components/style/mixins/border.scss +157 -0
- package/components/style/mixins/button.scss +38 -0
- package/components/style/mixins/disabled.scss +10 -0
- package/components/style/mixins/ellipsis.scss +5 -0
- package/components/style/mixins/notify.scss +4 -0
- package/components/style/mixins/theme-dark.scss +13 -0
- package/components/style/mixins/universal.scss +6 -0
- package/components/style/mixins.scss +8 -0
- package/components/style/variables-dark.scss +58 -0
- package/components/style/variables.scss +194 -0
- package/components/swiper-dot/common.d.ts +31 -0
- package/components/swiper-dot/common.js +28 -0
- package/components/swiper-dot/index.d.ts +1 -0
- package/components/swiper-dot/index.js +1 -0
- package/components/swiper-dot/index.scss +82 -0
- package/components/swiper-dot/swiper-dot.vue +64 -0
- package/components/swiper-dot/variables.scss +28 -0
- package/components/switch/common.d.ts +45 -0
- package/components/switch/common.js +30 -0
- package/components/switch/index.d.ts +1 -0
- package/components/switch/index.js +1 -0
- package/components/switch/index.scss +59 -0
- package/components/switch/switch.vue +105 -0
- package/components/switch/variables.scss +22 -0
- package/components/tab/index.scss +72 -0
- package/components/tab/tab.vue +91 -0
- package/components/tabbar/common.d.ts +62 -0
- package/components/tabbar/common.js +27 -0
- package/components/tabbar/index.d.ts +1 -0
- package/components/tabbar/index.js +1 -0
- package/components/tabbar/index.scss +18 -0
- package/components/tabbar/tabbar.vue +64 -0
- package/components/tabbar/variables.scss +16 -0
- package/components/tabbar-item/index.scss +30 -0
- package/components/tabbar-item/tabbar-item.vue +79 -0
- package/components/tabs/common.d.ts +66 -0
- package/components/tabs/common.js +26 -0
- package/components/tabs/index.d.ts +1 -0
- package/components/tabs/index.js +1 -0
- package/components/tabs/index.scss +42 -0
- package/components/tabs/tabs.vue +170 -0
- package/components/tabs/variables.scss +24 -0
- package/components/tag/common.d.ts +38 -0
- package/components/tag/common.js +23 -0
- package/components/tag/index.d.ts +1 -0
- package/components/tag/index.js +1 -0
- package/components/tag/index.scss +80 -0
- package/components/tag/tag.vue +78 -0
- package/components/tag/variables.scss +20 -0
- package/components/toast/common.d.ts +47 -0
- package/components/toast/common.js +34 -0
- package/components/toast/index.d.ts +1 -0
- package/components/toast/index.js +1 -0
- package/components/toast/index.scss +64 -0
- package/components/toast/toast.vue +117 -0
- package/components/toast/variables.scss +27 -0
- package/components/toast-agent/common.d.ts +56 -0
- package/components/toast-agent/common.js +54 -0
- package/components/toast-agent/index.d.ts +1 -0
- package/components/toast-agent/index.js +1 -0
- package/components/toast-agent/toast-agent.vue +66 -0
- package/components/upload/common.d.ts +137 -0
- package/components/upload/common.js +81 -0
- package/components/upload/index.d.ts +1 -0
- package/components/upload/index.js +1 -0
- package/components/upload/index.scss +52 -0
- package/components/upload/upload.vue +245 -0
- package/components/upload/variables.scss +43 -0
- package/components/upload-preview/index.scss +138 -0
- package/components/upload-preview/play.png +0 -0
- package/components/upload-preview/upload-preview.vue +154 -0
- package/dark.scss +4 -0
- package/global.d.ts +164 -0
- package/index.d.ts +66 -0
- package/index.js +66 -0
- package/index.scss +54 -0
- package/package.json +76 -11
- package/use/index.d.ts +3 -0
- package/use/index.js +3 -0
- package/use/useSetTimeout.d.ts +1 -0
- package/use/useSetTimeout.js +24 -0
- package/use/useTransition.d.ts +18 -0
- package/use/useTransition.js +137 -0
- package/use/useZIndex.d.ts +1 -0
- package/use/useZIndex.js +9 -0
- package/utils/bem.d.ts +23 -0
- package/utils/bem.js +49 -0
- package/utils/case.d.ts +4 -0
- package/utils/case.js +26 -0
- package/utils/date.d.ts +14 -0
- package/utils/date.js +91 -0
- package/utils/dom.d.ts +137 -0
- package/utils/dom.js +154 -0
- package/utils/file.d.ts +33 -0
- package/utils/file.js +62 -0
- package/utils/index.d.ts +7 -0
- package/utils/index.js +7 -0
- package/utils/is.d.ts +42 -0
- package/utils/is.js +56 -0
- package/utils/utils.d.ts +209 -0
- package/utils/utils.js +641 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// #variables
|
|
2
|
+
page {
|
|
3
|
+
--sar-action-sheet-border-radius: var(--sar-rounded-xl);
|
|
4
|
+
--sar-action-sheet-border-color: var(--sar-border-color);
|
|
5
|
+
--sar-action-sheet-bg: var(--sar-emphasis-bg);
|
|
6
|
+
--sar-action-sheet-active-bg: var(--sar-active-bg);
|
|
7
|
+
|
|
8
|
+
--sar-action-sheet-description-padding: 32rpx;
|
|
9
|
+
--sar-action-sheet-description-font-size: var(--sar-text-base);
|
|
10
|
+
--sar-action-sheet-description-color: var(--sar-tertiary-color);
|
|
11
|
+
|
|
12
|
+
--sar-action-sheet-item-min-height: 96rpx;
|
|
13
|
+
--sar-action-sheet-item-padding: 16rpx 32rpx;
|
|
14
|
+
|
|
15
|
+
--sar-action-sheet-gap-bg: var(--sar-body-bg);
|
|
16
|
+
--sar-action-sheet-gap-height: 16rpx;
|
|
17
|
+
|
|
18
|
+
--sar-action-sheet-item-name-font-size: var(--sar-text-lg);
|
|
19
|
+
|
|
20
|
+
--sar-action-sheet-item-description-margin-top: 16rpx;
|
|
21
|
+
--sar-action-sheet-item-description-font-size: var(--sar-text-sm);
|
|
22
|
+
--sar-action-sheet-item-description-color: var(--sar-tertiary-color);
|
|
23
|
+
|
|
24
|
+
--sar-action-sheet-loading-size: 40rpx;
|
|
25
|
+
--sar-action-sheet-loading-color: var(--sar-quaternary-color);
|
|
26
|
+
|
|
27
|
+
--sar-action-sheet-cancel-min-height: 96rpx;
|
|
28
|
+
--sar-action-sheet-cancel-padding: 16rpx 32rpx;
|
|
29
|
+
--sar-action-sheet-cancel-font-size: var(--sar-text-lg);
|
|
30
|
+
}
|
|
31
|
+
// #endvariables
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view :class="avatarClass" :style="avatarStyle">
|
|
3
|
+
<slot>
|
|
4
|
+
<image
|
|
5
|
+
v-if="src"
|
|
6
|
+
:src="src"
|
|
7
|
+
mode="aspectFill"
|
|
8
|
+
:class="classNames(bem.e('image'), bem.m(shape))"
|
|
9
|
+
/>
|
|
10
|
+
|
|
11
|
+
<sar-icon v-else name="person" :root-class="bem.e('icon')" />
|
|
12
|
+
</slot>
|
|
13
|
+
<slot name="extra"></slot>
|
|
14
|
+
</view>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script lang="ts">
|
|
18
|
+
import { defineComponent as _defineComponent } from "vue";
|
|
19
|
+
import { computed } from "vue";
|
|
20
|
+
import { classNames, stringifyStyle, createBem } from "../../utils";
|
|
21
|
+
import SarIcon from "../icon/icon.vue";
|
|
22
|
+
import { avatarProps } from "./common";
|
|
23
|
+
const __default__ = {
|
|
24
|
+
options: {
|
|
25
|
+
virtualHost: true,
|
|
26
|
+
styleIsolation: "shared"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
export default /* @__PURE__ */ _defineComponent({
|
|
30
|
+
...__default__,
|
|
31
|
+
__name: "avatar",
|
|
32
|
+
props: avatarProps,
|
|
33
|
+
setup(__props, { expose: __expose }) {
|
|
34
|
+
__expose();
|
|
35
|
+
const props = __props;
|
|
36
|
+
const bem = createBem("avatar");
|
|
37
|
+
const avatarClass = computed(() => {
|
|
38
|
+
return classNames(bem.b(), bem.m(props.shape), props.rootClass);
|
|
39
|
+
});
|
|
40
|
+
const avatarStyle = computed(() => {
|
|
41
|
+
return stringifyStyle(
|
|
42
|
+
{
|
|
43
|
+
width: props.size,
|
|
44
|
+
height: props.size,
|
|
45
|
+
color: props.color,
|
|
46
|
+
fontSize: props.iconSize,
|
|
47
|
+
background: props.background
|
|
48
|
+
},
|
|
49
|
+
props.rootStyle
|
|
50
|
+
);
|
|
51
|
+
});
|
|
52
|
+
const __returned__ = { props, bem, avatarClass, avatarStyle, get classNames() {
|
|
53
|
+
return classNames;
|
|
54
|
+
}, SarIcon };
|
|
55
|
+
return __returned__;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
</script>
|
|
59
|
+
|
|
60
|
+
<style lang="scss">
|
|
61
|
+
@import './index.scss';
|
|
62
|
+
</style>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { type PropType, type StyleValue } from 'vue';
|
|
2
|
+
export interface AvatarProps {
|
|
3
|
+
rootStyle?: StyleValue;
|
|
4
|
+
rootClass?: string;
|
|
5
|
+
shape?: 'circle' | 'square';
|
|
6
|
+
size?: string;
|
|
7
|
+
iconSize?: string;
|
|
8
|
+
background?: string;
|
|
9
|
+
color?: string;
|
|
10
|
+
src?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const avatarProps: {
|
|
13
|
+
rootStyle: PropType<StyleValue>;
|
|
14
|
+
rootClass: StringConstructor;
|
|
15
|
+
shape: {
|
|
16
|
+
type: PropType<"circle" | "square" | undefined>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
size: StringConstructor;
|
|
20
|
+
iconSize: StringConstructor;
|
|
21
|
+
background: StringConstructor;
|
|
22
|
+
color: StringConstructor;
|
|
23
|
+
src: StringConstructor;
|
|
24
|
+
};
|
|
25
|
+
export interface AvatarSlots {
|
|
26
|
+
default(props: Record<string, never>): any;
|
|
27
|
+
extra(props: Record<string, never>): any;
|
|
28
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { defaultConfig } from '../config';
|
|
2
|
+
export const avatarProps = {
|
|
3
|
+
rootStyle: [String, Object, Array],
|
|
4
|
+
rootClass: String,
|
|
5
|
+
shape: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: defaultConfig.avatar.shape,
|
|
8
|
+
},
|
|
9
|
+
size: String,
|
|
10
|
+
iconSize: String,
|
|
11
|
+
background: String,
|
|
12
|
+
color: String,
|
|
13
|
+
src: String,
|
|
14
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { AvatarProps, AvatarSlots } from './common';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
@use '../style/base' as *;
|
|
2
|
+
|
|
3
|
+
@include bem(avatar) {
|
|
4
|
+
@include b() {
|
|
5
|
+
@include universal;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
flex-grow: 0;
|
|
9
|
+
flex-shrink: 0;
|
|
10
|
+
width: var(--sar-avatar-width);
|
|
11
|
+
height: var(--sar-avatar-height);
|
|
12
|
+
font-size: var(--sar-avatar-font-size);
|
|
13
|
+
background-color: var(--sar-avatar-bg);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@include e(image) {
|
|
17
|
+
@include universal;
|
|
18
|
+
width: 100%;
|
|
19
|
+
height: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
@include m(circle) {
|
|
23
|
+
border-radius: var(--sar-rounded-full);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@include m(square) {
|
|
27
|
+
border-radius: var(--sar-avatar-square-border-radius);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view v-if="$slots.default" :class="bem.e('wrapper')">
|
|
3
|
+
<slot></slot>
|
|
4
|
+
<view :class="badgeClass" :style="badgeStyle">
|
|
5
|
+
<slot name="value">
|
|
6
|
+
{{ innerValue }}
|
|
7
|
+
</slot>
|
|
8
|
+
</view>
|
|
9
|
+
</view>
|
|
10
|
+
<view v-else :class="badgeClass" :style="badgeStyle">
|
|
11
|
+
<slot name="value">
|
|
12
|
+
{{ innerValue }}
|
|
13
|
+
</slot>
|
|
14
|
+
</view>
|
|
15
|
+
</template>
|
|
16
|
+
|
|
17
|
+
<script lang="ts">
|
|
18
|
+
import { defineComponent as _defineComponent } from "vue";
|
|
19
|
+
import { computed, useSlots } from "vue";
|
|
20
|
+
import { classNames, stringifyStyle, createBem } from "../../utils";
|
|
21
|
+
import { badgeProps } from "./common";
|
|
22
|
+
const __default__ = {
|
|
23
|
+
options: {
|
|
24
|
+
virtualHost: true,
|
|
25
|
+
styleIsolation: "shared"
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
export default /* @__PURE__ */ _defineComponent({
|
|
29
|
+
...__default__,
|
|
30
|
+
__name: "badge",
|
|
31
|
+
props: badgeProps,
|
|
32
|
+
setup(__props, { expose: __expose }) {
|
|
33
|
+
__expose();
|
|
34
|
+
const props = __props;
|
|
35
|
+
const bem = createBem("badge");
|
|
36
|
+
const slots = useSlots();
|
|
37
|
+
const zeroHide = computed(() => {
|
|
38
|
+
return !props.dot && props.value === 0 && !props.showZero && !slots.value;
|
|
39
|
+
});
|
|
40
|
+
const innerValue = computed(() => {
|
|
41
|
+
return props.dot ? "" : typeof props.value === "number" && props.value > props.max ? `${props.max}+` : props.value;
|
|
42
|
+
});
|
|
43
|
+
const badgeClass = computed(() => {
|
|
44
|
+
return classNames(
|
|
45
|
+
bem.b(),
|
|
46
|
+
bem.m("fixed", props.fixed || !!slots.default),
|
|
47
|
+
bem.m("zero-hide", zeroHide.value),
|
|
48
|
+
bem.m("dot", props.dot),
|
|
49
|
+
props.rootClass
|
|
50
|
+
);
|
|
51
|
+
});
|
|
52
|
+
const badgeStyle = computed(() => {
|
|
53
|
+
return stringifyStyle(
|
|
54
|
+
{
|
|
55
|
+
background: props.color,
|
|
56
|
+
color: props.textColor
|
|
57
|
+
},
|
|
58
|
+
props.rootStyle
|
|
59
|
+
);
|
|
60
|
+
});
|
|
61
|
+
const __returned__ = { props, bem, slots, zeroHide, innerValue, badgeClass, badgeStyle };
|
|
62
|
+
return __returned__;
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
</script>
|
|
66
|
+
|
|
67
|
+
<style lang="scss">
|
|
68
|
+
@import './index.scss';
|
|
69
|
+
</style>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { type PropType, type StyleValue } from 'vue';
|
|
2
|
+
export interface BadgeProps {
|
|
3
|
+
rootStyle?: StyleValue;
|
|
4
|
+
rootClass?: string;
|
|
5
|
+
value?: number | string;
|
|
6
|
+
max?: number;
|
|
7
|
+
showZero?: boolean;
|
|
8
|
+
color?: string;
|
|
9
|
+
textColor?: string;
|
|
10
|
+
dot?: boolean;
|
|
11
|
+
fixed?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare const badgeProps: {
|
|
14
|
+
rootStyle: PropType<StyleValue>;
|
|
15
|
+
rootClass: StringConstructor;
|
|
16
|
+
value: {
|
|
17
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
18
|
+
default: number;
|
|
19
|
+
};
|
|
20
|
+
max: {
|
|
21
|
+
type: NumberConstructor;
|
|
22
|
+
default: number;
|
|
23
|
+
};
|
|
24
|
+
showZero: BooleanConstructor;
|
|
25
|
+
color: StringConstructor;
|
|
26
|
+
textColor: StringConstructor;
|
|
27
|
+
dot: BooleanConstructor;
|
|
28
|
+
fixed: BooleanConstructor;
|
|
29
|
+
};
|
|
30
|
+
export interface BadgeSlots {
|
|
31
|
+
default(props: Record<string, never>): any;
|
|
32
|
+
value(props: Record<string, never>): any;
|
|
33
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { defaultConfig } from '../config';
|
|
2
|
+
export const badgeProps = {
|
|
3
|
+
rootStyle: [String, Object, Array],
|
|
4
|
+
rootClass: String,
|
|
5
|
+
value: {
|
|
6
|
+
type: [Number, String],
|
|
7
|
+
default: defaultConfig.badge.value,
|
|
8
|
+
},
|
|
9
|
+
max: {
|
|
10
|
+
type: Number,
|
|
11
|
+
default: defaultConfig.badge.max,
|
|
12
|
+
},
|
|
13
|
+
showZero: Boolean,
|
|
14
|
+
color: String,
|
|
15
|
+
textColor: String,
|
|
16
|
+
dot: Boolean,
|
|
17
|
+
fixed: Boolean,
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { BadgeProps, BadgeSlots } from './common';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
@use '../style/base' as *;
|
|
2
|
+
|
|
3
|
+
@include bem(badge) {
|
|
4
|
+
@include b() {
|
|
5
|
+
@include universal;
|
|
6
|
+
flex: none;
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
min-width: var(--sar-badge-min-width);
|
|
11
|
+
height: var(--sar-badge-height);
|
|
12
|
+
padding-left: var(--sar-badge-padding-x);
|
|
13
|
+
padding-right: var(--sar-badge-padding-x);
|
|
14
|
+
font-size: var(--sar-badge-font-size);
|
|
15
|
+
line-height: var(--sar-leading-none);
|
|
16
|
+
text-align: center;
|
|
17
|
+
border: 1px solid var(--sar-badge-border-color);
|
|
18
|
+
border-radius: var(--sar-rounded-full);
|
|
19
|
+
color: var(--sar-badge-color);
|
|
20
|
+
background-color: var(--sar-badge-bg);
|
|
21
|
+
|
|
22
|
+
@include m(fixed) {
|
|
23
|
+
position: absolute;
|
|
24
|
+
top: 0;
|
|
25
|
+
right: 0;
|
|
26
|
+
transform: translate(50%, -50%);
|
|
27
|
+
z-index: 10;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@include m(dot) {
|
|
31
|
+
width: var(--sar-badge-dot-size);
|
|
32
|
+
height: var(--sar-badge-dot-size);
|
|
33
|
+
min-width: var(--sar-badge-dot-size);
|
|
34
|
+
padding: 0;
|
|
35
|
+
border-radius: var(--sar-rounded-full);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@include m(zero-hide) {
|
|
39
|
+
display: none;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
@include e(wrapper) {
|
|
44
|
+
@include universal;
|
|
45
|
+
display: inline-flex;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// #variables
|
|
2
|
+
page {
|
|
3
|
+
--sar-badge-height: 36rpx;
|
|
4
|
+
--sar-badge-padding-x: 8rpx;
|
|
5
|
+
--sar-badge-font-size: var(--sar-text-sm);
|
|
6
|
+
--sar-badge-min-width: var(--sar-badge-height);
|
|
7
|
+
--sar-badge-bg: var(--sar-danger);
|
|
8
|
+
--sar-badge-color: var(--sar-white);
|
|
9
|
+
--sar-badge-border-color: var(--sar-white);
|
|
10
|
+
--sar-badge-dot-size: 20rpx;
|
|
11
|
+
}
|
|
12
|
+
// #endvariables
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<button
|
|
3
|
+
:class="buttonClass"
|
|
4
|
+
:style="buttonStyle"
|
|
5
|
+
:disabled="isDisabled || loading"
|
|
6
|
+
:hover-class="bem.m('hover')"
|
|
7
|
+
@click="onClick"
|
|
8
|
+
>
|
|
9
|
+
<view
|
|
10
|
+
v-if="loading"
|
|
11
|
+
:class="
|
|
12
|
+
classNames(
|
|
13
|
+
bem.e('loading'),
|
|
14
|
+
bem.em('loading', 'with-slot', !!$slots.default),
|
|
15
|
+
)
|
|
16
|
+
"
|
|
17
|
+
>
|
|
18
|
+
<sar-loading size="inherit" color="inherit" :type="loadingType" />
|
|
19
|
+
</view>
|
|
20
|
+
<slot></slot>
|
|
21
|
+
</button>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<script lang="ts">
|
|
25
|
+
import { defineComponent as _defineComponent } from "vue";
|
|
26
|
+
import { computed } from "vue";
|
|
27
|
+
import { classNames, stringifyStyle, createBem } from "../../utils";
|
|
28
|
+
import SarLoading from "../loading/loading.vue";
|
|
29
|
+
import { useFormContext } from "../form/common";
|
|
30
|
+
import { buttonProps } from "./common";
|
|
31
|
+
const __default__ = {
|
|
32
|
+
options: {
|
|
33
|
+
virtualHost: true,
|
|
34
|
+
styleIsolation: "shared"
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
export default /* @__PURE__ */ _defineComponent({
|
|
38
|
+
...__default__,
|
|
39
|
+
__name: "button",
|
|
40
|
+
props: buttonProps,
|
|
41
|
+
emits: ["click"],
|
|
42
|
+
setup(__props, { expose: __expose, emit: __emit }) {
|
|
43
|
+
__expose();
|
|
44
|
+
const props = __props;
|
|
45
|
+
const emit = __emit;
|
|
46
|
+
const bem = createBem("button");
|
|
47
|
+
const formContext = useFormContext();
|
|
48
|
+
const isDisabled = computed(() => {
|
|
49
|
+
return formContext?.disabled ?? props.disabled;
|
|
50
|
+
});
|
|
51
|
+
const onClick = (event) => {
|
|
52
|
+
emit("click", event);
|
|
53
|
+
};
|
|
54
|
+
const buttonClass = computed(() => {
|
|
55
|
+
return classNames(
|
|
56
|
+
bem.b(),
|
|
57
|
+
bem.m(props.size),
|
|
58
|
+
bem.m(props.type),
|
|
59
|
+
bem.m(`${props.type}-${props.theme}`),
|
|
60
|
+
bem.m("round", props.round),
|
|
61
|
+
bem.m("disabled", isDisabled.value),
|
|
62
|
+
bem.m("loading", props.loading),
|
|
63
|
+
props.rootClass
|
|
64
|
+
);
|
|
65
|
+
});
|
|
66
|
+
const buttonStyle = computed(() => {
|
|
67
|
+
return stringifyStyle(
|
|
68
|
+
{
|
|
69
|
+
color: props.color,
|
|
70
|
+
background: props.background
|
|
71
|
+
},
|
|
72
|
+
props.rootStyle
|
|
73
|
+
);
|
|
74
|
+
});
|
|
75
|
+
const __returned__ = { props, emit, bem, formContext, isDisabled, onClick, buttonClass, buttonStyle, get classNames() {
|
|
76
|
+
return classNames;
|
|
77
|
+
}, SarLoading };
|
|
78
|
+
return __returned__;
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
</script>
|
|
82
|
+
|
|
83
|
+
<style lang="scss">
|
|
84
|
+
@import './index.scss';
|
|
85
|
+
</style>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { type PropType, type StyleValue } from 'vue';
|
|
2
|
+
export interface ButtonProps {
|
|
3
|
+
rootStyle?: StyleValue;
|
|
4
|
+
rootClass?: string;
|
|
5
|
+
type?: 'default' | 'pale' | 'mild' | 'outline' | 'text' | 'pale-text';
|
|
6
|
+
theme?: 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'neutral';
|
|
7
|
+
size?: 'mini' | 'small' | 'medium' | 'large';
|
|
8
|
+
round?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
loadingType?: 'clock' | 'circular';
|
|
12
|
+
color?: string;
|
|
13
|
+
background?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const buttonProps: {
|
|
16
|
+
rootStyle: PropType<StyleValue>;
|
|
17
|
+
rootClass: StringConstructor;
|
|
18
|
+
type: {
|
|
19
|
+
type: PropType<"text" | "default" | "pale" | "mild" | "outline" | "pale-text" | undefined>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
theme: {
|
|
23
|
+
type: PropType<"success" | "primary" | "info" | "secondary" | "warning" | "danger" | "neutral" | undefined>;
|
|
24
|
+
default: string;
|
|
25
|
+
};
|
|
26
|
+
size: {
|
|
27
|
+
type: PropType<"medium" | "mini" | "small" | "large" | undefined>;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
round: BooleanConstructor;
|
|
31
|
+
disabled: BooleanConstructor;
|
|
32
|
+
loading: BooleanConstructor;
|
|
33
|
+
loadingType: PropType<"circular" | "clock" | undefined>;
|
|
34
|
+
color: StringConstructor;
|
|
35
|
+
background: StringConstructor;
|
|
36
|
+
};
|
|
37
|
+
export interface ButtonSlots {
|
|
38
|
+
default(props: Record<string, never>): any;
|
|
39
|
+
}
|
|
40
|
+
export interface ButtonEmits {
|
|
41
|
+
(e: 'click', event: any): void;
|
|
42
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { defaultConfig } from '../config';
|
|
2
|
+
export const buttonProps = {
|
|
3
|
+
rootStyle: [String, Object, Array],
|
|
4
|
+
rootClass: String,
|
|
5
|
+
type: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: defaultConfig.button.type,
|
|
8
|
+
},
|
|
9
|
+
theme: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: defaultConfig.button.theme,
|
|
12
|
+
},
|
|
13
|
+
size: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: defaultConfig.button.size,
|
|
16
|
+
},
|
|
17
|
+
round: Boolean,
|
|
18
|
+
disabled: Boolean,
|
|
19
|
+
loading: Boolean,
|
|
20
|
+
loadingType: String,
|
|
21
|
+
color: String,
|
|
22
|
+
background: String,
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type { ButtonProps, ButtonSlots, ButtonEmits } from './common';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|