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
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PureComponent } from '../component';
|
|
3
|
+
import { ColumnItem, ColumnOrder, SimpleTableProps } from './Props';
|
|
4
|
+
interface SimpleTableState {
|
|
5
|
+
colgroup?: number[];
|
|
6
|
+
overHeight: boolean;
|
|
7
|
+
overWidth: boolean;
|
|
8
|
+
resize: boolean;
|
|
9
|
+
}
|
|
10
|
+
declare class SimpleTable<DataItem, Value> extends PureComponent<SimpleTableProps<DataItem, Value>, SimpleTableState> {
|
|
11
|
+
bindHeader: (el: HTMLDivElement) => void;
|
|
12
|
+
bindBody: (el: HTMLDivElement) => void;
|
|
13
|
+
bindFooter: (el: HTMLDivElement) => void;
|
|
14
|
+
removeReiszeObserver: () => void;
|
|
15
|
+
body: HTMLDivElement;
|
|
16
|
+
header: HTMLDivElement;
|
|
17
|
+
footer: HTMLDivElement;
|
|
18
|
+
lastColGroup: number[];
|
|
19
|
+
constructor(props: SimpleTableProps<DataItem, Value>);
|
|
20
|
+
componentDidMount(): void;
|
|
21
|
+
componentDidUpdate(prevProps: SimpleTableProps<DataItem, Value>): void;
|
|
22
|
+
componentWillUnmount(): void;
|
|
23
|
+
bindElement(key: 'header' | 'body' | 'footer', el: HTMLDivElement): void;
|
|
24
|
+
resetColGroup(): void;
|
|
25
|
+
scrollCheck(): void;
|
|
26
|
+
handleSortChange(finalOrder: ColumnOrder | undefined, sorter: ColumnItem<DataItem>['sorter'], index: number, cancelOrder: ColumnOrder, manual: boolean): void;
|
|
27
|
+
handleColgroup(tds: NodeListOf<HTMLTableCellElement>): void;
|
|
28
|
+
handleScroll({ currentTarget }: {
|
|
29
|
+
currentTarget: HTMLElement;
|
|
30
|
+
}): void;
|
|
31
|
+
renderHeader(): JSX.Element;
|
|
32
|
+
renderFooter(): JSX.Element | null;
|
|
33
|
+
renderBody(): JSX.Element;
|
|
34
|
+
render(): React.ReactNode[] | JSX.Element;
|
|
35
|
+
}
|
|
36
|
+
export default SimpleTable;
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
|
|
4
|
+
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
5
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
6
|
+
import React from 'react';
|
|
7
|
+
import { PureComponent } from '../component';
|
|
8
|
+
import { tableClass } from './styles';
|
|
9
|
+
import { range, split } from '../utils/numbers';
|
|
10
|
+
import Colgroup from './Colgroup';
|
|
11
|
+
import Tbody from './Tbody';
|
|
12
|
+
import Thead from './Thead';
|
|
13
|
+
import Tfoot from './Tfoot';
|
|
14
|
+
import { compareColumns } from '../utils/shallowEqual';
|
|
15
|
+
import Sticky from '../Sticky';
|
|
16
|
+
import { addResizeObserver } from '../utils/dom/element';
|
|
17
|
+
|
|
18
|
+
function setScrollLeft(target, scrollLeft) {
|
|
19
|
+
if (target && target.scrollLeft !== scrollLeft) target.scrollLeft = scrollLeft;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
var SimpleTable =
|
|
23
|
+
/*#__PURE__*/
|
|
24
|
+
function (_PureComponent) {
|
|
25
|
+
_inheritsLoose(SimpleTable, _PureComponent);
|
|
26
|
+
|
|
27
|
+
function SimpleTable(props) {
|
|
28
|
+
var _this;
|
|
29
|
+
|
|
30
|
+
_this = _PureComponent.call(this, props) || this;
|
|
31
|
+
|
|
32
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "bindHeader", void 0);
|
|
33
|
+
|
|
34
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "bindBody", void 0);
|
|
35
|
+
|
|
36
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "bindFooter", void 0);
|
|
37
|
+
|
|
38
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "removeReiszeObserver", void 0);
|
|
39
|
+
|
|
40
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "body", void 0);
|
|
41
|
+
|
|
42
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "header", void 0);
|
|
43
|
+
|
|
44
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "footer", void 0);
|
|
45
|
+
|
|
46
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastColGroup", void 0);
|
|
47
|
+
|
|
48
|
+
_this.state = {
|
|
49
|
+
colgroup: undefined,
|
|
50
|
+
overHeight: false,
|
|
51
|
+
overWidth: false,
|
|
52
|
+
resize: false
|
|
53
|
+
};
|
|
54
|
+
_this.handleSortChange = _this.handleSortChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
55
|
+
_this.bindHeader = _this.bindElement.bind(_assertThisInitialized(_assertThisInitialized(_this)), 'header');
|
|
56
|
+
_this.bindBody = _this.bindElement.bind(_assertThisInitialized(_assertThisInitialized(_this)), 'body');
|
|
57
|
+
_this.bindFooter = _this.bindElement.bind(_assertThisInitialized(_assertThisInitialized(_this)), 'footer');
|
|
58
|
+
_this.handleScroll = _this.handleScroll.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
59
|
+
_this.handleColgroup = _this.handleColgroup.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
60
|
+
_this.resetColGroup = _this.resetColGroup.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
61
|
+
return _this;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
var _proto = SimpleTable.prototype;
|
|
65
|
+
|
|
66
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
67
|
+
this.scrollCheck();
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
|
71
|
+
this.scrollCheck();
|
|
72
|
+
var resize = prevProps.data.length === 0 && this.props.data.length; // when resize
|
|
73
|
+
|
|
74
|
+
if (resize && this.body) this.handleScroll({
|
|
75
|
+
currentTarget: this.body
|
|
76
|
+
});
|
|
77
|
+
var shouldResetColgroup = this.props.dataChangeResize && this.props.data !== prevProps.data;
|
|
78
|
+
|
|
79
|
+
if (resize || shouldResetColgroup || !compareColumns(prevProps.columns, this.props.columns)) {
|
|
80
|
+
// eslint-disable-next-line react/no-did-update-set-state
|
|
81
|
+
this.setState({
|
|
82
|
+
colgroup: undefined,
|
|
83
|
+
resize: true
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
89
|
+
if (this.body) this.body.removeEventListener('wheel', this.handleScroll);
|
|
90
|
+
if (this.removeReiszeObserver) this.removeReiszeObserver();
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
_proto.bindElement = function bindElement(key, el) {
|
|
94
|
+
this[key] = el; // this.body will be undefined on componentDidMount when columns length is 0
|
|
95
|
+
|
|
96
|
+
if (key === 'body' && el) {
|
|
97
|
+
el.addEventListener('wheel', this.handleScroll, {
|
|
98
|
+
passive: false
|
|
99
|
+
});
|
|
100
|
+
this.removeReiszeObserver = addResizeObserver(el, this.resetColGroup, {
|
|
101
|
+
direction: 'x'
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
_proto.resetColGroup = function resetColGroup() {
|
|
107
|
+
this.lastColGroup = this.state.colgroup || this.lastColGroup;
|
|
108
|
+
this.setState({
|
|
109
|
+
colgroup: undefined,
|
|
110
|
+
resize: true
|
|
111
|
+
});
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
_proto.scrollCheck = function scrollCheck() {
|
|
115
|
+
if (!this.body) return;
|
|
116
|
+
var overHeight = this.body.scrollHeight > this.body.clientHeight;
|
|
117
|
+
var overWidth = this.body.scrollWidth > this.body.clientWidth;
|
|
118
|
+
if (overWidth !== this.state.overWidth) this.setState({
|
|
119
|
+
overWidth: overWidth
|
|
120
|
+
});
|
|
121
|
+
if (overHeight !== this.state.overHeight) this.setState({
|
|
122
|
+
overHeight: overHeight
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
_proto.handleSortChange = function handleSortChange(finalOrder, sorter, index, cancelOrder, // 是否是自动触发
|
|
127
|
+
manual) {
|
|
128
|
+
if (this.body) this.body.scrollTop = 0;
|
|
129
|
+
this.props.onSortChange(finalOrder, sorter, index, cancelOrder, manual);
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
_proto.handleColgroup = function handleColgroup(tds) {
|
|
133
|
+
var columns = this.props.columns;
|
|
134
|
+
var colgroup = [];
|
|
135
|
+
|
|
136
|
+
var _loop = function _loop(i, count) {
|
|
137
|
+
var _tds$i$getBoundingCli = tds[i].getBoundingClientRect(),
|
|
138
|
+
width = _tds$i$getBoundingCli.width;
|
|
139
|
+
|
|
140
|
+
var colSpan = parseInt(tds[i].getAttribute('colspan') || '', 10);
|
|
141
|
+
|
|
142
|
+
if (colSpan > 1) {
|
|
143
|
+
split(width, range(colSpan).map(function (j) {
|
|
144
|
+
return columns[i + j].width;
|
|
145
|
+
})).forEach(function (w) {
|
|
146
|
+
return colgroup.push(w);
|
|
147
|
+
});
|
|
148
|
+
} else {
|
|
149
|
+
colgroup.push(width);
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
for (var i = 0, count = tds.length; i < count; i++) {
|
|
154
|
+
_loop(i, count);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
this.setState({
|
|
158
|
+
colgroup: colgroup,
|
|
159
|
+
resize: false
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
_proto.handleScroll = function handleScroll(_ref) {
|
|
164
|
+
var currentTarget = _ref.currentTarget;
|
|
165
|
+
var scrollLeft = currentTarget.scrollLeft;
|
|
166
|
+
setScrollLeft(this.header, scrollLeft);
|
|
167
|
+
setScrollLeft(this.body, scrollLeft);
|
|
168
|
+
setScrollLeft(this.footer, scrollLeft);
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
_proto.renderHeader = function renderHeader() {
|
|
172
|
+
var _this$props = this.props,
|
|
173
|
+
columns = _this$props.columns,
|
|
174
|
+
width = _this$props.width,
|
|
175
|
+
data = _this$props.data,
|
|
176
|
+
onResize = _this$props.onResize,
|
|
177
|
+
columnResizable = _this$props.columnResizable,
|
|
178
|
+
sticky = _this$props.sticky,
|
|
179
|
+
bordered = _this$props.bordered;
|
|
180
|
+
var _this$state = this.state,
|
|
181
|
+
colgroup = _this$state.colgroup,
|
|
182
|
+
overHeight = _this$state.overHeight;
|
|
183
|
+
var inner = React.createElement("table", {
|
|
184
|
+
style: {
|
|
185
|
+
width: width
|
|
186
|
+
},
|
|
187
|
+
className: tableClass(bordered && 'table-bordered')
|
|
188
|
+
}, React.createElement(Colgroup, {
|
|
189
|
+
colgroup: colgroup || this.lastColGroup,
|
|
190
|
+
columns: columns,
|
|
191
|
+
resizable: columnResizable
|
|
192
|
+
}), React.createElement(Thead, _extends({}, this.props, {
|
|
193
|
+
colgroup: colgroup,
|
|
194
|
+
onSortChange: this.handleSortChange,
|
|
195
|
+
onColChange: onResize
|
|
196
|
+
})));
|
|
197
|
+
var empty = data.length === 0;
|
|
198
|
+
var headerStyle = {};
|
|
199
|
+
if (!empty) headerStyle.overflowY = overHeight ? 'scroll' : 'hidden';
|
|
200
|
+
var header = React.createElement("div", {
|
|
201
|
+
key: "head",
|
|
202
|
+
style: headerStyle,
|
|
203
|
+
className: tableClass('head', 'simple-head', empty && 'empty-head'),
|
|
204
|
+
ref: this.bindHeader
|
|
205
|
+
}, inner);
|
|
206
|
+
|
|
207
|
+
if (sticky) {
|
|
208
|
+
var stickyProps = Object.assign({
|
|
209
|
+
top: 0
|
|
210
|
+
}, sticky);
|
|
211
|
+
return React.createElement(Sticky, _extends({}, stickyProps, {
|
|
212
|
+
key: "head"
|
|
213
|
+
}), header);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
return header;
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
_proto.renderFooter = function renderFooter() {
|
|
220
|
+
var _this$props2 = this.props,
|
|
221
|
+
columns = _this$props2.columns,
|
|
222
|
+
width = _this$props2.width,
|
|
223
|
+
data = _this$props2.data,
|
|
224
|
+
columnResizable = _this$props2.columnResizable,
|
|
225
|
+
bordered = _this$props2.bordered,
|
|
226
|
+
summary = _this$props2.summary;
|
|
227
|
+
var _this$state2 = this.state,
|
|
228
|
+
colgroup = _this$state2.colgroup,
|
|
229
|
+
overHeight = _this$state2.overHeight,
|
|
230
|
+
overWidth = _this$state2.overWidth;
|
|
231
|
+
if (!(data && data.length)) return null;
|
|
232
|
+
if (!(summary && summary.length)) return null;
|
|
233
|
+
var inner = React.createElement("table", {
|
|
234
|
+
style: {
|
|
235
|
+
width: width
|
|
236
|
+
},
|
|
237
|
+
className: tableClass(bordered && 'table-bordered')
|
|
238
|
+
}, React.createElement(Colgroup, {
|
|
239
|
+
colgroup: colgroup || this.lastColGroup,
|
|
240
|
+
columns: columns,
|
|
241
|
+
resizable: columnResizable
|
|
242
|
+
}), React.createElement(Tfoot, this.props));
|
|
243
|
+
var footStyle = {};
|
|
244
|
+
footStyle.overflowY = overHeight ? 'scroll' : 'hidden';
|
|
245
|
+
var footer = React.createElement("div", {
|
|
246
|
+
key: "foot",
|
|
247
|
+
style: footStyle,
|
|
248
|
+
className: tableClass('foot', overWidth && 'foot-scroll-x', 'simple-foot'),
|
|
249
|
+
ref: this.bindFooter,
|
|
250
|
+
onScroll: this.handleScroll
|
|
251
|
+
}, inner);
|
|
252
|
+
return footer;
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
_proto.renderBody = function renderBody() {
|
|
256
|
+
var _this$props3 = this.props,
|
|
257
|
+
columns = _this$props3.columns,
|
|
258
|
+
width = _this$props3.width,
|
|
259
|
+
fixed = _this$props3.fixed,
|
|
260
|
+
columnResizable = _this$props3.columnResizable,
|
|
261
|
+
bordered = _this$props3.bordered,
|
|
262
|
+
others = _objectWithoutPropertiesLoose(_this$props3, ["columns", "width", "fixed", "columnResizable", "bordered"]);
|
|
263
|
+
|
|
264
|
+
var _this$state3 = this.state,
|
|
265
|
+
colgroup = _this$state3.colgroup,
|
|
266
|
+
resize = _this$state3.resize;
|
|
267
|
+
var minWidthSup = columns.find(function (d) {
|
|
268
|
+
return d.minWidth;
|
|
269
|
+
});
|
|
270
|
+
return React.createElement("div", {
|
|
271
|
+
key: "body",
|
|
272
|
+
className: tableClass('simple-body'),
|
|
273
|
+
ref: this.bindBody,
|
|
274
|
+
onScroll: this.handleScroll
|
|
275
|
+
}, React.createElement("table", {
|
|
276
|
+
style: {
|
|
277
|
+
width: width
|
|
278
|
+
},
|
|
279
|
+
className: tableClass(!colgroup && minWidthSup && 'init', bordered && 'table-bordered')
|
|
280
|
+
}, React.createElement(Colgroup, {
|
|
281
|
+
colgroup: colgroup,
|
|
282
|
+
columns: columns,
|
|
283
|
+
resizable: columnResizable
|
|
284
|
+
}), React.createElement(Tbody, _extends({
|
|
285
|
+
colgroup: colgroup,
|
|
286
|
+
lazy: false,
|
|
287
|
+
index: 0,
|
|
288
|
+
columns: columns,
|
|
289
|
+
onBodyRender: this.handleColgroup,
|
|
290
|
+
resize: resize,
|
|
291
|
+
bordered: bordered,
|
|
292
|
+
columnResizable: columnResizable
|
|
293
|
+
}, others))));
|
|
294
|
+
};
|
|
295
|
+
|
|
296
|
+
_proto.render = function render() {
|
|
297
|
+
var _this$props4 = this.props,
|
|
298
|
+
columns = _this$props4.columns,
|
|
299
|
+
width = _this$props4.width,
|
|
300
|
+
children = _this$props4.children,
|
|
301
|
+
hideHeader = _this$props4.hideHeader,
|
|
302
|
+
bordered = _this$props4.bordered;
|
|
303
|
+
if (!columns || columns.length === 0) return React.createElement("table", {
|
|
304
|
+
style: {
|
|
305
|
+
width: width
|
|
306
|
+
},
|
|
307
|
+
className: tableClass(bordered && 'table-bordered')
|
|
308
|
+
}, children);
|
|
309
|
+
return [hideHeader ? null : this.renderHeader(), this.renderBody(), this.renderFooter(), children];
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
return SimpleTable;
|
|
313
|
+
}(PureComponent);
|
|
314
|
+
|
|
315
|
+
export default SimpleTable;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { PureComponent } from 'react';
|
|
2
|
+
import { ColumnOrder, SorterProps } from './Props';
|
|
3
|
+
declare class Sorter<DataItem, Value> extends PureComponent<SorterProps<DataItem, Value>> {
|
|
4
|
+
constructor(props: SorterProps<DataItem, Value>);
|
|
5
|
+
componentDidMount(): void;
|
|
6
|
+
componentDidUpdate(): void;
|
|
7
|
+
defaultSorterOrder(): void;
|
|
8
|
+
handleChange(order: ColumnOrder, manual?: boolean): void;
|
|
9
|
+
handleAsc(): void;
|
|
10
|
+
handleDesc(): void;
|
|
11
|
+
render(): JSX.Element;
|
|
12
|
+
}
|
|
13
|
+
export default Sorter;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
|
|
2
|
+
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
3
|
+
import React, { PureComponent } from 'react';
|
|
4
|
+
import { tableClass } from './styles';
|
|
5
|
+
|
|
6
|
+
var Sorter =
|
|
7
|
+
/*#__PURE__*/
|
|
8
|
+
function (_PureComponent) {
|
|
9
|
+
_inheritsLoose(Sorter, _PureComponent);
|
|
10
|
+
|
|
11
|
+
function Sorter(props) {
|
|
12
|
+
var _this;
|
|
13
|
+
|
|
14
|
+
_this = _PureComponent.call(this, props) || this;
|
|
15
|
+
_this.handleAsc = _this.handleAsc.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
16
|
+
_this.handleDesc = _this.handleDesc.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
17
|
+
return _this;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
var _proto = Sorter.prototype;
|
|
21
|
+
|
|
22
|
+
_proto.componentDidMount = function componentDidMount() {
|
|
23
|
+
this.defaultSorterOrder();
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
_proto.componentDidUpdate = function componentDidUpdate() {
|
|
27
|
+
this.defaultSorterOrder();
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
_proto.defaultSorterOrder = function defaultSorterOrder() {
|
|
31
|
+
var _this$props = this.props,
|
|
32
|
+
defaultOrder = _this$props.defaultOrder,
|
|
33
|
+
_this$props$current = _this$props.current,
|
|
34
|
+
current = _this$props$current === void 0 ? [] : _this$props$current,
|
|
35
|
+
index = _this$props.index;
|
|
36
|
+
if (current.length !== 1) return;
|
|
37
|
+
var item = current[0];
|
|
38
|
+
var changed = index === item.index && defaultOrder === item.order;
|
|
39
|
+
if (defaultOrder && !changed && !item.manual) this.handleChange(defaultOrder, false);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
_proto.handleChange = function handleChange(order, manual) {
|
|
43
|
+
if (manual === void 0) {
|
|
44
|
+
manual = true;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
var _this$props2 = this.props,
|
|
48
|
+
sorter = _this$props2.sorter,
|
|
49
|
+
index = _this$props2.index,
|
|
50
|
+
onChange = _this$props2.onChange,
|
|
51
|
+
_this$props2$current = _this$props2.current,
|
|
52
|
+
current = _this$props2$current === void 0 ? [] : _this$props2$current;
|
|
53
|
+
var item = current.find(function (v) {
|
|
54
|
+
return v.index === index;
|
|
55
|
+
});
|
|
56
|
+
var isCancel = !!item && order === item.order;
|
|
57
|
+
var finalOrder = isCancel ? undefined : order;
|
|
58
|
+
onChange(finalOrder, sorter, index, order, manual);
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
_proto.handleAsc = function handleAsc() {
|
|
62
|
+
this.handleChange('asc');
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
_proto.handleDesc = function handleDesc() {
|
|
66
|
+
this.handleChange('desc');
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
_proto.render = function render() {
|
|
70
|
+
var _this$props3 = this.props,
|
|
71
|
+
_this$props3$current = _this$props3.current,
|
|
72
|
+
current = _this$props3$current === void 0 ? [] : _this$props3$current,
|
|
73
|
+
index = _this$props3.index,
|
|
74
|
+
renderSorter = _this$props3.renderSorter;
|
|
75
|
+
var item = current.find(function (v) {
|
|
76
|
+
return v.index === index;
|
|
77
|
+
});
|
|
78
|
+
var active = !!item;
|
|
79
|
+
var isCustomRender = renderSorter && typeof renderSorter === 'function';
|
|
80
|
+
return React.createElement("div", {
|
|
81
|
+
className: tableClass('sorter-container')
|
|
82
|
+
}, isCustomRender ? renderSorter({
|
|
83
|
+
status: active ? item.order : undefined,
|
|
84
|
+
triggerAsc: this.handleAsc,
|
|
85
|
+
triggerDesc: this.handleDesc
|
|
86
|
+
}) : React.createElement(React.Fragment, null, React.createElement("a", {
|
|
87
|
+
key: "asc",
|
|
88
|
+
className: tableClass(active && item.order === 'asc' && 'sorter-active', 'sorter-asc'),
|
|
89
|
+
onClick: this.handleAsc
|
|
90
|
+
}, "\xA0"), React.createElement("a", {
|
|
91
|
+
key: "desc",
|
|
92
|
+
className: tableClass(active && item.order === 'desc' && 'sorter-active', 'sorter-desc'),
|
|
93
|
+
onClick: this.handleDesc
|
|
94
|
+
}, "\xA0")));
|
|
95
|
+
};
|
|
96
|
+
|
|
97
|
+
return Sorter;
|
|
98
|
+
}(PureComponent);
|
|
99
|
+
|
|
100
|
+
export default Sorter;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
import _objectSpread from "@babel/runtime/helpers/objectSpread";
|
|
2
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
3
|
+
import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
|
|
4
|
+
import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
|
|
5
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
6
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import classnames from 'classnames';
|
|
9
|
+
import { isRTL } from '../config';
|
|
10
|
+
import { Component } from '../component';
|
|
11
|
+
import { getLocale } from '../locale';
|
|
12
|
+
import { compose } from '../utils/func';
|
|
13
|
+
import { getDirectionClass } from '../utils/classname';
|
|
14
|
+
import { tableClass } from './styles';
|
|
15
|
+
import fixedAuto from './fixedAuto';
|
|
16
|
+
import Datum from '../Datum';
|
|
17
|
+
import Spin from '../Spin';
|
|
18
|
+
import resizableHOC from './resizable';
|
|
19
|
+
import { consumer as hideableConsumer } from '../hoc/hidable';
|
|
20
|
+
import SeperateTable from './SeperateTable';
|
|
21
|
+
import SimpleTable from './SimpleTable';
|
|
22
|
+
import { ROW_HEIGHT_UPDATE_EVENT } from './Tr';
|
|
23
|
+
import { RENDER_COL_GROUP_EVENT } from './Tbody';
|
|
24
|
+
import select from './select';
|
|
25
|
+
var ResizeSeperateTable = resizableHOC(SeperateTable);
|
|
26
|
+
var ResizeSimpleTable = resizableHOC(SimpleTable);
|
|
27
|
+
|
|
28
|
+
var RadioWrapper = function RadioWrapper(Origin) {
|
|
29
|
+
return function (props) {
|
|
30
|
+
return React.createElement(Origin, _extends({}, props, {
|
|
31
|
+
distinct: true,
|
|
32
|
+
limit: props.radio ? 1 : 0
|
|
33
|
+
}));
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
var DefaultProps = {
|
|
38
|
+
hover: true,
|
|
39
|
+
rowsInView: 20,
|
|
40
|
+
verticalAlign: 'top',
|
|
41
|
+
columns: [],
|
|
42
|
+
size: 'default'
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
var Table =
|
|
46
|
+
/*#__PURE__*/
|
|
47
|
+
function (_Component) {
|
|
48
|
+
_inheritsLoose(Table, _Component);
|
|
49
|
+
|
|
50
|
+
function Table(props) {
|
|
51
|
+
var _this;
|
|
52
|
+
|
|
53
|
+
_this = _Component.call(this, props) || this;
|
|
54
|
+
|
|
55
|
+
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "table", void 0);
|
|
56
|
+
|
|
57
|
+
_this.state = {
|
|
58
|
+
scrollLeft: 0,
|
|
59
|
+
scrollRight: 0
|
|
60
|
+
};
|
|
61
|
+
_this.bindTable = _this.bindTable.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
62
|
+
return _this;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
var _proto = Table.prototype;
|
|
66
|
+
|
|
67
|
+
_proto.componentDidUpdate = function componentDidUpdate(preProps) {
|
|
68
|
+
var _this$props = this.props,
|
|
69
|
+
datum = _this$props.datum,
|
|
70
|
+
treeCheckAll = _this$props.treeCheckAll;
|
|
71
|
+
datum.dispatch(ROW_HEIGHT_UPDATE_EVENT);
|
|
72
|
+
datum.dispatch(RENDER_COL_GROUP_EVENT);
|
|
73
|
+
|
|
74
|
+
if (treeCheckAll && this.props.data !== preProps.data) {
|
|
75
|
+
datum.cleanDataCache();
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
_proto.getRowsInView = function getRowsInView() {
|
|
80
|
+
var _this$props2 = this.props,
|
|
81
|
+
_this$props2$rowsInVi = _this$props2.rowsInView,
|
|
82
|
+
rowsInView = _this$props2$rowsInVi === void 0 ? DefaultProps.rowsInView : _this$props2$rowsInVi,
|
|
83
|
+
data = _this$props2.data,
|
|
84
|
+
fixed = _this$props2.fixed;
|
|
85
|
+
var dataLength = data.length;
|
|
86
|
+
if (rowsInView <= 0 || rowsInView > dataLength || fixed === 'x') return dataLength;
|
|
87
|
+
return parseInt(String(rowsInView), 10);
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
_proto.bindTable = function bindTable(el) {
|
|
91
|
+
var bindWrapper = this.props.bindWrapper;
|
|
92
|
+
this.table = el;
|
|
93
|
+
if (el && bindWrapper) bindWrapper(el);
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
_proto.render = function render() {
|
|
97
|
+
var _this$props3 = this.props,
|
|
98
|
+
striped = _this$props3.striped,
|
|
99
|
+
bordered = _this$props3.bordered,
|
|
100
|
+
size = _this$props3.size,
|
|
101
|
+
hover = _this$props3.hover,
|
|
102
|
+
height = _this$props3.height,
|
|
103
|
+
columns = _this$props3.columns,
|
|
104
|
+
children = _this$props3.children,
|
|
105
|
+
empty = _this$props3.empty,
|
|
106
|
+
data = _this$props3.data,
|
|
107
|
+
style = _this$props3.style,
|
|
108
|
+
fixed = _this$props3.fixed,
|
|
109
|
+
width = _this$props3.width,
|
|
110
|
+
loading = _this$props3.loading,
|
|
111
|
+
verticalAlign = _this$props3.verticalAlign,
|
|
112
|
+
columnResizable = _this$props3.columnResizable,
|
|
113
|
+
events = _this$props3.events,
|
|
114
|
+
others = _objectWithoutPropertiesLoose(_this$props3, ["striped", "bordered", "size", "hover", "height", "columns", "children", "empty", "data", "style", "fixed", "width", "loading", "verticalAlign", "columnResizable", "events"]);
|
|
115
|
+
|
|
116
|
+
var _this$state = this.state,
|
|
117
|
+
scrollLeft = _this$state.scrollLeft,
|
|
118
|
+
scrollRight = _this$state.scrollRight;
|
|
119
|
+
var className = classnames(tableClass('_', size, hover && 'hover', bordered && 'bordered', fixed && 'fixed', scrollLeft > 0 && 'left-float', scrollRight < 0 && 'right-float', "vertical-" + verticalAlign, columnResizable && 'resize', others.sticky && 'sticky', isRTL() && 'rtl'), this.props.className);
|
|
120
|
+
|
|
121
|
+
var props = _objectSpread({}, others, {
|
|
122
|
+
children: children,
|
|
123
|
+
fixed: fixed,
|
|
124
|
+
rowsInView: this.getRowsInView(),
|
|
125
|
+
loading: loading,
|
|
126
|
+
height: height,
|
|
127
|
+
width: width,
|
|
128
|
+
data: data,
|
|
129
|
+
columns: columns,
|
|
130
|
+
striped: striped,
|
|
131
|
+
bordered: bordered,
|
|
132
|
+
columnResizable: columnResizable
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
var isEmpty = (!data || data.length === 0) && !children;
|
|
136
|
+
var useSeparate = fixed && !isEmpty;
|
|
137
|
+
var ResizeSepTable = columnResizable ? ResizeSeperateTable : SeperateTable;
|
|
138
|
+
var ResizeSimTable = columnResizable ? ResizeSimpleTable : SimpleTable;
|
|
139
|
+
var RenderTable = useSeparate ? ResizeSepTable : ResizeSimTable;
|
|
140
|
+
var newStyle = Object.assign({}, style);
|
|
141
|
+
if (height) newStyle.height = height;
|
|
142
|
+
if (useSeparate && !newStyle.height) newStyle.height = '100%';
|
|
143
|
+
if (loading) newStyle.overflow = 'hidden';
|
|
144
|
+
return React.createElement("div", _extends({
|
|
145
|
+
className: className,
|
|
146
|
+
ref: this.bindTable,
|
|
147
|
+
style: newStyle
|
|
148
|
+
}, events), React.createElement(RenderTable, _extends({}, props, {
|
|
149
|
+
bordered: bordered
|
|
150
|
+
})), loading && React.createElement("div", {
|
|
151
|
+
className: tableClass('loading')
|
|
152
|
+
}, typeof loading === 'boolean' ? React.createElement(Spin, {
|
|
153
|
+
size: 40
|
|
154
|
+
}) : loading), isEmpty && React.createElement("div", {
|
|
155
|
+
className: tableClass(getDirectionClass('empty')),
|
|
156
|
+
style: {
|
|
157
|
+
visibility: loading ? 'hidden' : 'visible'
|
|
158
|
+
}
|
|
159
|
+
}, React.createElement("span", null, empty || getLocale('noData'))));
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
return Table;
|
|
163
|
+
}(Component);
|
|
164
|
+
|
|
165
|
+
_defineProperty(Table, "defaultProps", DefaultProps);
|
|
166
|
+
|
|
167
|
+
var bindKeys = ['disabled', 'format', 'prediction', 'limit', 'distinct'];
|
|
168
|
+
export default compose(RadioWrapper, Datum.hoc({
|
|
169
|
+
bindProps: bindKeys,
|
|
170
|
+
ignoreUndefined: true,
|
|
171
|
+
setValueType: null,
|
|
172
|
+
pure: false
|
|
173
|
+
}), fixedAuto, hideableConsumer, select)(Table);
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
import { PureComponent } from '../component';
|
|
3
|
+
import { TbodyProps, Row } from './Props';
|
|
4
|
+
import { KeygenResult } from '../@types/common';
|
|
5
|
+
export declare const RENDER_COL_GROUP_EVENT = "RENDER_COL_GROUP_EVENT";
|
|
6
|
+
interface RowData<DataItem> extends Row<DataItem> {
|
|
7
|
+
ignoreBorderRight: boolean;
|
|
8
|
+
content?: ReactNode;
|
|
9
|
+
}
|
|
10
|
+
interface TbodyState {
|
|
11
|
+
expand: Record<string, boolean>;
|
|
12
|
+
}
|
|
13
|
+
declare class Tbody<DataItem, Value> extends PureComponent<TbodyProps<DataItem, Value>, TbodyState> {
|
|
14
|
+
colgroupSetted: boolean;
|
|
15
|
+
keys: Record<string, boolean>;
|
|
16
|
+
body: HTMLTableSectionElement;
|
|
17
|
+
constructor(props: TbodyProps<DataItem, Value>);
|
|
18
|
+
componentDidMount(): void;
|
|
19
|
+
componentDidUpdate(prevProps: TbodyProps<DataItem, Value>): void;
|
|
20
|
+
bodyRender(): void;
|
|
21
|
+
bindBody(el: HTMLTableSectionElement): void;
|
|
22
|
+
handleExpand(key: KeygenResult, render: ReactNode): void;
|
|
23
|
+
findExpandFunc(key: KeygenResult, i: number): React.ReactNode;
|
|
24
|
+
renderTr(row: Row<DataItem>[], i: number): JSX.Element;
|
|
25
|
+
renderPlaceholderTr(): JSX.Element;
|
|
26
|
+
renderTrs(rows: RowData<DataItem>[][]): JSX.Element[];
|
|
27
|
+
render(): JSX.Element;
|
|
28
|
+
}
|
|
29
|
+
export default Tbody;
|