@arco-design/mobile-react 2.31.6 → 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 +12 -0
- package/LICENSE +21 -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/dist/index.js +91 -66
- package/dist/index.min.js +4 -4
- package/esm/_helpers/index.d.ts +1 -0
- package/esm/_helpers/index.js +1 -0
- package/esm/_helpers/react-dom.js +15 -11
- 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
@@ -0,0 +1,629 @@
|
|
1
|
+
import { CSSProperties, ReactNode, ReactNodeArray } from 'react';
|
2
|
+
export declare type TabData = string | {
|
3
|
+
title: ReactNode;
|
4
|
+
[x: string]: any;
|
5
|
+
};
|
6
|
+
export interface UnderlineStyle {
|
7
|
+
/**
|
8
|
+
* 下划线外层样式,控制线的相对位置
|
9
|
+
* @en Underline outer style, controls the relative position of the line
|
10
|
+
*/
|
11
|
+
outer?: React.CSSProperties;
|
12
|
+
/**
|
13
|
+
* 下划线内层样式,控制线本身的宽高及缩放效果
|
14
|
+
* @en Underline inner layer style, control the width and height of the line itself and the zoom effect
|
15
|
+
*/
|
16
|
+
inner?: React.CSSProperties;
|
17
|
+
}
|
18
|
+
export interface TabsProps {
|
19
|
+
/**
|
20
|
+
* 自定义类名
|
21
|
+
* @en Custom classname
|
22
|
+
*/
|
23
|
+
className?: string;
|
24
|
+
/**
|
25
|
+
* 自定义样式
|
26
|
+
* @en Custom stylesheet
|
27
|
+
*/
|
28
|
+
style?: React.CSSProperties;
|
29
|
+
/**
|
30
|
+
* TabBar内容数组,除必填项外也可附加其他数据,建议用 useMemo 包裹
|
31
|
+
* @en Array of TabBar content, additional data can be appended in addition to the required fields
|
32
|
+
*/
|
33
|
+
tabs: TabData[];
|
34
|
+
/**
|
35
|
+
* TabPane内容
|
36
|
+
* @en TabPane content
|
37
|
+
*/
|
38
|
+
children?: ReactNode;
|
39
|
+
/**
|
40
|
+
* 当前活动tab index,传入则为受控
|
41
|
+
* @en Currently active tab index, controlled if inputting value
|
42
|
+
*/
|
43
|
+
activeTab?: number;
|
44
|
+
/**
|
45
|
+
* 初始tab index值
|
46
|
+
* @en initial tab index value
|
47
|
+
* @default 0
|
48
|
+
*/
|
49
|
+
defaultActiveTab?: number;
|
50
|
+
/**
|
51
|
+
* 是否禁用切换,包括点击TabBar切换和滑动切换
|
52
|
+
* @en Whether to disable switching, including clicking TabBar switching and sliding switching
|
53
|
+
*/
|
54
|
+
disabled?: boolean;
|
55
|
+
/**
|
56
|
+
* TabBar位置
|
57
|
+
* @en Tabbar position
|
58
|
+
* @default "top"
|
59
|
+
*/
|
60
|
+
tabBarPosition?: 'top' | 'bottom' | 'left' | 'right';
|
61
|
+
/**
|
62
|
+
* TabBar排列方式,tabBar在top或bottom位置时有效,start为靠左,center为居中,end为靠右
|
63
|
+
* @en Tabbar arrangement, tabBar is valid when it is in the top or bottom position, start is left, center is centered, and end is right
|
64
|
+
* @default "center"
|
65
|
+
*/
|
66
|
+
tabBarArrange?: 'start' | 'center' | 'end';
|
67
|
+
/**
|
68
|
+
* 是否TabBar超出屏幕时靠左滚动排列
|
69
|
+
* @en Whether to scroll to the left when the TabBar exceeds the screen
|
70
|
+
* @default true
|
71
|
+
*/
|
72
|
+
tabBarScroll?: boolean;
|
73
|
+
/**
|
74
|
+
* TabBar是否顶部/底部固定(含 placeholder),可传入具体固定的值
|
75
|
+
* @en Whether the TabBar is fixed on the top or bottom (including placeholder), a specific fixed value can be passed in
|
76
|
+
*/
|
77
|
+
tabBarFixed?: boolean | Pick<CSSProperties, 'top' | 'bottom'>;
|
78
|
+
/**
|
79
|
+
* tabBar额外渲染内容
|
80
|
+
* @en TabBar extra render content
|
81
|
+
*/
|
82
|
+
tabBarExtra?: ReactNode;
|
83
|
+
/**
|
84
|
+
* tabBar滚动时变化的bezier曲线值
|
85
|
+
* @en The bezier curve value that changes when the tabBar is scrolled
|
86
|
+
* @default [0.34, 0.69, 0.1, 1]
|
87
|
+
*/
|
88
|
+
tabBarScrollBezier?: [number, number, number, number];
|
89
|
+
/**
|
90
|
+
* tabBar滚动过渡时长,单位ms
|
91
|
+
* @en TabBar scrolling transition duration, in ms
|
92
|
+
* @default 300
|
93
|
+
*/
|
94
|
+
tabBarScrollDuration?: number;
|
95
|
+
/**
|
96
|
+
* tabBar滚动时机,`jump`表示在跳转tab时,`after-jump`表示跳转动画执行后,`none`表示切换tab后不自动滚动
|
97
|
+
* @en TabBar scrolling timing, `jump` means when the tab is jumped, `after-jump` means after the jump animation is executed, `none` means do not scroll automatically after switching tabs
|
98
|
+
* @default "jump"
|
99
|
+
*/
|
100
|
+
tabBarScrollChance?: 'jump' | 'after-jump' | 'none';
|
101
|
+
/**
|
102
|
+
* tabBar是否有分割线
|
103
|
+
* @en Whether the tabBar has a dividing line
|
104
|
+
*/
|
105
|
+
tabBarHasDivider?: boolean;
|
106
|
+
/**
|
107
|
+
* 在竖向滚动tabPane时,自动重设tabBar滚动位置的时机
|
108
|
+
* @en When scrolling the tabPane vertically, the timing of automatically resetting the scroll position of the tabBar
|
109
|
+
* @default "touchmove"
|
110
|
+
*/
|
111
|
+
tabBarResetWhenScroll?: 'none' | 'touchmove' | 'touchend';
|
112
|
+
/**
|
113
|
+
* 页签的样式,line为顺次排布,line-divide为等分间距排布,card为分段器式排布
|
114
|
+
* @en The style of the tabs, line is arranged in sequence, line-divide is arranged at equal intervals, and card is arranged by segmenter
|
115
|
+
* @default line
|
116
|
+
*/
|
117
|
+
type?: 'line' | 'line-divide' | 'card' | 'tag' | 'tag-divide';
|
118
|
+
/**
|
119
|
+
* 是否允许滑动
|
120
|
+
* @en Whether to allow sliding
|
121
|
+
* @default true
|
122
|
+
*/
|
123
|
+
swipeable?: boolean;
|
124
|
+
/**
|
125
|
+
* TabBar下划线滑动动画切换时间,单位ms
|
126
|
+
* @en The time of the TabBar underline sliding animation switching, in ms
|
127
|
+
* @default 240
|
128
|
+
*/
|
129
|
+
duration?: number;
|
130
|
+
/**
|
131
|
+
* 是否为全屏(100%)布局
|
132
|
+
* @en Whether the layout is full screen (100%)
|
133
|
+
* @default false
|
134
|
+
*/
|
135
|
+
fullScreen?: boolean;
|
136
|
+
/**
|
137
|
+
* 容器高度自适应,仅在mode=swipe且是垂直布局时生效
|
138
|
+
* @en Whether the container height is adaptive, it only takes effect when mode=swipe and vertical layout
|
139
|
+
* @default false
|
140
|
+
*/
|
141
|
+
autoHeight?: boolean;
|
142
|
+
/**
|
143
|
+
* swipe模式下表示手指抬起后到动画结束时间,scroll模式下表示点击tab后滚动过渡时间,单位ms
|
144
|
+
* @en In swipe mode, it means the time from when the finger is lifted to the end of the animation. In scroll mode, it means the scroll transition time after clicking the tab, in ms
|
145
|
+
* @default 300
|
146
|
+
*/
|
147
|
+
transitionDuration?: number;
|
148
|
+
/**
|
149
|
+
* 是否使用毛毛虫效果
|
150
|
+
* @en Whether to use the caterpillar effect
|
151
|
+
* @default false
|
152
|
+
*/
|
153
|
+
useCaterpillar?: boolean;
|
154
|
+
/**
|
155
|
+
* 使用毛毛虫效果时,执行动画更改的属性,`scale`表示更改 transform: scale 值,`size`表示更改宽高值。一般在避免border-radius被scale拉伸的情况会使用`size`,但需注意其性能不如`scale`
|
156
|
+
* @en When using the caterpillar effect, the properties that perform animation changes, `scale` means changing the transform: scale value, `size` means changing the width and height values. Generally, `size` is used to avoid border-radius being stretched by scale, but it should be noted that its performance is not as good as `scale`
|
157
|
+
* @default "scale"
|
158
|
+
*/
|
159
|
+
caterpillarProperty?: 'scale' | 'size';
|
160
|
+
/**
|
161
|
+
* 毛毛虫效果开启时,TabBar下划线最长延展倍数(相对于自身长度)
|
162
|
+
* @en When the caterpillar effect is enabled, the longest extension multiple of the TabBar underline (relative to its own length)
|
163
|
+
* @default 2
|
164
|
+
*/
|
165
|
+
caterpillarMaxScale?: number;
|
166
|
+
/**
|
167
|
+
* 滑动切换距离阈值(宽度比例),范围为[0, 1],如果该属性和`distanceToChangeTab`属性均设置,则实际计算结果更大的生效
|
168
|
+
* @en Sliding switching distance threshold (width ratio), the range is [0, 1]. If this property and the `distanceToChangeTab` property are both set, the larger actual calculation result will take effect
|
169
|
+
* @default 0.3
|
170
|
+
*/
|
171
|
+
percentToChangeTab?: number;
|
172
|
+
/**
|
173
|
+
* 滑动切换距离阈值(固定px宽度),如果该属性和`percentToChangeTab`属性均设置,则实际计算结果更大的生效
|
174
|
+
* @en The sliding switching distance threshold (fixed px width), if both this property and the `percentToChangeTab` property are set, the actual calculation result will take effect with a larger one
|
175
|
+
* @default 10
|
176
|
+
*/
|
177
|
+
distanceToChangeTab?: number;
|
178
|
+
/**
|
179
|
+
* 滑动切换速度阈值(手指从按下到抬起之间的滑动速度,单位为px/s),与滑动切换距离阈值同时设置时,满足其中一个即生效
|
180
|
+
* @en The sliding switching speed threshold (the sliding speed of the finger from pressing to lifting, in px/s), when it is set at the same time as the sliding switching distance threshold, it will take effect if one of them is satisfied.
|
181
|
+
* @default 200
|
182
|
+
*/
|
183
|
+
speedToChangeTab?: number;
|
184
|
+
/**
|
185
|
+
* 点击tab切换时禁用动画
|
186
|
+
* @en Disable animation when tab switch is clicked
|
187
|
+
* @default true
|
188
|
+
*/
|
189
|
+
disableClickTransition?: boolean;
|
190
|
+
/**
|
191
|
+
* 只加载当前页相邻的n个内容,为0时会隐藏/销毁所有相邻内容,不传则加载所有内容,在mode=swipe时生效
|
192
|
+
* @en Only load the n content adjacent to the current page. When it is 0, all adjacent content will be hidden/destroyed. If not input, all content will be loaded. It will take effect when mode=swipe
|
193
|
+
*/
|
194
|
+
lazyloadCount?: number;
|
195
|
+
/**
|
196
|
+
* 当开启懒加载时,针对不在懒加载范围内的内容设置样式,传入null则销毁内容
|
197
|
+
* @en When lazy loading is enabled, set the style for the content that is not within the scope of lazy loading, and pass in null to destroy the content
|
198
|
+
* @default null
|
199
|
+
*/
|
200
|
+
hideContentStyle?: React.CSSProperties | null;
|
201
|
+
/**
|
202
|
+
* 自行渲染不在懒加载范围内的pane,其中参数pane代表第index个tab原本要渲染的内容
|
203
|
+
* @en Render the pane that is not within the scope of lazy loading by itself, where the parameter pane represents the content to be rendered by the index-th tab
|
204
|
+
*/
|
205
|
+
renderHideContent?: (index: number, pane: ReactNode) => ReactNode;
|
206
|
+
/**
|
207
|
+
* 在组件加载完成前是否隐藏TabBar,防止溢出时多余的滚动效果
|
208
|
+
* @en Whether to hide the TabBar before the component is loaded to prevent redundant scrolling effects when overflowing
|
209
|
+
*/
|
210
|
+
hideTabBarBeforeMounted?: boolean;
|
211
|
+
/**
|
212
|
+
* TabBar个数大于等于多少时认为会溢出,用于dom加载完成之前的ssr首屏渲染优化
|
213
|
+
* @en When the number of TabBars is greater than or equal to the number of TabBars, it is considered to overflow, which is used for ssr first screen rendering optimization before dom loading is completed
|
214
|
+
* @default 5
|
215
|
+
*/
|
216
|
+
overflowThreshold?: number;
|
217
|
+
/**
|
218
|
+
* 是否展示下划线
|
219
|
+
* @en Whether to display underline
|
220
|
+
* @default true
|
221
|
+
*/
|
222
|
+
showUnderline?: boolean;
|
223
|
+
/**
|
224
|
+
* 下划线是否根据 tab cell 长度自适应
|
225
|
+
* @en Whether the underline is adaptive according to the length of the tab cell
|
226
|
+
* @default false
|
227
|
+
*/
|
228
|
+
underlineAdaptive?: boolean;
|
229
|
+
/**
|
230
|
+
* 触发onTouchStopped的最小阈值
|
231
|
+
* @en Minimum threshold to trigger onTouchStopped
|
232
|
+
* @default 0
|
233
|
+
*/
|
234
|
+
stopTouchThreshold?: number;
|
235
|
+
/**
|
236
|
+
* 距离屏幕边缘多远开始向右滑动时禁用tabs滑动事件
|
237
|
+
* @en The distance from the edge of the screen to disable the tabs swipe event when you start swiping right
|
238
|
+
* @default 0
|
239
|
+
*/
|
240
|
+
touchSideDisableThreshold?: number;
|
241
|
+
/**
|
242
|
+
* swipe 模式下,触摸事件是否需要 stopPropagation
|
243
|
+
* @en In swipe mode, whether the touch event need stopPropagation
|
244
|
+
* @default true
|
245
|
+
*/
|
246
|
+
stopPropagation?: boolean;
|
247
|
+
/**
|
248
|
+
* swipe 模式下,组件内部的滚动容器,用于豁免滑动事件响应
|
249
|
+
* @en In swipe mode, the scroll container inside the component is used to exempt the swipe event response
|
250
|
+
*/
|
251
|
+
getInnerScrollContainer?: () => (HTMLElement | null)[] | HTMLElement | null;
|
252
|
+
/**
|
253
|
+
* tabs切换模式,swipe为滑动模式,scroll为滚动监听模式
|
254
|
+
* @en Tabs switching mode, swipe is sliding mode, scroll is scroll listening mode
|
255
|
+
* @default "swipe"
|
256
|
+
*/
|
257
|
+
mode?: 'swipe' | 'scroll';
|
258
|
+
/**
|
259
|
+
* 滚动模式下的滚动容器,用于监听滚动事件,mode=scroll 时有效
|
260
|
+
* @en The scroll container in scroll mode, used to listen to scroll events, valid when mode=scroll
|
261
|
+
*/
|
262
|
+
getScrollContainer?: () => HTMLElement | Window | null;
|
263
|
+
/**
|
264
|
+
* 滚动模式下的节流粒度,mode=scroll 时有效
|
265
|
+
* @en Throttling granularity in scroll mode, valid when mode=scroll
|
266
|
+
* @default 300
|
267
|
+
*/
|
268
|
+
scrollThrottle?: number;
|
269
|
+
/**
|
270
|
+
* 滚动模式下判断tab切换的偏移量,正数为向下偏移,负数为向上偏移,mode=scroll 时有效
|
271
|
+
* @en Determine the offset of tab switching in scroll mode, a positive number is a downward offset, a negative number is an upward offset, valid when mode=scroll
|
272
|
+
* @default 0
|
273
|
+
*/
|
274
|
+
scrollOffset?: number;
|
275
|
+
/**
|
276
|
+
* 滚动模式下,在组件初始加载时是否需要自动滚动到当前所选位置,mode=scroll 时有效
|
277
|
+
* @en In scroll mode, whether to automatically scroll to the currently selected position when the component is initially loaded, valid when mode=scroll
|
278
|
+
* @default 当初始index不为0时会自动滚动,为0时则不会自动滚动
|
279
|
+
* @default_en When the initial index is not 0, it will scroll automatically, when it is 0, it will not scroll automatically
|
280
|
+
*/
|
281
|
+
scrollWhenMounted?: boolean;
|
282
|
+
/**
|
283
|
+
* 当滚动到最底部时,如果最后一个pane尚未到达底部,是否强行选中,mode=scroll 时有效
|
284
|
+
* @en When scrolling to the bottom, if the last pane has not reached the bottom, whether to force the selection, valid when mode=scroll
|
285
|
+
* @default true
|
286
|
+
*/
|
287
|
+
goLastWhenScrollBottom?: boolean;
|
288
|
+
/**
|
289
|
+
* 是否监听垂直方向的滚动,否则监听水平方向滚动
|
290
|
+
* @en Whether to monitor vertical scrolling, otherwise monitor horizontal scrolling
|
291
|
+
* @default true
|
292
|
+
*/
|
293
|
+
scrollVertical?: boolean;
|
294
|
+
/**
|
295
|
+
* TabBar外层容器自定义类名
|
296
|
+
* @en Custom classname of TabBar outer container
|
297
|
+
*/
|
298
|
+
tabBarClass?: string;
|
299
|
+
/**
|
300
|
+
* TabPane外层容器自定义类名
|
301
|
+
* @en Custom classname of TabPane outer container
|
302
|
+
*/
|
303
|
+
tabPaneClass?: string;
|
304
|
+
/**
|
305
|
+
* TabBar外层容器自定义样式
|
306
|
+
* @en Custom style of TabBar outer container
|
307
|
+
*/
|
308
|
+
tabBarStyle?: React.CSSProperties;
|
309
|
+
/**
|
310
|
+
* TabPane外层容器自定义样式
|
311
|
+
* @en Custom style of TabPane outer container
|
312
|
+
*/
|
313
|
+
tabPaneStyle?: React.CSSProperties;
|
314
|
+
/**
|
315
|
+
* TabPane额外渲染元素,需绝对定位
|
316
|
+
* @en Extra rendering elements of TabPane, which shoule be absolute positioning
|
317
|
+
*/
|
318
|
+
tabPaneExtra?: ReactNode;
|
319
|
+
/**
|
320
|
+
* TabPane和TabBar开启translateZ
|
321
|
+
* @en Whether TabPane and TabBar open translateZ
|
322
|
+
* @default true
|
323
|
+
*/
|
324
|
+
translateZ?: boolean;
|
325
|
+
/**
|
326
|
+
* 是否启用滑动节能模式,开启后TabPane外层容器不会随panes数量撑开并提升为合成层,仅滑动当前选中的pane,其他pane在选中前将被隐藏
|
327
|
+
* @en Whether to enable the energy-saving sliding mode. After opening, the outer container of the TabPane will not expand with the number of panes and be promoted to a composite layer. Only the currently selected pane will be slid, and other panes will be hidden before being selected.
|
328
|
+
* @default false
|
329
|
+
*/
|
330
|
+
swipeEnergySaving?: boolean;
|
331
|
+
/**
|
332
|
+
* 当滑到第一页或最后一页,还想再滑动时触发
|
333
|
+
* @en Triggered when swiping to the first or last page and want to swipe again
|
334
|
+
*/
|
335
|
+
onTouchStopped?: (direction: -1 | 1) => void;
|
336
|
+
/**
|
337
|
+
* tab变化回调
|
338
|
+
* @en Callback when tab changes
|
339
|
+
*/
|
340
|
+
onChange?: (tab: TabData, index: number, from?: string) => void;
|
341
|
+
/**
|
342
|
+
* tab变化且动画执行完毕后回调
|
343
|
+
* @en Callback when the tab changes and the animation is completed
|
344
|
+
*/
|
345
|
+
onAfterChange?: (tab: TabData, index: number, from?: string) => void;
|
346
|
+
/**
|
347
|
+
* TabBar点击的事件
|
348
|
+
* @en Callback when TabBar is clicked
|
349
|
+
*/
|
350
|
+
onTabClick?: (tab: TabData, index: number, e: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
351
|
+
/**
|
352
|
+
* TabBar超出屏幕状态切换回调
|
353
|
+
* @en Calllback when TabBar is out of screen
|
354
|
+
*/
|
355
|
+
onTabBarOverflowChange?: (overflow: boolean) => void;
|
356
|
+
/**
|
357
|
+
* TabPane touchstart事件
|
358
|
+
* @en Touchstart event of TabPane
|
359
|
+
*/
|
360
|
+
onTouchStart?: (e: TouchEvent, index: number) => void | boolean;
|
361
|
+
/**
|
362
|
+
* TabPane touchmove事件
|
363
|
+
* @en Touchmove event of TabPane
|
364
|
+
*/
|
365
|
+
onTouchMove?: (e: TouchEvent, index: number) => void | boolean;
|
366
|
+
/**
|
367
|
+
* TabPane touchend / touchcancel事件
|
368
|
+
* @en Touchend / touchcancel event of TabPane
|
369
|
+
*/
|
370
|
+
onTouchEnd?: (e: TouchEvent, index: number) => void | boolean;
|
371
|
+
/**
|
372
|
+
* TabBar在溢出滚动时回调
|
373
|
+
* @en Callback when TabBar is on overflow scrolling
|
374
|
+
*/
|
375
|
+
onTabBarScroll?: (e: React.UIEvent<HTMLDivElement>) => void;
|
376
|
+
/**
|
377
|
+
* tabs 左右滑动时回调,用于监听滑动距离以做滑动同步交互
|
378
|
+
* @en Callback when tabs slides left and right, used to monitor the sliding distance for sliding synchronization interaction
|
379
|
+
*/
|
380
|
+
onDistanceChange?: (distance: number, wrapWidth: number, activeIndex: number) => void;
|
381
|
+
/**
|
382
|
+
* mode=scroll 时,触发滚动容器滚动回调
|
383
|
+
* @en When mode=scroll, trigger the scroll container scroll callback
|
384
|
+
*/
|
385
|
+
onScroll?: () => void;
|
386
|
+
/**
|
387
|
+
* 自行渲染TabBar的下划线
|
388
|
+
* @en Render the underline of the TabBar
|
389
|
+
*/
|
390
|
+
renderUnderline?: (underlineStyle: UnderlineStyle, showLine: boolean, lineRef: React.MutableRefObject<HTMLElement | null>) => ReactNode;
|
391
|
+
/**
|
392
|
+
* 自行渲染TabBar,常用于与Sticky配合使用
|
393
|
+
* @en Render the TabBar custom, often used in conjunction with Sticky
|
394
|
+
*/
|
395
|
+
renderTabBar?: (TabBar: ReactNode, TabBarProps: TabCellProps) => ReactNode;
|
396
|
+
/**
|
397
|
+
* 自行渲染TabBar的每一个item
|
398
|
+
* @en Render each item of the TabBar custom
|
399
|
+
*/
|
400
|
+
renderTabBarItem?: (tab: TabData, index: number, extra: {
|
401
|
+
active: boolean;
|
402
|
+
}) => ReactNode;
|
403
|
+
/**
|
404
|
+
* 自行渲染TabBar内部内容,当需要给 .@{prefix}-tab-cell 外层再嵌套一层dom时使用
|
405
|
+
* @en Render the inner content of the TabBar custom, used when need to nest another layer of DOM outside the .@{prefix}-tab-cell
|
406
|
+
*/
|
407
|
+
renderTabBarInner?: (Inner: ReactNode) => ReactNode;
|
408
|
+
/**
|
409
|
+
* tabBar间隙,type=line时有效
|
410
|
+
* @en TabBar gutter, valid when type=line
|
411
|
+
*/
|
412
|
+
tabBarGutter?: number | string;
|
413
|
+
/**
|
414
|
+
* TabBar两侧留白宽度,type=line时有效
|
415
|
+
* @en The width of the blank space on both sides of the TabBar, valid when type=line
|
416
|
+
*/
|
417
|
+
tabBarPadding?: number | string | {
|
418
|
+
left?: number | string;
|
419
|
+
right?: number | string;
|
420
|
+
};
|
421
|
+
/**
|
422
|
+
* TabBar下划线长度
|
423
|
+
* @en TabBar underline length
|
424
|
+
*/
|
425
|
+
underlineSize?: number | string;
|
426
|
+
/**
|
427
|
+
* TabBar下划线厚度
|
428
|
+
* @en TabBar underline thickness
|
429
|
+
*/
|
430
|
+
underlineThick?: number | string;
|
431
|
+
/**
|
432
|
+
* TabBar下划线内部样式,作用于 tab-cell-underline-inner
|
433
|
+
* @en Tabbar underline inner style, applied to tab-cell-underline-inner
|
434
|
+
*/
|
435
|
+
underlineInnerStyle?: React.CSSProperties;
|
436
|
+
/**
|
437
|
+
* 当前 TabBar 的触摸事件是否需要 stopPropagation
|
438
|
+
* @en Does the touch event of the current TabBar require stopPropagation
|
439
|
+
* @default true
|
440
|
+
*/
|
441
|
+
tabBarStopPropagation?: boolean;
|
442
|
+
}
|
443
|
+
export interface TabsRef {
|
444
|
+
/**
|
445
|
+
* 最外层元素 DOM
|
446
|
+
* @en The outermost element DOM
|
447
|
+
*/
|
448
|
+
dom: HTMLDivElement | null;
|
449
|
+
/**
|
450
|
+
* TabBar 内部子组件 Ref
|
451
|
+
* @en Ref of TabBar inner component
|
452
|
+
*/
|
453
|
+
bar: TabCellRef | null;
|
454
|
+
/**
|
455
|
+
* Tab Pane 内部子组件 Ref
|
456
|
+
* @en Ref of TabPane inner component
|
457
|
+
*/
|
458
|
+
pane: TabPaneRef | null;
|
459
|
+
/**
|
460
|
+
* 当前 TabBar 宽度是否已溢出
|
461
|
+
* @en Whether the current TabBar width has overflowed
|
462
|
+
*/
|
463
|
+
barOverflow: boolean;
|
464
|
+
/**
|
465
|
+
* 手动更新 Tabs 布局
|
466
|
+
* @en Manually update the Tabs layout
|
467
|
+
*/
|
468
|
+
updateLayout: () => void;
|
469
|
+
/**
|
470
|
+
* 非受控模式下手动切换 tab
|
471
|
+
* @en Manually switch tabs in uncontrolled mode
|
472
|
+
*/
|
473
|
+
changeIndex: (index: number, rightNow?: boolean) => void;
|
474
|
+
/**
|
475
|
+
* 滚动到指定 Tab,仅滚动监听模式下可用
|
476
|
+
* @en Scroll to the specified Tab, only available in scroll monitor mode
|
477
|
+
*/
|
478
|
+
scrollToIndex: (index: number, rightNow?: boolean) => void;
|
479
|
+
}
|
480
|
+
export interface TabCellProps extends Pick<TabsProps, 'tabs' | 'type' | 'onTabClick' | 'tabBarPosition' | 'tabBarArrange' | 'tabBarScroll' | 'tabBarFixed' | 'renderUnderline' | 'duration' | 'transitionDuration' | 'useCaterpillar' | 'tabBarExtra' | 'onTabBarOverflowChange' | 'tabBarGutter' | 'tabBarPadding' | 'underlineSize' | 'underlineThick' | 'underlineInnerStyle' | 'caterpillarMaxScale' | 'caterpillarProperty' | 'onTabBarScroll' | 'hideTabBarBeforeMounted' | 'tabBarScrollBezier' | 'tabBarScrollDuration' | 'tabBarScrollChance' | 'tabBarHasDivider' | 'tabBarStyle' | 'tabBarClass' | 'mode' | 'overflowThreshold' | 'showUnderline' | 'underlineAdaptive' | 'disabled' | 'renderTabBarItem' | 'renderTabBarInner' | 'translateZ'> {
|
481
|
+
/**
|
482
|
+
* 类前缀
|
483
|
+
* @en prefix classname
|
484
|
+
*/
|
485
|
+
prefixCls?: string;
|
486
|
+
/**
|
487
|
+
* 当前选中 Tab
|
488
|
+
* @en Currently selected Tab
|
489
|
+
*/
|
490
|
+
activeIndex: number;
|
491
|
+
/**
|
492
|
+
* 当前选中 Tab ref
|
493
|
+
* @en Currently selected Tab ref
|
494
|
+
*/
|
495
|
+
activeIndexRef: React.MutableRefObject<number>;
|
496
|
+
/**
|
497
|
+
* Tab 布局方向,横向 or 竖向
|
498
|
+
* @en Tab layout direction, horizontal or vertical
|
499
|
+
*/
|
500
|
+
tabDirection: 'horizontal' | 'vertical';
|
501
|
+
/**
|
502
|
+
* 修改选中 Tab
|
503
|
+
* @en Modify selected Tab
|
504
|
+
*/
|
505
|
+
changeIndex: (newIndex: number, from?: string) => void;
|
506
|
+
/**
|
507
|
+
* 外层容器宽度
|
508
|
+
* @en Wrapper container width
|
509
|
+
*/
|
510
|
+
wrapWidth: number;
|
511
|
+
/**
|
512
|
+
* 外层容器高度
|
513
|
+
* @en Wrapper container height
|
514
|
+
*/
|
515
|
+
wrapHeight: number;
|
516
|
+
/**
|
517
|
+
* TabBar是否启用过渡效果
|
518
|
+
* @en Whether the TabBar enables transition effects
|
519
|
+
*/
|
520
|
+
cellTrans: boolean;
|
521
|
+
/**
|
522
|
+
* 手指滑动距离
|
523
|
+
* @en Finger sliding distance
|
524
|
+
*/
|
525
|
+
distance: number;
|
526
|
+
/**
|
527
|
+
* 下划线已滑动的距离
|
528
|
+
* @en The distance the underline has been swiped
|
529
|
+
*/
|
530
|
+
jumpingDis: number;
|
531
|
+
/**
|
532
|
+
* 当前 TabBar 的触摸事件是否需要 stopPropagation
|
533
|
+
* @en Does the touch event of the current TabBar require stopPropagation
|
534
|
+
*/
|
535
|
+
tabBarStopPropagation: boolean;
|
536
|
+
}
|
537
|
+
export interface TabCellRef {
|
538
|
+
/**
|
539
|
+
* 外层元素 DOM
|
540
|
+
* @en Outer element DOM
|
541
|
+
*/
|
542
|
+
dom: HTMLDivElement | null;
|
543
|
+
/**
|
544
|
+
* 当前 TabBar 宽度是否已溢出
|
545
|
+
* @en Whether the current TabBar width has overflowed
|
546
|
+
*/
|
547
|
+
hasOverflow: boolean;
|
548
|
+
/**
|
549
|
+
* 滚动 bar 到指定位置,tabs 上下布局时是以 x 轴滚动,左右布局时以 y 轴滚动
|
550
|
+
* @en Scroll the bar to the specified position, the tabs are scrolled on the x-axis when the tabs are laid out up and down, and the y-axis is scrolled when the tabs are laid out left and right
|
551
|
+
*/
|
552
|
+
scrollTo: (position: number, rightNow?: boolean) => void;
|
553
|
+
/**
|
554
|
+
* 滚动 bar 使当前选中item到屏幕中间
|
555
|
+
* @en Scroll the bar to bring the currently selected item to the middle of the screen
|
556
|
+
*/
|
557
|
+
scrollToCenter: (rightNow?: boolean) => void;
|
558
|
+
/**
|
559
|
+
* 触发毛毛虫动画
|
560
|
+
* @en Trigger caterpillar animation
|
561
|
+
*/
|
562
|
+
setCaterpillarAnimate: (ratio?: number) => void;
|
563
|
+
/**
|
564
|
+
* 重新计算下划线样式
|
565
|
+
* @en Recalculate underline style
|
566
|
+
*/
|
567
|
+
resetUnderlineStyle: () => void;
|
568
|
+
/**
|
569
|
+
* 强制更新 tab-cell
|
570
|
+
* @en Force update tab-cell
|
571
|
+
*/
|
572
|
+
updateLayout: () => void;
|
573
|
+
}
|
574
|
+
export interface TabPaneProps extends Pick<TabsProps, 'duration' | 'transitionDuration' | 'lazyloadCount' | 'hideContentStyle' | 'renderHideContent' | 'mode' | 'tabPaneClass' | 'tabPaneStyle' | 'tabPaneExtra' | 'getScrollContainer' | 'scrollThrottle' | 'scrollOffset' | 'goLastWhenScrollBottom' | 'scrollVertical' | 'translateZ' | 'fullScreen' | 'autoHeight' | 'onScroll' | 'swipeEnergySaving'> {
|
575
|
+
prefixCls?: string;
|
576
|
+
panes: ReactNodeArray;
|
577
|
+
activeIndex: number;
|
578
|
+
activeIndexRef: React.MutableRefObject<number>;
|
579
|
+
tabDirection: 'horizontal' | 'vertical';
|
580
|
+
distance: number;
|
581
|
+
wrapWidth: number;
|
582
|
+
wrapHeight: number;
|
583
|
+
handlePaneTouchEnd: (e: any) => void;
|
584
|
+
paneTrans: boolean;
|
585
|
+
swipeable: boolean;
|
586
|
+
changeIndex: (newIndex: number, from?: string) => void;
|
587
|
+
rtlRatio: number;
|
588
|
+
}
|
589
|
+
export interface TabPaneRef {
|
590
|
+
/**
|
591
|
+
* 外层元素 DOM
|
592
|
+
* @en Outer element DOM
|
593
|
+
*/
|
594
|
+
dom: HTMLDivElement | null;
|
595
|
+
/**
|
596
|
+
* 获取当前 transitionDuration
|
597
|
+
* @en Get the current transitionDuration
|
598
|
+
*/
|
599
|
+
getTransition: () => number;
|
600
|
+
/**
|
601
|
+
* 滚动到指定 Tab,仅滚动监听模式下可用
|
602
|
+
* @en Scroll to the specified Tab, only available in scroll monitor mode
|
603
|
+
*/
|
604
|
+
scrollToIndex: (index: number, rightNow?: boolean) => void;
|
605
|
+
/**
|
606
|
+
* autoHeight=true时,更新当前tabpane高度
|
607
|
+
* @en Update the current tabpane height, which takes effect when autoHeight=true
|
608
|
+
*/
|
609
|
+
setCurrentHeight: () => void;
|
610
|
+
}
|
611
|
+
export interface OffsetRect {
|
612
|
+
left: number;
|
613
|
+
top: number;
|
614
|
+
width: number;
|
615
|
+
height: number;
|
616
|
+
}
|
617
|
+
export interface TabCellUnderlineProps extends Pick<TabCellProps, 'useCaterpillar' | 'distance' | 'tabDirection' | 'underlineInnerStyle' | 'cellTrans' | 'duration' | 'activeIndex' | 'wrapWidth' | 'wrapHeight' | 'jumpingDis' | 'caterpillarMaxScale' | 'caterpillarProperty' | 'translateZ' | 'underlineSize' | 'underlineThick' | 'renderUnderline' | 'underlineAdaptive'> {
|
618
|
+
prefix: string;
|
619
|
+
showLine: boolean;
|
620
|
+
getTabRect: (index: number) => {
|
621
|
+
left: number;
|
622
|
+
width: number;
|
623
|
+
};
|
624
|
+
getTabCenterLeft: (index: number) => number;
|
625
|
+
}
|
626
|
+
export interface TabCellUnderlineRef {
|
627
|
+
setCaterpillarAnimate: (ratio?: number) => void;
|
628
|
+
resetUnderlineStyle: () => void;
|
629
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
@@ -0,0 +1,14 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
export * from './type';
|
3
|
+
declare const _default: import("react").ForwardRefExoticComponent<import("./type").TagProps & import("react").RefAttributes<import("./type").TagRef>> & {
|
4
|
+
List: import("react").ForwardRefExoticComponent<import("./type").TagListProps<import("./type").TagProps & import("react").RefAttributes<import("./type").TagRef>> & import("react").RefAttributes<import("./type").TagListRef>>;
|
5
|
+
};
|
6
|
+
/**
|
7
|
+
* 标签组件,支持标签和标签组。
|
8
|
+
* @en Tag component, supports tags and tag groups.
|
9
|
+
* @type 信息展示
|
10
|
+
* @type_en Data Display
|
11
|
+
* @name 标签
|
12
|
+
* @name_en Tag
|
13
|
+
*/
|
14
|
+
export default _default;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { componentWrapper } from '@arco-design/mobile-utils';
|
2
|
+
import { componentGenerator } from './list';
|
3
|
+
import { Tag } from './tag';
|
4
|
+
export * from './type';
|
5
|
+
/**
|
6
|
+
* 标签列表,支持动态编辑标签
|
7
|
+
* @en Tag list, support dynamic editing of tags
|
8
|
+
*/
|
9
|
+
const List = componentGenerator(Tag);
|
10
|
+
/**
|
11
|
+
* 标签组件,支持标签和标签组。
|
12
|
+
* @en Tag component, supports tags and tag groups.
|
13
|
+
* @type 信息展示
|
14
|
+
* @type_en Data Display
|
15
|
+
* @name 标签
|
16
|
+
* @name_en Tag
|
17
|
+
*/
|
18
|
+
export default componentWrapper(Tag, {
|
19
|
+
List,
|
20
|
+
});
|
@@ -0,0 +1,3 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
import { TagListProps, TagListRef, TagProps, TagRef } from './type';
|
3
|
+
export declare function componentGenerator<P extends TagProps = TagProps, R extends TagRef = TagRef>(Comp: React.ForwardRefExoticComponent<P & React.RefAttributes<R>>): React.ForwardRefExoticComponent<TagListProps<P> & React.RefAttributes<TagListRef>>;
|