@arco-design/mobile-react 2.31.5 → 2.32.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/CHANGELOG.md +23 -0
- package/README.en-US.md +2 -2
- package/README.md +2 -2
- package/cjs/_helpers/index.d.ts +1 -0
- package/cjs/_helpers/index.js +9 -0
- package/cjs/_helpers/react-dom.js +18 -10
- package/cjs/stepper/style/css/index.css +3 -4
- package/cjs/stepper/style/index.less +1 -2
- package/dist/index.js +91 -66
- package/dist/index.min.js +4 -4
- package/dist/style.css +1 -2
- package/dist/style.min.css +1 -1
- package/esm/_helpers/index.d.ts +1 -0
- package/esm/_helpers/index.js +1 -0
- package/esm/_helpers/react-dom.js +15 -11
- package/esm/stepper/style/css/index.css +3 -4
- package/esm/stepper/style/index.less +1 -2
- package/esnext/_helpers/hooks.d.ts +290 -0
- package/esnext/_helpers/hooks.js +660 -0
- package/esnext/_helpers/index.d.ts +93 -0
- package/esnext/_helpers/index.js +110 -0
- package/esnext/_helpers/react-dom.d.ts +13 -0
- package/esnext/_helpers/react-dom.js +51 -0
- package/esnext/_helpers/render.d.ts +17 -0
- package/esnext/_helpers/render.js +38 -0
- package/esnext/_helpers/type.d.ts +30 -0
- package/esnext/_helpers/type.js +1 -0
- package/esnext/action-sheet/index.d.ts +106 -0
- package/esnext/action-sheet/index.js +53 -0
- package/esnext/action-sheet/methods.d.ts +10 -0
- package/esnext/action-sheet/methods.js +4 -0
- package/esnext/action-sheet/style/css/index.css +741 -0
- package/esnext/action-sheet/style/css/index.d.ts +3 -0
- package/esnext/action-sheet/style/css/index.js +3 -0
- package/esnext/action-sheet/style/index.d.ts +3 -0
- package/esnext/action-sheet/style/index.js +3 -0
- package/esnext/action-sheet/style/index.less +119 -0
- package/esnext/avatar/group.d.ts +9 -0
- package/esnext/avatar/group.js +35 -0
- package/esnext/avatar/index.d.ts +17 -0
- package/esnext/avatar/index.js +87 -0
- package/esnext/avatar/style/css/index.css +792 -0
- package/esnext/avatar/style/css/index.d.ts +3 -0
- package/esnext/avatar/style/css/index.js +3 -0
- package/esnext/avatar/style/index.d.ts +3 -0
- package/esnext/avatar/style/index.js +3 -0
- package/esnext/avatar/style/index.less +201 -0
- package/esnext/avatar/type.d.ts +126 -0
- package/esnext/avatar/type.js +1 -0
- package/esnext/badge/index.d.ts +80 -0
- package/esnext/badge/index.js +29 -0
- package/esnext/badge/style/css/index.css +640 -0
- package/esnext/badge/style/css/index.d.ts +2 -0
- package/esnext/badge/style/css/index.js +2 -0
- package/esnext/badge/style/index.d.ts +2 -0
- package/esnext/badge/style/index.js +2 -0
- package/esnext/badge/style/index.less +109 -0
- package/esnext/button/hooks.d.ts +8 -0
- package/esnext/button/hooks.js +45 -0
- package/esnext/button/index.d.ts +141 -0
- package/esnext/button/index.js +61 -0
- package/esnext/button/style/css/index.css +816 -0
- package/esnext/button/style/css/index.d.ts +3 -0
- package/esnext/button/style/css/index.js +3 -0
- package/esnext/button/style/index.d.ts +3 -0
- package/esnext/button/style/index.js +3 -0
- package/esnext/button/style/index.less +242 -0
- package/esnext/carousel/index.d.ts +383 -0
- package/esnext/carousel/index.js +840 -0
- package/esnext/carousel/style/css/index.css +748 -0
- package/esnext/carousel/style/css/index.d.ts +2 -0
- package/esnext/carousel/style/css/index.js +2 -0
- package/esnext/carousel/style/index.d.ts +2 -0
- package/esnext/carousel/style/index.js +2 -0
- package/esnext/carousel/style/index.less +263 -0
- package/esnext/cell/arrow.d.ts +2 -0
- package/esnext/cell/arrow.js +5 -0
- package/esnext/cell/cell.d.ts +3 -0
- package/esnext/cell/cell.js +24 -0
- package/esnext/cell/group.d.ts +7 -0
- package/esnext/cell/group.js +26 -0
- package/esnext/cell/index.d.ts +14 -0
- package/esnext/cell/index.js +16 -0
- package/esnext/cell/style/css/index.css +1008 -0
- package/esnext/cell/style/css/index.d.ts +2 -0
- package/esnext/cell/style/css/index.js +2 -0
- package/esnext/cell/style/index.d.ts +2 -0
- package/esnext/cell/style/index.js +2 -0
- package/esnext/cell/style/index.less +214 -0
- package/esnext/cell/type.d.ts +125 -0
- package/esnext/cell/type.js +1 -0
- package/esnext/checkbox/checkbox.d.ts +3 -0
- package/esnext/checkbox/checkbox.js +106 -0
- package/esnext/checkbox/group.d.ts +4 -0
- package/esnext/checkbox/group.js +54 -0
- package/esnext/checkbox/hooks/index.d.ts +1 -0
- package/esnext/checkbox/hooks/index.js +1 -0
- package/esnext/checkbox/hooks/useMergeProps.d.ts +3 -0
- package/esnext/checkbox/hooks/useMergeProps.js +20 -0
- package/esnext/checkbox/index.d.ts +19 -0
- package/esnext/checkbox/index.js +22 -0
- package/esnext/checkbox/style/css/index.css +613 -0
- package/esnext/checkbox/style/css/index.d.ts +2 -0
- package/esnext/checkbox/style/css/index.js +2 -0
- package/esnext/checkbox/style/index.d.ts +2 -0
- package/esnext/checkbox/style/index.js +2 -0
- package/esnext/checkbox/style/index.less +119 -0
- package/esnext/checkbox/type.d.ts +162 -0
- package/esnext/checkbox/type.js +27 -0
- package/esnext/circle-progress/index.d.ts +141 -0
- package/esnext/circle-progress/index.js +75 -0
- package/esnext/circle-progress/style/css/index.css +582 -0
- package/esnext/circle-progress/style/css/index.d.ts +2 -0
- package/esnext/circle-progress/style/css/index.js +2 -0
- package/esnext/circle-progress/style/index.d.ts +2 -0
- package/esnext/circle-progress/style/index.js +2 -0
- package/esnext/circle-progress/style/index.less +101 -0
- package/esnext/collapse/collapse.d.ts +3 -0
- package/esnext/collapse/collapse.js +111 -0
- package/esnext/collapse/group.d.ts +21 -0
- package/esnext/collapse/group.js +80 -0
- package/esnext/collapse/index.d.ts +23 -0
- package/esnext/collapse/index.js +14 -0
- package/esnext/collapse/style/css/index.css +662 -0
- package/esnext/collapse/style/css/index.d.ts +2 -0
- package/esnext/collapse/style/css/index.js +2 -0
- package/esnext/collapse/style/index.d.ts +2 -0
- package/esnext/collapse/style/index.js +2 -0
- package/esnext/collapse/style/index.less +106 -0
- package/esnext/collapse/type.d.ts +139 -0
- package/esnext/collapse/type.js +1 -0
- package/esnext/collapse/utils.d.ts +8 -0
- package/esnext/collapse/utils.js +16 -0
- package/esnext/context-provider/index.d.ts +74 -0
- package/esnext/context-provider/index.js +99 -0
- package/esnext/context-provider/style/css/index.css +0 -0
- package/esnext/context-provider/style/css/index.d.ts +2 -0
- package/esnext/context-provider/style/css/index.js +2 -0
- package/esnext/context-provider/style/index.d.ts +2 -0
- package/esnext/context-provider/style/index.js +2 -0
- package/esnext/context-provider/style/index.less +1 -0
- package/esnext/count-down/hooks.d.ts +10 -0
- package/esnext/count-down/hooks.js +107 -0
- package/esnext/count-down/index.d.ts +13 -0
- package/esnext/count-down/index.js +37 -0
- package/esnext/count-down/singleton.d.ts +15 -0
- package/esnext/count-down/singleton.js +52 -0
- package/esnext/count-down/style/css/index.css +534 -0
- package/esnext/count-down/style/css/index.d.ts +2 -0
- package/esnext/count-down/style/css/index.js +2 -0
- package/esnext/count-down/style/index.d.ts +2 -0
- package/esnext/count-down/style/index.js +2 -0
- package/esnext/count-down/style/index.less +37 -0
- package/esnext/count-down/type.d.ts +112 -0
- package/esnext/count-down/type.js +1 -0
- package/esnext/count-down/util.d.ts +8 -0
- package/esnext/count-down/util.js +106 -0
- package/esnext/date-picker/helper.d.ts +5 -0
- package/esnext/date-picker/helper.js +38 -0
- package/esnext/date-picker/index.d.ts +24 -0
- package/esnext/date-picker/index.js +217 -0
- package/esnext/date-picker/style/css/index.css +526 -0
- package/esnext/date-picker/style/css/index.d.ts +3 -0
- package/esnext/date-picker/style/css/index.js +3 -0
- package/esnext/date-picker/style/index.d.ts +3 -0
- package/esnext/date-picker/style/index.js +3 -0
- package/esnext/date-picker/style/index.less +30 -0
- package/esnext/date-picker/type.d.ts +114 -0
- package/esnext/date-picker/type.js +1 -0
- package/esnext/dialog/index.d.ts +213 -0
- package/esnext/dialog/index.js +87 -0
- package/esnext/dialog/methods.d.ts +20 -0
- package/esnext/dialog/methods.js +42 -0
- package/esnext/dialog/style/css/index.css +1111 -0
- package/esnext/dialog/style/css/index.d.ts +3 -0
- package/esnext/dialog/style/css/index.js +3 -0
- package/esnext/dialog/style/index.d.ts +3 -0
- package/esnext/dialog/style/index.js +3 -0
- package/esnext/dialog/style/index.less +376 -0
- package/esnext/divider/index.d.ts +49 -0
- package/esnext/divider/index.js +32 -0
- package/esnext/divider/style/css/index.css +609 -0
- package/esnext/divider/style/css/index.d.ts +2 -0
- package/esnext/divider/style/css/index.js +2 -0
- package/esnext/divider/style/index.d.ts +2 -0
- package/esnext/divider/style/index.js +2 -0
- package/esnext/divider/style/index.less +101 -0
- package/esnext/dropdown/dropdown.d.ts +3 -0
- package/esnext/dropdown/dropdown.js +196 -0
- package/esnext/dropdown/index.d.ts +14 -0
- package/esnext/dropdown/index.js +16 -0
- package/esnext/dropdown/options.d.ts +4 -0
- package/esnext/dropdown/options.js +61 -0
- package/esnext/dropdown/style/css/index.css +653 -0
- package/esnext/dropdown/style/css/index.d.ts +2 -0
- package/esnext/dropdown/style/css/index.js +2 -0
- package/esnext/dropdown/style/index.d.ts +2 -0
- package/esnext/dropdown/style/index.js +2 -0
- package/esnext/dropdown/style/index.less +177 -0
- package/esnext/dropdown/type.d.ts +269 -0
- package/esnext/dropdown/type.js +1 -0
- package/esnext/dropdown-menu/dropdown-menu.d.ts +4 -0
- package/esnext/dropdown-menu/dropdown-menu.js +161 -0
- package/esnext/dropdown-menu/helper.d.ts +34 -0
- package/esnext/dropdown-menu/helper.js +88 -0
- package/esnext/dropdown-menu/index.d.ts +12 -0
- package/esnext/dropdown-menu/index.js +13 -0
- package/esnext/dropdown-menu/style/css/index.css +705 -0
- package/esnext/dropdown-menu/style/css/index.d.ts +3 -0
- package/esnext/dropdown-menu/style/css/index.js +3 -0
- package/esnext/dropdown-menu/style/index.d.ts +3 -0
- package/esnext/dropdown-menu/style/index.js +3 -0
- package/esnext/dropdown-menu/style/index.less +122 -0
- package/esnext/dropdown-menu/type.d.ts +168 -0
- package/esnext/dropdown-menu/type.js +1 -0
- package/esnext/ellipsis/components/js-ellipsis.d.ts +6 -0
- package/esnext/ellipsis/components/js-ellipsis.js +178 -0
- package/esnext/ellipsis/components/native-ellipsis.d.ts +5 -0
- package/esnext/ellipsis/components/native-ellipsis.js +15 -0
- package/esnext/ellipsis/index.d.ts +13 -0
- package/esnext/ellipsis/index.js +31 -0
- package/esnext/ellipsis/style/css/index.css +556 -0
- package/esnext/ellipsis/style/css/index.d.ts +2 -0
- package/esnext/ellipsis/style/css/index.js +2 -0
- package/esnext/ellipsis/style/index.d.ts +2 -0
- package/esnext/ellipsis/style/index.js +2 -0
- package/esnext/ellipsis/style/index.less +63 -0
- package/esnext/ellipsis/type.d.ts +107 -0
- package/esnext/ellipsis/type.js +1 -0
- package/esnext/ellipsis/utils/dom.d.ts +2 -0
- package/esnext/ellipsis/utils/dom.js +35 -0
- package/esnext/ellipsis/utils/is.d.ts +3 -0
- package/esnext/ellipsis/utils/is.js +3 -0
- package/esnext/form/form-item-context.d.ts +3 -0
- package/esnext/form/form-item-context.js +6 -0
- package/esnext/form/form-item.d.ts +4 -0
- package/esnext/form/form-item.js +218 -0
- package/esnext/form/index.d.ts +16 -0
- package/esnext/form/index.js +50 -0
- package/esnext/form/linked-container.d.ts +8 -0
- package/esnext/form/linked-container.js +29 -0
- package/esnext/form/style/css/index.css +670 -0
- package/esnext/form/style/css/index.d.ts +2 -0
- package/esnext/form/style/css/index.js +2 -0
- package/esnext/form/style/index.d.ts +2 -0
- package/esnext/form/style/index.js +2 -0
- package/esnext/form/style/index.less +172 -0
- package/esnext/form/type.d.ts +373 -0
- package/esnext/form/type.js +26 -0
- package/esnext/form/useForm.d.ts +18 -0
- package/esnext/form/useForm.js +203 -0
- package/esnext/form/utils.d.ts +7 -0
- package/esnext/form/utils.js +21 -0
- package/esnext/grid/index.d.ts +112 -0
- package/esnext/grid/index.js +79 -0
- package/esnext/grid/style/css/index.css +661 -0
- package/esnext/grid/style/css/index.d.ts +2 -0
- package/esnext/grid/style/css/index.js +2 -0
- package/esnext/grid/style/index.d.ts +2 -0
- package/esnext/grid/style/index.js +2 -0
- package/esnext/grid/style/index.less +157 -0
- package/esnext/icon/IconAdd/index.d.ts +7 -0
- package/esnext/icon/IconAdd/index.js +7 -0
- package/esnext/icon/IconArrowBack/index.d.ts +7 -0
- package/esnext/icon/IconArrowBack/index.js +7 -0
- package/esnext/icon/IconArrowDown/index.d.ts +7 -0
- package/esnext/icon/IconArrowDown/index.js +7 -0
- package/esnext/icon/IconArrowIn/index.d.ts +7 -0
- package/esnext/icon/IconArrowIn/index.js +7 -0
- package/esnext/icon/IconArrowUp/index.d.ts +7 -0
- package/esnext/icon/IconArrowUp/index.js +7 -0
- package/esnext/icon/IconCheck/index.d.ts +7 -0
- package/esnext/icon/IconCheck/index.js +7 -0
- package/esnext/icon/IconCheckBold/index.d.ts +7 -0
- package/esnext/icon/IconCheckBold/index.js +8 -0
- package/esnext/icon/IconCircleChecked/index.d.ts +7 -0
- package/esnext/icon/IconCircleChecked/index.js +7 -0
- package/esnext/icon/IconCircleDisabled/index.d.ts +7 -0
- package/esnext/icon/IconCircleDisabled/index.js +7 -0
- package/esnext/icon/IconCircleUnchecked/index.d.ts +7 -0
- package/esnext/icon/IconCircleUnchecked/index.js +7 -0
- package/esnext/icon/IconClear/index.d.ts +7 -0
- package/esnext/icon/IconClear/index.js +7 -0
- package/esnext/icon/IconClose/index.d.ts +7 -0
- package/esnext/icon/IconClose/index.js +7 -0
- package/esnext/icon/IconCloseBold/index.d.ts +7 -0
- package/esnext/icon/IconCloseBold/index.js +8 -0
- package/esnext/icon/IconDelete/index.d.ts +7 -0
- package/esnext/icon/IconDelete/index.js +7 -0
- package/esnext/icon/IconDownload/index.d.ts +7 -0
- package/esnext/icon/IconDownload/index.js +7 -0
- package/esnext/icon/IconEdit/index.d.ts +7 -0
- package/esnext/icon/IconEdit/index.js +7 -0
- package/esnext/icon/IconErrorCircle/index.d.ts +7 -0
- package/esnext/icon/IconErrorCircle/index.js +8 -0
- package/esnext/icon/IconEyeInvisible/index.d.ts +7 -0
- package/esnext/icon/IconEyeInvisible/index.js +7 -0
- package/esnext/icon/IconEyeVisible/index.d.ts +7 -0
- package/esnext/icon/IconEyeVisible/index.js +7 -0
- package/esnext/icon/IconEyelashInvisible/index.d.ts +7 -0
- package/esnext/icon/IconEyelashInvisible/index.js +7 -0
- package/esnext/icon/IconFile/index.d.ts +7 -0
- package/esnext/icon/IconFile/index.js +7 -0
- package/esnext/icon/IconGift/index.d.ts +7 -0
- package/esnext/icon/IconGift/index.js +8 -0
- package/esnext/icon/IconHeart/index.d.ts +7 -0
- package/esnext/icon/IconHeart/index.js +8 -0
- package/esnext/icon/IconHome/index.d.ts +7 -0
- package/esnext/icon/IconHome/index.js +7 -0
- package/esnext/icon/IconKeyboard/index.d.ts +7 -0
- package/esnext/icon/IconKeyboard/index.js +8 -0
- package/esnext/icon/IconKeyboardDelete/index.d.ts +7 -0
- package/esnext/icon/IconKeyboardDelete/index.js +8 -0
- package/esnext/icon/IconLikeCircle/index.d.ts +7 -0
- package/esnext/icon/IconLikeCircle/index.js +7 -0
- package/esnext/icon/IconMinus/index.d.ts +7 -0
- package/esnext/icon/IconMinus/index.js +8 -0
- package/esnext/icon/IconMore/index.d.ts +7 -0
- package/esnext/icon/IconMore/index.js +7 -0
- package/esnext/icon/IconNotice/index.d.ts +7 -0
- package/esnext/icon/IconNotice/index.js +8 -0
- package/esnext/icon/IconNoticeOff/index.d.ts +7 -0
- package/esnext/icon/IconNoticeOff/index.js +8 -0
- package/esnext/icon/IconPicture/index.d.ts +7 -0
- package/esnext/icon/IconPicture/index.js +7 -0
- package/esnext/icon/IconPlay/index.d.ts +7 -0
- package/esnext/icon/IconPlay/index.js +8 -0
- package/esnext/icon/IconQuestionCircle/index.d.ts +7 -0
- package/esnext/icon/IconQuestionCircle/index.js +7 -0
- package/esnext/icon/IconRefresh/index.d.ts +7 -0
- package/esnext/icon/IconRefresh/index.js +7 -0
- package/esnext/icon/IconSad/index.d.ts +7 -0
- package/esnext/icon/IconSad/index.js +7 -0
- package/esnext/icon/IconScan/index.d.ts +7 -0
- package/esnext/icon/IconScan/index.js +7 -0
- package/esnext/icon/IconSearch/index.d.ts +7 -0
- package/esnext/icon/IconSearch/index.js +7 -0
- package/esnext/icon/IconSetting/index.d.ts +7 -0
- package/esnext/icon/IconSetting/index.js +8 -0
- package/esnext/icon/IconShop/index.d.ts +7 -0
- package/esnext/icon/IconShop/index.js +8 -0
- package/esnext/icon/IconShopping/index.d.ts +7 -0
- package/esnext/icon/IconShopping/index.js +8 -0
- package/esnext/icon/IconSmileFill/index.d.ts +7 -0
- package/esnext/icon/IconSmileFill/index.js +7 -0
- package/esnext/icon/IconSound/index.d.ts +7 -0
- package/esnext/icon/IconSound/index.js +8 -0
- package/esnext/icon/IconSquareChecked/index.d.ts +7 -0
- package/esnext/icon/IconSquareChecked/index.js +7 -0
- package/esnext/icon/IconSquareDisabled/index.d.ts +7 -0
- package/esnext/icon/IconSquareDisabled/index.js +7 -0
- package/esnext/icon/IconSquareUnchecked/index.d.ts +7 -0
- package/esnext/icon/IconSquareUnchecked/index.js +7 -0
- package/esnext/icon/IconStar/index.d.ts +7 -0
- package/esnext/icon/IconStar/index.js +7 -0
- package/esnext/icon/IconStarFill/index.d.ts +7 -0
- package/esnext/icon/IconStarFill/index.js +8 -0
- package/esnext/icon/IconStarHalf/index.d.ts +7 -0
- package/esnext/icon/IconStarHalf/index.js +7 -0
- package/esnext/icon/IconSubway/index.d.ts +7 -0
- package/esnext/icon/IconSubway/index.js +8 -0
- package/esnext/icon/IconSuccessCircle/index.d.ts +7 -0
- package/esnext/icon/IconSuccessCircle/index.js +8 -0
- package/esnext/icon/IconTriDown/index.d.ts +7 -0
- package/esnext/icon/IconTriDown/index.js +8 -0
- package/esnext/icon/IconTriUp/index.d.ts +7 -0
- package/esnext/icon/IconTriUp/index.js +8 -0
- package/esnext/icon/IconUpload/index.d.ts +7 -0
- package/esnext/icon/IconUpload/index.js +7 -0
- package/esnext/icon/IconUser/index.d.ts +7 -0
- package/esnext/icon/IconUser/index.js +7 -0
- package/esnext/icon/IconUserFill/index.d.ts +7 -0
- package/esnext/icon/IconUserFill/index.js +7 -0
- package/esnext/icon/IconWarnCircle/index.d.ts +7 -0
- package/esnext/icon/IconWarnCircle/index.js +8 -0
- package/esnext/icon/IconWarnCircleFill/index.d.ts +7 -0
- package/esnext/icon/IconWarnCircleFill/index.js +8 -0
- package/esnext/icon/index.d.ts +59 -0
- package/esnext/icon/index.js +59 -0
- package/esnext/icon/type.d.ts +10 -0
- package/esnext/icon/type.js +1 -0
- package/esnext/image/index.d.ts +186 -0
- package/esnext/image/index.js +223 -0
- package/esnext/image/style/css/index.css +734 -0
- package/esnext/image/style/css/index.d.ts +3 -0
- package/esnext/image/style/css/index.js +3 -0
- package/esnext/image/style/index.d.ts +3 -0
- package/esnext/image/style/index.js +3 -0
- package/esnext/image/style/index.less +198 -0
- package/esnext/image-picker/add-icon.d.ts +2 -0
- package/esnext/image-picker/add-icon.js +5 -0
- package/esnext/image-picker/index.d.ts +16 -0
- package/esnext/image-picker/index.js +77 -0
- package/esnext/image-picker/style/css/index.css +688 -0
- package/esnext/image-picker/style/css/index.d.ts +4 -0
- package/esnext/image-picker/style/css/index.js +4 -0
- package/esnext/image-picker/style/index.d.ts +4 -0
- package/esnext/image-picker/style/index.js +4 -0
- package/esnext/image-picker/style/index.less +170 -0
- package/esnext/image-picker/type.d.ts +115 -0
- package/esnext/image-picker/type.js +1 -0
- package/esnext/image-preview/index.d.ts +296 -0
- package/esnext/image-preview/index.js +794 -0
- package/esnext/image-preview/methods.d.ts +13 -0
- package/esnext/image-preview/methods.js +46 -0
- package/esnext/image-preview/style/css/index.css +664 -0
- package/esnext/image-preview/style/css/index.d.ts +5 -0
- package/esnext/image-preview/style/css/index.js +5 -0
- package/esnext/image-preview/style/index.d.ts +5 -0
- package/esnext/image-preview/style/index.js +5 -0
- package/esnext/image-preview/style/index.less +140 -0
- package/esnext/index-bar/context.d.ts +3 -0
- package/esnext/index-bar/context.js +6 -0
- package/esnext/index-bar/group.d.ts +3 -0
- package/esnext/index-bar/group.js +33 -0
- package/esnext/index-bar/index.d.ts +15 -0
- package/esnext/index-bar/index.js +151 -0
- package/esnext/index-bar/side-bar.d.ts +3 -0
- package/esnext/index-bar/side-bar.js +44 -0
- package/esnext/index-bar/style/css/index.css +767 -0
- package/esnext/index-bar/style/css/index.d.ts +3 -0
- package/esnext/index-bar/style/css/index.js +3 -0
- package/esnext/index-bar/style/index.d.ts +3 -0
- package/esnext/index-bar/style/index.js +3 -0
- package/esnext/index-bar/style/index.less +189 -0
- package/esnext/index-bar/type.d.ts +195 -0
- package/esnext/index-bar/type.js +1 -0
- package/esnext/index-bar/utils.d.ts +6 -0
- package/esnext/index-bar/utils.js +44 -0
- package/esnext/index.d.ts +59 -0
- package/esnext/index.js +59 -0
- package/esnext/input/hooks.d.ts +14 -0
- package/esnext/input/hooks.js +174 -0
- package/esnext/input/index.d.ts +60 -0
- package/esnext/input/index.js +28 -0
- package/esnext/input/props.d.ts +182 -0
- package/esnext/input/props.js +1 -0
- package/esnext/input/style/css/index.css +759 -0
- package/esnext/input/style/css/index.d.ts +2 -0
- package/esnext/input/style/css/index.js +2 -0
- package/esnext/input/style/index.d.ts +2 -0
- package/esnext/input/style/index.js +2 -0
- package/esnext/input/style/index.less +195 -0
- package/esnext/keyboard/index.d.ts +13 -0
- package/esnext/keyboard/index.js +159 -0
- package/esnext/keyboard/style/css/index.css +633 -0
- package/esnext/keyboard/style/css/index.d.ts +3 -0
- package/esnext/keyboard/style/css/index.js +3 -0
- package/esnext/keyboard/style/index.d.ts +3 -0
- package/esnext/keyboard/style/index.js +3 -0
- package/esnext/keyboard/style/index.less +131 -0
- package/esnext/keyboard/type.d.ts +102 -0
- package/esnext/keyboard/type.js +1 -0
- package/esnext/load-more/index.d.ts +158 -0
- package/esnext/load-more/index.js +150 -0
- package/esnext/load-more/style/css/index.css +534 -0
- package/esnext/load-more/style/css/index.d.ts +2 -0
- package/esnext/load-more/style/css/index.js +2 -0
- package/esnext/load-more/style/index.d.ts +2 -0
- package/esnext/load-more/style/index.js +2 -0
- package/esnext/load-more/style/index.less +37 -0
- package/esnext/loading/index.d.ts +76 -0
- package/esnext/loading/index.js +123 -0
- package/esnext/loading/style/css/index.css +648 -0
- package/esnext/loading/style/css/index.d.ts +2 -0
- package/esnext/loading/style/css/index.js +2 -0
- package/esnext/loading/style/index.d.ts +2 -0
- package/esnext/loading/style/index.js +2 -0
- package/esnext/loading/style/index.less +147 -0
- package/esnext/masking/index.d.ts +225 -0
- package/esnext/masking/index.js +114 -0
- package/esnext/masking/methods.d.ts +23 -0
- package/esnext/masking/methods.js +56 -0
- package/esnext/masking/style/css/index.css +552 -0
- package/esnext/masking/style/css/index.d.ts +3 -0
- package/esnext/masking/style/css/index.js +3 -0
- package/esnext/masking/style/index.d.ts +3 -0
- package/esnext/masking/style/index.js +3 -0
- package/esnext/masking/style/index.less +55 -0
- package/esnext/nav-bar/back-icon.d.ts +5 -0
- package/esnext/nav-bar/back-icon.js +9 -0
- package/esnext/nav-bar/index.d.ts +135 -0
- package/esnext/nav-bar/index.js +96 -0
- package/esnext/nav-bar/style/css/index.css +706 -0
- package/esnext/nav-bar/style/css/index.d.ts +2 -0
- package/esnext/nav-bar/style/css/index.js +2 -0
- package/esnext/nav-bar/style/index.d.ts +2 -0
- package/esnext/nav-bar/style/index.js +2 -0
- package/esnext/nav-bar/style/index.less +150 -0
- package/esnext/notice-bar/index.d.ts +107 -0
- package/esnext/notice-bar/index.js +126 -0
- package/esnext/notice-bar/style/css/index.css +685 -0
- package/esnext/notice-bar/style/css/index.d.ts +2 -0
- package/esnext/notice-bar/style/css/index.js +2 -0
- package/esnext/notice-bar/style/index.d.ts +2 -0
- package/esnext/notice-bar/style/index.js +2 -0
- package/esnext/notice-bar/style/index.less +160 -0
- package/esnext/notify/index.d.ts +97 -0
- package/esnext/notify/index.js +123 -0
- package/esnext/notify/methods.d.ts +14 -0
- package/esnext/notify/methods.js +63 -0
- package/esnext/notify/style/css/index.css +591 -0
- package/esnext/notify/style/css/index.d.ts +2 -0
- package/esnext/notify/style/css/index.js +2 -0
- package/esnext/notify/style/index.d.ts +2 -0
- package/esnext/notify/style/index.js +2 -0
- package/esnext/notify/style/index.less +90 -0
- package/esnext/notify/type.d.ts +70 -0
- package/esnext/notify/type.js +1 -0
- package/esnext/pagination/arrow.d.ts +2 -0
- package/esnext/pagination/arrow.js +5 -0
- package/esnext/pagination/index.d.ts +124 -0
- package/esnext/pagination/index.js +104 -0
- package/esnext/pagination/style/css/index.css +708 -0
- package/esnext/pagination/style/css/index.d.ts +2 -0
- package/esnext/pagination/style/css/index.js +2 -0
- package/esnext/pagination/style/index.d.ts +2 -0
- package/esnext/pagination/style/index.js +2 -0
- package/esnext/pagination/style/index.less +176 -0
- package/esnext/picker/index.d.ts +50 -0
- package/esnext/picker/index.js +93 -0
- package/esnext/picker/style/css/index.css +592 -0
- package/esnext/picker/style/css/index.d.ts +4 -0
- package/esnext/picker/style/css/index.js +4 -0
- package/esnext/picker/style/index.d.ts +4 -0
- package/esnext/picker/style/index.js +4 -0
- package/esnext/picker/style/index.less +95 -0
- package/esnext/picker/type.d.ts +131 -0
- package/esnext/picker/type.js +1 -0
- package/esnext/picker-view/components/cascader.d.ts +25 -0
- package/esnext/picker-view/components/cascader.js +54 -0
- package/esnext/picker-view/components/multi-picker.d.ts +11 -0
- package/esnext/picker-view/components/multi-picker.js +32 -0
- package/esnext/picker-view/components/picker-cell.d.ts +28 -0
- package/esnext/picker-view/components/picker-cell.js +284 -0
- package/esnext/picker-view/index.d.ts +62 -0
- package/esnext/picker-view/index.js +135 -0
- package/esnext/picker-view/style/css/index.css +750 -0
- package/esnext/picker-view/style/css/index.d.ts +2 -0
- package/esnext/picker-view/style/css/index.js +2 -0
- package/esnext/picker-view/style/index.d.ts +2 -0
- package/esnext/picker-view/style/index.js +2 -0
- package/esnext/picker-view/style/index.less +125 -0
- package/esnext/picker-view/type.d.ts +89 -0
- package/esnext/picker-view/type.js +1 -0
- package/esnext/popover/hooks/index.d.ts +2 -0
- package/esnext/popover/hooks/index.js +2 -0
- package/esnext/popover/hooks/useEvent.d.ts +8 -0
- package/esnext/popover/hooks/useEvent.js +148 -0
- package/esnext/popover/hooks/usePosition.d.ts +18 -0
- package/esnext/popover/hooks/usePosition.js +419 -0
- package/esnext/popover/index.d.ts +14 -0
- package/esnext/popover/index.js +20 -0
- package/esnext/popover/menu.d.ts +3 -0
- package/esnext/popover/menu.js +80 -0
- package/esnext/popover/popover-inner.d.ts +3 -0
- package/esnext/popover/popover-inner.js +79 -0
- package/esnext/popover/popover.d.ts +3 -0
- package/esnext/popover/popover.js +132 -0
- package/esnext/popover/style/css/index.css +993 -0
- package/esnext/popover/style/css/index.d.ts +3 -0
- package/esnext/popover/style/css/index.js +3 -0
- package/esnext/popover/style/css/menu.css +673 -0
- package/esnext/popover/style/index.d.ts +3 -0
- package/esnext/popover/style/index.js +3 -0
- package/esnext/popover/style/index.less +353 -0
- package/esnext/popover/style/menu.less +163 -0
- package/esnext/popover/type.d.ts +447 -0
- package/esnext/popover/type.js +1 -0
- package/esnext/popup/index.d.ts +86 -0
- package/esnext/popup/index.js +39 -0
- package/esnext/popup/methods.d.ts +10 -0
- package/esnext/popup/methods.js +4 -0
- package/esnext/popup/style/css/index.css +638 -0
- package/esnext/popup/style/css/index.d.ts +3 -0
- package/esnext/popup/style/css/index.js +3 -0
- package/esnext/popup/style/index.d.ts +3 -0
- package/esnext/popup/style/index.js +3 -0
- package/esnext/popup/style/index.less +114 -0
- package/esnext/popup-swiper/index.d.ts +93 -0
- package/esnext/popup-swiper/index.js +192 -0
- package/esnext/popup-swiper/methods.d.ts +10 -0
- package/esnext/popup-swiper/methods.js +4 -0
- package/esnext/popup-swiper/style/css/index.css +531 -0
- package/esnext/popup-swiper/style/css/index.d.ts +3 -0
- package/esnext/popup-swiper/style/css/index.js +3 -0
- package/esnext/popup-swiper/style/index.d.ts +3 -0
- package/esnext/popup-swiper/style/index.js +3 -0
- package/esnext/popup-swiper/style/index.less +35 -0
- package/esnext/portal/index.d.ts +23 -0
- package/esnext/portal/index.js +18 -0
- package/esnext/portal/style/css/index.css +0 -0
- package/esnext/portal/style/css/index.d.ts +2 -0
- package/esnext/portal/style/css/index.js +2 -0
- package/esnext/portal/style/index.d.ts +2 -0
- package/esnext/portal/style/index.js +2 -0
- package/esnext/portal/style/index.less +1 -0
- package/esnext/progress/index.d.ts +126 -0
- package/esnext/progress/index.js +66 -0
- package/esnext/progress/style/css/index.css +692 -0
- package/esnext/progress/style/css/index.d.ts +2 -0
- package/esnext/progress/style/css/index.js +2 -0
- package/esnext/progress/style/index.d.ts +2 -0
- package/esnext/progress/style/index.js +2 -0
- package/esnext/progress/style/index.less +205 -0
- package/esnext/pull-refresh/android-pull-refresh.d.ts +3 -0
- package/esnext/pull-refresh/android-pull-refresh.js +168 -0
- package/esnext/pull-refresh/hooks.d.ts +30 -0
- package/esnext/pull-refresh/hooks.js +73 -0
- package/esnext/pull-refresh/index.d.ts +28 -0
- package/esnext/pull-refresh/index.js +21 -0
- package/esnext/pull-refresh/ios-pull-refresh.d.ts +3 -0
- package/esnext/pull-refresh/ios-pull-refresh.js +137 -0
- package/esnext/pull-refresh/model.d.ts +111 -0
- package/esnext/pull-refresh/model.js +8 -0
- package/esnext/pull-refresh/style/css/index.css +650 -0
- package/esnext/pull-refresh/style/css/index.d.ts +3 -0
- package/esnext/pull-refresh/style/css/index.js +3 -0
- package/esnext/pull-refresh/style/index.d.ts +3 -0
- package/esnext/pull-refresh/style/index.js +3 -0
- package/esnext/pull-refresh/style/index.less +131 -0
- package/esnext/radio/group.d.ts +5 -0
- package/esnext/radio/group.js +50 -0
- package/esnext/radio/index.d.ts +19 -0
- package/esnext/radio/index.js +22 -0
- package/esnext/radio/radio.d.ts +5 -0
- package/esnext/radio/radio.js +13 -0
- package/esnext/radio/style/css/index.css +604 -0
- package/esnext/radio/style/css/index.d.ts +2 -0
- package/esnext/radio/style/css/index.js +2 -0
- package/esnext/radio/style/index.d.ts +2 -0
- package/esnext/radio/style/index.js +2 -0
- package/esnext/radio/style/index.less +114 -0
- package/esnext/radio/type.d.ts +31 -0
- package/esnext/radio/type.js +1 -0
- package/esnext/rate/index.d.ts +109 -0
- package/esnext/rate/index.js +87 -0
- package/esnext/rate/style/css/index.css +595 -0
- package/esnext/rate/style/css/index.d.ts +2 -0
- package/esnext/rate/style/css/index.js +2 -0
- package/esnext/rate/style/index.d.ts +2 -0
- package/esnext/rate/style/index.js +2 -0
- package/esnext/rate/style/index.less +106 -0
- package/esnext/search-bar/association.d.ts +3 -0
- package/esnext/search-bar/association.js +51 -0
- package/esnext/search-bar/cancel-button.d.ts +10 -0
- package/esnext/search-bar/cancel-button.js +18 -0
- package/esnext/search-bar/highlight.d.ts +12 -0
- package/esnext/search-bar/highlight.js +46 -0
- package/esnext/search-bar/index.d.ts +13 -0
- package/esnext/search-bar/index.js +109 -0
- package/esnext/search-bar/style/css/index.css +765 -0
- package/esnext/search-bar/style/css/index.d.ts +2 -0
- package/esnext/search-bar/style/css/index.js +2 -0
- package/esnext/search-bar/style/index.d.ts +2 -0
- package/esnext/search-bar/style/index.js +2 -0
- package/esnext/search-bar/style/index.less +198 -0
- package/esnext/search-bar/type.d.ts +163 -0
- package/esnext/search-bar/type.js +1 -0
- package/esnext/show-monitor/index.d.ts +115 -0
- package/esnext/show-monitor/index.js +416 -0
- package/esnext/show-monitor/style/css/index.css +0 -0
- package/esnext/show-monitor/style/css/index.d.ts +2 -0
- package/esnext/show-monitor/style/css/index.js +2 -0
- package/esnext/show-monitor/style/index.d.ts +2 -0
- package/esnext/show-monitor/style/index.js +2 -0
- package/esnext/show-monitor/style/index.less +1 -0
- package/esnext/skeleton/elements.d.ts +7 -0
- package/esnext/skeleton/elements.js +117 -0
- package/esnext/skeleton/index.d.ts +19 -0
- package/esnext/skeleton/index.js +50 -0
- package/esnext/skeleton/skeleton-context.d.ts +3 -0
- package/esnext/skeleton/skeleton-context.js +5 -0
- package/esnext/skeleton/style/css/index.css +712 -0
- package/esnext/skeleton/style/css/index.d.ts +3 -0
- package/esnext/skeleton/style/css/index.js +3 -0
- package/esnext/skeleton/style/index.d.ts +3 -0
- package/esnext/skeleton/style/index.js +3 -0
- package/esnext/skeleton/style/index.less +182 -0
- package/esnext/skeleton/type.d.ts +105 -0
- package/esnext/skeleton/type.js +1 -0
- package/esnext/slider/hooks/index.d.ts +12 -0
- package/esnext/slider/hooks/index.js +33 -0
- package/esnext/slider/hooks/useSliderEvents.d.ts +17 -0
- package/esnext/slider/hooks/useSliderEvents.js +128 -0
- package/esnext/slider/hooks/useSliderIcon.d.ts +7 -0
- package/esnext/slider/hooks/useSliderIcon.js +41 -0
- package/esnext/slider/hooks/useSliderInit.d.ts +14 -0
- package/esnext/slider/hooks/useSliderInit.js +146 -0
- package/esnext/slider/hooks/useSliderStyle.d.ts +13 -0
- package/esnext/slider/hooks/useSliderStyle.js +39 -0
- package/esnext/slider/index.d.ts +163 -0
- package/esnext/slider/index.js +120 -0
- package/esnext/slider/marks.d.ts +11 -0
- package/esnext/slider/marks.js +17 -0
- package/esnext/slider/popover.d.ts +6 -0
- package/esnext/slider/popover.js +13 -0
- package/esnext/slider/style/css/index.css +863 -0
- package/esnext/slider/style/css/index.d.ts +3 -0
- package/esnext/slider/style/css/index.js +3 -0
- package/esnext/slider/style/index.d.ts +3 -0
- package/esnext/slider/style/index.js +3 -0
- package/esnext/slider/style/index.less +366 -0
- package/esnext/slider/thumb.d.ts +9 -0
- package/esnext/slider/thumb.js +21 -0
- package/esnext/stepper/hooks/useButtonClick.d.ts +11 -0
- package/esnext/stepper/hooks/useButtonClick.js +46 -0
- package/esnext/stepper/hooks/useInputEvent.d.ts +10 -0
- package/esnext/stepper/hooks/useInputEvent.js +41 -0
- package/esnext/stepper/hooks/useValue.d.ts +7 -0
- package/esnext/stepper/hooks/useValue.js +33 -0
- package/esnext/stepper/index.d.ts +16 -0
- package/esnext/stepper/index.js +81 -0
- package/esnext/stepper/style/css/index.css +636 -0
- package/esnext/stepper/style/css/index.d.ts +2 -0
- package/esnext/stepper/style/css/index.js +2 -0
- package/esnext/stepper/style/index.d.ts +2 -0
- package/esnext/stepper/style/index.js +2 -0
- package/esnext/stepper/style/index.less +161 -0
- package/esnext/stepper/type.d.ts +159 -0
- package/esnext/stepper/type.js +1 -0
- package/esnext/steps/index.d.ts +19 -0
- package/esnext/steps/index.js +50 -0
- package/esnext/steps/step.d.ts +4 -0
- package/esnext/steps/step.js +43 -0
- package/esnext/steps/style/css/index.css +877 -0
- package/esnext/steps/style/css/index.d.ts +2 -0
- package/esnext/steps/style/css/index.js +2 -0
- package/esnext/steps/style/index.d.ts +2 -0
- package/esnext/steps/style/index.js +2 -0
- package/esnext/steps/style/index.less +407 -0
- package/esnext/steps/type.d.ts +110 -0
- package/esnext/steps/type.js +1 -0
- package/esnext/sticky/index.d.ts +141 -0
- package/esnext/sticky/index.js +165 -0
- package/esnext/sticky/style/css/index.css +526 -0
- package/esnext/sticky/style/css/index.d.ts +2 -0
- package/esnext/sticky/style/css/index.js +2 -0
- package/esnext/sticky/style/index.d.ts +2 -0
- package/esnext/sticky/style/index.js +2 -0
- package/esnext/sticky/style/index.less +30 -0
- package/esnext/style.d.ts +60 -0
- package/esnext/style.js +60 -0
- package/esnext/swipe-action/index.d.ts +13 -0
- package/esnext/swipe-action/index.js +220 -0
- package/esnext/swipe-action/item.d.ts +11 -0
- package/esnext/swipe-action/item.js +20 -0
- package/esnext/swipe-action/style/css/index.css +620 -0
- package/esnext/swipe-action/style/css/index.d.ts +2 -0
- package/esnext/swipe-action/style/css/index.js +2 -0
- package/esnext/swipe-action/style/index.d.ts +2 -0
- package/esnext/swipe-action/style/index.js +2 -0
- package/esnext/swipe-action/style/index.less +132 -0
- package/esnext/swipe-action/type.d.ts +123 -0
- package/esnext/swipe-action/type.js +1 -0
- package/esnext/swipe-load/index.d.ts +13 -0
- package/esnext/swipe-load/index.js +255 -0
- package/esnext/swipe-load/style/css/index.css +561 -0
- package/esnext/swipe-load/style/css/index.d.ts +2 -0
- package/esnext/swipe-load/style/css/index.js +2 -0
- package/esnext/swipe-load/style/index.d.ts +2 -0
- package/esnext/swipe-load/style/index.js +2 -0
- package/esnext/swipe-load/style/index.less +66 -0
- package/esnext/swipe-load/type.d.ts +152 -0
- package/esnext/swipe-load/type.js +1 -0
- package/esnext/switch/index.d.ts +105 -0
- package/esnext/switch/index.js +83 -0
- package/esnext/switch/style/css/index.css +765 -0
- package/esnext/switch/style/css/index.d.ts +2 -0
- package/esnext/switch/style/css/index.js +2 -0
- package/esnext/switch/style/index.d.ts +2 -0
- package/esnext/switch/style/index.js +2 -0
- package/esnext/switch/style/index.less +217 -0
- package/esnext/tab-bar/index.d.ts +14 -0
- package/esnext/tab-bar/index.js +16 -0
- package/esnext/tab-bar/item.d.ts +3 -0
- package/esnext/tab-bar/item.js +31 -0
- package/esnext/tab-bar/style/css/index.css +617 -0
- package/esnext/tab-bar/style/css/index.d.ts +2 -0
- package/esnext/tab-bar/style/css/index.js +2 -0
- package/esnext/tab-bar/style/index.d.ts +2 -0
- package/esnext/tab-bar/style/index.js +2 -0
- package/esnext/tab-bar/style/index.less +96 -0
- package/esnext/tab-bar/tab-bar.d.ts +11 -0
- package/esnext/tab-bar/tab-bar.js +40 -0
- package/esnext/tab-bar/type.d.ts +95 -0
- package/esnext/tab-bar/type.js +1 -0
- package/esnext/tabs/index.d.ts +13 -0
- package/esnext/tabs/index.js +340 -0
- package/esnext/tabs/style/css/index.css +1162 -0
- package/esnext/tabs/style/css/index.d.ts +2 -0
- package/esnext/tabs/style/css/index.js +2 -0
- package/esnext/tabs/style/index.d.ts +2 -0
- package/esnext/tabs/style/index.js +2 -0
- package/esnext/tabs/style/index.less +559 -0
- package/esnext/tabs/tab-cell-underline.d.ts +4 -0
- package/esnext/tabs/tab-cell-underline.js +237 -0
- package/esnext/tabs/tab-cell.d.ts +4 -0
- package/esnext/tabs/tab-cell.js +258 -0
- package/esnext/tabs/tab-pane.d.ts +4 -0
- package/esnext/tabs/tab-pane.js +241 -0
- package/esnext/tabs/type.d.ts +629 -0
- package/esnext/tabs/type.js +1 -0
- package/esnext/tag/index.d.ts +14 -0
- package/esnext/tag/index.js +20 -0
- package/esnext/tag/list.d.ts +3 -0
- package/esnext/tag/list.js +47 -0
- package/esnext/tag/style/css/index.css +738 -0
- package/esnext/tag/style/css/index.d.ts +2 -0
- package/esnext/tag/style/css/index.js +2 -0
- package/esnext/tag/style/index.d.ts +2 -0
- package/esnext/tag/style/index.js +2 -0
- package/esnext/tag/style/index.less +188 -0
- package/esnext/tag/tag.d.ts +3 -0
- package/esnext/tag/tag.js +32 -0
- package/esnext/tag/type.d.ts +159 -0
- package/esnext/tag/type.js +1 -0
- package/esnext/textarea/index.d.ts +96 -0
- package/esnext/textarea/index.js +88 -0
- package/esnext/textarea/style/css/index.css +572 -0
- package/esnext/textarea/style/css/index.d.ts +3 -0
- package/esnext/textarea/style/css/index.js +3 -0
- package/esnext/textarea/style/index.d.ts +3 -0
- package/esnext/textarea/style/index.js +3 -0
- package/esnext/textarea/style/index.less +84 -0
- package/esnext/toast/index.d.ts +257 -0
- package/esnext/toast/index.js +142 -0
- package/esnext/toast/methods.d.ts +16 -0
- package/esnext/toast/methods.js +61 -0
- package/esnext/toast/style/css/index.css +658 -0
- package/esnext/toast/style/css/index.d.ts +4 -0
- package/esnext/toast/style/css/index.js +4 -0
- package/esnext/toast/style/index.d.ts +4 -0
- package/esnext/toast/style/index.js +4 -0
- package/esnext/toast/style/index.less +130 -0
- package/esnext/transition/index.d.ts +49 -0
- package/esnext/transition/index.js +15 -0
- package/esnext/transition/style/css/index.css +549 -0
- package/esnext/transition/style/css/index.d.ts +2 -0
- package/esnext/transition/style/css/index.js +2 -0
- package/esnext/transition/style/index.d.ts +2 -0
- package/esnext/transition/style/index.js +2 -0
- package/esnext/transition/style/index.less +53 -0
- package/esnext/uploader/index.d.ts +16 -0
- package/esnext/uploader/index.js +75 -0
- package/esnext/uploader/style/css/index.css +666 -0
- package/esnext/uploader/style/css/index.d.ts +4 -0
- package/esnext/uploader/style/css/index.js +4 -0
- package/esnext/uploader/style/index.d.ts +4 -0
- package/esnext/uploader/style/index.js +4 -0
- package/esnext/uploader/style/index.less +161 -0
- package/esnext/uploader/type.d.ts +108 -0
- package/esnext/uploader/type.js +1 -0
- package/esnext/uploader/upload/index.d.ts +2 -0
- package/esnext/uploader/upload/index.js +2 -0
- package/esnext/uploader/upload/type.d.ts +107 -0
- package/esnext/uploader/upload/type.js +1 -0
- package/esnext/uploader/upload/upload.d.ts +20 -0
- package/esnext/uploader/upload/upload.js +123 -0
- package/esnext-tsconfig.json +23 -0
- package/package.json +3 -3
- package/umd/_helpers/index.d.ts +1 -0
- package/umd/_helpers/index.js +10 -4
- package/umd/_helpers/react-dom.js +21 -14
- package/umd/stepper/style/css/index.css +3 -4
- package/umd/stepper/style/index.less +1 -2
@@ -0,0 +1,407 @@
|
|
1
|
+
@import "../../../style/mixin.less";
|
2
|
+
|
3
|
+
.@{prefix}-steps {
|
4
|
+
display: flex;
|
5
|
+
.use-var(padding, steps-padding);
|
6
|
+
|
7
|
+
&-item {
|
8
|
+
position: relative;
|
9
|
+
display: flex;
|
10
|
+
flex: 1;
|
11
|
+
|
12
|
+
&.horizontal {
|
13
|
+
flex-direction: column;
|
14
|
+
}
|
15
|
+
|
16
|
+
&-align-center {
|
17
|
+
align-items: center;
|
18
|
+
}
|
19
|
+
|
20
|
+
&-align-start {
|
21
|
+
align-items: flex-start;
|
22
|
+
}
|
23
|
+
|
24
|
+
&-align-center.vertical {
|
25
|
+
.use-var(padding-bottom, steps-vertical-content-padding-bottom);
|
26
|
+
}
|
27
|
+
|
28
|
+
&:first-child &-tail::before,
|
29
|
+
&:last-child &-tail::after {
|
30
|
+
visibility: hidden;
|
31
|
+
}
|
32
|
+
|
33
|
+
&-tail {
|
34
|
+
position: absolute;
|
35
|
+
display: flex;
|
36
|
+
align-items: center;
|
37
|
+
justify-content: center;
|
38
|
+
|
39
|
+
.horizontal & {
|
40
|
+
width: 100%;
|
41
|
+
.use-var(height, steps-icon-height);
|
42
|
+
|
43
|
+
&::before,
|
44
|
+
&::after {
|
45
|
+
.use-var(height, steps-tail-standard-size);
|
46
|
+
}
|
47
|
+
|
48
|
+
&-align-start {
|
49
|
+
.use-var-with-rtl(left, steps-tail-horizontal-left);
|
50
|
+
.use-var(padding, steps-tail-horizontal-padding);
|
51
|
+
|
52
|
+
&::after {
|
53
|
+
content: "";
|
54
|
+
width: 100%;
|
55
|
+
.use-var(border-radius, steps-tail-border-radius);
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
&-align-center {
|
60
|
+
&::before,
|
61
|
+
&::after {
|
62
|
+
content: "";
|
63
|
+
width: 50%;
|
64
|
+
}
|
65
|
+
&::before {
|
66
|
+
.use-var-with-rtl(margin-right, steps-tail-horizontal-gutter);
|
67
|
+
.use-var-with-rtl(border-top-right-radius, steps-tail-border-radius);
|
68
|
+
.use-var-with-rtl(border-bottom-right-radius, steps-tail-border-radius);
|
69
|
+
}
|
70
|
+
&::after {
|
71
|
+
.use-var-with-rtl(margin-left, steps-tail-horizontal-gutter);
|
72
|
+
.use-var-with-rtl(border-top-left-radius, steps-tail-border-radius);
|
73
|
+
.use-var-with-rtl(border-bottom-left-radius, steps-tail-border-radius);
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
|
78
|
+
.vertical & {
|
79
|
+
height: 100%;
|
80
|
+
.use-var(width, steps-icon-width);
|
81
|
+
flex-direction: column;
|
82
|
+
|
83
|
+
&::before,
|
84
|
+
&::after {
|
85
|
+
.use-var(width, steps-tail-standard-size);
|
86
|
+
}
|
87
|
+
|
88
|
+
&-align-start {
|
89
|
+
.use-var(top, steps-tail-vertical-top);
|
90
|
+
.use-var(padding, steps-tail-vertical-padding);
|
91
|
+
|
92
|
+
&::after {
|
93
|
+
content: "";
|
94
|
+
height: 100%;
|
95
|
+
.use-var(border-radius, steps-tail-border-radius);
|
96
|
+
}
|
97
|
+
}
|
98
|
+
|
99
|
+
&-align-center {
|
100
|
+
&::before,
|
101
|
+
&::after {
|
102
|
+
content: "";
|
103
|
+
height: 50%;
|
104
|
+
}
|
105
|
+
&::before {
|
106
|
+
.use-var(margin-bottom, steps-tail-vertical-gutter);
|
107
|
+
.use-var(border-bottom-left-radius, steps-tail-border-radius);
|
108
|
+
.use-var(border-bottom-right-radius, steps-tail-border-radius);
|
109
|
+
}
|
110
|
+
&::after {
|
111
|
+
.use-var(margin-top, steps-tail-vertical-gutter);
|
112
|
+
.use-var(border-top-left-radius, steps-tail-border-radius);
|
113
|
+
.use-var(border-top-right-radius, steps-tail-border-radius);
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
|
118
|
+
&::after,
|
119
|
+
&::before {
|
120
|
+
display: inline-block;
|
121
|
+
.use-var(background, steps-tail-standard-background);
|
122
|
+
}
|
123
|
+
|
124
|
+
&-status-finish::before,
|
125
|
+
&-status-finish::after,
|
126
|
+
&-align-center&-status-process::before,
|
127
|
+
&-align-center&-status-error::before {
|
128
|
+
.use-var(background, steps-tail-finish-background);
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
&-custom-icon,
|
133
|
+
&-icon {
|
134
|
+
display: inline-flex;
|
135
|
+
align-items: center;
|
136
|
+
justify-content: center;
|
137
|
+
.use-var(width, steps-icon-width);
|
138
|
+
.use-var(height, steps-icon-height);
|
139
|
+
}
|
140
|
+
|
141
|
+
&-icon {
|
142
|
+
border-radius: 50%;
|
143
|
+
|
144
|
+
.number.finish & {
|
145
|
+
.use-var(background, steps-finish-icon-num-background);
|
146
|
+
}
|
147
|
+
|
148
|
+
.number.process & {
|
149
|
+
.use-var(background, steps-process-icon-num-background);
|
150
|
+
}
|
151
|
+
|
152
|
+
.number.wait & {
|
153
|
+
.use-var(background, steps-wait-icon-num-background);
|
154
|
+
}
|
155
|
+
|
156
|
+
.number.error & {
|
157
|
+
.use-var(background, steps-error-icon-num-background);
|
158
|
+
}
|
159
|
+
|
160
|
+
svg {
|
161
|
+
.use-var(font-size, steps-icon-svg-standard-font-size);
|
162
|
+
|
163
|
+
.finish & {
|
164
|
+
.use-var(color, steps-finish-icon-svg-color);
|
165
|
+
}
|
166
|
+
|
167
|
+
.error & {
|
168
|
+
.use-var(color, steps-error-icon-svg-color);
|
169
|
+
.use-var(font-size, steps-error-icon-svg-font-size);
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
&-num {
|
174
|
+
.use-var(font-size, steps-icon-num-font-size);
|
175
|
+
.use-var(line-height, steps-icon-num-line-height);
|
176
|
+
.use-var(color, steps-icon-num-color);
|
177
|
+
.text-medium();
|
178
|
+
|
179
|
+
.process & {
|
180
|
+
.use-var(color, steps-process-icon-num-color);
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
184
|
+
&-dot {
|
185
|
+
position: relative;
|
186
|
+
display: inline-block;
|
187
|
+
.use-var(width, steps-dot-width);
|
188
|
+
.use-var(height, steps-dot-height);
|
189
|
+
border-radius: 50%;
|
190
|
+
.use-var(border-width, steps-dot-border-width);
|
191
|
+
border-style: solid;
|
192
|
+
|
193
|
+
.finish & {
|
194
|
+
.use-var(border-color, steps-finish-dot-border-color);
|
195
|
+
}
|
196
|
+
|
197
|
+
.wait & {
|
198
|
+
.use-var(border-color, steps-wait-dot-border-color);
|
199
|
+
}
|
200
|
+
|
201
|
+
.process & {
|
202
|
+
border: none;
|
203
|
+
.use-var(background, steps-process-dot-background);
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
|
208
|
+
&-content {
|
209
|
+
|
210
|
+
.horizontal & {
|
211
|
+
.use-var(margin-top, steps-horizontal-content-margin-top);
|
212
|
+
&-align-center {
|
213
|
+
text-align: center;
|
214
|
+
}
|
215
|
+
}
|
216
|
+
|
217
|
+
.vertical & {
|
218
|
+
.use-var-with-rtl(margin-left, steps-vertical-content-margin-left);
|
219
|
+
flex: 1;
|
220
|
+
|
221
|
+
&-align-start {
|
222
|
+
.use-var(padding-bottom, steps-vertical-content-padding-bottom);
|
223
|
+
}
|
224
|
+
}
|
225
|
+
}
|
226
|
+
|
227
|
+
&-title {
|
228
|
+
.use-var(font-size, steps-title-font-size);
|
229
|
+
.use-var(line-height, steps-title-line-height);
|
230
|
+
|
231
|
+
.finish & {
|
232
|
+
.use-var(color, steps-finish-title-color);
|
233
|
+
}
|
234
|
+
|
235
|
+
.error & {
|
236
|
+
.use-var(color, steps-error-title-color);
|
237
|
+
}
|
238
|
+
|
239
|
+
.process & {
|
240
|
+
.use-var(color, steps-process-title-color);
|
241
|
+
font-weight: 500;
|
242
|
+
}
|
243
|
+
|
244
|
+
.wait & {
|
245
|
+
.use-var(color, steps-wait-title-color);
|
246
|
+
}
|
247
|
+
}
|
248
|
+
|
249
|
+
&-description {
|
250
|
+
.use-var(font-size, steps-description-font-size);
|
251
|
+
.use-var(line-height, steps-description-line-height);
|
252
|
+
.use-var(color, steps-description-color);
|
253
|
+
|
254
|
+
.wait & {
|
255
|
+
.use-var(color, steps-wait-description-color);
|
256
|
+
}
|
257
|
+
|
258
|
+
.vertical & {
|
259
|
+
.use-var(margin-top, steps-description-margin-top);
|
260
|
+
}
|
261
|
+
}
|
262
|
+
}
|
263
|
+
|
264
|
+
&.vertical {
|
265
|
+
flex-direction: column;
|
266
|
+
.use-var(padding-bottom, steps-vertical-padding-bottom);
|
267
|
+
.use-var-with-rtl(padding-left, steps-vertical-padding-left);
|
268
|
+
}
|
269
|
+
}
|
270
|
+
|
271
|
+
/***************************************************
|
272
|
+
* *
|
273
|
+
* Arco Theme Style *
|
274
|
+
* *
|
275
|
+
***************************************************/
|
276
|
+
& when (@use-dark-mode = 1) {
|
277
|
+
|
278
|
+
.process-bg-color-with-config,
|
279
|
+
.process-custom-icon-bg-color-with-config {
|
280
|
+
@{arco-dark-mode-selector} & {
|
281
|
+
.use-var(color, dark-steps-process-with-config-item-icon-color);
|
282
|
+
.use-var(color, dark-steps-process-with-config-item-icon-color);
|
283
|
+
}
|
284
|
+
}
|
285
|
+
.wait-custom-icon-bg-color-with-config {
|
286
|
+
@{arco-dark-mode-selector} & {
|
287
|
+
.use-var(background, dark-steps-wait-icon-num-background);
|
288
|
+
.use-var(color, dark-sub-info-font-color);
|
289
|
+
.use-var(background, dark-steps-wait-icon-num-background);
|
290
|
+
.use-var(color, dark-sub-info-font-color);
|
291
|
+
}
|
292
|
+
}
|
293
|
+
.@{prefix}-steps {
|
294
|
+
&-item {
|
295
|
+
&-tail {
|
296
|
+
&::after,
|
297
|
+
&::before {
|
298
|
+
@{arco-dark-mode-selector} & {
|
299
|
+
.use-var(background, dark-steps-tail-standard-background);
|
300
|
+
}
|
301
|
+
}
|
302
|
+
&-status-finish::before,
|
303
|
+
&-status-finish::after,
|
304
|
+
&-align-center&-status-process::before,
|
305
|
+
&-align-center&-status-error::before {
|
306
|
+
@{arco-dark-mode-selector} & {
|
307
|
+
.use-var(background, dark-steps-tail-finish-background);
|
308
|
+
}
|
309
|
+
}
|
310
|
+
}
|
311
|
+
&-icon {
|
312
|
+
.number.finish & {
|
313
|
+
@{arco-dark-mode-selector} & {
|
314
|
+
.use-var(background, dark-steps-finish-icon-num-background);
|
315
|
+
}
|
316
|
+
}
|
317
|
+
.number.process & {
|
318
|
+
@{arco-dark-mode-selector} & {
|
319
|
+
.use-var(background, dark-steps-process-icon-num-background);
|
320
|
+
}
|
321
|
+
}
|
322
|
+
.number.wait & {
|
323
|
+
@{arco-dark-mode-selector} & {
|
324
|
+
.use-var(background, dark-steps-wait-icon-num-background);
|
325
|
+
}
|
326
|
+
}
|
327
|
+
.number.error & {
|
328
|
+
@{arco-dark-mode-selector} & {
|
329
|
+
.use-var(background, dark-steps-error-icon-num-background);
|
330
|
+
}
|
331
|
+
}
|
332
|
+
svg {
|
333
|
+
.finish & {
|
334
|
+
@{arco-dark-mode-selector} & {
|
335
|
+
.use-var(color, dark-steps-finish-icon-svg-color);
|
336
|
+
}
|
337
|
+
}
|
338
|
+
.error & {
|
339
|
+
@{arco-dark-mode-selector} & {
|
340
|
+
.use-var(color, dark-steps-error-icon-svg-color);
|
341
|
+
}
|
342
|
+
}
|
343
|
+
}
|
344
|
+
&-num {
|
345
|
+
@{arco-dark-mode-selector} & {
|
346
|
+
.use-var(color, dark-steps-icon-num-color);
|
347
|
+
}
|
348
|
+
.process & {
|
349
|
+
@{arco-dark-mode-selector} & {
|
350
|
+
.use-var(color, dark-steps-process-icon-num-color);
|
351
|
+
}
|
352
|
+
}
|
353
|
+
}
|
354
|
+
&-dot {
|
355
|
+
.finish & {
|
356
|
+
@{arco-dark-mode-selector} & {
|
357
|
+
.use-var(border-color, dark-steps-finish-dot-border-color);
|
358
|
+
}
|
359
|
+
}
|
360
|
+
.wait & {
|
361
|
+
@{arco-dark-mode-selector} & {
|
362
|
+
.use-var(border-color, dark-steps-wait-dot-border-color);
|
363
|
+
}
|
364
|
+
}
|
365
|
+
.process & {
|
366
|
+
@{arco-dark-mode-selector} & {
|
367
|
+
.use-var(background, dark-steps-process-dot-background);
|
368
|
+
}
|
369
|
+
}
|
370
|
+
}
|
371
|
+
}
|
372
|
+
&-title {
|
373
|
+
.finish & {
|
374
|
+
@{arco-dark-mode-selector} & {
|
375
|
+
.use-var(color, dark-steps-finish-title-color);
|
376
|
+
}
|
377
|
+
}
|
378
|
+
.error & {
|
379
|
+
@{arco-dark-mode-selector} & {
|
380
|
+
.use-var(color, dark-steps-error-title-color);
|
381
|
+
}
|
382
|
+
}
|
383
|
+
.process & {
|
384
|
+
@{arco-dark-mode-selector} & {
|
385
|
+
.use-var(color, dark-steps-process-title-color);
|
386
|
+
}
|
387
|
+
}
|
388
|
+
.wait & {
|
389
|
+
@{arco-dark-mode-selector} & {
|
390
|
+
.use-var(color, dark-steps-wait-title-color);
|
391
|
+
}
|
392
|
+
}
|
393
|
+
}
|
394
|
+
&-description {
|
395
|
+
@{arco-dark-mode-selector} & {
|
396
|
+
.use-var(color, dark-steps-description-color);
|
397
|
+
}
|
398
|
+
.wait & {
|
399
|
+
@{arco-dark-mode-selector} & {
|
400
|
+
.use-var(color, dark-steps-wait-description-color);
|
401
|
+
}
|
402
|
+
}
|
403
|
+
}
|
404
|
+
}
|
405
|
+
}
|
406
|
+
}
|
407
|
+
/********************* End *************************/
|
@@ -0,0 +1,110 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export interface StepProps {
|
3
|
+
/**
|
4
|
+
* 步骤标题
|
5
|
+
* @en Step title
|
6
|
+
*/
|
7
|
+
title?: React.ReactNode;
|
8
|
+
/**
|
9
|
+
* 步骤说明文字
|
10
|
+
* @en Step description
|
11
|
+
*/
|
12
|
+
description?: React.ReactNode;
|
13
|
+
/**
|
14
|
+
* 自定义步骤图标
|
15
|
+
* @en Custom step Icon
|
16
|
+
*/
|
17
|
+
icon?: React.ReactNode;
|
18
|
+
/**
|
19
|
+
* 指定步骤状态,不配置该项时,会根据 Steps 的 current 属性自动指定状态
|
20
|
+
* @en Specify the step status. When this item is not input, the status will be automatically specified according to the current property of steps
|
21
|
+
*/
|
22
|
+
status?: 'finish' | 'error' | 'wait' | 'process';
|
23
|
+
/**
|
24
|
+
* 指定对齐方式,不配置该项时,会跟随 Steps 的 align 属性值
|
25
|
+
* @en Specify the step alignment. When this item is not input, it will be automatically specified according to the align property of steps
|
26
|
+
*/
|
27
|
+
align?: 'center' | 'start';
|
28
|
+
}
|
29
|
+
export interface StepsProps {
|
30
|
+
/**
|
31
|
+
* 自定义类名
|
32
|
+
* @en Custom classname
|
33
|
+
*/
|
34
|
+
className?: string;
|
35
|
+
/**
|
36
|
+
* 自定义样式,如果想用 css 控制 icon 颜色,可使用公共 mixin '.set-steps-color(@color)'
|
37
|
+
* @en Custom stylesheet. If want to use CSS to control icon color, use public mixin '.set-steps-color(@color)'
|
38
|
+
*/
|
39
|
+
style?: React.CSSProperties;
|
40
|
+
/**
|
41
|
+
* 步骤条方向
|
42
|
+
* @en Step bar direction
|
43
|
+
* @default horizontal
|
44
|
+
*/
|
45
|
+
direction?: 'vertical' | 'horizontal';
|
46
|
+
/**
|
47
|
+
* 步骤条对齐方式
|
48
|
+
* @en Step alignment
|
49
|
+
* @default direction="horizontal" 时默认为 "center",direction="vertical" 时默认为 "start"
|
50
|
+
* @default_en "center" when direction="horizontal" and "start" when direction="vertical"
|
51
|
+
*/
|
52
|
+
align?: 'center' | 'start';
|
53
|
+
/**
|
54
|
+
* 指定当前步骤,从 0 开始记数。在子 Step 元素中,可以通过 status 属性覆盖状态,传入则受控
|
55
|
+
* @en Specify the current step, counting from 0. In the step children elements, the status can be overwritten through the status, and it is controlled if it is input
|
56
|
+
*/
|
57
|
+
current?: number;
|
58
|
+
/**
|
59
|
+
* 步骤图标类型。在子 Step 元素中,可以通过 icon 属性覆盖图标
|
60
|
+
* @en Steps icon type. In the children step elements , the icons can be overridden by the property icon
|
61
|
+
* @default number
|
62
|
+
*/
|
63
|
+
iconType?: 'number' | 'dot';
|
64
|
+
/**
|
65
|
+
* 当前步骤的节点状态
|
66
|
+
* @en Status of the current step
|
67
|
+
* @default process
|
68
|
+
*/
|
69
|
+
status?: 'finish' | 'error' | 'wait' | 'process';
|
70
|
+
/**
|
71
|
+
* 初始 step index
|
72
|
+
* @en Default step index
|
73
|
+
* @default 0
|
74
|
+
*/
|
75
|
+
defaultIndex?: number;
|
76
|
+
/**
|
77
|
+
* 步骤条自定义数据,优先级高于 Children Step 子元素
|
78
|
+
* @en Custom data of step bar, which takes precedence over children elements of steps component
|
79
|
+
*/
|
80
|
+
items?: StepProps[];
|
81
|
+
/**
|
82
|
+
* 点击步骤触事件
|
83
|
+
* @en Callback when clicking the step
|
84
|
+
*/
|
85
|
+
onClick?: (current: number) => void;
|
86
|
+
/**
|
87
|
+
* step 变化回调
|
88
|
+
* @en Callback when step changes
|
89
|
+
*/
|
90
|
+
onChange?: (index: number) => void;
|
91
|
+
/**
|
92
|
+
* 子元素,优先级低于 items
|
93
|
+
* @en Child element, with priority lower than items
|
94
|
+
*/
|
95
|
+
children?: React.ReactNode;
|
96
|
+
}
|
97
|
+
export interface StepRef {
|
98
|
+
/**
|
99
|
+
* Step 最外层元素 DOM
|
100
|
+
* @en Outermost element DOM of the Step
|
101
|
+
*/
|
102
|
+
dom: HTMLDivElement | null;
|
103
|
+
}
|
104
|
+
export interface StepsRef {
|
105
|
+
/**
|
106
|
+
* 最外层元素 DOM
|
107
|
+
* @en The outermost element DOM
|
108
|
+
*/
|
109
|
+
dom: HTMLDivElement | null;
|
110
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,141 @@
|
|
1
|
+
import React, { CSSProperties, ReactNode } from 'react';
|
2
|
+
export interface StickyRef {
|
3
|
+
/**
|
4
|
+
* 最外层元素 DOM
|
5
|
+
* @en The outermost element DOM
|
6
|
+
*/
|
7
|
+
dom: HTMLDivElement | null;
|
8
|
+
/**
|
9
|
+
* 局部滚动模式下,如果容器外部还有嵌套滚动,可主动调用此方法,让 sticky 的元素主动更新 fixed 位置
|
10
|
+
* @en In the local scrolling mode, if there is nested scrolling outside the container, this method can be actively called to make the sticky element actively update the fixed position
|
11
|
+
*/
|
12
|
+
recalculatePosition: () => void;
|
13
|
+
/**
|
14
|
+
* 手动更新占位模块的高度
|
15
|
+
* @en Manually update the height of the placeholder
|
16
|
+
*/
|
17
|
+
updatePlaceholderLayout: () => void;
|
18
|
+
}
|
19
|
+
export interface StickyEventPayload {
|
20
|
+
/**
|
21
|
+
* 当前是否为吸顶/吸底状态
|
22
|
+
* @en Whether it is currently in the top/bottom suction state
|
23
|
+
*/
|
24
|
+
isSticky: boolean;
|
25
|
+
/**
|
26
|
+
* 前一个状态是否为吸顶/吸底状态
|
27
|
+
* @en Whether the previous state is ceiling / bottom suction state
|
28
|
+
*/
|
29
|
+
wasSticky: boolean;
|
30
|
+
/** 当前是否为吸顶状态 */
|
31
|
+
isTopSticky: boolean;
|
32
|
+
/** 当前是否为吸底状态 */
|
33
|
+
isBottomSticky: boolean;
|
34
|
+
}
|
35
|
+
export interface StickyProps {
|
36
|
+
/**
|
37
|
+
* 吸附位置,top 表示吸顶,bottom 表示吸底,both 表示既吸顶又吸底
|
38
|
+
* @en Adsorption position, top means fixed top, bottom means fixed bottom, both means both top and bottom
|
39
|
+
* @default "top"
|
40
|
+
*/
|
41
|
+
position?: 'top' | 'bottom' | 'both';
|
42
|
+
/**
|
43
|
+
* 当距离容器顶部距离为该值时吸顶
|
44
|
+
* @en Fixed top when the distance from the top of the container is this value
|
45
|
+
* @default 0
|
46
|
+
*/
|
47
|
+
topOffset?: number;
|
48
|
+
/**
|
49
|
+
* 当距离容器底部距离为该值时吸底
|
50
|
+
* @en Fixed bottom when the distance from the bottom of the container is this value
|
51
|
+
* @default 0
|
52
|
+
*/
|
53
|
+
bottomOffset?: number;
|
54
|
+
/**
|
55
|
+
* 当sticky元素需要跟随依附容器离开视口时距离依附容器边缘的距离
|
56
|
+
* @en The distance from the edge of the attached container when the sticky element needs to follow the attached container to leave the viewport
|
57
|
+
* @default 0
|
58
|
+
*/
|
59
|
+
followOffset?: number;
|
60
|
+
/**
|
61
|
+
* 自定义类名
|
62
|
+
* @en Custom classname
|
63
|
+
*/
|
64
|
+
className?: string;
|
65
|
+
/**
|
66
|
+
* 自定义样式
|
67
|
+
* @en Custom stylesheet
|
68
|
+
*/
|
69
|
+
style?: CSSProperties;
|
70
|
+
/**
|
71
|
+
* 组件内部内容
|
72
|
+
* @en Children elements of the component
|
73
|
+
*/
|
74
|
+
children?: ReactNode;
|
75
|
+
/**
|
76
|
+
* 层级指数,z-index的值
|
77
|
+
* @en z-index
|
78
|
+
* @default 100
|
79
|
+
*/
|
80
|
+
zIndex?: number;
|
81
|
+
/**
|
82
|
+
* 在处于sticky状态时是否portal
|
83
|
+
* @en Whether it is portal in sticky state
|
84
|
+
* @default false
|
85
|
+
*/
|
86
|
+
portalWhenSticky?: boolean;
|
87
|
+
/**
|
88
|
+
* 处于sticky状态时,元素固定样式。推荐用fixed,如果为absolute则需自行为滚动容器的父容器设置 position: relative
|
89
|
+
* @en When in the sticky state, the fixed style of the element. Fixed is recommended. If absolute, need to set position: relative for the parent container of the scrolling container.
|
90
|
+
* @default "fixed"
|
91
|
+
*/
|
92
|
+
stickyStyle?: 'fixed' | 'absolute';
|
93
|
+
/**
|
94
|
+
* 处于sticky状态时的自定义样式
|
95
|
+
* @en Custom style when in sticky state
|
96
|
+
*/
|
97
|
+
stickyCssStyle?: CSSProperties;
|
98
|
+
/**
|
99
|
+
* 被portal时挂载的容器
|
100
|
+
* @en Container mounted when being portaled
|
101
|
+
* @default () => document.body
|
102
|
+
*/
|
103
|
+
getPortalContainer?: () => HTMLElement;
|
104
|
+
/**
|
105
|
+
* 吸顶状态切换时触发
|
106
|
+
* payload.isSticky: 当前是否为吸顶/吸底状态
|
107
|
+
* payload.wasSticky: 前一个状态是否为吸顶/吸底状态
|
108
|
+
* @en Triggered when the sticky state is switched
|
109
|
+
* @en isSticky: Whether it is currently in the top/bottom state
|
110
|
+
* @en Whether the previous state is the top/bottom state
|
111
|
+
*/
|
112
|
+
onStickyStateChange?: (payload: StickyEventPayload) => void;
|
113
|
+
/**
|
114
|
+
* 滚动时top变化回调,参数为元素距离容器顶部减去topOffset的距离
|
115
|
+
* @en The top change callback when scrolling, the parameter is the distance of the element from the top of the container minus topOffset
|
116
|
+
*/
|
117
|
+
onTopChange?: (top: number) => void;
|
118
|
+
/**
|
119
|
+
* 指定sticky元素的依附容器,sticky元素不会超出容器,在容器离开视口时会跟随
|
120
|
+
* 如果返回string则使用querySelector选取容器
|
121
|
+
* @en Specifies the attachment container of the sticky element. The sticky element will not exceed the container and will follow when the container leaves the viewport
|
122
|
+
* @en If a string is returned, use querySelector to select the container
|
123
|
+
*/
|
124
|
+
getContainer?: () => HTMLElement | string;
|
125
|
+
/**
|
126
|
+
* 指定滚动容器;如果返回string则使用querySelector选取容器
|
127
|
+
* @en Specifies the scrolling container. If this value is specified, the relative property is always regarded as false; if a string is input, use querySelector to select the container
|
128
|
+
* @default () => window
|
129
|
+
*/
|
130
|
+
getScrollContainer?: () => HTMLElement | Window | string;
|
131
|
+
}
|
132
|
+
/**
|
133
|
+
* 粘性布局组件,元素相对于窗口或指定容器的吸顶效果。
|
134
|
+
* @en Sticky layout component, The sticky-to-top effect of the element relative to the window or specified container
|
135
|
+
* @type 布局
|
136
|
+
* @type_en Layout
|
137
|
+
* @name 粘性布局
|
138
|
+
* @name_en Sticky
|
139
|
+
*/
|
140
|
+
declare const Sticky: React.ForwardRefExoticComponent<StickyProps & React.RefAttributes<StickyRef>>;
|
141
|
+
export default Sticky;
|