shineout 1.12.2 → 1.12.3
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/css/DatePicker/Month.js +0 -6
- package/css/DatePicker/Quarter.js +1 -7
- package/css/DatePicker/Year.js +0 -6
- package/css/index.d.ts +1 -1
- package/css/index.js +1 -1
- package/dist/shineout.js +367 -925
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/es/DatePicker/Month.js +0 -6
- package/es/DatePicker/Quarter.js +1 -7
- package/es/DatePicker/Year.js +0 -6
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/esm/@types/common.d.ts +47 -0
- package/esm/@types/common.js +1 -0
- package/esm/Alert/Props.d.ts +85 -0
- package/esm/Alert/Props.js +1 -0
- package/esm/Alert/index.d.ts +26 -0
- package/esm/Alert/index.js +165 -0
- package/esm/Alert/interface.d.ts +1 -0
- package/esm/Alert/interface.js +1 -0
- package/esm/Alert/styles/alert.less +143 -0
- package/esm/Alert/styles/index.d.ts +2 -0
- package/esm/Alert/styles/index.js +4 -0
- package/esm/AnimationList/AbsoluteList.d.ts +3 -0
- package/esm/AnimationList/AbsoluteList.js +373 -0
- package/esm/AnimationList/LazyList.d.ts +26 -0
- package/esm/AnimationList/LazyList.js +163 -0
- package/esm/AnimationList/List.d.ts +10 -0
- package/esm/AnimationList/List.js +46 -0
- package/esm/AnimationList/Props.d.ts +61 -0
- package/esm/AnimationList/Props.js +1 -0
- package/esm/AnimationList/index.d.ts +4 -0
- package/esm/AnimationList/index.js +27 -0
- package/esm/AnimationList/styles/index.d.ts +2 -0
- package/esm/AnimationList/styles/index.js +4 -0
- package/esm/Breadcrumb/Props.d.ts +81 -0
- package/esm/Breadcrumb/Props.js +1 -0
- package/esm/Breadcrumb/index.d.ts +17 -0
- package/esm/Breadcrumb/index.js +91 -0
- package/esm/Breadcrumb/interface.d.ts +1 -0
- package/esm/Breadcrumb/interface.js +1 -0
- package/esm/Breadcrumb/styles/breadcrumb.less +52 -0
- package/esm/Breadcrumb/styles/index.d.ts +2 -0
- package/esm/Breadcrumb/styles/index.js +4 -0
- package/esm/Button/Button.d.ts +13 -0
- package/esm/Button/Button.js +113 -0
- package/esm/Button/Group.d.ts +10 -0
- package/esm/Button/Group.js +48 -0
- package/esm/Button/Once.d.ts +10 -0
- package/esm/Button/Once.js +43 -0
- package/esm/Button/Props.d.ts +153 -0
- package/esm/Button/Props.js +1 -0
- package/esm/Button/index.d.ts +1 -0
- package/esm/Button/index.js +1 -0
- package/esm/Button/interface.d.ts +1 -0
- package/esm/Button/interface.js +1 -0
- package/esm/Button/styles/button.less +389 -0
- package/esm/Button/styles/index.d.ts +2 -0
- package/esm/Button/styles/index.js +4 -0
- package/esm/Card/Accordion.d.ts +20 -0
- package/esm/Card/Accordion.js +67 -0
- package/esm/Card/Body.d.ts +6 -0
- package/esm/Card/Body.js +48 -0
- package/esm/Card/Card.d.ts +4 -0
- package/esm/Card/Card.js +106 -0
- package/esm/Card/Footer.d.ts +5 -0
- package/esm/Card/Footer.js +35 -0
- package/esm/Card/Header.d.ts +7 -0
- package/esm/Card/Header.js +48 -0
- package/esm/Card/Props.d.ts +196 -0
- package/esm/Card/Props.js +79 -0
- package/esm/Card/Submit.d.ts +8 -0
- package/esm/Card/Submit.js +52 -0
- package/esm/Card/context.d.ts +4 -0
- package/esm/Card/context.js +27 -0
- package/esm/Card/index.d.ts +2 -0
- package/esm/Card/index.js +17 -0
- package/esm/Card/interface.d.ts +1 -0
- package/esm/Card/interface.js +1 -0
- package/esm/Card/styles/card.less +156 -0
- package/esm/Card/styles/index.d.ts +2 -0
- package/esm/Card/styles/index.js +4 -0
- package/esm/CardGroup/CardGroup.d.ts +18 -0
- package/esm/CardGroup/CardGroup.js +104 -0
- package/esm/CardGroup/Item.d.ts +8 -0
- package/esm/CardGroup/Item.js +62 -0
- package/esm/CardGroup/Props.d.ts +122 -0
- package/esm/CardGroup/Props.js +1 -0
- package/esm/CardGroup/context.d.ts +4 -0
- package/esm/CardGroup/context.js +13 -0
- package/esm/CardGroup/index.d.ts +2 -0
- package/esm/CardGroup/index.js +8 -0
- package/esm/CardGroup/interface.d.ts +1 -0
- package/esm/CardGroup/interface.js +1 -0
- package/esm/CardGroup/styles/cardGroup.less +40 -0
- package/esm/CardGroup/styles/index.d.ts +2 -0
- package/esm/CardGroup/styles/index.js +4 -0
- package/esm/Carousel/Item.d.ts +11 -0
- package/esm/Carousel/Item.js +31 -0
- package/esm/Carousel/Props.d.ts +58 -0
- package/esm/Carousel/Props.js +1 -0
- package/esm/Carousel/index.d.ts +4 -0
- package/esm/Carousel/index.js +201 -0
- package/esm/Carousel/interface.d.ts +1 -0
- package/esm/Carousel/interface.js +1 -0
- package/esm/Carousel/styles/carousel.less +288 -0
- package/esm/Carousel/styles/index.d.ts +2 -0
- package/esm/Carousel/styles/index.js +4 -0
- package/esm/Cascader/Cascader.d.ts +61 -0
- package/esm/Cascader/Cascader.js +609 -0
- package/esm/Cascader/FilterList.d.ts +2 -0
- package/esm/Cascader/FilterList.js +195 -0
- package/esm/Cascader/Input.d.ts +26 -0
- package/esm/Cascader/Input.js +117 -0
- package/esm/Cascader/List.d.ts +15 -0
- package/esm/Cascader/List.js +85 -0
- package/esm/Cascader/Node.d.ts +19 -0
- package/esm/Cascader/Node.js +182 -0
- package/esm/Cascader/Props.d.ts +311 -0
- package/esm/Cascader/Props.js +1 -0
- package/esm/Cascader/Result.d.ts +41 -0
- package/esm/Cascader/Result.js +399 -0
- package/esm/Cascader/filter.d.ts +4 -0
- package/esm/Cascader/filter.js +103 -0
- package/esm/Cascader/index.d.ts +2 -0
- package/esm/Cascader/index.js +12 -0
- package/esm/Cascader/interface.d.ts +1 -0
- package/esm/Cascader/interface.js +1 -0
- package/esm/Cascader/styles/cascader.less +452 -0
- package/esm/Cascader/styles/index.d.ts +2 -0
- package/esm/Cascader/styles/index.js +4 -0
- package/esm/Checkbox/CheckItem.d.ts +9 -0
- package/esm/Checkbox/CheckItem.js +199 -0
- package/esm/Checkbox/Checkbox.d.ts +3 -0
- package/esm/Checkbox/Checkbox.js +3 -0
- package/esm/Checkbox/Group.d.ts +17 -0
- package/esm/Checkbox/Group.js +130 -0
- package/esm/Checkbox/Props.d.ts +122 -0
- package/esm/Checkbox/Props.js +13 -0
- package/esm/Checkbox/context.d.ts +4 -0
- package/esm/Checkbox/context.js +13 -0
- package/esm/Checkbox/index.d.ts +2 -0
- package/esm/Checkbox/index.js +14 -0
- package/esm/Checkbox/interface.d.ts +1 -0
- package/esm/Checkbox/interface.js +1 -0
- package/esm/Checkbox/styles/checkinput.less +602 -0
- package/esm/Checkbox/styles/index.d.ts +2 -0
- package/esm/Checkbox/styles/index.js +4 -0
- package/esm/DataList/BaseItem.d.ts +13 -0
- package/esm/DataList/BaseItem.js +40 -0
- package/esm/DataList/Extra.d.ts +8 -0
- package/esm/DataList/Extra.js +34 -0
- package/esm/DataList/List.d.ts +26 -0
- package/esm/DataList/List.js +209 -0
- package/esm/DataList/Meta.d.ts +16 -0
- package/esm/DataList/Meta.js +120 -0
- package/esm/DataList/Pagination.d.ts +5 -0
- package/esm/DataList/Pagination.js +9 -0
- package/esm/DataList/Props.d.ts +138 -0
- package/esm/DataList/Props.js +1 -0
- package/esm/DataList/index.d.ts +2 -0
- package/esm/DataList/index.js +14 -0
- package/esm/DataList/styles/index.d.ts +1 -0
- package/esm/DataList/styles/index.js +4 -0
- package/esm/DataList/styles/list.less +213 -0
- package/esm/DatePicker/Container.d.ts +82 -0
- package/esm/DatePicker/Container.js +650 -0
- package/esm/DatePicker/Day.d.ts +37 -0
- package/esm/DatePicker/Day.js +339 -0
- package/esm/DatePicker/Icon.d.ts +12 -0
- package/esm/DatePicker/Icon.js +40 -0
- package/esm/DatePicker/Month.d.ts +18 -0
- package/esm/DatePicker/Month.js +144 -0
- package/esm/DatePicker/Picker.d.ts +21 -0
- package/esm/DatePicker/Picker.js +158 -0
- package/esm/DatePicker/Props.d.ts +397 -0
- package/esm/DatePicker/Props.js +1 -0
- package/esm/DatePicker/Quarter.d.ts +18 -0
- package/esm/DatePicker/Quarter.js +164 -0
- package/esm/DatePicker/Quick.d.ts +15 -0
- package/esm/DatePicker/Quick.js +64 -0
- package/esm/DatePicker/Range.d.ts +35 -0
- package/esm/DatePicker/Range.js +299 -0
- package/esm/DatePicker/Text.d.ts +20 -0
- package/esm/DatePicker/Text.js +141 -0
- package/esm/DatePicker/Time.d.ts +21 -0
- package/esm/DatePicker/Time.js +215 -0
- package/esm/DatePicker/TimeScroll.d.ts +26 -0
- package/esm/DatePicker/TimeScroll.js +185 -0
- package/esm/DatePicker/Year.d.ts +17 -0
- package/esm/DatePicker/Year.js +146 -0
- package/esm/DatePicker/index.d.ts +2 -0
- package/esm/DatePicker/index.js +18 -0
- package/esm/DatePicker/interface.d.ts +1 -0
- package/esm/DatePicker/interface.js +1 -0
- package/esm/DatePicker/paramUtils.d.ts +19 -0
- package/esm/DatePicker/paramUtils.js +106 -0
- package/esm/DatePicker/styles/datepicker.less +727 -0
- package/esm/DatePicker/styles/index.d.ts +2 -0
- package/esm/DatePicker/styles/index.js +4 -0
- package/esm/DatePicker/utils.d.ts +68 -0
- package/esm/DatePicker/utils.js +419 -0
- package/esm/DatePicker/value.d.ts +44 -0
- package/esm/DatePicker/value.js +179 -0
- package/esm/Datum/Form.d.ts +55 -0
- package/esm/Datum/Form.js +433 -0
- package/esm/Datum/List.d.ts +47 -0
- package/esm/Datum/List.js +441 -0
- package/esm/Datum/Props.d.ts +89 -0
- package/esm/Datum/Props.js +1 -0
- package/esm/Datum/Tree.d.ts +78 -0
- package/esm/Datum/Tree.js +424 -0
- package/esm/Datum/hoc.d.ts +2 -0
- package/esm/Datum/hoc.js +133 -0
- package/esm/Datum/index.d.ts +8 -0
- package/esm/Datum/index.js +8 -0
- package/esm/Datum/types.d.ts +16 -0
- package/esm/Datum/types.js +22 -0
- package/esm/Divider/Props.d.ts +30 -0
- package/esm/Divider/Props.js +1 -0
- package/esm/Divider/index.d.ts +10 -0
- package/esm/Divider/index.js +50 -0
- package/esm/Divider/interface.d.ts +1 -0
- package/esm/Divider/interface.js +1 -0
- package/esm/Divider/styles/divider.less +83 -0
- package/esm/Divider/styles/index.d.ts +2 -0
- package/esm/Divider/styles/index.js +4 -0
- package/esm/Drawer/index.d.ts +12 -0
- package/esm/Drawer/index.js +17 -0
- package/esm/Drawer/interface.d.ts +1 -0
- package/esm/Drawer/interface.js +1 -0
- package/esm/Dropdown/Item.d.ts +16 -0
- package/esm/Dropdown/Item.js +73 -0
- package/esm/Dropdown/Props.d.ts +164 -0
- package/esm/Dropdown/Props.js +1 -0
- package/esm/Dropdown/index.d.ts +2 -0
- package/esm/Dropdown/index.js +347 -0
- package/esm/Dropdown/interface.d.ts +1 -0
- package/esm/Dropdown/interface.js +1 -0
- package/esm/Dropdown/styles/dropdown.less +349 -0
- package/esm/Dropdown/styles/index.d.ts +1 -0
- package/esm/Dropdown/styles/index.js +4 -0
- package/esm/EditableArea/EditableArea.d.ts +36 -0
- package/esm/EditableArea/EditableArea.js +275 -0
- package/esm/EditableArea/Props.d.ts +105 -0
- package/esm/EditableArea/Props.js +1 -0
- package/esm/EditableArea/index.d.ts +2 -0
- package/esm/EditableArea/index.js +7 -0
- package/esm/EditableArea/interface.d.ts +1 -0
- package/esm/EditableArea/interface.js +1 -0
- package/esm/EditableArea/styles/editableArea.less +63 -0
- package/esm/EditableArea/styles/index.d.ts +1 -0
- package/esm/EditableArea/styles/index.js +4 -0
- package/esm/Form/Field.d.ts +12 -0
- package/esm/Form/Field.js +76 -0
- package/esm/Form/FieldError.d.ts +6 -0
- package/esm/Form/FieldError.js +29 -0
- package/esm/Form/FieldSet.d.ts +8 -0
- package/esm/Form/FieldSet.js +240 -0
- package/esm/Form/Flow.d.ts +10 -0
- package/esm/Form/Flow.js +66 -0
- package/esm/Form/Form.d.ts +29 -0
- package/esm/Form/Form.js +229 -0
- package/esm/Form/Item.d.ts +29 -0
- package/esm/Form/Item.js +210 -0
- package/esm/Form/Props.d.ts +436 -0
- package/esm/Form/Props.js +1 -0
- package/esm/Form/formButton.d.ts +3 -0
- package/esm/Form/formButton.js +69 -0
- package/esm/Form/formContext.d.ts +9 -0
- package/esm/Form/formContext.js +103 -0
- package/esm/Form/index.d.ts +2 -0
- package/esm/Form/index.js +35 -0
- package/esm/Form/inputable.d.ts +4 -0
- package/esm/Form/inputable.js +411 -0
- package/esm/Form/interface.d.ts +1 -0
- package/esm/Form/interface.js +1 -0
- package/esm/Form/mode.d.ts +2 -0
- package/esm/Form/mode.js +16 -0
- package/esm/Form/styles/form.less +779 -0
- package/esm/Form/styles/index.d.ts +2 -0
- package/esm/Form/styles/index.js +5 -0
- package/esm/Gap/Props.d.ts +37 -0
- package/esm/Gap/Props.js +1 -0
- package/esm/Gap/index.d.ts +4 -0
- package/esm/Gap/index.js +74 -0
- package/esm/Gap/interface.d.ts +1 -0
- package/esm/Gap/interface.js +1 -0
- package/esm/Gap/styles/gap.less +10 -0
- package/esm/Gap/styles/index.d.ts +1 -0
- package/esm/Gap/styles/index.js +4 -0
- package/esm/Gap/support.d.ts +1 -0
- package/esm/Gap/support.js +12 -0
- package/esm/Grid/Props.d.ts +53 -0
- package/esm/Grid/Props.js +1 -0
- package/esm/Grid/index.d.ts +7 -0
- package/esm/Grid/index.js +89 -0
- package/esm/Grid/interface.d.ts +1 -0
- package/esm/Grid/interface.js +1 -0
- package/esm/Grid/utils.d.ts +13 -0
- package/esm/Grid/utils.js +97 -0
- package/esm/Icon/Icon.d.ts +23 -0
- package/esm/Icon/Icon.js +67 -0
- package/esm/Icon/Props.d.ts +80 -0
- package/esm/Icon/Props.js +1 -0
- package/esm/Icon/index.d.ts +3 -0
- package/esm/Icon/index.js +48 -0
- package/esm/Icon/interface.d.ts +1 -0
- package/esm/Icon/interface.js +1 -0
- package/esm/Icon/styles/icon.less +54 -0
- package/esm/Icon/styles/index.d.ts +2 -0
- package/esm/Icon/styles/index.js +4 -0
- package/esm/Image/Gallery.d.ts +9 -0
- package/esm/Image/Gallery.js +147 -0
- package/esm/Image/Group.d.ts +8 -0
- package/esm/Image/Group.js +65 -0
- package/esm/Image/Image.d.ts +39 -0
- package/esm/Image/Image.js +297 -0
- package/esm/Image/Magnify.d.ts +25 -0
- package/esm/Image/Magnify.js +147 -0
- package/esm/Image/Props.d.ts +184 -0
- package/esm/Image/Props.js +1 -0
- package/esm/Image/events.d.ts +6 -0
- package/esm/Image/events.js +40 -0
- package/esm/Image/index.d.ts +2 -0
- package/esm/Image/index.js +6 -0
- package/esm/Image/interface.d.ts +1 -0
- package/esm/Image/interface.js +1 -0
- package/esm/Image/styles/image.less +311 -0
- package/esm/Image/styles/index.d.ts +2 -0
- package/esm/Image/styles/index.js +4 -0
- package/esm/Input/Group.d.ts +10 -0
- package/esm/Input/Group.js +25 -0
- package/esm/Input/Input.d.ts +24 -0
- package/esm/Input/Input.js +307 -0
- package/esm/Input/Number.d.ts +24 -0
- package/esm/Input/Number.js +275 -0
- package/esm/Input/Password.d.ts +12 -0
- package/esm/Input/Password.js +73 -0
- package/esm/Input/Props.d.ts +311 -0
- package/esm/Input/Props.js +1 -0
- package/esm/Input/clear.d.ts +8 -0
- package/esm/Input/clear.js +46 -0
- package/esm/Input/index.d.ts +2 -0
- package/esm/Input/index.js +22 -0
- package/esm/Input/interface.d.ts +1 -0
- package/esm/Input/interface.js +1 -0
- package/esm/Input/styles/index.d.ts +1 -0
- package/esm/Input/styles/index.js +4 -0
- package/esm/InputTitle/Props.d.ts +25 -0
- package/esm/InputTitle/Props.js +1 -0
- package/esm/InputTitle/index.d.ts +2 -0
- package/esm/InputTitle/index.js +2 -0
- package/esm/InputTitle/inputTitle.d.ts +14 -0
- package/esm/InputTitle/inputTitle.js +75 -0
- package/esm/InputTitle/styles/index.d.ts +1 -0
- package/esm/InputTitle/styles/index.js +3 -0
- package/esm/InputTitle/styles/inputTitle.less +139 -0
- package/esm/Lazyload/Props.d.ts +7 -0
- package/esm/Lazyload/Props.js +1 -0
- package/esm/Lazyload/index.d.ts +19 -0
- package/esm/Lazyload/index.js +78 -0
- package/esm/Lazyload/styles/index.d.ts +1 -0
- package/esm/Lazyload/styles/index.js +4 -0
- package/esm/Lazyload/styles/lazyload.less +8 -0
- package/esm/List/index.d.ts +2 -0
- package/esm/List/index.js +2 -0
- package/esm/List/interface.d.ts +1 -0
- package/esm/List/interface.js +1 -0
- package/esm/Menu/Item.d.ts +4 -0
- package/esm/Menu/Item.js +339 -0
- package/esm/Menu/List.d.ts +6 -0
- package/esm/Menu/List.js +76 -0
- package/esm/Menu/Props.d.ts +204 -0
- package/esm/Menu/Props.js +1 -0
- package/esm/Menu/Root.d.ts +94 -0
- package/esm/Menu/Root.js +452 -0
- package/esm/Menu/context.d.ts +4 -0
- package/esm/Menu/context.js +19 -0
- package/esm/Menu/index.d.ts +2 -0
- package/esm/Menu/index.js +3 -0
- package/esm/Menu/interface.d.ts +1 -0
- package/esm/Menu/interface.js +1 -0
- package/esm/Menu/styles/index.d.ts +1 -0
- package/esm/Menu/styles/index.js +4 -0
- package/esm/Menu/styles/menu.less +780 -0
- package/esm/Message/Container.d.ts +33 -0
- package/esm/Message/Container.js +186 -0
- package/esm/Message/Props.d.ts +55 -0
- package/esm/Message/Props.js +1 -0
- package/esm/Message/index.d.ts +14 -0
- package/esm/Message/index.js +54 -0
- package/esm/Message/interface.d.ts +1 -0
- package/esm/Message/interface.js +1 -0
- package/esm/Message/messager.d.ts +5 -0
- package/esm/Message/messager.js +44 -0
- package/esm/Message/styles/index.d.ts +1 -0
- package/esm/Message/styles/index.js +6 -0
- package/esm/Message/styles/message.less +148 -0
- package/esm/Modal/Modal.d.ts +34 -0
- package/esm/Modal/Modal.js +122 -0
- package/esm/Modal/Panel.d.ts +43 -0
- package/esm/Modal/Panel.js +293 -0
- package/esm/Modal/Props.d.ts +300 -0
- package/esm/Modal/Props.js +1 -0
- package/esm/Modal/context.d.ts +7 -0
- package/esm/Modal/context.js +19 -0
- package/esm/Modal/events.d.ts +8 -0
- package/esm/Modal/events.js +277 -0
- package/esm/Modal/index.d.ts +2 -0
- package/esm/Modal/index.js +12 -0
- package/esm/Modal/interface.d.ts +1 -0
- package/esm/Modal/interface.js +1 -0
- package/esm/Modal/styles/index.d.ts +1 -0
- package/esm/Modal/styles/index.js +4 -0
- package/esm/Modal/styles/modal.less +377 -0
- package/esm/Pagination/Item.d.ts +12 -0
- package/esm/Pagination/Item.js +54 -0
- package/esm/Pagination/Jumper.d.ts +11 -0
- package/esm/Pagination/Jumper.js +101 -0
- package/esm/Pagination/Links.d.ts +14 -0
- package/esm/Pagination/Links.js +144 -0
- package/esm/Pagination/Next.d.ts +8 -0
- package/esm/Pagination/Next.js +56 -0
- package/esm/Pagination/PageSizeList.d.ts +11 -0
- package/esm/Pagination/PageSizeList.js +67 -0
- package/esm/Pagination/Pagination.d.ts +15 -0
- package/esm/Pagination/Pagination.js +88 -0
- package/esm/Pagination/Prev.d.ts +8 -0
- package/esm/Pagination/Prev.js +53 -0
- package/esm/Pagination/Props.d.ts +175 -0
- package/esm/Pagination/Props.js +1 -0
- package/esm/Pagination/Simple.d.ts +5 -0
- package/esm/Pagination/Simple.js +37 -0
- package/esm/Pagination/index.d.ts +20 -0
- package/esm/Pagination/index.js +76 -0
- package/esm/Pagination/interface.d.ts +1 -0
- package/esm/Pagination/interface.js +1 -0
- package/esm/Pagination/styles/index.d.ts +1 -0
- package/esm/Pagination/styles/index.js +4 -0
- package/esm/Pagination/styles/pagination.less +180 -0
- package/esm/Popover/Confirm.d.ts +16 -0
- package/esm/Popover/Confirm.js +124 -0
- package/esm/Popover/Content.d.ts +4 -0
- package/esm/Popover/Content.js +11 -0
- package/esm/Popover/Panel.d.ts +4 -0
- package/esm/Popover/Panel.js +373 -0
- package/esm/Popover/Props.d.ts +237 -0
- package/esm/Popover/Props.js +1 -0
- package/esm/Popover/context.d.ts +4 -0
- package/esm/Popover/context.js +16 -0
- package/esm/Popover/index.d.ts +3 -0
- package/esm/Popover/index.js +10 -0
- package/esm/Popover/interface.d.ts +1 -0
- package/esm/Popover/interface.js +1 -0
- package/esm/Popover/styles/index.d.ts +1 -0
- package/esm/Popover/styles/index.js +4 -0
- package/esm/Popover/styles/popover.less +309 -0
- package/esm/Progress/Circle.d.ts +12 -0
- package/esm/Progress/Circle.js +79 -0
- package/esm/Progress/Line.d.ts +9 -0
- package/esm/Progress/Line.js +61 -0
- package/esm/Progress/Popup.d.ts +9 -0
- package/esm/Progress/Popup.js +43 -0
- package/esm/Progress/Props.d.ts +103 -0
- package/esm/Progress/Props.js +1 -0
- package/esm/Progress/analyzeColor.d.ts +3 -0
- package/esm/Progress/analyzeColor.js +21 -0
- package/esm/Progress/index.d.ts +10 -0
- package/esm/Progress/index.js +19 -0
- package/esm/Progress/interface.d.ts +1 -0
- package/esm/Progress/interface.js +1 -0
- package/esm/Progress/styles/index.d.ts +1 -0
- package/esm/Progress/styles/index.js +4 -0
- package/esm/Progress/styles/progress.less +119 -0
- package/esm/Radio/Group.d.ts +18 -0
- package/esm/Radio/Group.js +119 -0
- package/esm/Radio/Props.d.ts +39 -0
- package/esm/Radio/Props.js +1 -0
- package/esm/Radio/Radio.d.ts +3 -0
- package/esm/Radio/Radio.js +2 -0
- package/esm/Radio/index.d.ts +2 -0
- package/esm/Radio/index.js +15 -0
- package/esm/Radio/interface.d.ts +1 -0
- package/esm/Radio/interface.js +1 -0
- package/esm/Radio/styles/index.d.ts +1 -0
- package/esm/Radio/styles/index.js +1 -0
- package/esm/Rate/Props.d.ts +96 -0
- package/esm/Rate/Props.js +1 -0
- package/esm/Rate/Rate.d.ts +36 -0
- package/esm/Rate/Rate.js +252 -0
- package/esm/Rate/index.d.ts +5 -0
- package/esm/Rate/index.js +18 -0
- package/esm/Rate/interface.d.ts +1 -0
- package/esm/Rate/interface.js +1 -0
- package/esm/Rate/styles/index.d.ts +2 -0
- package/esm/Rate/styles/index.js +4 -0
- package/esm/Rate/styles/rate.less +105 -0
- package/esm/Rule/Props.d.ts +172 -0
- package/esm/Rule/Props.js +1 -0
- package/esm/Rule/index.d.ts +15 -0
- package/esm/Rule/index.js +81 -0
- package/esm/Rule/interface.d.ts +1 -0
- package/esm/Rule/interface.js +1 -0
- package/esm/Rule/length.d.ts +10 -0
- package/esm/Rule/length.js +54 -0
- package/esm/Rule/regExp.d.ts +5 -0
- package/esm/Rule/regExp.js +25 -0
- package/esm/Rule/required.d.ts +8 -0
- package/esm/Rule/required.js +27 -0
- package/esm/Rule/styles/index.d.ts +1 -0
- package/esm/Rule/styles/index.js +1 -0
- package/esm/Rule/type.d.ts +8 -0
- package/esm/Rule/type.js +27 -0
- package/esm/Scroll/Bar.d.ts +3 -0
- package/esm/Scroll/Bar.js +183 -0
- package/esm/Scroll/Props.d.ts +44 -0
- package/esm/Scroll/Props.js +1 -0
- package/esm/Scroll/Scroll.d.ts +54 -0
- package/esm/Scroll/Scroll.js +436 -0
- package/esm/Scroll/context.d.ts +4 -0
- package/esm/Scroll/context.js +22 -0
- package/esm/Scroll/fixedLength.d.ts +3 -0
- package/esm/Scroll/fixedLength.js +32 -0
- package/esm/Scroll/index.d.ts +23 -0
- package/esm/Scroll/index.js +95 -0
- package/esm/Scroll/styles/index.d.ts +2 -0
- package/esm/Scroll/styles/index.js +4 -0
- package/esm/Scroll/styles/scroll.less +175 -0
- package/esm/Select/BoxList.d.ts +19 -0
- package/esm/Select/BoxList.js +218 -0
- package/esm/Select/BoxOption.d.ts +9 -0
- package/esm/Select/BoxOption.js +73 -0
- package/esm/Select/Input.d.ts +39 -0
- package/esm/Select/Input.js +286 -0
- package/esm/Select/More.d.ts +15 -0
- package/esm/Select/More.js +151 -0
- package/esm/Select/Option.d.ts +12 -0
- package/esm/Select/Option.js +90 -0
- package/esm/Select/OptionList.d.ts +21 -0
- package/esm/Select/OptionList.js +282 -0
- package/esm/Select/OptionTree.d.ts +13 -0
- package/esm/Select/OptionTree.js +124 -0
- package/esm/Select/Props.d.ts +626 -0
- package/esm/Select/Props.js +1 -0
- package/esm/Select/Result.d.ts +33 -0
- package/esm/Select/Result.js +435 -0
- package/esm/Select/Select.d.ts +91 -0
- package/esm/Select/Select.js +791 -0
- package/esm/Select/filter.d.ts +58 -0
- package/esm/Select/filter.js +272 -0
- package/esm/Select/group.d.ts +39 -0
- package/esm/Select/group.js +86 -0
- package/esm/Select/index.d.ts +2 -0
- package/esm/Select/index.js +34 -0
- package/esm/Select/interface.d.ts +1 -0
- package/esm/Select/interface.js +1 -0
- package/esm/Select/styles/index.d.ts +1 -0
- package/esm/Select/styles/index.js +4 -0
- package/esm/Select/styles/select.less +724 -0
- package/esm/Select/utils.d.ts +4 -0
- package/esm/Select/utils.js +7 -0
- package/esm/Slider/Container.d.ts +22 -0
- package/esm/Slider/Container.js +180 -0
- package/esm/Slider/Indicator.d.ts +2 -0
- package/esm/Slider/Indicator.js +28 -0
- package/esm/Slider/Props.d.ts +128 -0
- package/esm/Slider/Props.js +1 -0
- package/esm/Slider/Slider.d.ts +22 -0
- package/esm/Slider/Slider.js +148 -0
- package/esm/Slider/index.d.ts +2 -0
- package/esm/Slider/index.js +5 -0
- package/esm/Slider/interface.d.ts +1 -0
- package/esm/Slider/interface.js +1 -0
- package/esm/Slider/styles/index.d.ts +1 -0
- package/esm/Slider/styles/index.js +4 -0
- package/esm/Slider/styles/slider.less +346 -0
- package/esm/Slider/utils.d.ts +2 -0
- package/esm/Slider/utils.js +28 -0
- package/esm/Spin/Multiple.d.ts +12 -0
- package/esm/Spin/Multiple.js +179 -0
- package/esm/Spin/Props.d.ts +28 -0
- package/esm/Spin/Props.js +1 -0
- package/esm/Spin/Simple.d.ts +5 -0
- package/esm/Spin/Simple.js +40 -0
- package/esm/Spin/Spin.d.ts +3 -0
- package/esm/Spin/Spin.js +31 -0
- package/esm/Spin/index.d.ts +32 -0
- package/esm/Spin/index.js +96 -0
- package/esm/Spin/interface.d.ts +1 -0
- package/esm/Spin/interface.js +1 -0
- package/esm/Spin/styles/chasing-dots.less +47 -0
- package/esm/Spin/styles/chasing-ring.less +112 -0
- package/esm/Spin/styles/cube-grid.less +65 -0
- package/esm/Spin/styles/default.less +77 -0
- package/esm/Spin/styles/double-bounce.less +36 -0
- package/esm/Spin/styles/four-dots.less +73 -0
- package/esm/Spin/styles/index.d.ts +14 -0
- package/esm/Spin/styles/index.js +28 -0
- package/esm/Spin/styles/plane.less +24 -0
- package/esm/Spin/styles/pulse.less +22 -0
- package/esm/Spin/styles/ring.less +23 -0
- package/esm/Spin/styles/scale-circle.less +74 -0
- package/esm/Spin/styles/spin.less +57 -0
- package/esm/Spin/styles/three-bounce.less +41 -0
- package/esm/Spin/styles/wave.less +48 -0
- package/esm/Spin/util.d.ts +4 -0
- package/esm/Spin/util.js +7 -0
- package/esm/Sticky/Props.d.ts +65 -0
- package/esm/Sticky/Props.js +1 -0
- package/esm/Sticky/context.d.ts +4 -0
- package/esm/Sticky/context.js +13 -0
- package/esm/Sticky/index.d.ts +2 -0
- package/esm/Sticky/index.js +361 -0
- package/esm/Sticky/interface.d.ts +1 -0
- package/esm/Sticky/interface.js +1 -0
- package/esm/Sticky/styles/index.d.ts +1 -0
- package/esm/Sticky/styles/index.js +1 -0
- package/esm/Switch/Props.d.ts +8 -0
- package/esm/Switch/Props.js +1 -0
- package/esm/Switch/Switch.d.ts +3 -0
- package/esm/Switch/Switch.js +2 -0
- package/esm/Switch/index.d.ts +2 -0
- package/esm/Switch/index.js +8 -0
- package/esm/Switch/interface.d.ts +1 -0
- package/esm/Switch/interface.js +1 -0
- package/esm/Table/Checkbox.d.ts +11 -0
- package/esm/Table/Checkbox.js +72 -0
- package/esm/Table/CheckboxAll.d.ts +16 -0
- package/esm/Table/CheckboxAll.js +155 -0
- package/esm/Table/Colgroup.d.ts +11 -0
- package/esm/Table/Colgroup.js +77 -0
- package/esm/Table/Expand.d.ts +13 -0
- package/esm/Table/Expand.js +79 -0
- package/esm/Table/Props.d.ts +547 -0
- package/esm/Table/Props.js +1 -0
- package/esm/Table/SeperateTable.d.ts +70 -0
- package/esm/Table/SeperateTable.js +857 -0
- package/esm/Table/SimpleTable.d.ts +36 -0
- package/esm/Table/SimpleTable.js +315 -0
- package/esm/Table/Sorter.d.ts +13 -0
- package/esm/Table/Sorter.js +100 -0
- package/esm/Table/Table.d.ts +2 -0
- package/esm/Table/Table.js +173 -0
- package/esm/Table/Tbody.d.ts +29 -0
- package/esm/Table/Tbody.js +301 -0
- package/esm/Table/Td.d.ts +18 -0
- package/esm/Table/Td.js +200 -0
- package/esm/Table/Tfoot.d.ts +8 -0
- package/esm/Table/Tfoot.js +89 -0
- package/esm/Table/Thead.d.ts +28 -0
- package/esm/Table/Thead.js +292 -0
- package/esm/Table/Tr.d.ts +30 -0
- package/esm/Table/Tr.js +327 -0
- package/esm/Table/TreeExpand.d.ts +45 -0
- package/esm/Table/TreeExpand.js +168 -0
- package/esm/Table/context.d.ts +7 -0
- package/esm/Table/context.js +18 -0
- package/esm/Table/fixedAuto.d.ts +57 -0
- package/esm/Table/fixedAuto.js +95 -0
- package/esm/Table/index.d.ts +23 -0
- package/esm/Table/index.js +360 -0
- package/esm/Table/interface.d.ts +1 -0
- package/esm/Table/interface.js +1 -0
- package/esm/Table/resizable.d.ts +43 -0
- package/esm/Table/resizable.js +108 -0
- package/esm/Table/select.d.ts +54 -0
- package/esm/Table/select.js +309 -0
- package/esm/Table/styles/index.d.ts +2 -0
- package/esm/Table/styles/index.js +4 -0
- package/esm/Table/styles/table.less +813 -0
- package/esm/Tabs/Header.d.ts +38 -0
- package/esm/Tabs/Header.js +265 -0
- package/esm/Tabs/Link.d.ts +7 -0
- package/esm/Tabs/Link.js +58 -0
- package/esm/Tabs/Panel.d.ts +9 -0
- package/esm/Tabs/Panel.js +60 -0
- package/esm/Tabs/Props.d.ts +242 -0
- package/esm/Tabs/Props.js +1 -0
- package/esm/Tabs/Tab.d.ts +12 -0
- package/esm/Tabs/Tab.js +113 -0
- package/esm/Tabs/Tabs.d.ts +45 -0
- package/esm/Tabs/Tabs.js +270 -0
- package/esm/Tabs/Wrapper.d.ts +6 -0
- package/esm/Tabs/Wrapper.js +37 -0
- package/esm/Tabs/index.d.ts +2 -0
- package/esm/Tabs/index.js +7 -0
- package/esm/Tabs/interface.d.ts +1 -0
- package/esm/Tabs/interface.js +1 -0
- package/esm/Tabs/styles/index.d.ts +1 -0
- package/esm/Tabs/styles/index.js +4 -0
- package/esm/Tabs/styles/tabs.less +422 -0
- package/esm/Tag/Input.d.ts +2 -0
- package/esm/Tag/Input.js +84 -0
- package/esm/Tag/Props.d.ts +86 -0
- package/esm/Tag/Props.js +1 -0
- package/esm/Tag/Tag.d.ts +31 -0
- package/esm/Tag/Tag.js +230 -0
- package/esm/Tag/index.d.ts +6 -0
- package/esm/Tag/index.js +6 -0
- package/esm/Tag/interface.d.ts +1 -0
- package/esm/Tag/interface.js +1 -0
- package/esm/Tag/styles/index.d.ts +2 -0
- package/esm/Tag/styles/index.js +4 -0
- package/esm/Tag/styles/tag.less +107 -0
- package/esm/Textarea/Textarea.d.ts +27 -0
- package/esm/Textarea/Textarea.js +199 -0
- package/esm/Textarea/index.d.ts +297 -0
- package/esm/Textarea/index.js +22 -0
- package/esm/Textarea/interface.d.ts +1 -0
- package/esm/Textarea/interface.js +1 -0
- package/esm/Textarea/props.d.ts +76 -0
- package/esm/Textarea/props.js +1 -0
- package/esm/Tooltip/Container.d.ts +3 -0
- package/esm/Tooltip/Container.js +179 -0
- package/esm/Tooltip/Props.d.ts +83 -0
- package/esm/Tooltip/Props.js +1 -0
- package/esm/Tooltip/events.d.ts +5 -0
- package/esm/Tooltip/events.js +96 -0
- package/esm/Tooltip/index.d.ts +3 -0
- package/esm/Tooltip/index.js +5 -0
- package/esm/Tooltip/interface.d.ts +1 -0
- package/esm/Tooltip/interface.js +1 -0
- package/esm/Tooltip/styles/index.d.ts +2 -0
- package/esm/Tooltip/styles/index.js +4 -0
- package/esm/Tooltip/styles/tooltip.less +169 -0
- package/esm/Transfer/Card.d.ts +2 -0
- package/esm/Transfer/Card.js +247 -0
- package/esm/Transfer/Props.d.ts +175 -0
- package/esm/Transfer/Props.js +1 -0
- package/esm/Transfer/Transfer.d.ts +16 -0
- package/esm/Transfer/Transfer.js +192 -0
- package/esm/Transfer/btns.d.ts +13 -0
- package/esm/Transfer/btns.js +113 -0
- package/esm/Transfer/context.d.ts +4 -0
- package/esm/Transfer/context.js +2 -0
- package/esm/Transfer/filter.d.ts +7 -0
- package/esm/Transfer/filter.js +70 -0
- package/esm/Transfer/index.d.ts +2 -0
- package/esm/Transfer/index.js +10 -0
- package/esm/Transfer/interface.d.ts +1 -0
- package/esm/Transfer/interface.js +1 -0
- package/esm/Transfer/item.d.ts +4 -0
- package/esm/Transfer/item.js +71 -0
- package/esm/Transfer/select.d.ts +3 -0
- package/esm/Transfer/select.js +20 -0
- package/esm/Transfer/styles/index.d.ts +2 -0
- package/esm/Transfer/styles/index.js +4 -0
- package/esm/Transfer/styles/transfer.less +123 -0
- package/esm/Tree/Checkbox.d.ts +12 -0
- package/esm/Tree/Checkbox.js +76 -0
- package/esm/Tree/Content.d.ts +16 -0
- package/esm/Tree/Content.js +158 -0
- package/esm/Tree/List.d.ts +21 -0
- package/esm/Tree/List.js +107 -0
- package/esm/Tree/Node.d.ts +24 -0
- package/esm/Tree/Node.js +268 -0
- package/esm/Tree/Props.d.ts +291 -0
- package/esm/Tree/Props.js +1 -0
- package/esm/Tree/Root.d.ts +10 -0
- package/esm/Tree/Root.js +23 -0
- package/esm/Tree/Tree.d.ts +33 -0
- package/esm/Tree/Tree.js +344 -0
- package/esm/Tree/index.d.ts +7 -0
- package/esm/Tree/index.js +9 -0
- package/esm/Tree/interface.d.ts +1 -0
- package/esm/Tree/interface.js +1 -0
- package/esm/Tree/styles/index.d.ts +2 -0
- package/esm/Tree/styles/index.js +4 -0
- package/esm/Tree/styles/tree.less +263 -0
- package/esm/TreeSelect/Input.d.ts +22 -0
- package/esm/TreeSelect/Input.js +110 -0
- package/esm/TreeSelect/Props.d.ts +230 -0
- package/esm/TreeSelect/Props.js +1 -0
- package/esm/TreeSelect/Result.d.ts +31 -0
- package/esm/TreeSelect/Result.js +351 -0
- package/esm/TreeSelect/TreeSelect.d.ts +59 -0
- package/esm/TreeSelect/TreeSelect.js +464 -0
- package/esm/TreeSelect/datum.d.ts +37 -0
- package/esm/TreeSelect/datum.js +75 -0
- package/esm/TreeSelect/filter.d.ts +49 -0
- package/esm/TreeSelect/filter.js +157 -0
- package/esm/TreeSelect/index.d.ts +2 -0
- package/esm/TreeSelect/index.js +15 -0
- package/esm/TreeSelect/interface.d.ts +1 -0
- package/esm/TreeSelect/interface.js +1 -0
- package/esm/TreeSelect/styles/index.d.ts +2 -0
- package/esm/TreeSelect/styles/index.js +4 -0
- package/esm/TreeSelect/styles/treeSelect.less +618 -0
- package/esm/TreeSelect/tiled.d.ts +5 -0
- package/esm/TreeSelect/tiled.js +151 -0
- package/esm/Upload/Dragger.d.ts +10 -0
- package/esm/Upload/Dragger.js +66 -0
- package/esm/Upload/Drop.d.ts +26 -0
- package/esm/Upload/Drop.js +86 -0
- package/esm/Upload/File.d.ts +8 -0
- package/esm/Upload/File.js +64 -0
- package/esm/Upload/FileInput.d.ts +11 -0
- package/esm/Upload/FileInput.js +69 -0
- package/esm/Upload/Image.d.ts +22 -0
- package/esm/Upload/Image.js +184 -0
- package/esm/Upload/ImageFile.d.ts +8 -0
- package/esm/Upload/ImageFile.js +64 -0
- package/esm/Upload/ImageResult.d.ts +24 -0
- package/esm/Upload/ImageResult.js +162 -0
- package/esm/Upload/Progress.d.ts +22 -0
- package/esm/Upload/Progress.js +152 -0
- package/esm/Upload/Props.d.ts +548 -0
- package/esm/Upload/Props.js +1 -0
- package/esm/Upload/RemoveConfirm.d.ts +13 -0
- package/esm/Upload/RemoveConfirm.js +60 -0
- package/esm/Upload/Result.d.ts +17 -0
- package/esm/Upload/Result.js +86 -0
- package/esm/Upload/Upload.d.ts +59 -0
- package/esm/Upload/Upload.js +726 -0
- package/esm/Upload/accept.d.ts +61 -0
- package/esm/Upload/accept.js +35 -0
- package/esm/Upload/context.d.ts +3 -0
- package/esm/Upload/context.js +13 -0
- package/esm/Upload/index.d.ts +2 -0
- package/esm/Upload/index.js +16 -0
- package/esm/Upload/interface.d.ts +1 -0
- package/esm/Upload/interface.js +1 -0
- package/esm/Upload/request.d.ts +5 -0
- package/esm/Upload/request.js +71 -0
- package/esm/Upload/styles/index.d.ts +2 -0
- package/esm/Upload/styles/index.js +4 -0
- package/esm/Upload/styles/upload.less +539 -0
- package/esm/component.d.ts +116 -0
- package/esm/component.js +63 -0
- package/esm/config.d.ts +21 -0
- package/esm/config.js +42 -0
- package/esm/context/index.d.ts +3 -0
- package/esm/context/index.js +4 -0
- package/esm/hoc/Props.d.ts +96 -0
- package/esm/hoc/Props.js +1 -0
- package/esm/hoc/coin.d.ts +5 -0
- package/esm/hoc/coin.js +122 -0
- package/esm/hoc/config.d.ts +31 -0
- package/esm/hoc/config.js +38 -0
- package/esm/hoc/delay.d.ts +2 -0
- package/esm/hoc/delay.js +118 -0
- package/esm/hoc/draggable.d.ts +2 -0
- package/esm/hoc/draggable.js +105 -0
- package/esm/hoc/hidable.d.ts +20 -0
- package/esm/hoc/hidable.js +156 -0
- package/esm/hoc/inputBorder.d.ts +2 -0
- package/esm/hoc/inputBorder.js +139 -0
- package/esm/hoc/moveable.d.ts +2 -0
- package/esm/hoc/moveable.js +143 -0
- package/esm/hoc/pagable.d.ts +46 -0
- package/esm/hoc/pagable.js +81 -0
- package/esm/hoc/resizable.d.ts +57 -0
- package/esm/hoc/resizable.js +151 -0
- package/esm/hoc/styles/hidable.less +60 -0
- package/esm/hoc/styles/index.d.ts +4 -0
- package/esm/hoc/styles/index.js +8 -0
- package/esm/hoc/styles/moveable.less +10 -0
- package/esm/hoc/styles/resizable.less +43 -0
- package/esm/icons/Caret.d.ts +31 -0
- package/esm/icons/Caret.js +15 -0
- package/esm/icons/Props.d.ts +1 -0
- package/esm/icons/Props.js +1 -0
- package/esm/icons/index.d.ts +26 -0
- package/esm/icons/index.js +58 -0
- package/esm/index.d.ts +58 -0
- package/esm/index.js +58 -0
- package/esm/locale/Props.d.ts +2 -0
- package/esm/locale/Props.js +1 -0
- package/esm/locale/en_US.d.ts +45 -0
- package/esm/locale/en_US.js +44 -0
- package/esm/locale/index.d.ts +4 -0
- package/esm/locale/index.js +19 -0
- package/esm/locale/zh-CN.d.ts +45 -0
- package/esm/locale/zh-CN.js +44 -0
- package/esm/styles/expose.d.ts +1 -0
- package/esm/styles/expose.js +3 -0
- package/esm/styles/expose.less +491 -0
- package/esm/styles/index.d.ts +1 -0
- package/esm/styles/index.js +1 -0
- package/esm/styles/mixins/alerts.less +44 -0
- package/esm/styles/mixins/animation.less +2 -0
- package/esm/styles/mixins/background-variant.less +10 -0
- package/esm/styles/mixins/border-radius.less +18 -0
- package/esm/styles/mixins/breadcrumbs.less +12 -0
- package/esm/styles/mixins/buttons.less +434 -0
- package/esm/styles/mixins/caret.less +120 -0
- package/esm/styles/mixins/center-block.less +7 -0
- package/esm/styles/mixins/clearfix.less +23 -0
- package/esm/styles/mixins/close.less +35 -0
- package/esm/styles/mixins/forms.less +88 -0
- package/esm/styles/mixins/gradients.less +138 -0
- package/esm/styles/mixins/grid-framework.less +97 -0
- package/esm/styles/mixins/grid.less +122 -0
- package/esm/styles/mixins/hide-text.less +21 -0
- package/esm/styles/mixins/image.less +25 -0
- package/esm/styles/mixins/input-title.less +66 -0
- package/esm/styles/mixins/labels.less +12 -0
- package/esm/styles/mixins/list-group.less +31 -0
- package/esm/styles/mixins/menu-selected.less +36 -0
- package/esm/styles/mixins/nav-divider.less +10 -0
- package/esm/styles/mixins/nav-vertical-align.less +9 -0
- package/esm/styles/mixins/opacity.less +9 -0
- package/esm/styles/mixins/pagination.less +26 -0
- package/esm/styles/mixins/panels.less +26 -0
- package/esm/styles/mixins/progress-bar.less +10 -0
- package/esm/styles/mixins/reset-filter.less +8 -0
- package/esm/styles/mixins/reset-text.less +18 -0
- package/esm/styles/mixins/resize.less +6 -0
- package/esm/styles/mixins/responsive-visibility.less +24 -0
- package/esm/styles/mixins/size.less +10 -0
- package/esm/styles/mixins/tab-focus.less +10 -0
- package/esm/styles/mixins/table-row.less +28 -0
- package/esm/styles/mixins/tag.less +7 -0
- package/esm/styles/mixins/text-emphasis.less +10 -0
- package/esm/styles/mixins/text-overflow.less +8 -0
- package/esm/styles/mixins/vendor-prefixes.less +229 -0
- package/esm/styles/normalize.less +580 -0
- package/esm/styles/themes/antd.less +296 -0
- package/esm/styles/themes/antd2.less +25 -0
- package/esm/styles/themes/base.less +899 -0
- package/esm/styles/themes/bootstrap.less +290 -0
- package/esm/styles/themes/cssvar.less +735 -0
- package/esm/styles/themes/default.less +183 -0
- package/esm/styles/themes/shineout.less +806 -0
- package/esm/styles/themes/vars-inject.less +6 -0
- package/esm/styles/variables.less +54 -0
- package/esm/utils/accept.d.ts +3 -0
- package/esm/utils/accept.js +24 -0
- package/esm/utils/classname.d.ts +12 -0
- package/esm/utils/classname.js +34 -0
- package/esm/utils/cleanProps.d.ts +10 -0
- package/esm/utils/cleanProps.js +15 -0
- package/esm/utils/clone.d.ts +3 -0
- package/esm/utils/clone.js +38 -0
- package/esm/utils/color.d.ts +21 -0
- package/esm/utils/color.js +458 -0
- package/esm/utils/compose.d.ts +1 -0
- package/esm/utils/compose.js +96 -0
- package/esm/utils/css-accessors.d.ts +10 -0
- package/esm/utils/css-accessors.js +119 -0
- package/esm/utils/curry.d.ts +24 -0
- package/esm/utils/curry.js +23 -0
- package/esm/utils/dom/detect.d.ts +12 -0
- package/esm/utils/dom/detect.js +50 -0
- package/esm/utils/dom/document.d.ts +11 -0
- package/esm/utils/dom/document.js +43 -0
- package/esm/utils/dom/element.d.ts +37 -0
- package/esm/utils/dom/element.js +262 -0
- package/esm/utils/dom/getDataset.d.ts +4 -0
- package/esm/utils/dom/getDataset.js +10 -0
- package/esm/utils/dom/isDOMElement.d.ts +6 -0
- package/esm/utils/dom/isDOMElement.js +3 -0
- package/esm/utils/dom/normalizeWheel.d.ts +14 -0
- package/esm/utils/dom/normalizeWheel.js +67 -0
- package/esm/utils/dom/popContainer.d.ts +2 -0
- package/esm/utils/dom/popContainer.js +17 -0
- package/esm/utils/dom/popover.d.ts +9 -0
- package/esm/utils/dom/popover.js +96 -0
- package/esm/utils/dom/ready.d.ts +1 -0
- package/esm/utils/dom/ready.js +6 -0
- package/esm/utils/dom/scrollBehavior.d.ts +1 -0
- package/esm/utils/dom/scrollBehavior.js +27 -0
- package/esm/utils/dom/translate.d.ts +2 -0
- package/esm/utils/dom/translate.js +30 -0
- package/esm/utils/errors.d.ts +9 -0
- package/esm/utils/errors.js +62 -0
- package/esm/utils/expose.d.ts +18 -0
- package/esm/utils/expose.js +125 -0
- package/esm/utils/flat.d.ts +25 -0
- package/esm/utils/flat.js +166 -0
- package/esm/utils/func.d.ts +25 -0
- package/esm/utils/func.js +72 -0
- package/esm/utils/hash.d.ts +1 -0
- package/esm/utils/hash.js +36 -0
- package/esm/utils/index.d.ts +24 -0
- package/esm/utils/index.js +24 -0
- package/esm/utils/is.d.ts +28 -0
- package/esm/utils/is.js +111 -0
- package/esm/utils/lazyload.d.ts +13 -0
- package/esm/utils/lazyload.js +136 -0
- package/esm/utils/notification.d.ts +15 -0
- package/esm/utils/notification.js +43 -0
- package/esm/utils/numbers.d.ts +7 -0
- package/esm/utils/numbers.js +97 -0
- package/esm/utils/objects.d.ts +19 -0
- package/esm/utils/objects.js +296 -0
- package/esm/utils/proptypes.d.ts +14 -0
- package/esm/utils/proptypes.js +30 -0
- package/esm/utils/shallowEqual.d.ts +7 -0
- package/esm/utils/shallowEqual.js +79 -0
- package/esm/utils/strings.d.ts +7 -0
- package/esm/utils/strings.js +86 -0
- package/esm/utils/transform.d.ts +2 -0
- package/esm/utils/transform.js +30 -0
- package/esm/utils/tree.d.ts +14 -0
- package/esm/utils/tree.js +93 -0
- package/esm/utils/uid.d.ts +5 -0
- package/esm/utils/uid.js +23 -0
- package/esm/utils/validate/index.d.ts +4 -0
- package/esm/utils/validate/index.js +109 -0
- package/esm/utils/validate/isJson.d.ts +1 -0
- package/esm/utils/validate/isJson.js +30 -0
- package/esm/utils/validate/nullable.d.ts +2 -0
- package/esm/utils/validate/nullable.js +10 -0
- package/esm/utils/validate/range.d.ts +6 -0
- package/esm/utils/validate/range.js +29 -0
- package/esm/utils/validate/rangeLength.d.ts +6 -0
- package/esm/utils/validate/rangeLength.js +22 -0
- package/esm/utils/validate/regExp.d.ts +4 -0
- package/esm/utils/validate/regExp.js +21 -0
- package/esm/utils/validate/required.d.ts +5 -0
- package/esm/utils/validate/required.js +18 -0
- package/esm/utils/validate/type.d.ts +14 -0
- package/esm/utils/validate/type.js +93 -0
- package/esm/utils/vars-inject.d.ts +1070 -0
- package/esm/utils/vars-inject.js +4272 -0
- package/esm/utils/zoom.d.ts +2 -0
- package/esm/utils/zoom.js +33 -0
- package/lib/DatePicker/Month.js +0 -6
- package/lib/DatePicker/Quarter.js +1 -7
- package/lib/DatePicker/Year.js +0 -6
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/esm/Form/Item.js
ADDED
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
|
+
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
3
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
4
|
+
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
|
|
5
|
+
import React, { PureComponent } from 'react';
|
|
6
|
+
import classnames from 'classnames';
|
|
7
|
+
import immer from 'immer';
|
|
8
|
+
import createReactContext from '../context';
|
|
9
|
+
import { Component } from '../component';
|
|
10
|
+
import { errorSubscribe, RESET_TOPIC } from '../Datum/types';
|
|
11
|
+
import { getGrid } from '../Grid/utils';
|
|
12
|
+
import { objectValues } from '../utils/objects';
|
|
13
|
+
import { formClass } from './styles';
|
|
14
|
+
|
|
15
|
+
var _createReactContext = createReactContext({}),
|
|
16
|
+
Provider = _createReactContext.Provider,
|
|
17
|
+
Consumer = _createReactContext.Consumer;
|
|
18
|
+
|
|
19
|
+
var Label =
|
|
20
|
+
/*#__PURE__*/
|
|
21
|
+
function (_PureComponent) {
|
|
22
|
+
_inheritsLoose(Label, _PureComponent);
|
|
23
|
+
|
|
24
|
+
function Label() {
|
|
25
|
+
return _PureComponent.apply(this, arguments) || this;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
var _proto = Label.prototype;
|
|
29
|
+
|
|
30
|
+
_proto.render = function render() {
|
|
31
|
+
var _this$props = this.props,
|
|
32
|
+
width = _this$props.width,
|
|
33
|
+
children = _this$props.children;
|
|
34
|
+
if (children === undefined) return null;
|
|
35
|
+
return React.createElement("div", {
|
|
36
|
+
style: {
|
|
37
|
+
width: width
|
|
38
|
+
},
|
|
39
|
+
className: formClass('label')
|
|
40
|
+
}, children);
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
return Label;
|
|
44
|
+
}(PureComponent); // eslint-disable-next-line
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
var Item =
|
|
48
|
+
/*#__PURE__*/
|
|
49
|
+
function (_Component) {
|
|
50
|
+
_inheritsLoose(Item, _Component);
|
|
51
|
+
|
|
52
|
+
function Item(props) {
|
|
53
|
+
var _this;
|
|
54
|
+
|
|
55
|
+
_this = _Component.call(this, props) || this;
|
|
56
|
+
|
|
57
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "events", void 0);
|
|
58
|
+
|
|
59
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "updateTimer", void 0);
|
|
60
|
+
|
|
61
|
+
_this.state = {
|
|
62
|
+
inputs: {},
|
|
63
|
+
errors: {}
|
|
64
|
+
};
|
|
65
|
+
_this.events = {
|
|
66
|
+
bindInputToItem: _this.bind.bind(_assertThisInitialized(_assertThisInitialized(_this))),
|
|
67
|
+
unbindInputFromItem: _this.unbind.bind(_assertThisInitialized(_assertThisInitialized(_this))),
|
|
68
|
+
onItemError: _this.handleError.bind(_assertThisInitialized(_assertThisInitialized(_this)))
|
|
69
|
+
};
|
|
70
|
+
_this.handleUpdate = _this.handleUpdate.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
71
|
+
if (props.formDatum) props.formDatum.subscribe(RESET_TOPIC, _this.handleUpdate);
|
|
72
|
+
return _this;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
var _proto2 = Item.prototype;
|
|
76
|
+
|
|
77
|
+
_proto2.getErrors = function getErrors() {
|
|
78
|
+
var formDatum = this.props.formDatum;
|
|
79
|
+
var errors = [];
|
|
80
|
+
|
|
81
|
+
if (formDatum) {
|
|
82
|
+
Object.keys(this.state.inputs).forEach(function (name) {
|
|
83
|
+
var err = formDatum.getError(name);
|
|
84
|
+
if (err) errors.push(err);
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
objectValues(this.state.errors).forEach(function (err) {
|
|
89
|
+
if (err) errors.push(err);
|
|
90
|
+
});
|
|
91
|
+
return errors;
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
_proto2.handleUpdate = function handleUpdate() {
|
|
95
|
+
var _this2 = this;
|
|
96
|
+
|
|
97
|
+
if (this.updateTimer) clearTimeout(this.updateTimer);
|
|
98
|
+
this.updateTimer = setTimeout(function () {
|
|
99
|
+
_this2.forceUpdate();
|
|
100
|
+
});
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
_proto2.bind = function bind(name) {
|
|
104
|
+
var _this3 = this;
|
|
105
|
+
|
|
106
|
+
var names = Array.isArray(name) ? name : [name];
|
|
107
|
+
var formDatum = this.props.formDatum;
|
|
108
|
+
|
|
109
|
+
if (formDatum) {
|
|
110
|
+
names.forEach(function (n) {
|
|
111
|
+
formDatum.subscribe(errorSubscribe(n), _this3.handleUpdate);
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
this.setState(immer(function (state) {
|
|
116
|
+
names.forEach(function (n) {
|
|
117
|
+
state.inputs[n] = true;
|
|
118
|
+
});
|
|
119
|
+
}));
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
_proto2.unbind = function unbind(name) {
|
|
123
|
+
var names = Array.isArray(name) ? name : [name];
|
|
124
|
+
var formDatum = this.props.formDatum;
|
|
125
|
+
|
|
126
|
+
if (formDatum) {
|
|
127
|
+
names.forEach(function (n) {
|
|
128
|
+
formDatum.unsubscribe(errorSubscribe(n));
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
this.setState(immer(function (state) {
|
|
133
|
+
names.forEach(function (n) {
|
|
134
|
+
delete state.inputs[n];
|
|
135
|
+
});
|
|
136
|
+
}));
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
_proto2.handleError = function handleError(name, error) {
|
|
140
|
+
this.setState(immer(function (state) {
|
|
141
|
+
state.errors[name] = error;
|
|
142
|
+
}));
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
_proto2.renderHelp = function renderHelp(errors) {
|
|
146
|
+
var realErrors = errors.filter(function (e) {
|
|
147
|
+
return e.message;
|
|
148
|
+
});
|
|
149
|
+
|
|
150
|
+
if (realErrors.length > 0) {
|
|
151
|
+
return React.createElement("div", {
|
|
152
|
+
className: formClass('error')
|
|
153
|
+
}, realErrors.map(function (e, i) {
|
|
154
|
+
return React.createElement("div", {
|
|
155
|
+
key: i
|
|
156
|
+
}, e.message);
|
|
157
|
+
}));
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
var tip = this.props.tip;
|
|
161
|
+
if (!tip) return null;
|
|
162
|
+
return React.createElement("div", {
|
|
163
|
+
className: formClass('tip')
|
|
164
|
+
}, tip);
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
_proto2.render = function render() {
|
|
168
|
+
var _this$props2 = this.props,
|
|
169
|
+
children = _this$props2.children,
|
|
170
|
+
grid = _this$props2.grid,
|
|
171
|
+
label = _this$props2.label,
|
|
172
|
+
labelAlign = _this$props2.labelAlign,
|
|
173
|
+
labelVerticalAlign = _this$props2.labelVerticalAlign,
|
|
174
|
+
labelWidth = _this$props2.labelWidth,
|
|
175
|
+
required = _this$props2.required,
|
|
176
|
+
style = _this$props2.style,
|
|
177
|
+
keepErrorHeight = _this$props2.keepErrorHeight;
|
|
178
|
+
var errors = this.getErrors();
|
|
179
|
+
var className = classnames(getGrid(grid), formClass('item', required && 'required', errors.length > 0 && 'invalid', labelVerticalAlign && "label-vertical-align-" + labelVerticalAlign, keepErrorHeight && "item-keep-height", ['top', 'right', 'left'].indexOf(labelAlign || '') >= 0 && "label-align-" + labelAlign), this.props.className);
|
|
180
|
+
return React.createElement(Provider, {
|
|
181
|
+
value: this.events
|
|
182
|
+
}, React.createElement("div", {
|
|
183
|
+
className: className,
|
|
184
|
+
style: style
|
|
185
|
+
}, React.createElement(Label, {
|
|
186
|
+
width: labelWidth
|
|
187
|
+
}, label), React.createElement("div", {
|
|
188
|
+
className: formClass('control')
|
|
189
|
+
}, children, this.renderHelp(errors))));
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
return Item;
|
|
193
|
+
}(Component);
|
|
194
|
+
|
|
195
|
+
_defineProperty(Item, "defaultProps", {
|
|
196
|
+
className: '',
|
|
197
|
+
style: {},
|
|
198
|
+
formItemErrors: [],
|
|
199
|
+
keepErrorHeight: false
|
|
200
|
+
});
|
|
201
|
+
|
|
202
|
+
export default Item; // eslint-disable-next-line
|
|
203
|
+
|
|
204
|
+
export var itemConsumer = function itemConsumer(Origin) {
|
|
205
|
+
return function (props) {
|
|
206
|
+
return React.createElement(Consumer, null, function (events) {
|
|
207
|
+
return React.createElement(Origin, _extends({}, props, events));
|
|
208
|
+
});
|
|
209
|
+
};
|
|
210
|
+
};
|
|
@@ -0,0 +1,436 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { FormError } from '../utils/errors';
|
|
3
|
+
import FormDatum from '../Datum/Form';
|
|
4
|
+
import { ForceAdd, ObjectType, StandardProps, RegularAttributes, PartialKeys } from '../@types/common';
|
|
5
|
+
import { FormItemRule } from '../Rule/Props';
|
|
6
|
+
import { ButtonProps } from '../Button/Props';
|
|
7
|
+
import { CardConsumerType } from '../Card/Props';
|
|
8
|
+
import { GetDatumFormProps } from '../Datum/Props';
|
|
9
|
+
export interface RuleObject {
|
|
10
|
+
[name: string]: FormItemRule<any> | RuleObject;
|
|
11
|
+
}
|
|
12
|
+
export interface FormRef<Value> {
|
|
13
|
+
getValue: () => Value;
|
|
14
|
+
validate: () => Promise<any>;
|
|
15
|
+
validateFields: (fields: string | string[]) => Promise<any>;
|
|
16
|
+
validateFieldsWithError: (fields: string | string[]) => Promise<any>;
|
|
17
|
+
clearValidate: () => void;
|
|
18
|
+
submit: (withValidate?: boolean) => void;
|
|
19
|
+
reset: () => void;
|
|
20
|
+
}
|
|
21
|
+
/** ----------------fieldSet-----------------------* */
|
|
22
|
+
export interface FieldSetChildrenFunc<Value = any> {
|
|
23
|
+
(params: {
|
|
24
|
+
list: any;
|
|
25
|
+
value: Value;
|
|
26
|
+
onChange: (value: Value) => void;
|
|
27
|
+
onRemove: () => void;
|
|
28
|
+
index: number;
|
|
29
|
+
onInsert: (value: Value) => void;
|
|
30
|
+
onAppend: (value: Value) => void;
|
|
31
|
+
error: Error[];
|
|
32
|
+
datum: FormDatum<ObjectType>;
|
|
33
|
+
}): React.ReactNode;
|
|
34
|
+
}
|
|
35
|
+
export interface FieldSetProviderValueType {
|
|
36
|
+
path?: string;
|
|
37
|
+
val?: () => Promise<FormError | true>;
|
|
38
|
+
}
|
|
39
|
+
export interface FieldSetProps<Value = any> {
|
|
40
|
+
defaultValue?: Value[];
|
|
41
|
+
empty?: (onInsert: (value: Value) => void) => React.ReactNode;
|
|
42
|
+
formDatum: FormDatum<ObjectType>;
|
|
43
|
+
name: string;
|
|
44
|
+
onError?: (error?: Error) => void;
|
|
45
|
+
/**
|
|
46
|
+
* Validation rules
|
|
47
|
+
*
|
|
48
|
+
* 校验规则
|
|
49
|
+
*
|
|
50
|
+
* default: none
|
|
51
|
+
*/
|
|
52
|
+
rules?: FormItemRule<any>;
|
|
53
|
+
/**
|
|
54
|
+
* When children type is not function, handle a set data type of object
|
|
55
|
+
*
|
|
56
|
+
* When children type is function, handle a group of data type of array. options property:
|
|
57
|
+
*
|
|
58
|
+
* list: all data of name.
|
|
59
|
+
*
|
|
60
|
+
* value: a single piece of data for the value obtained by name.
|
|
61
|
+
*
|
|
62
|
+
* onChange: a callback when the value is changing.
|
|
63
|
+
*
|
|
64
|
+
* onRemove: a callback when a child component is removed.
|
|
65
|
+
*
|
|
66
|
+
* index: the current index.
|
|
67
|
+
*
|
|
68
|
+
* onInsert: Insert a piece of data before the current item.
|
|
69
|
+
*
|
|
70
|
+
* onAppend: Insert a piece of data after the current item.
|
|
71
|
+
*
|
|
72
|
+
* children 不为 function,用来处理 object 类型数据,children 内的 name 会拼接 FieldSet name,如 FieldSet name 为 'a', children 元素name 为 b,children 实际处理的数据为 a.b;
|
|
73
|
+
*
|
|
74
|
+
* children 为 function 时,用来处理数组数据。options 属性为
|
|
75
|
+
*
|
|
76
|
+
* list: name 下的全部数据。
|
|
77
|
+
*
|
|
78
|
+
* value: 根据name获取的值的单条数据。
|
|
79
|
+
*
|
|
80
|
+
* onChange: 子组件数据改变回调。
|
|
81
|
+
*
|
|
82
|
+
* onRemove: 子组件删除回调。
|
|
83
|
+
*
|
|
84
|
+
* index: 当前项索引。
|
|
85
|
+
*
|
|
86
|
+
* onInsert: 在当前项之前插入一条数据。
|
|
87
|
+
*
|
|
88
|
+
* onAppend: 在当前项之后附加一条数据。
|
|
89
|
+
*
|
|
90
|
+
* default: required
|
|
91
|
+
*/
|
|
92
|
+
children?: FieldSetChildrenFunc<Value> | React.ReactNode;
|
|
93
|
+
}
|
|
94
|
+
export declare type GetFieldSetConsumerProps<U> = Omit<U, 'innerFormNamePath' | 'fieldSetValidate'>;
|
|
95
|
+
/** ----------------formContext-----------------------* */
|
|
96
|
+
export interface FormContextValue {
|
|
97
|
+
formDatum: FormDatum<ObjectType>;
|
|
98
|
+
formMode?: string;
|
|
99
|
+
disabled?: any;
|
|
100
|
+
labelAlign?: 'top' | 'left' | 'right';
|
|
101
|
+
labelVerticalAlign?: 'top' | 'middle' | 'bottom';
|
|
102
|
+
size?: RegularAttributes.Size;
|
|
103
|
+
labelWidth?: string | number;
|
|
104
|
+
combineRules: <U>(name: string, rule: FormItemRule<U>) => FormItemRule<U>;
|
|
105
|
+
keepErrorHeight?: boolean;
|
|
106
|
+
}
|
|
107
|
+
export interface FormProviderProps<V extends ObjectType> {
|
|
108
|
+
datum: FormDatum<V>;
|
|
109
|
+
disabled?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* The default is empty, follow the theme style.
|
|
112
|
+
*
|
|
113
|
+
* 默认为空,跟随主题样式。
|
|
114
|
+
*
|
|
115
|
+
* default:
|
|
116
|
+
*/
|
|
117
|
+
labelAlign?: 'top' | 'left' | 'right';
|
|
118
|
+
/**
|
|
119
|
+
* the default value is top.
|
|
120
|
+
*
|
|
121
|
+
* 默认顶部对齐
|
|
122
|
+
*
|
|
123
|
+
* default: 'top'
|
|
124
|
+
*/
|
|
125
|
+
labelVerticalAlign?: 'top' | 'middle' | 'bottom';
|
|
126
|
+
size?: RegularAttributes.Size;
|
|
127
|
+
/**
|
|
128
|
+
* The width of label. It is invalid when labelAlign is 'top'.
|
|
129
|
+
*
|
|
130
|
+
* 标签宽度,labelAlign 为 'top' 时无效。
|
|
131
|
+
*
|
|
132
|
+
* default: 140px
|
|
133
|
+
*/
|
|
134
|
+
labelWidth?: number | string;
|
|
135
|
+
/**
|
|
136
|
+
* mode, with useMode
|
|
137
|
+
*
|
|
138
|
+
* 模式,和 useMode 配合使用
|
|
139
|
+
*
|
|
140
|
+
* default:
|
|
141
|
+
*/
|
|
142
|
+
mode?: string;
|
|
143
|
+
pending?: boolean;
|
|
144
|
+
rules?: RuleObject;
|
|
145
|
+
/**
|
|
146
|
+
* Single-line error prompt will not stretch the page height
|
|
147
|
+
*
|
|
148
|
+
* 单行错误提示不撑开页面高度
|
|
149
|
+
*
|
|
150
|
+
* default: false
|
|
151
|
+
*/
|
|
152
|
+
keepErrorHeight?: boolean;
|
|
153
|
+
}
|
|
154
|
+
export declare type FormContextKey = keyof FormContextValue;
|
|
155
|
+
export declare type GetFormConsumerProps<U, Keys extends FormContextKey> = Omit<PartialKeys<U, Keys>, 'formDatum' | 'combineRules'>;
|
|
156
|
+
export declare type GetFormProviderProps<U, Value> = ForceAdd<U, FormProviderProps<Value>>;
|
|
157
|
+
/** ----------------formItemContext-----------------------* */
|
|
158
|
+
export interface FormItemContextValue {
|
|
159
|
+
onItemError?: (id: string, error?: Error) => void;
|
|
160
|
+
bindInputToItem?: (name: string) => void;
|
|
161
|
+
unbindInputFromItem?: (name: string) => void;
|
|
162
|
+
}
|
|
163
|
+
export declare type GetFormItemConsumerProps<U> = Omit<U, keyof FormItemContextValue>;
|
|
164
|
+
/** ----------------inputable-----------------------* */
|
|
165
|
+
export interface BaseInputProps {
|
|
166
|
+
value?: any;
|
|
167
|
+
onChange?: any;
|
|
168
|
+
}
|
|
169
|
+
export interface InputableProps<Value> {
|
|
170
|
+
beforeChange?: (value: Value | undefined, datum: FormDatum<ObjectType>) => Value | undefined | void;
|
|
171
|
+
onChange?: (value: Value | undefined, ...rest: any) => void;
|
|
172
|
+
onError?: (e?: Error) => void;
|
|
173
|
+
popover?: string;
|
|
174
|
+
value?: Value;
|
|
175
|
+
error?: Error;
|
|
176
|
+
disabled?: boolean;
|
|
177
|
+
filterSameChange?: boolean;
|
|
178
|
+
combineRules?: (name: string, rules?: FormItemRule<Value>) => FormItemRule<Value>;
|
|
179
|
+
required?: boolean;
|
|
180
|
+
bind?: string[];
|
|
181
|
+
onItemError?: (id: string, error?: Error) => void;
|
|
182
|
+
bindInputToItem?: (name: string) => void;
|
|
183
|
+
unbindInputFromItem?: (name: string) => void;
|
|
184
|
+
scuSkip?: string[];
|
|
185
|
+
defaultValue?: Value;
|
|
186
|
+
reserveAble?: boolean;
|
|
187
|
+
rules?: FormItemRule<Value>;
|
|
188
|
+
/**
|
|
189
|
+
* 内部属性
|
|
190
|
+
*/
|
|
191
|
+
formDatum?: FormDatum<ObjectType>;
|
|
192
|
+
fieldSetValidate?: (validator: boolean) => void;
|
|
193
|
+
name?: string | string[];
|
|
194
|
+
forceChangeOnValueSet?: boolean;
|
|
195
|
+
}
|
|
196
|
+
export declare type InputableFormConsumerKey = 'formDatum' | 'disabled' | 'combineRules' | 'size';
|
|
197
|
+
declare type InputablePropsFiltered<Value> = Omit<InputableProps<Value>, 'required'>;
|
|
198
|
+
declare type HandleValueProps<Props extends BaseInputProps> = Omit<Props, 'value' | 'onChange' | 'validateHook'> & Partial<Pick<Props, 'value' | 'onChange'>>;
|
|
199
|
+
declare type AddInputProps<Props extends BaseInputProps, Value> = ForceAdd<HandleValueProps<Props>, InputablePropsFiltered<Value>>;
|
|
200
|
+
declare type InputWidthFieldSet<Props, Value> = GetFieldSetConsumerProps<AddInputProps<Props, Value>>;
|
|
201
|
+
declare type InputWidthItem<Props, Value> = GetFormItemConsumerProps<InputWidthFieldSet<Props, Value>>;
|
|
202
|
+
declare type InputWidthForm<Props, Value> = GetFormConsumerProps<InputWidthItem<Props, Value>, InputableFormConsumerKey>;
|
|
203
|
+
export declare type GetInputableProps<Props extends BaseInputProps, Value> = InputWidthForm<Props, Value>;
|
|
204
|
+
/** ----------------formMode-----------------------* */
|
|
205
|
+
export interface FormModeProps {
|
|
206
|
+
formMode?: string;
|
|
207
|
+
reverse?: boolean;
|
|
208
|
+
children?: React.ReactNode;
|
|
209
|
+
}
|
|
210
|
+
/** ----------------form-----------------------* */
|
|
211
|
+
export declare type formStatus = 'disabled' | 'pending' | '';
|
|
212
|
+
export interface SimpleFormProps<Value = ObjectType> extends StandardProps {
|
|
213
|
+
/**
|
|
214
|
+
* Form value
|
|
215
|
+
*
|
|
216
|
+
* Form值
|
|
217
|
+
*
|
|
218
|
+
* default:
|
|
219
|
+
*/
|
|
220
|
+
value?: Value;
|
|
221
|
+
datum: FormDatum<ObjectType>;
|
|
222
|
+
/**
|
|
223
|
+
* When disabled is true, all the elements in the form are disabled.
|
|
224
|
+
*
|
|
225
|
+
* 是否禁用,为 true 时,表单内所有元素 disabled 都为 true
|
|
226
|
+
*
|
|
227
|
+
* default: false
|
|
228
|
+
*/
|
|
229
|
+
disabled?: boolean;
|
|
230
|
+
/**
|
|
231
|
+
* When inline is true, the form is horizontal layout
|
|
232
|
+
*
|
|
233
|
+
* 是否水平布局
|
|
234
|
+
*
|
|
235
|
+
* default: false
|
|
236
|
+
*/
|
|
237
|
+
inline?: boolean;
|
|
238
|
+
layout?: string;
|
|
239
|
+
pending?: boolean;
|
|
240
|
+
/**
|
|
241
|
+
* callback when the error happens
|
|
242
|
+
*
|
|
243
|
+
* 异常回调处理
|
|
244
|
+
*
|
|
245
|
+
* default:
|
|
246
|
+
*/
|
|
247
|
+
onError?: (e: Error) => void;
|
|
248
|
+
/**
|
|
249
|
+
* Validation rules
|
|
250
|
+
*
|
|
251
|
+
* 校验规则
|
|
252
|
+
*
|
|
253
|
+
* default: none
|
|
254
|
+
*/
|
|
255
|
+
onReset?: () => void;
|
|
256
|
+
/**
|
|
257
|
+
* the function for Form Submission. When the internal validation fails, it will not be triggered.
|
|
258
|
+
*
|
|
259
|
+
* 表单提交函数。表单内部校验失败时不会触发。
|
|
260
|
+
*
|
|
261
|
+
* default:
|
|
262
|
+
*/
|
|
263
|
+
onSubmit?: (data: Value, detail?: any, event?: Event) => void;
|
|
264
|
+
/**
|
|
265
|
+
* Validation rules
|
|
266
|
+
*
|
|
267
|
+
* 校验规则
|
|
268
|
+
*
|
|
269
|
+
* default: none
|
|
270
|
+
*/
|
|
271
|
+
rules?: RuleObject;
|
|
272
|
+
/**
|
|
273
|
+
* When the verification fails, whether to scroll to the first verification failure component, when the value is a number, it means the offset relative to the top
|
|
274
|
+
*
|
|
275
|
+
* 校验失败时是否滚动到第一个校验失败组件,该值为数字时,表示相对于顶部的偏移量
|
|
276
|
+
*
|
|
277
|
+
* default: false
|
|
278
|
+
*/
|
|
279
|
+
scrollToError?: boolean | number;
|
|
280
|
+
setFormStatus: (status: formStatus) => void;
|
|
281
|
+
/**
|
|
282
|
+
* ms, the interval between two submissions(Prevent repeat submission)
|
|
283
|
+
*
|
|
284
|
+
* ms, 两次提交间隔时长(防止重复提交)
|
|
285
|
+
*
|
|
286
|
+
* default: 1000
|
|
287
|
+
*/
|
|
288
|
+
throttle?: number;
|
|
289
|
+
/**
|
|
290
|
+
* bind form ref, Can call some form methods
|
|
291
|
+
*
|
|
292
|
+
* 绑定 form 的引用, 可以调用某些 form 的方法
|
|
293
|
+
*
|
|
294
|
+
* default: -
|
|
295
|
+
*/
|
|
296
|
+
formRef?: ((form: FormRef<Value>) => void) | {
|
|
297
|
+
current?: FormRef<Value>;
|
|
298
|
+
};
|
|
299
|
+
error?: ObjectType<string | Error>;
|
|
300
|
+
}
|
|
301
|
+
/** ----------------formItem-----------------------* */
|
|
302
|
+
export interface ItemProps extends StandardProps {
|
|
303
|
+
grid?: number | {
|
|
304
|
+
width: number;
|
|
305
|
+
offset: number;
|
|
306
|
+
response: 'sm' | 'md' | 'lg' | 'xl';
|
|
307
|
+
};
|
|
308
|
+
/**
|
|
309
|
+
* Single-line error prompt will not stretch the page height
|
|
310
|
+
*
|
|
311
|
+
* 单行错误提示不撑开页面高度
|
|
312
|
+
*
|
|
313
|
+
* default: false
|
|
314
|
+
*/
|
|
315
|
+
keepErrorHeight?: boolean;
|
|
316
|
+
/**
|
|
317
|
+
* When it is undefined, the tag does not be rendered or occupy space. If there is no content, but it needs to be occupied, you can use an empty string ''.
|
|
318
|
+
*
|
|
319
|
+
* 未定义时,标签不会render,也不会占位。如果无内容需要占位,使用空字符串 ''。
|
|
320
|
+
*
|
|
321
|
+
* default: undefined
|
|
322
|
+
*/
|
|
323
|
+
label?: React.ReactNode;
|
|
324
|
+
/**
|
|
325
|
+
* The default is empty, follow the theme style.
|
|
326
|
+
*
|
|
327
|
+
* 默认为空,跟随主题样式。
|
|
328
|
+
*
|
|
329
|
+
* default:
|
|
330
|
+
*/
|
|
331
|
+
labelAlign?: 'top' | 'left' | 'right';
|
|
332
|
+
/**
|
|
333
|
+
* The width of label. It is invalid when labelAlign is 'top'.
|
|
334
|
+
*
|
|
335
|
+
* 标签宽度,labelAlign 为 'top' 时无效。
|
|
336
|
+
*
|
|
337
|
+
* default: 140px
|
|
338
|
+
*/
|
|
339
|
+
labelWidth?: string | number;
|
|
340
|
+
/**
|
|
341
|
+
* Required tags for pure display. Do not trigger validation
|
|
342
|
+
*
|
|
343
|
+
* 必填标记,纯展示用,不会触发校验
|
|
344
|
+
*
|
|
345
|
+
* default: false
|
|
346
|
+
*/
|
|
347
|
+
required?: boolean;
|
|
348
|
+
/**
|
|
349
|
+
* Prompting information
|
|
350
|
+
*
|
|
351
|
+
* 提示文案
|
|
352
|
+
*
|
|
353
|
+
* default:
|
|
354
|
+
*/
|
|
355
|
+
tip?: React.ReactNode;
|
|
356
|
+
formDatum?: FormDatum<any>;
|
|
357
|
+
labelVerticalAlign?: 'top' | 'middle' | 'bottom';
|
|
358
|
+
}
|
|
359
|
+
/** ----------------formButton-----------------------* */
|
|
360
|
+
export interface FormButtonProps extends Omit<ButtonProps, 'htmlType' | 'onRef'> {
|
|
361
|
+
onClick?: () => void;
|
|
362
|
+
type?: RegularAttributes.Type;
|
|
363
|
+
}
|
|
364
|
+
/** ----------------Field-----------------------* */
|
|
365
|
+
export interface FieldChildrenFunc<Value = any> {
|
|
366
|
+
(params: {
|
|
367
|
+
value: Value;
|
|
368
|
+
error?: Error;
|
|
369
|
+
onChange: (value: Value) => void;
|
|
370
|
+
disabled?: boolean;
|
|
371
|
+
}): React.ReactNode;
|
|
372
|
+
}
|
|
373
|
+
export interface FieldProps<Value> {
|
|
374
|
+
cache?: boolean;
|
|
375
|
+
onChange: (value: Value) => void;
|
|
376
|
+
value: Value;
|
|
377
|
+
error?: Error;
|
|
378
|
+
disabled?: boolean;
|
|
379
|
+
/**
|
|
380
|
+
* React components that support value and onChange or function. The function object attribute is as follows: value: The value obtained from the parent Form or Form.Block by name. error: the error information of data validation. type is Error. onChange: The callback when the value is changing.
|
|
381
|
+
*
|
|
382
|
+
* 支持 value 和 onChange 的 React 组件,或者函数,函数object属性如下。value: 根据 name 从上级 Form 或 Form.Block 获取的值。error:数据校验错误信息,类型为 Error。onChange: 值改变回调函数
|
|
383
|
+
*
|
|
384
|
+
* default: required
|
|
385
|
+
*/
|
|
386
|
+
children?: React.ReactElement | FieldChildrenFunc<Value>;
|
|
387
|
+
}
|
|
388
|
+
/** ----------------FieldError-----------------------* */
|
|
389
|
+
export interface FieldErrorProps {
|
|
390
|
+
error?: Error | Error[];
|
|
391
|
+
}
|
|
392
|
+
/** ----------------Flow-----------------------* */
|
|
393
|
+
export interface FlowProps {
|
|
394
|
+
children?: (datum: FormDatum<ObjectType>) => ReactNode;
|
|
395
|
+
formDatum: FormDatum<ObjectType>;
|
|
396
|
+
names?: string[];
|
|
397
|
+
}
|
|
398
|
+
/** ----------------index-----------------------* */
|
|
399
|
+
export declare type FormCardConsumerKey = 'setFormStatus';
|
|
400
|
+
export declare type FormDatumKey = 'removeUndefined' | 'error';
|
|
401
|
+
export declare type FormPropsWithCardConsumer<Value> = CardConsumerType<SimpleFormProps<Value>, FormCardConsumerKey>;
|
|
402
|
+
export declare type FormPropsWithProvider<Value> = GetFormProviderProps<FormPropsWithCardConsumer<Value>, Value>;
|
|
403
|
+
export declare type FormProps<Value> = GetDatumFormProps<FormPropsWithProvider<Value>, Value, FormDatumKey>;
|
|
404
|
+
export declare class Form<Value> extends React.Component<FormProps<Value>, any> {
|
|
405
|
+
static Item: typeof FormItem;
|
|
406
|
+
static Field: typeof FormField;
|
|
407
|
+
static Flow: typeof FormFlow;
|
|
408
|
+
static FieldSet: typeof FormFieldSet;
|
|
409
|
+
static Submit: React.ComponentType<FormButtonProps>;
|
|
410
|
+
static Reset: React.ComponentType<FormButtonProps>;
|
|
411
|
+
static Button: React.ComponentType<FormButtonProps>;
|
|
412
|
+
static formConsumer: any;
|
|
413
|
+
static useMode: (...args: string[]) => React.ComponentType<FormModeProps>[];
|
|
414
|
+
render: () => JSX.Element;
|
|
415
|
+
}
|
|
416
|
+
export declare type FormCompType = typeof Form;
|
|
417
|
+
export declare type FormItemWithFormConsumerKeys = 'formDatum' | 'labelWidth' | 'labelAlign' | 'labelVerticalAlign' | 'keepErrorHeight';
|
|
418
|
+
export declare type FormItemProps = GetFormConsumerProps<ItemProps, FormItemWithFormConsumerKeys>;
|
|
419
|
+
export declare class FormItem extends React.Component<FormItemProps, any> {
|
|
420
|
+
render: () => JSX.Element;
|
|
421
|
+
}
|
|
422
|
+
export declare type FormFieldProps<Value> = GetInputableProps<FieldProps<Value>, Value>;
|
|
423
|
+
export declare class FormField<Value> extends React.Component<FormFieldProps<Value>, any> {
|
|
424
|
+
render: () => JSX.Element;
|
|
425
|
+
}
|
|
426
|
+
export declare type FormFlowWithFormConsumerKeys = 'formDatum';
|
|
427
|
+
export declare type FormFlowProps = GetFormConsumerProps<FlowProps, FormFlowWithFormConsumerKeys>;
|
|
428
|
+
export declare class FormFlow extends React.Component<FormFlowProps, any> {
|
|
429
|
+
render: () => JSX.Element;
|
|
430
|
+
}
|
|
431
|
+
export declare type FormFieldSetWithFormConsumerKeys = 'formDatum';
|
|
432
|
+
export declare type FormFieldSetProps<Value> = GetFormConsumerProps<FieldSetProps<Value>, FormFlowWithFormConsumerKeys>;
|
|
433
|
+
export declare class FormFieldSet<Value> extends React.Component<FormFieldSetProps<Value>, any> {
|
|
434
|
+
render: () => JSX.Element;
|
|
435
|
+
}
|
|
436
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import React from 'react';
|