@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,526 @@
|
|
1
|
+
/**
|
2
|
+
* @type mixin-var
|
3
|
+
* @name GeneralMixinVars
|
4
|
+
* @name_en General Mixin
|
5
|
+
*/
|
6
|
+
/**
|
7
|
+
* 根据 base-font-size,设置单位尺寸为 rem
|
8
|
+
* @desc {en} set the unit size to rem based on base-font-size
|
9
|
+
* @param @property css属性名
|
10
|
+
* @param @property {en} css property
|
11
|
+
* @param @values css属性值,如果为复合属性,值可以用逗号分隔开
|
12
|
+
* @param @values {en} css property value, the values can be separated by commas when the style is composite
|
13
|
+
* @example
|
14
|
+
* ```
|
15
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
16
|
+
*
|
17
|
+
* .demo {
|
18
|
+
* .rem(font-size, 14);
|
19
|
+
* .rem(padding, 16, 0);
|
20
|
+
* }
|
21
|
+
* ```
|
22
|
+
*/
|
23
|
+
/**
|
24
|
+
* 根据 base-font-size,设置常规模式和 rtl 模式下单位尺寸为 rem
|
25
|
+
* @desc {en} set the unit size to rem for regular and RTL modes based on the base-font-size
|
26
|
+
* @param @property css属性名
|
27
|
+
* @param @property {en} css property
|
28
|
+
* @param @values css属性值,如果为复合属性,值可以用逗号分隔开
|
29
|
+
* @param @values {en} css property value, the values can be separated by commas when the style is composite
|
30
|
+
* @example
|
31
|
+
* ```
|
32
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
33
|
+
*
|
34
|
+
* .demo {
|
35
|
+
* .rem-with-rtl(font-size, 14);
|
36
|
+
* .rem-with-rtl(padding, 16, 0);
|
37
|
+
* }
|
38
|
+
* ```
|
39
|
+
*/
|
40
|
+
/**
|
41
|
+
* 当 less 变量 use-dark-mode=1 时,自定义暗黑模式样式规则
|
42
|
+
* @desc {en} Customize dark mode style rules when the less variable use-dark-mode=1.
|
43
|
+
* @param @rules 对应的暗黑模式规则
|
44
|
+
* @param @rules {en} Corresponding dark mode rules
|
45
|
+
* @example
|
46
|
+
* ```
|
47
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
48
|
+
*
|
49
|
+
* .demo {
|
50
|
+
* .use-dark-mode-query({
|
51
|
+
* background-color: #000;
|
52
|
+
* });
|
53
|
+
* }
|
54
|
+
* ```
|
55
|
+
*/
|
56
|
+
/**
|
57
|
+
* 为属性设置 arco 提供的 token 变量
|
58
|
+
* @desc {en} set the token variable provided by Arco for the attribute
|
59
|
+
* @param @property css属性名
|
60
|
+
* @param @property {en} css property
|
61
|
+
* @param @variables token变量名
|
62
|
+
* @param @variables {en} token variable name
|
63
|
+
* @param @preValues 复合属性css变量前缀
|
64
|
+
* @param @preValues {en} prefix for Compound Attribute CSS Variables
|
65
|
+
* @param @nextValues 复合属性css变量后缀
|
66
|
+
* @param @nextValues {en} suffix for Compound Attribute CSS Variables
|
67
|
+
* @example
|
68
|
+
* ```
|
69
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
70
|
+
*
|
71
|
+
* .demo {
|
72
|
+
* .use-var(background, primary-color);
|
73
|
+
* .use-var(border, primary-color, 1px solid);
|
74
|
+
* .use-var(border, cell-border-width, '', solid black);
|
75
|
+
* }
|
76
|
+
* ```
|
77
|
+
*/
|
78
|
+
/**
|
79
|
+
* 在常规模式和 rtl 模式下为属性设置 arco 提供的 token 变量
|
80
|
+
* @desc {en} set the token variable provided by Arco for the attribute in regular mode and RTL mode
|
81
|
+
* @param @property css 属性名
|
82
|
+
* @param @property {en} css property
|
83
|
+
* @param @variables token 变量名
|
84
|
+
* @param @variables {en} token variable name
|
85
|
+
* @param @preValues
|
86
|
+
* @param @preValues {en}
|
87
|
+
* @param @nextValues
|
88
|
+
* @param @nextValues {en}
|
89
|
+
* @example
|
90
|
+
* ```
|
91
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
92
|
+
*
|
93
|
+
* .demo {
|
94
|
+
* .use-var-with-rtl(margin-left, button-icon-text-gutter);
|
95
|
+
* }
|
96
|
+
* ```
|
97
|
+
*/
|
98
|
+
/**
|
99
|
+
* 设置涉及左右相关的属性名,在rtl模式下自动替换为相反的属性名
|
100
|
+
* @desc {en} set the property name related to left and right, and automatically replace it with the opposite attribute name in rtl mode
|
101
|
+
* @param @property css属性名
|
102
|
+
* @param @property {en} css property
|
103
|
+
* @param @value css属性值
|
104
|
+
* @param @value {en} css property value
|
105
|
+
* @param @rules 自定义的复写规则,默认重置为initial
|
106
|
+
* @param @rules {en} customized rewrite rules, default to initial
|
107
|
+
* @example
|
108
|
+
* ```
|
109
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
110
|
+
*
|
111
|
+
* .demo {
|
112
|
+
* .set-prop-with-rtl(right, auto);
|
113
|
+
* }
|
114
|
+
* ```
|
115
|
+
*/
|
116
|
+
/**
|
117
|
+
* 设置涉及左右相关的属性值,在rtl模式下自动替换为相反的属性值
|
118
|
+
* @desc {en} set the property value related to left and right, and automatically replace it with the opposite attribute value in rtl mode
|
119
|
+
* @param @property css属性名
|
120
|
+
* @param @property {en} css property
|
121
|
+
* @param @value css属性值
|
122
|
+
* @param @value {en} css property value
|
123
|
+
* @example
|
124
|
+
* ```
|
125
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
126
|
+
*
|
127
|
+
* .demo {
|
128
|
+
* .set-value-with-rtl(text-align, left);
|
129
|
+
* }
|
130
|
+
* ```
|
131
|
+
*/
|
132
|
+
/**
|
133
|
+
* 在 rtl 模式下,自定义样式规则
|
134
|
+
* @desc {en} custom style in RTL mode
|
135
|
+
* @param @rules 对应的rtl模式下的规则
|
136
|
+
* @param @rules {en} property with rtl
|
137
|
+
* @example
|
138
|
+
* ```
|
139
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
140
|
+
*
|
141
|
+
* .demo {
|
142
|
+
* .style-with-rtl({
|
143
|
+
* transform: scale(-1);
|
144
|
+
* });
|
145
|
+
* }
|
146
|
+
* ```
|
147
|
+
*/
|
148
|
+
/**
|
149
|
+
* 0.5px 的边框线
|
150
|
+
* @desc {en} a border line of 0.5 pixels
|
151
|
+
* @param @color 使用 css 变量为线设置颜色
|
152
|
+
* @param @color {en} set border-color by CSS variable
|
153
|
+
* @param @direction 边框方向,默认为全部方向
|
154
|
+
* @param @direction {en} border direction,default to all directions.
|
155
|
+
* @example
|
156
|
+
* ```
|
157
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
158
|
+
*
|
159
|
+
* .demo {
|
160
|
+
* .hairline-var(line-color);
|
161
|
+
* .hairline-var(line-color, top);
|
162
|
+
* }
|
163
|
+
* ```
|
164
|
+
*/
|
165
|
+
/**
|
166
|
+
* 字体加粗
|
167
|
+
* @desc {en} font bold
|
168
|
+
* @param @color 使用 css 变量设置加粗的字体颜色,默认继承文字当前颜色
|
169
|
+
* @param @color {en} set color by CSS variable
|
170
|
+
* @param @stroke 字体粗细,默认 0.3px
|
171
|
+
* @param @stroke {en} font weight, default 0.3 pixel
|
172
|
+
* @example
|
173
|
+
* ```
|
174
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
175
|
+
*
|
176
|
+
* .demo {
|
177
|
+
* .text-medium-var();
|
178
|
+
* .text-medium-var(primary-color, 0.5PX);
|
179
|
+
* }
|
180
|
+
* ```
|
181
|
+
*/
|
182
|
+
/**
|
183
|
+
* 1px 边框
|
184
|
+
* @desc {en} 1 pixel border
|
185
|
+
* @param @direction 边框方向
|
186
|
+
* @param @direction {en} border direction
|
187
|
+
* @param @borderColor 使用 css 变量设置边框颜色
|
188
|
+
* @param @borderColor {en} set border-color by CSS variable
|
189
|
+
* @param @borderRadius border-radius,默认为 0
|
190
|
+
* @param @borderRadius {en} border-radius, default value is 0
|
191
|
+
* @param @borderWidth border-width,默认为 1px
|
192
|
+
* @param @borderWidth {en} border-width, default value is 1 pixel
|
193
|
+
* @param @borderStyle border-style,默认为 solid
|
194
|
+
* @param @borderStyle {en} border-style, default value is solid
|
195
|
+
* @example
|
196
|
+
* ```
|
197
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
198
|
+
*
|
199
|
+
* .demo {
|
200
|
+
* .onepx-border-var(top, line-color);
|
201
|
+
* .onepx-border-var(all, line-color, 2, 2px, dashed);
|
202
|
+
* }
|
203
|
+
* ```
|
204
|
+
*/
|
205
|
+
/**
|
206
|
+
* 元素右下 0.5px 边框
|
207
|
+
* @desc {en} 0.5px border on bottom right
|
208
|
+
* @param @color 使用 css 变量设置边框颜色
|
209
|
+
* @param @color {en} set border-color by CSS variable
|
210
|
+
* @example
|
211
|
+
* ```
|
212
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
213
|
+
*
|
214
|
+
* .demo {
|
215
|
+
* .hairline-bottom-right-var(line-color);
|
216
|
+
* }
|
217
|
+
* ```
|
218
|
+
*/
|
219
|
+
/**
|
220
|
+
* 元素左上 0.5px 边框
|
221
|
+
* @desc {en} 0.5px border on top left
|
222
|
+
* @param @color 使用 css 变量设置边框颜色
|
223
|
+
* @param @color {en} set border-color by CSS variable
|
224
|
+
* @example
|
225
|
+
* ```
|
226
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
227
|
+
*
|
228
|
+
* .demo {
|
229
|
+
* .hairline-top-left-var(line-color);
|
230
|
+
* }
|
231
|
+
* ```
|
232
|
+
*/
|
233
|
+
/**
|
234
|
+
* 设置 Loading 组件颜色
|
235
|
+
* @desc {en} set Loading component color
|
236
|
+
* @param @color 使用 css 变量设置颜色
|
237
|
+
* @param @color {en} set color by CSS variable
|
238
|
+
* @example
|
239
|
+
* ```
|
240
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
241
|
+
*
|
242
|
+
* .demo {
|
243
|
+
* .set-loading-color-var(primary-color);
|
244
|
+
* }
|
245
|
+
* ```
|
246
|
+
*/
|
247
|
+
/**
|
248
|
+
* 设置最小字号
|
249
|
+
* @desc {en} set minimum font-size
|
250
|
+
* @param @size 使用 css 变量设置最小字号
|
251
|
+
* @param @size {en} set minimum font-size by CSS variable
|
252
|
+
* @param @scale 设置最小字号下文字缩放比例,默认为 0.9
|
253
|
+
* @param @scale {en} set minimum font-size down text scale,default value is 0.9
|
254
|
+
* @example
|
255
|
+
* ```
|
256
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
257
|
+
*
|
258
|
+
* .demo {
|
259
|
+
* .set-font-size-var(badge-font-size);
|
260
|
+
* .set-font-size-var(badge-font-size, 0.5);
|
261
|
+
* }
|
262
|
+
* ```
|
263
|
+
*/
|
264
|
+
/**
|
265
|
+
* 设置 content-box 盒模型下元素宽度
|
266
|
+
* @desc {en} set box width in content-box
|
267
|
+
* @param @property css 属性名
|
268
|
+
* @param @property {en} css property
|
269
|
+
* @param @width 元素总宽度,包含内边距
|
270
|
+
* @param @width element width, include padding
|
271
|
+
* @param @padding-left 左侧内边距
|
272
|
+
* @param @padding-left {en} padding-left
|
273
|
+
* @param @padding-right 右侧内边距
|
274
|
+
* @param @padding-right {en} padding-right
|
275
|
+
* @example
|
276
|
+
* ```
|
277
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
278
|
+
*
|
279
|
+
* .demo {
|
280
|
+
* .set-content-box-width-var(min-width, badge-text-width, badge-text-padding-left, badge-text-padding-right);
|
281
|
+
* }
|
282
|
+
* ```
|
283
|
+
*/
|
284
|
+
/**
|
285
|
+
* 设置 Steps 组件颜色
|
286
|
+
* @desc {en} set Steps component color
|
287
|
+
* @param @color 使用 css 变量设置主颜色
|
288
|
+
* @param @color {en} set main step color by CSS variable
|
289
|
+
* @param @finish-color 使用 css 变量设置已完成步骤的颜色
|
290
|
+
* @param @finish-color {en} set finished step color by CSS variable
|
291
|
+
* @example
|
292
|
+
* ```
|
293
|
+
* @import '@arco-design/mobile-react/style/mixin.less';
|
294
|
+
*
|
295
|
+
* .demo {
|
296
|
+
* .set-steps-color-var(primary-color, lighter-primary-color);
|
297
|
+
* }
|
298
|
+
* ```
|
299
|
+
*/
|
300
|
+
/**
|
301
|
+
* @type mixin
|
302
|
+
* @name GeneralMixin
|
303
|
+
* @name_en General Mixin
|
304
|
+
*/
|
305
|
+
/**
|
306
|
+
* 文本溢出,支持1行/多行文本
|
307
|
+
* @desc {en} text overflow, support single line or multiple lines
|
308
|
+
* @param @lines 最大展示行数,默认为1行
|
309
|
+
* @param @lines {en} allows limiting of the contents of a block to the specified number of lines, default to 1
|
310
|
+
* @example
|
311
|
+
* ```
|
312
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
313
|
+
* .demo1{
|
314
|
+
* .text-overflow();
|
315
|
+
* }
|
316
|
+
* .demo2 {
|
317
|
+
* .text-overflow(2);
|
318
|
+
* }
|
319
|
+
* ```
|
320
|
+
*/
|
321
|
+
/**
|
322
|
+
* 禁用用户选择文本
|
323
|
+
* @desc {en} disable user selection of text
|
324
|
+
* @example
|
325
|
+
* ```
|
326
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
327
|
+
*
|
328
|
+
* .demo {
|
329
|
+
* .noselect();
|
330
|
+
* }
|
331
|
+
*/
|
332
|
+
/**
|
333
|
+
* 全屏布局
|
334
|
+
* @desc {en} full-screen layout
|
335
|
+
* @example
|
336
|
+
* ```
|
337
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
338
|
+
*
|
339
|
+
* .demo {
|
340
|
+
* .full-screen();
|
341
|
+
* }
|
342
|
+
*/
|
343
|
+
/**
|
344
|
+
* 文本加粗,兼容安卓设备
|
345
|
+
* @desc {en} text-bold, compatible with Android devices
|
346
|
+
* @param @color 文本颜色,默认为currentColor
|
347
|
+
* @param @color {en} text color, default to currentColor
|
348
|
+
* @param @stroke 文本字符笔触宽度,默认为0.3PX
|
349
|
+
* @param @stroke {en} the width of strokes for text characters, default to 0.3PX
|
350
|
+
* @example
|
351
|
+
* ```
|
352
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
353
|
+
*
|
354
|
+
* .demo1 {
|
355
|
+
* .text-medium();
|
356
|
+
* }
|
357
|
+
* .demo2 {
|
358
|
+
* .text-medium(#fff, 0.5px);
|
359
|
+
* }
|
360
|
+
*/
|
361
|
+
/**
|
362
|
+
* 消除文本加粗样式,兼容安卓设备
|
363
|
+
* @desc {en} remove text-bold, compatible with Android devices
|
364
|
+
* @example
|
365
|
+
* ```
|
366
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
367
|
+
*
|
368
|
+
* .demo {
|
369
|
+
* .remove-text-medium();
|
370
|
+
* }
|
371
|
+
*/
|
372
|
+
/**
|
373
|
+
* 1px(物理像素)边框
|
374
|
+
* @desc {en} a border line of 1 pixel
|
375
|
+
* @param @direction 边框方向
|
376
|
+
* @param @direction {en} border direction
|
377
|
+
* @param @borderColor 边框颜色,默认inherit
|
378
|
+
* @param @borderColor {en} border color, default to inherit
|
379
|
+
* @param @borderRadius 边框圆角,默认0
|
380
|
+
* @param @borderRadius {en} border radius, default to 0
|
381
|
+
* @param @borderWidth 边框宽度,默认1px
|
382
|
+
* @param @borderWidth {en} border width, default to 1px
|
383
|
+
* @param @borderStyle 边框样式,默认solid
|
384
|
+
* @param @borderStyle {en} border style, default to solid
|
385
|
+
* @example
|
386
|
+
* ```
|
387
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
388
|
+
*
|
389
|
+
* .demo {
|
390
|
+
* .onepx-border();
|
391
|
+
* }
|
392
|
+
*/
|
393
|
+
/**
|
394
|
+
* 移除0.5px的边框线
|
395
|
+
* @desc {en} remove border line of 0.5 pixels
|
396
|
+
* @param @direction 边框方向,默认为全部方向
|
397
|
+
* @param @direction {en} border direction,default to all directions.
|
398
|
+
* @example
|
399
|
+
* ```
|
400
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
401
|
+
*
|
402
|
+
* .demo {
|
403
|
+
* .remove-hairline(all);
|
404
|
+
* }
|
405
|
+
* ```
|
406
|
+
*/
|
407
|
+
/**
|
408
|
+
* 元素右下 0.5px border
|
409
|
+
* @desc {en} 0.5px border on bottom right
|
410
|
+
* @param @color 边框颜色
|
411
|
+
* @param @color {en} border-color
|
412
|
+
* @example
|
413
|
+
* ```
|
414
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
415
|
+
*
|
416
|
+
* .demo {
|
417
|
+
* .hairline-bottom-right(#000);
|
418
|
+
* }
|
419
|
+
* ```
|
420
|
+
*/
|
421
|
+
/**
|
422
|
+
* 元素左上 0.5px border
|
423
|
+
* @desc {en} 0.5px border on top left
|
424
|
+
* @param @color 边框颜色
|
425
|
+
* @param @color {en} border-color
|
426
|
+
* @example
|
427
|
+
* ```
|
428
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
429
|
+
*
|
430
|
+
* .demo {
|
431
|
+
* .hairline-top-left(#000);
|
432
|
+
* }
|
433
|
+
* ```
|
434
|
+
*/
|
435
|
+
/**
|
436
|
+
* 输入涉及左右相关的属性名,获取方向相反的属性名,可用于处理rtl模式
|
437
|
+
* @desc {en} get the property name in the opposite direction of the input property name, which can be used to process rtl mode
|
438
|
+
* @param @origin-property css属性名
|
439
|
+
* @param @origin-property {en} css property
|
440
|
+
* @example
|
441
|
+
* ```
|
442
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
443
|
+
*
|
444
|
+
* .demo {
|
445
|
+
* @a: .prop-with-rtl(margin-left)[@property-name]; // @a 变量值为margin-right
|
446
|
+
* }
|
447
|
+
* ```
|
448
|
+
*/
|
449
|
+
/**
|
450
|
+
* 设置Loading组件颜色
|
451
|
+
* @desc {en} set Loading component color
|
452
|
+
* @param @color 颜色
|
453
|
+
* @param @color {en} color
|
454
|
+
* @example
|
455
|
+
* ```
|
456
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
457
|
+
*
|
458
|
+
* .demo {
|
459
|
+
* .set-loading-color(#000);
|
460
|
+
* }
|
461
|
+
* ```
|
462
|
+
*/
|
463
|
+
/**
|
464
|
+
* 设置最小字号
|
465
|
+
* @desc {en} set minimum font-size
|
466
|
+
* @param @size 最小字号
|
467
|
+
* @param @size {en} minimum font-size
|
468
|
+
* @example
|
469
|
+
* ```
|
470
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
471
|
+
*
|
472
|
+
* .demo {
|
473
|
+
* .set-font-size(10px);
|
474
|
+
* }
|
475
|
+
* ```
|
476
|
+
*/
|
477
|
+
/**
|
478
|
+
* 设置content-box盒模型下元素宽度
|
479
|
+
* @desc {en} set box width in content-box
|
480
|
+
* @param @property css属性名
|
481
|
+
* @param @property {en} css property
|
482
|
+
* @param @width 元素总宽度,包含内边距
|
483
|
+
* @param @width element width, include padding
|
484
|
+
* @param @padding-left 左侧内边距
|
485
|
+
* @param @padding-left {en} padding-left
|
486
|
+
* @param @padding-right 右侧内边距
|
487
|
+
* @param @padding-right {en} padding-right
|
488
|
+
* @example
|
489
|
+
* ```
|
490
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
491
|
+
*
|
492
|
+
* .demo {
|
493
|
+
* .set-content-box-width(min-width, 300px, 10px, 10px);
|
494
|
+
* }
|
495
|
+
* ```
|
496
|
+
*/
|
497
|
+
/**
|
498
|
+
* 设置Steps组件当前步骤主要颜色,已完成步骤颜色自动计算为当前步骤颜色透明度10%
|
499
|
+
* @desc {en} set Steps component color
|
500
|
+
* @param @color 当前步骤背景、标题文本颜色
|
501
|
+
* @param @color {en} color of current step background and title text
|
502
|
+
* @param @finish-color 已完成步骤背景色
|
503
|
+
* @param @finish-color {en} color of finished step background
|
504
|
+
* @example
|
505
|
+
* ```
|
506
|
+
* @import '@arco-design/mobile-utils/style/mixin.less';
|
507
|
+
*
|
508
|
+
* .demo {
|
509
|
+
* .set-steps-color(#FFB400);
|
510
|
+
* }
|
511
|
+
* ```
|
512
|
+
*/
|
513
|
+
/***************************************************
|
514
|
+
* *
|
515
|
+
* Arco Theme Style *
|
516
|
+
* *
|
517
|
+
***************************************************/
|
518
|
+
.arco-theme-dark .process-bg-color-with-config,
|
519
|
+
.arco-theme-dark .process-custom-icon-bg-color-with-config {
|
520
|
+
color: rgba(255, 255, 255, 0.9) ;
|
521
|
+
}
|
522
|
+
.arco-theme-dark .wait-custom-icon-bg-color-with-config {
|
523
|
+
background: #2e2e30 ;
|
524
|
+
color: #929293 ;
|
525
|
+
}
|
526
|
+
/********************* End *************************/
|
@@ -0,0 +1,30 @@
|
|
1
|
+
@import '../../../style/mixin.less';
|
2
|
+
|
3
|
+
.@{prefix}-date-picker {
|
4
|
+
|
5
|
+
}
|
6
|
+
|
7
|
+
/***************************************************
|
8
|
+
* *
|
9
|
+
* Arco Theme Style *
|
10
|
+
* *
|
11
|
+
***************************************************/
|
12
|
+
& when (@use-dark-mode = 1) {
|
13
|
+
|
14
|
+
.process-bg-color-with-config,
|
15
|
+
.process-custom-icon-bg-color-with-config {
|
16
|
+
@{arco-dark-mode-selector} & {
|
17
|
+
.use-var(color, dark-steps-process-with-config-item-icon-color);
|
18
|
+
.use-var(color, dark-steps-process-with-config-item-icon-color);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
.wait-custom-icon-bg-color-with-config {
|
22
|
+
@{arco-dark-mode-selector} & {
|
23
|
+
.use-var(background, dark-steps-wait-icon-num-background);
|
24
|
+
.use-var(color, dark-sub-info-font-color);
|
25
|
+
.use-var(background, dark-steps-wait-icon-num-background);
|
26
|
+
.use-var(color, dark-sub-info-font-color);
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
/********************* End *************************/
|
@@ -0,0 +1,114 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { PickerProps } from '../picker';
|
3
|
+
import { PickerData } from '../picker-view';
|
4
|
+
export declare type ItemType = 'year' | 'month' | 'date' | 'hour' | 'minute' | 'second';
|
5
|
+
export interface IDateObj {
|
6
|
+
/**
|
7
|
+
* 年
|
8
|
+
* @en year
|
9
|
+
* */
|
10
|
+
year: number;
|
11
|
+
/**
|
12
|
+
* 月
|
13
|
+
* @en month
|
14
|
+
* */
|
15
|
+
month: number;
|
16
|
+
/**
|
17
|
+
* 日
|
18
|
+
* @en date
|
19
|
+
* */
|
20
|
+
date: number;
|
21
|
+
/**
|
22
|
+
* 时
|
23
|
+
* @en hour
|
24
|
+
* */
|
25
|
+
hour: number;
|
26
|
+
/**
|
27
|
+
* 分
|
28
|
+
* @en minute
|
29
|
+
*/
|
30
|
+
minute: number;
|
31
|
+
/**
|
32
|
+
* 秒
|
33
|
+
* @en second
|
34
|
+
* */
|
35
|
+
second: number;
|
36
|
+
}
|
37
|
+
export declare type mode = 'date' | 'time' | 'datetime';
|
38
|
+
export interface DatePickerProps extends Omit<PickerProps, 'data' | 'cascade' | 'cols' | 'value' | 'onChange' | 'onPickerChange' | 'onOk' | 'renderLinkedContainer'> {
|
39
|
+
/**
|
40
|
+
* 点击选中时执行的回调
|
41
|
+
* @en Callback when clicking OK
|
42
|
+
*/
|
43
|
+
onOk?: (timestamp: number, obj: IDateObj) => void;
|
44
|
+
/**
|
45
|
+
* 当前选中的时间,timestamp
|
46
|
+
* @en The currently selected time, timestamp
|
47
|
+
* @default Date.now()
|
48
|
+
*/
|
49
|
+
currentTs?: number;
|
50
|
+
/**
|
51
|
+
* 选中后的回调
|
52
|
+
* @en Callback when value is changed
|
53
|
+
*/
|
54
|
+
onChange?: (timestamp: number, obj: IDateObj) => void;
|
55
|
+
/**
|
56
|
+
* 每列数据选择变化后的回调函数
|
57
|
+
* @en The callback function after each column data selection changes
|
58
|
+
*/
|
59
|
+
onValueChange?: (timestamp: number, obj: IDateObj, index: number) => void;
|
60
|
+
/**
|
61
|
+
* 可选列类型,date - 年月日,time - 时分秒,datetime - 年月日时分秒
|
62
|
+
* @en Optional column type, date means year, month and day, time means hour, minute and second, datetime means year, month, day, hour, minute and second
|
63
|
+
* @default "datetime"
|
64
|
+
*/
|
65
|
+
mode?: mode;
|
66
|
+
/**
|
67
|
+
* 可选列数组
|
68
|
+
* @en optional column list
|
69
|
+
* @default []
|
70
|
+
*/
|
71
|
+
typeArr?: ItemType[];
|
72
|
+
/**
|
73
|
+
* 最小可选日期,timestamp
|
74
|
+
* @en Minimum selectable date, timestamp
|
75
|
+
* @default 当前时间的前十年
|
76
|
+
* @default_en 10 years ago from the current time
|
77
|
+
*/
|
78
|
+
minTs?: number;
|
79
|
+
/**
|
80
|
+
* 最大可选日期,timestamp
|
81
|
+
* @en Maximum selectable date, timestamp
|
82
|
+
* @default 当前时间的后十年
|
83
|
+
* @default_en Next decade from current time
|
84
|
+
*/
|
85
|
+
maxTs?: number;
|
86
|
+
/**
|
87
|
+
* 是否使用 UTC 时间
|
88
|
+
* @en Whether to use UTC
|
89
|
+
* @default false
|
90
|
+
*/
|
91
|
+
useUTC?: boolean;
|
92
|
+
/**
|
93
|
+
* 各可选项展示的格式化方法,参数type为ItemTypes,参数value为当前行的值,返回展示的文字
|
94
|
+
* @en The formatting method of each optional item, the parameter type is ItemTypes, the parameter value is the value of the current row, and the displayed text is returned.
|
95
|
+
* @default (value: number) => (value < 10 ? \`0${value}\` : String(value))
|
96
|
+
*/
|
97
|
+
formatter?: (value: number, type: ItemType) => string;
|
98
|
+
/**
|
99
|
+
* 可选择行过滤方法,参数type为ItemType,参数value为当前行的值,返回true表示该行可选择
|
100
|
+
* @en Row filtering method, the parameter type is ItemType, the parameter value is the value of the current row, and returns true to indicate that the row can be selected
|
101
|
+
* @default () => true
|
102
|
+
*/
|
103
|
+
valueFilter?: (type: ItemType, value: number) => boolean;
|
104
|
+
/**
|
105
|
+
* 选择器列表项干预,可插入自定义选项
|
106
|
+
* @en Selector list item intervention to insert custom options.
|
107
|
+
*/
|
108
|
+
columnsProcessor?: (columns: PickerData[][], currentDateObj: IDateObj) => PickerData[][];
|
109
|
+
/**
|
110
|
+
* 将选择器的展现隐藏状态及选中值的展示与某个容器关联,传入后将同时渲染该容器和选择器组件,此时选择器组件的 visible 和 onHide 属性可不传,点击该容器会唤起选择器
|
111
|
+
* @en Associate the hidden state of the picker and the display of the selected value with a container. After passing it in, the container and the picker component will be rendered at the same time. At this time, the visible and onHide attributes of the picker component are optional values. Clicking the container will evoke the picker
|
112
|
+
*/
|
113
|
+
renderLinkedContainer?: (currentTs: number, itemTypes: ItemType[]) => ReactNode;
|
114
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|