shineout 1.12.3 → 1.12.4-beta.2
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/Cascader/Result.js +7 -11
- package/css/Checkbox/CheckItem.js +9 -3
- package/css/DatePicker/Container.js +3 -5
- package/css/DatePicker/Text.js +25 -12
- package/css/DatePicker/Time.js +37 -10
- package/css/DatePicker/TimeScroll.js +19 -3
- package/css/DatePicker/paramUtils.js +39 -32
- package/css/Select/Result.js +8 -4
- package/css/TreeSelect/Result.js +8 -4
- package/css/index.d.ts +1 -1
- package/css/index.js +1 -1
- package/dist/shineout.js +4650 -4308
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/es/Cascader/Result.js +7 -11
- package/es/Checkbox/CheckItem.js +11 -4
- package/es/DatePicker/Container.js +1 -2
- package/es/DatePicker/Text.js +21 -10
- package/es/DatePicker/Time.js +37 -10
- package/es/DatePicker/TimeScroll.js +19 -3
- package/es/DatePicker/paramUtils.js +39 -31
- package/es/Select/Result.js +8 -4
- package/es/TreeSelect/Result.js +8 -4
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/Cascader/Result.js +7 -11
- package/lib/Checkbox/CheckItem.js +9 -3
- package/lib/DatePicker/Container.js +3 -5
- package/lib/DatePicker/Text.js +25 -12
- package/lib/DatePicker/Time.js +37 -10
- package/lib/DatePicker/TimeScroll.js +19 -3
- package/lib/DatePicker/paramUtils.js +39 -32
- package/lib/Select/Result.js +8 -4
- package/lib/TreeSelect/Result.js +8 -4
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/esm/@types/common.d.ts +0 -47
- package/esm/@types/common.js +0 -1
- package/esm/Alert/Props.d.ts +0 -85
- package/esm/Alert/Props.js +0 -1
- package/esm/Alert/index.d.ts +0 -26
- package/esm/Alert/index.js +0 -165
- package/esm/Alert/interface.d.ts +0 -1
- package/esm/Alert/interface.js +0 -1
- package/esm/Alert/styles/alert.less +0 -143
- package/esm/Alert/styles/index.d.ts +0 -2
- package/esm/Alert/styles/index.js +0 -4
- package/esm/AnimationList/AbsoluteList.d.ts +0 -3
- package/esm/AnimationList/AbsoluteList.js +0 -373
- package/esm/AnimationList/LazyList.d.ts +0 -26
- package/esm/AnimationList/LazyList.js +0 -163
- package/esm/AnimationList/List.d.ts +0 -10
- package/esm/AnimationList/List.js +0 -46
- package/esm/AnimationList/Props.d.ts +0 -61
- package/esm/AnimationList/Props.js +0 -1
- package/esm/AnimationList/index.d.ts +0 -4
- package/esm/AnimationList/index.js +0 -27
- package/esm/AnimationList/styles/index.d.ts +0 -2
- package/esm/AnimationList/styles/index.js +0 -4
- package/esm/Breadcrumb/Props.d.ts +0 -81
- package/esm/Breadcrumb/Props.js +0 -1
- package/esm/Breadcrumb/index.d.ts +0 -17
- package/esm/Breadcrumb/index.js +0 -91
- package/esm/Breadcrumb/interface.d.ts +0 -1
- package/esm/Breadcrumb/interface.js +0 -1
- package/esm/Breadcrumb/styles/breadcrumb.less +0 -52
- package/esm/Breadcrumb/styles/index.d.ts +0 -2
- package/esm/Breadcrumb/styles/index.js +0 -4
- package/esm/Button/Button.d.ts +0 -13
- package/esm/Button/Button.js +0 -113
- package/esm/Button/Group.d.ts +0 -10
- package/esm/Button/Group.js +0 -48
- package/esm/Button/Once.d.ts +0 -10
- package/esm/Button/Once.js +0 -43
- package/esm/Button/Props.d.ts +0 -153
- package/esm/Button/Props.js +0 -1
- package/esm/Button/index.d.ts +0 -1
- package/esm/Button/index.js +0 -1
- package/esm/Button/interface.d.ts +0 -1
- package/esm/Button/interface.js +0 -1
- package/esm/Button/styles/button.less +0 -389
- package/esm/Button/styles/index.d.ts +0 -2
- package/esm/Button/styles/index.js +0 -4
- package/esm/Card/Accordion.d.ts +0 -20
- package/esm/Card/Accordion.js +0 -67
- package/esm/Card/Body.d.ts +0 -6
- package/esm/Card/Body.js +0 -48
- package/esm/Card/Card.d.ts +0 -4
- package/esm/Card/Card.js +0 -106
- package/esm/Card/Footer.d.ts +0 -5
- package/esm/Card/Footer.js +0 -35
- package/esm/Card/Header.d.ts +0 -7
- package/esm/Card/Header.js +0 -48
- package/esm/Card/Props.d.ts +0 -196
- package/esm/Card/Props.js +0 -79
- package/esm/Card/Submit.d.ts +0 -8
- package/esm/Card/Submit.js +0 -52
- package/esm/Card/context.d.ts +0 -4
- package/esm/Card/context.js +0 -27
- package/esm/Card/index.d.ts +0 -2
- package/esm/Card/index.js +0 -17
- package/esm/Card/interface.d.ts +0 -1
- package/esm/Card/interface.js +0 -1
- package/esm/Card/styles/card.less +0 -156
- package/esm/Card/styles/index.d.ts +0 -2
- package/esm/Card/styles/index.js +0 -4
- package/esm/CardGroup/CardGroup.d.ts +0 -18
- package/esm/CardGroup/CardGroup.js +0 -104
- package/esm/CardGroup/Item.d.ts +0 -8
- package/esm/CardGroup/Item.js +0 -62
- package/esm/CardGroup/Props.d.ts +0 -122
- package/esm/CardGroup/Props.js +0 -1
- package/esm/CardGroup/context.d.ts +0 -4
- package/esm/CardGroup/context.js +0 -13
- package/esm/CardGroup/index.d.ts +0 -2
- package/esm/CardGroup/index.js +0 -8
- package/esm/CardGroup/interface.d.ts +0 -1
- package/esm/CardGroup/interface.js +0 -1
- package/esm/CardGroup/styles/cardGroup.less +0 -40
- package/esm/CardGroup/styles/index.d.ts +0 -2
- package/esm/CardGroup/styles/index.js +0 -4
- package/esm/Carousel/Item.d.ts +0 -11
- package/esm/Carousel/Item.js +0 -31
- package/esm/Carousel/Props.d.ts +0 -58
- package/esm/Carousel/Props.js +0 -1
- package/esm/Carousel/index.d.ts +0 -4
- package/esm/Carousel/index.js +0 -201
- package/esm/Carousel/interface.d.ts +0 -1
- package/esm/Carousel/interface.js +0 -1
- package/esm/Carousel/styles/carousel.less +0 -288
- package/esm/Carousel/styles/index.d.ts +0 -2
- package/esm/Carousel/styles/index.js +0 -4
- package/esm/Cascader/Cascader.d.ts +0 -61
- package/esm/Cascader/Cascader.js +0 -609
- package/esm/Cascader/FilterList.d.ts +0 -2
- package/esm/Cascader/FilterList.js +0 -195
- package/esm/Cascader/Input.d.ts +0 -26
- package/esm/Cascader/Input.js +0 -117
- package/esm/Cascader/List.d.ts +0 -15
- package/esm/Cascader/List.js +0 -85
- package/esm/Cascader/Node.d.ts +0 -19
- package/esm/Cascader/Node.js +0 -182
- package/esm/Cascader/Props.d.ts +0 -311
- package/esm/Cascader/Props.js +0 -1
- package/esm/Cascader/Result.d.ts +0 -41
- package/esm/Cascader/Result.js +0 -399
- package/esm/Cascader/filter.d.ts +0 -4
- package/esm/Cascader/filter.js +0 -103
- package/esm/Cascader/index.d.ts +0 -2
- package/esm/Cascader/index.js +0 -12
- package/esm/Cascader/interface.d.ts +0 -1
- package/esm/Cascader/interface.js +0 -1
- package/esm/Cascader/styles/cascader.less +0 -452
- package/esm/Cascader/styles/index.d.ts +0 -2
- package/esm/Cascader/styles/index.js +0 -4
- package/esm/Checkbox/CheckItem.d.ts +0 -9
- package/esm/Checkbox/CheckItem.js +0 -199
- package/esm/Checkbox/Checkbox.d.ts +0 -3
- package/esm/Checkbox/Checkbox.js +0 -3
- package/esm/Checkbox/Group.d.ts +0 -17
- package/esm/Checkbox/Group.js +0 -130
- package/esm/Checkbox/Props.d.ts +0 -122
- package/esm/Checkbox/Props.js +0 -13
- package/esm/Checkbox/context.d.ts +0 -4
- package/esm/Checkbox/context.js +0 -13
- package/esm/Checkbox/index.d.ts +0 -2
- package/esm/Checkbox/index.js +0 -14
- package/esm/Checkbox/interface.d.ts +0 -1
- package/esm/Checkbox/interface.js +0 -1
- package/esm/Checkbox/styles/checkinput.less +0 -602
- package/esm/Checkbox/styles/index.d.ts +0 -2
- package/esm/Checkbox/styles/index.js +0 -4
- package/esm/DataList/BaseItem.d.ts +0 -13
- package/esm/DataList/BaseItem.js +0 -40
- package/esm/DataList/Extra.d.ts +0 -8
- package/esm/DataList/Extra.js +0 -34
- package/esm/DataList/List.d.ts +0 -26
- package/esm/DataList/List.js +0 -209
- package/esm/DataList/Meta.d.ts +0 -16
- package/esm/DataList/Meta.js +0 -120
- package/esm/DataList/Pagination.d.ts +0 -5
- package/esm/DataList/Pagination.js +0 -9
- package/esm/DataList/Props.d.ts +0 -138
- package/esm/DataList/Props.js +0 -1
- package/esm/DataList/index.d.ts +0 -2
- package/esm/DataList/index.js +0 -14
- package/esm/DataList/styles/index.d.ts +0 -1
- package/esm/DataList/styles/index.js +0 -4
- package/esm/DataList/styles/list.less +0 -213
- package/esm/DatePicker/Container.d.ts +0 -82
- package/esm/DatePicker/Container.js +0 -650
- package/esm/DatePicker/Day.d.ts +0 -37
- package/esm/DatePicker/Day.js +0 -339
- package/esm/DatePicker/Icon.d.ts +0 -12
- package/esm/DatePicker/Icon.js +0 -40
- package/esm/DatePicker/Month.d.ts +0 -18
- package/esm/DatePicker/Month.js +0 -144
- package/esm/DatePicker/Picker.d.ts +0 -21
- package/esm/DatePicker/Picker.js +0 -158
- package/esm/DatePicker/Props.d.ts +0 -397
- package/esm/DatePicker/Props.js +0 -1
- package/esm/DatePicker/Quarter.d.ts +0 -18
- package/esm/DatePicker/Quarter.js +0 -164
- package/esm/DatePicker/Quick.d.ts +0 -15
- package/esm/DatePicker/Quick.js +0 -64
- package/esm/DatePicker/Range.d.ts +0 -35
- package/esm/DatePicker/Range.js +0 -299
- package/esm/DatePicker/Text.d.ts +0 -20
- package/esm/DatePicker/Text.js +0 -141
- package/esm/DatePicker/Time.d.ts +0 -21
- package/esm/DatePicker/Time.js +0 -215
- package/esm/DatePicker/TimeScroll.d.ts +0 -26
- package/esm/DatePicker/TimeScroll.js +0 -185
- package/esm/DatePicker/Year.d.ts +0 -17
- package/esm/DatePicker/Year.js +0 -146
- package/esm/DatePicker/index.d.ts +0 -2
- package/esm/DatePicker/index.js +0 -18
- package/esm/DatePicker/interface.d.ts +0 -1
- package/esm/DatePicker/interface.js +0 -1
- package/esm/DatePicker/paramUtils.d.ts +0 -19
- package/esm/DatePicker/paramUtils.js +0 -106
- package/esm/DatePicker/styles/datepicker.less +0 -727
- package/esm/DatePicker/styles/index.d.ts +0 -2
- package/esm/DatePicker/styles/index.js +0 -4
- package/esm/DatePicker/utils.d.ts +0 -68
- package/esm/DatePicker/utils.js +0 -419
- package/esm/DatePicker/value.d.ts +0 -44
- package/esm/DatePicker/value.js +0 -179
- package/esm/Datum/Form.d.ts +0 -55
- package/esm/Datum/Form.js +0 -433
- package/esm/Datum/List.d.ts +0 -47
- package/esm/Datum/List.js +0 -441
- package/esm/Datum/Props.d.ts +0 -89
- package/esm/Datum/Props.js +0 -1
- package/esm/Datum/Tree.d.ts +0 -78
- package/esm/Datum/Tree.js +0 -424
- package/esm/Datum/hoc.d.ts +0 -2
- package/esm/Datum/hoc.js +0 -133
- package/esm/Datum/index.d.ts +0 -8
- package/esm/Datum/index.js +0 -8
- package/esm/Datum/types.d.ts +0 -16
- package/esm/Datum/types.js +0 -22
- package/esm/Divider/Props.d.ts +0 -30
- package/esm/Divider/Props.js +0 -1
- package/esm/Divider/index.d.ts +0 -10
- package/esm/Divider/index.js +0 -50
- package/esm/Divider/interface.d.ts +0 -1
- package/esm/Divider/interface.js +0 -1
- package/esm/Divider/styles/divider.less +0 -83
- package/esm/Divider/styles/index.d.ts +0 -2
- package/esm/Divider/styles/index.js +0 -4
- package/esm/Drawer/index.d.ts +0 -12
- package/esm/Drawer/index.js +0 -17
- package/esm/Drawer/interface.d.ts +0 -1
- package/esm/Drawer/interface.js +0 -1
- package/esm/Dropdown/Item.d.ts +0 -16
- package/esm/Dropdown/Item.js +0 -73
- package/esm/Dropdown/Props.d.ts +0 -164
- package/esm/Dropdown/Props.js +0 -1
- package/esm/Dropdown/index.d.ts +0 -2
- package/esm/Dropdown/index.js +0 -347
- package/esm/Dropdown/interface.d.ts +0 -1
- package/esm/Dropdown/interface.js +0 -1
- package/esm/Dropdown/styles/dropdown.less +0 -349
- package/esm/Dropdown/styles/index.d.ts +0 -1
- package/esm/Dropdown/styles/index.js +0 -4
- package/esm/EditableArea/EditableArea.d.ts +0 -36
- package/esm/EditableArea/EditableArea.js +0 -275
- package/esm/EditableArea/Props.d.ts +0 -105
- package/esm/EditableArea/Props.js +0 -1
- package/esm/EditableArea/index.d.ts +0 -2
- package/esm/EditableArea/index.js +0 -7
- package/esm/EditableArea/interface.d.ts +0 -1
- package/esm/EditableArea/interface.js +0 -1
- package/esm/EditableArea/styles/editableArea.less +0 -63
- package/esm/EditableArea/styles/index.d.ts +0 -1
- package/esm/EditableArea/styles/index.js +0 -4
- package/esm/Form/Field.d.ts +0 -12
- package/esm/Form/Field.js +0 -76
- package/esm/Form/FieldError.d.ts +0 -6
- package/esm/Form/FieldError.js +0 -29
- package/esm/Form/FieldSet.d.ts +0 -8
- package/esm/Form/FieldSet.js +0 -240
- package/esm/Form/Flow.d.ts +0 -10
- package/esm/Form/Flow.js +0 -66
- package/esm/Form/Form.d.ts +0 -29
- package/esm/Form/Form.js +0 -229
- package/esm/Form/Item.d.ts +0 -29
- package/esm/Form/Item.js +0 -210
- package/esm/Form/Props.d.ts +0 -436
- package/esm/Form/Props.js +0 -1
- package/esm/Form/formButton.d.ts +0 -3
- package/esm/Form/formButton.js +0 -69
- package/esm/Form/formContext.d.ts +0 -9
- package/esm/Form/formContext.js +0 -103
- package/esm/Form/index.d.ts +0 -2
- package/esm/Form/index.js +0 -35
- package/esm/Form/inputable.d.ts +0 -4
- package/esm/Form/inputable.js +0 -411
- package/esm/Form/interface.d.ts +0 -1
- package/esm/Form/interface.js +0 -1
- package/esm/Form/mode.d.ts +0 -2
- package/esm/Form/mode.js +0 -16
- package/esm/Form/styles/form.less +0 -779
- package/esm/Form/styles/index.d.ts +0 -2
- package/esm/Form/styles/index.js +0 -5
- package/esm/Gap/Props.d.ts +0 -37
- package/esm/Gap/Props.js +0 -1
- package/esm/Gap/index.d.ts +0 -4
- package/esm/Gap/index.js +0 -74
- package/esm/Gap/interface.d.ts +0 -1
- package/esm/Gap/interface.js +0 -1
- package/esm/Gap/styles/gap.less +0 -10
- package/esm/Gap/styles/index.d.ts +0 -1
- package/esm/Gap/styles/index.js +0 -4
- package/esm/Gap/support.d.ts +0 -1
- package/esm/Gap/support.js +0 -12
- package/esm/Grid/Props.d.ts +0 -53
- package/esm/Grid/Props.js +0 -1
- package/esm/Grid/index.d.ts +0 -7
- package/esm/Grid/index.js +0 -89
- package/esm/Grid/interface.d.ts +0 -1
- package/esm/Grid/interface.js +0 -1
- package/esm/Grid/utils.d.ts +0 -13
- package/esm/Grid/utils.js +0 -97
- package/esm/Icon/Icon.d.ts +0 -23
- package/esm/Icon/Icon.js +0 -67
- package/esm/Icon/Props.d.ts +0 -80
- package/esm/Icon/Props.js +0 -1
- package/esm/Icon/index.d.ts +0 -3
- package/esm/Icon/index.js +0 -48
- package/esm/Icon/interface.d.ts +0 -1
- package/esm/Icon/interface.js +0 -1
- package/esm/Icon/styles/icon.less +0 -54
- package/esm/Icon/styles/index.d.ts +0 -2
- package/esm/Icon/styles/index.js +0 -4
- package/esm/Image/Gallery.d.ts +0 -9
- package/esm/Image/Gallery.js +0 -147
- package/esm/Image/Group.d.ts +0 -8
- package/esm/Image/Group.js +0 -65
- package/esm/Image/Image.d.ts +0 -39
- package/esm/Image/Image.js +0 -297
- package/esm/Image/Magnify.d.ts +0 -25
- package/esm/Image/Magnify.js +0 -147
- package/esm/Image/Props.d.ts +0 -184
- package/esm/Image/Props.js +0 -1
- package/esm/Image/events.d.ts +0 -6
- package/esm/Image/events.js +0 -40
- package/esm/Image/index.d.ts +0 -2
- package/esm/Image/index.js +0 -6
- package/esm/Image/interface.d.ts +0 -1
- package/esm/Image/interface.js +0 -1
- package/esm/Image/styles/image.less +0 -311
- package/esm/Image/styles/index.d.ts +0 -2
- package/esm/Image/styles/index.js +0 -4
- package/esm/Input/Group.d.ts +0 -10
- package/esm/Input/Group.js +0 -25
- package/esm/Input/Input.d.ts +0 -24
- package/esm/Input/Input.js +0 -307
- package/esm/Input/Number.d.ts +0 -24
- package/esm/Input/Number.js +0 -275
- package/esm/Input/Password.d.ts +0 -12
- package/esm/Input/Password.js +0 -73
- package/esm/Input/Props.d.ts +0 -311
- package/esm/Input/Props.js +0 -1
- package/esm/Input/clear.d.ts +0 -8
- package/esm/Input/clear.js +0 -46
- package/esm/Input/index.d.ts +0 -2
- package/esm/Input/index.js +0 -22
- package/esm/Input/interface.d.ts +0 -1
- package/esm/Input/interface.js +0 -1
- package/esm/Input/styles/index.d.ts +0 -1
- package/esm/Input/styles/index.js +0 -4
- package/esm/InputTitle/Props.d.ts +0 -25
- package/esm/InputTitle/Props.js +0 -1
- package/esm/InputTitle/index.d.ts +0 -2
- package/esm/InputTitle/index.js +0 -2
- package/esm/InputTitle/inputTitle.d.ts +0 -14
- package/esm/InputTitle/inputTitle.js +0 -75
- package/esm/InputTitle/styles/index.d.ts +0 -1
- package/esm/InputTitle/styles/index.js +0 -3
- package/esm/InputTitle/styles/inputTitle.less +0 -139
- package/esm/Lazyload/Props.d.ts +0 -7
- package/esm/Lazyload/Props.js +0 -1
- package/esm/Lazyload/index.d.ts +0 -19
- package/esm/Lazyload/index.js +0 -78
- package/esm/Lazyload/styles/index.d.ts +0 -1
- package/esm/Lazyload/styles/index.js +0 -4
- package/esm/Lazyload/styles/lazyload.less +0 -8
- package/esm/List/index.d.ts +0 -2
- package/esm/List/index.js +0 -2
- package/esm/List/interface.d.ts +0 -1
- package/esm/List/interface.js +0 -1
- package/esm/Menu/Item.d.ts +0 -4
- package/esm/Menu/Item.js +0 -339
- package/esm/Menu/List.d.ts +0 -6
- package/esm/Menu/List.js +0 -76
- package/esm/Menu/Props.d.ts +0 -204
- package/esm/Menu/Props.js +0 -1
- package/esm/Menu/Root.d.ts +0 -94
- package/esm/Menu/Root.js +0 -452
- package/esm/Menu/context.d.ts +0 -4
- package/esm/Menu/context.js +0 -19
- package/esm/Menu/index.d.ts +0 -2
- package/esm/Menu/index.js +0 -3
- package/esm/Menu/interface.d.ts +0 -1
- package/esm/Menu/interface.js +0 -1
- package/esm/Menu/styles/index.d.ts +0 -1
- package/esm/Menu/styles/index.js +0 -4
- package/esm/Menu/styles/menu.less +0 -780
- package/esm/Message/Container.d.ts +0 -33
- package/esm/Message/Container.js +0 -186
- package/esm/Message/Props.d.ts +0 -55
- package/esm/Message/Props.js +0 -1
- package/esm/Message/index.d.ts +0 -14
- package/esm/Message/index.js +0 -54
- package/esm/Message/interface.d.ts +0 -1
- package/esm/Message/interface.js +0 -1
- package/esm/Message/messager.d.ts +0 -5
- package/esm/Message/messager.js +0 -44
- package/esm/Message/styles/index.d.ts +0 -1
- package/esm/Message/styles/index.js +0 -6
- package/esm/Message/styles/message.less +0 -148
- package/esm/Modal/Modal.d.ts +0 -34
- package/esm/Modal/Modal.js +0 -122
- package/esm/Modal/Panel.d.ts +0 -43
- package/esm/Modal/Panel.js +0 -293
- package/esm/Modal/Props.d.ts +0 -300
- package/esm/Modal/Props.js +0 -1
- package/esm/Modal/context.d.ts +0 -7
- package/esm/Modal/context.js +0 -19
- package/esm/Modal/events.d.ts +0 -8
- package/esm/Modal/events.js +0 -277
- package/esm/Modal/index.d.ts +0 -2
- package/esm/Modal/index.js +0 -12
- package/esm/Modal/interface.d.ts +0 -1
- package/esm/Modal/interface.js +0 -1
- package/esm/Modal/styles/index.d.ts +0 -1
- package/esm/Modal/styles/index.js +0 -4
- package/esm/Modal/styles/modal.less +0 -377
- package/esm/Pagination/Item.d.ts +0 -12
- package/esm/Pagination/Item.js +0 -54
- package/esm/Pagination/Jumper.d.ts +0 -11
- package/esm/Pagination/Jumper.js +0 -101
- package/esm/Pagination/Links.d.ts +0 -14
- package/esm/Pagination/Links.js +0 -144
- package/esm/Pagination/Next.d.ts +0 -8
- package/esm/Pagination/Next.js +0 -56
- package/esm/Pagination/PageSizeList.d.ts +0 -11
- package/esm/Pagination/PageSizeList.js +0 -67
- package/esm/Pagination/Pagination.d.ts +0 -15
- package/esm/Pagination/Pagination.js +0 -88
- package/esm/Pagination/Prev.d.ts +0 -8
- package/esm/Pagination/Prev.js +0 -53
- package/esm/Pagination/Props.d.ts +0 -175
- package/esm/Pagination/Props.js +0 -1
- package/esm/Pagination/Simple.d.ts +0 -5
- package/esm/Pagination/Simple.js +0 -37
- package/esm/Pagination/index.d.ts +0 -20
- package/esm/Pagination/index.js +0 -76
- package/esm/Pagination/interface.d.ts +0 -1
- package/esm/Pagination/interface.js +0 -1
- package/esm/Pagination/styles/index.d.ts +0 -1
- package/esm/Pagination/styles/index.js +0 -4
- package/esm/Pagination/styles/pagination.less +0 -180
- package/esm/Popover/Confirm.d.ts +0 -16
- package/esm/Popover/Confirm.js +0 -124
- package/esm/Popover/Content.d.ts +0 -4
- package/esm/Popover/Content.js +0 -11
- package/esm/Popover/Panel.d.ts +0 -4
- package/esm/Popover/Panel.js +0 -373
- package/esm/Popover/Props.d.ts +0 -237
- package/esm/Popover/Props.js +0 -1
- package/esm/Popover/context.d.ts +0 -4
- package/esm/Popover/context.js +0 -16
- package/esm/Popover/index.d.ts +0 -3
- package/esm/Popover/index.js +0 -10
- package/esm/Popover/interface.d.ts +0 -1
- package/esm/Popover/interface.js +0 -1
- package/esm/Popover/styles/index.d.ts +0 -1
- package/esm/Popover/styles/index.js +0 -4
- package/esm/Popover/styles/popover.less +0 -309
- package/esm/Progress/Circle.d.ts +0 -12
- package/esm/Progress/Circle.js +0 -79
- package/esm/Progress/Line.d.ts +0 -9
- package/esm/Progress/Line.js +0 -61
- package/esm/Progress/Popup.d.ts +0 -9
- package/esm/Progress/Popup.js +0 -43
- package/esm/Progress/Props.d.ts +0 -103
- package/esm/Progress/Props.js +0 -1
- package/esm/Progress/analyzeColor.d.ts +0 -3
- package/esm/Progress/analyzeColor.js +0 -21
- package/esm/Progress/index.d.ts +0 -10
- package/esm/Progress/index.js +0 -19
- package/esm/Progress/interface.d.ts +0 -1
- package/esm/Progress/interface.js +0 -1
- package/esm/Progress/styles/index.d.ts +0 -1
- package/esm/Progress/styles/index.js +0 -4
- package/esm/Progress/styles/progress.less +0 -119
- package/esm/Radio/Group.d.ts +0 -18
- package/esm/Radio/Group.js +0 -119
- package/esm/Radio/Props.d.ts +0 -39
- package/esm/Radio/Props.js +0 -1
- package/esm/Radio/Radio.d.ts +0 -3
- package/esm/Radio/Radio.js +0 -2
- package/esm/Radio/index.d.ts +0 -2
- package/esm/Radio/index.js +0 -15
- package/esm/Radio/interface.d.ts +0 -1
- package/esm/Radio/interface.js +0 -1
- package/esm/Radio/styles/index.d.ts +0 -1
- package/esm/Radio/styles/index.js +0 -1
- package/esm/Rate/Props.d.ts +0 -96
- package/esm/Rate/Props.js +0 -1
- package/esm/Rate/Rate.d.ts +0 -36
- package/esm/Rate/Rate.js +0 -252
- package/esm/Rate/index.d.ts +0 -5
- package/esm/Rate/index.js +0 -18
- package/esm/Rate/interface.d.ts +0 -1
- package/esm/Rate/interface.js +0 -1
- package/esm/Rate/styles/index.d.ts +0 -2
- package/esm/Rate/styles/index.js +0 -4
- package/esm/Rate/styles/rate.less +0 -105
- package/esm/Rule/Props.d.ts +0 -172
- package/esm/Rule/Props.js +0 -1
- package/esm/Rule/index.d.ts +0 -15
- package/esm/Rule/index.js +0 -81
- package/esm/Rule/interface.d.ts +0 -1
- package/esm/Rule/interface.js +0 -1
- package/esm/Rule/length.d.ts +0 -10
- package/esm/Rule/length.js +0 -54
- package/esm/Rule/regExp.d.ts +0 -5
- package/esm/Rule/regExp.js +0 -25
- package/esm/Rule/required.d.ts +0 -8
- package/esm/Rule/required.js +0 -27
- package/esm/Rule/styles/index.d.ts +0 -1
- package/esm/Rule/styles/index.js +0 -1
- package/esm/Rule/type.d.ts +0 -8
- package/esm/Rule/type.js +0 -27
- package/esm/Scroll/Bar.d.ts +0 -3
- package/esm/Scroll/Bar.js +0 -183
- package/esm/Scroll/Props.d.ts +0 -44
- package/esm/Scroll/Props.js +0 -1
- package/esm/Scroll/Scroll.d.ts +0 -54
- package/esm/Scroll/Scroll.js +0 -436
- package/esm/Scroll/context.d.ts +0 -4
- package/esm/Scroll/context.js +0 -22
- package/esm/Scroll/fixedLength.d.ts +0 -3
- package/esm/Scroll/fixedLength.js +0 -32
- package/esm/Scroll/index.d.ts +0 -23
- package/esm/Scroll/index.js +0 -95
- package/esm/Scroll/styles/index.d.ts +0 -2
- package/esm/Scroll/styles/index.js +0 -4
- package/esm/Scroll/styles/scroll.less +0 -175
- package/esm/Select/BoxList.d.ts +0 -19
- package/esm/Select/BoxList.js +0 -218
- package/esm/Select/BoxOption.d.ts +0 -9
- package/esm/Select/BoxOption.js +0 -73
- package/esm/Select/Input.d.ts +0 -39
- package/esm/Select/Input.js +0 -286
- package/esm/Select/More.d.ts +0 -15
- package/esm/Select/More.js +0 -151
- package/esm/Select/Option.d.ts +0 -12
- package/esm/Select/Option.js +0 -90
- package/esm/Select/OptionList.d.ts +0 -21
- package/esm/Select/OptionList.js +0 -282
- package/esm/Select/OptionTree.d.ts +0 -13
- package/esm/Select/OptionTree.js +0 -124
- package/esm/Select/Props.d.ts +0 -626
- package/esm/Select/Props.js +0 -1
- package/esm/Select/Result.d.ts +0 -33
- package/esm/Select/Result.js +0 -435
- package/esm/Select/Select.d.ts +0 -91
- package/esm/Select/Select.js +0 -791
- package/esm/Select/filter.d.ts +0 -58
- package/esm/Select/filter.js +0 -272
- package/esm/Select/group.d.ts +0 -39
- package/esm/Select/group.js +0 -86
- package/esm/Select/index.d.ts +0 -2
- package/esm/Select/index.js +0 -34
- package/esm/Select/interface.d.ts +0 -1
- package/esm/Select/interface.js +0 -1
- package/esm/Select/styles/index.d.ts +0 -1
- package/esm/Select/styles/index.js +0 -4
- package/esm/Select/styles/select.less +0 -724
- package/esm/Select/utils.d.ts +0 -4
- package/esm/Select/utils.js +0 -7
- package/esm/Slider/Container.d.ts +0 -22
- package/esm/Slider/Container.js +0 -180
- package/esm/Slider/Indicator.d.ts +0 -2
- package/esm/Slider/Indicator.js +0 -28
- package/esm/Slider/Props.d.ts +0 -128
- package/esm/Slider/Props.js +0 -1
- package/esm/Slider/Slider.d.ts +0 -22
- package/esm/Slider/Slider.js +0 -148
- package/esm/Slider/index.d.ts +0 -2
- package/esm/Slider/index.js +0 -5
- package/esm/Slider/interface.d.ts +0 -1
- package/esm/Slider/interface.js +0 -1
- package/esm/Slider/styles/index.d.ts +0 -1
- package/esm/Slider/styles/index.js +0 -4
- package/esm/Slider/styles/slider.less +0 -346
- package/esm/Slider/utils.d.ts +0 -2
- package/esm/Slider/utils.js +0 -28
- package/esm/Spin/Multiple.d.ts +0 -12
- package/esm/Spin/Multiple.js +0 -179
- package/esm/Spin/Props.d.ts +0 -28
- package/esm/Spin/Props.js +0 -1
- package/esm/Spin/Simple.d.ts +0 -5
- package/esm/Spin/Simple.js +0 -40
- package/esm/Spin/Spin.d.ts +0 -3
- package/esm/Spin/Spin.js +0 -31
- package/esm/Spin/index.d.ts +0 -32
- package/esm/Spin/index.js +0 -96
- package/esm/Spin/interface.d.ts +0 -1
- package/esm/Spin/interface.js +0 -1
- package/esm/Spin/styles/chasing-dots.less +0 -47
- package/esm/Spin/styles/chasing-ring.less +0 -112
- package/esm/Spin/styles/cube-grid.less +0 -65
- package/esm/Spin/styles/default.less +0 -77
- package/esm/Spin/styles/double-bounce.less +0 -36
- package/esm/Spin/styles/four-dots.less +0 -73
- package/esm/Spin/styles/index.d.ts +0 -14
- package/esm/Spin/styles/index.js +0 -28
- package/esm/Spin/styles/plane.less +0 -24
- package/esm/Spin/styles/pulse.less +0 -22
- package/esm/Spin/styles/ring.less +0 -23
- package/esm/Spin/styles/scale-circle.less +0 -74
- package/esm/Spin/styles/spin.less +0 -57
- package/esm/Spin/styles/three-bounce.less +0 -41
- package/esm/Spin/styles/wave.less +0 -48
- package/esm/Spin/util.d.ts +0 -4
- package/esm/Spin/util.js +0 -7
- package/esm/Sticky/Props.d.ts +0 -65
- package/esm/Sticky/Props.js +0 -1
- package/esm/Sticky/context.d.ts +0 -4
- package/esm/Sticky/context.js +0 -13
- package/esm/Sticky/index.d.ts +0 -2
- package/esm/Sticky/index.js +0 -361
- package/esm/Sticky/interface.d.ts +0 -1
- package/esm/Sticky/interface.js +0 -1
- package/esm/Sticky/styles/index.d.ts +0 -1
- package/esm/Sticky/styles/index.js +0 -1
- package/esm/Switch/Props.d.ts +0 -8
- package/esm/Switch/Props.js +0 -1
- package/esm/Switch/Switch.d.ts +0 -3
- package/esm/Switch/Switch.js +0 -2
- package/esm/Switch/index.d.ts +0 -2
- package/esm/Switch/index.js +0 -8
- package/esm/Switch/interface.d.ts +0 -1
- package/esm/Switch/interface.js +0 -1
- package/esm/Table/Checkbox.d.ts +0 -11
- package/esm/Table/Checkbox.js +0 -72
- package/esm/Table/CheckboxAll.d.ts +0 -16
- package/esm/Table/CheckboxAll.js +0 -155
- package/esm/Table/Colgroup.d.ts +0 -11
- package/esm/Table/Colgroup.js +0 -77
- package/esm/Table/Expand.d.ts +0 -13
- package/esm/Table/Expand.js +0 -79
- package/esm/Table/Props.d.ts +0 -547
- package/esm/Table/Props.js +0 -1
- package/esm/Table/SeperateTable.d.ts +0 -70
- package/esm/Table/SeperateTable.js +0 -857
- package/esm/Table/SimpleTable.d.ts +0 -36
- package/esm/Table/SimpleTable.js +0 -315
- package/esm/Table/Sorter.d.ts +0 -13
- package/esm/Table/Sorter.js +0 -100
- package/esm/Table/Table.d.ts +0 -2
- package/esm/Table/Table.js +0 -173
- package/esm/Table/Tbody.d.ts +0 -29
- package/esm/Table/Tbody.js +0 -301
- package/esm/Table/Td.d.ts +0 -18
- package/esm/Table/Td.js +0 -200
- package/esm/Table/Tfoot.d.ts +0 -8
- package/esm/Table/Tfoot.js +0 -89
- package/esm/Table/Thead.d.ts +0 -28
- package/esm/Table/Thead.js +0 -292
- package/esm/Table/Tr.d.ts +0 -30
- package/esm/Table/Tr.js +0 -327
- package/esm/Table/TreeExpand.d.ts +0 -45
- package/esm/Table/TreeExpand.js +0 -168
- package/esm/Table/context.d.ts +0 -7
- package/esm/Table/context.js +0 -18
- package/esm/Table/fixedAuto.d.ts +0 -57
- package/esm/Table/fixedAuto.js +0 -95
- package/esm/Table/index.d.ts +0 -23
- package/esm/Table/index.js +0 -360
- package/esm/Table/interface.d.ts +0 -1
- package/esm/Table/interface.js +0 -1
- package/esm/Table/resizable.d.ts +0 -43
- package/esm/Table/resizable.js +0 -108
- package/esm/Table/select.d.ts +0 -54
- package/esm/Table/select.js +0 -309
- package/esm/Table/styles/index.d.ts +0 -2
- package/esm/Table/styles/index.js +0 -4
- package/esm/Table/styles/table.less +0 -813
- package/esm/Tabs/Header.d.ts +0 -38
- package/esm/Tabs/Header.js +0 -265
- package/esm/Tabs/Link.d.ts +0 -7
- package/esm/Tabs/Link.js +0 -58
- package/esm/Tabs/Panel.d.ts +0 -9
- package/esm/Tabs/Panel.js +0 -60
- package/esm/Tabs/Props.d.ts +0 -242
- package/esm/Tabs/Props.js +0 -1
- package/esm/Tabs/Tab.d.ts +0 -12
- package/esm/Tabs/Tab.js +0 -113
- package/esm/Tabs/Tabs.d.ts +0 -45
- package/esm/Tabs/Tabs.js +0 -270
- package/esm/Tabs/Wrapper.d.ts +0 -6
- package/esm/Tabs/Wrapper.js +0 -37
- package/esm/Tabs/index.d.ts +0 -2
- package/esm/Tabs/index.js +0 -7
- package/esm/Tabs/interface.d.ts +0 -1
- package/esm/Tabs/interface.js +0 -1
- package/esm/Tabs/styles/index.d.ts +0 -1
- package/esm/Tabs/styles/index.js +0 -4
- package/esm/Tabs/styles/tabs.less +0 -422
- package/esm/Tag/Input.d.ts +0 -2
- package/esm/Tag/Input.js +0 -84
- package/esm/Tag/Props.d.ts +0 -86
- package/esm/Tag/Props.js +0 -1
- package/esm/Tag/Tag.d.ts +0 -31
- package/esm/Tag/Tag.js +0 -230
- package/esm/Tag/index.d.ts +0 -6
- package/esm/Tag/index.js +0 -6
- package/esm/Tag/interface.d.ts +0 -1
- package/esm/Tag/interface.js +0 -1
- package/esm/Tag/styles/index.d.ts +0 -2
- package/esm/Tag/styles/index.js +0 -4
- package/esm/Tag/styles/tag.less +0 -107
- package/esm/Textarea/Textarea.d.ts +0 -27
- package/esm/Textarea/Textarea.js +0 -199
- package/esm/Textarea/index.d.ts +0 -297
- package/esm/Textarea/index.js +0 -22
- package/esm/Textarea/interface.d.ts +0 -1
- package/esm/Textarea/interface.js +0 -1
- package/esm/Textarea/props.d.ts +0 -76
- package/esm/Textarea/props.js +0 -1
- package/esm/Tooltip/Container.d.ts +0 -3
- package/esm/Tooltip/Container.js +0 -179
- package/esm/Tooltip/Props.d.ts +0 -83
- package/esm/Tooltip/Props.js +0 -1
- package/esm/Tooltip/events.d.ts +0 -5
- package/esm/Tooltip/events.js +0 -96
- package/esm/Tooltip/index.d.ts +0 -3
- package/esm/Tooltip/index.js +0 -5
- package/esm/Tooltip/interface.d.ts +0 -1
- package/esm/Tooltip/interface.js +0 -1
- package/esm/Tooltip/styles/index.d.ts +0 -2
- package/esm/Tooltip/styles/index.js +0 -4
- package/esm/Tooltip/styles/tooltip.less +0 -169
- package/esm/Transfer/Card.d.ts +0 -2
- package/esm/Transfer/Card.js +0 -247
- package/esm/Transfer/Props.d.ts +0 -175
- package/esm/Transfer/Props.js +0 -1
- package/esm/Transfer/Transfer.d.ts +0 -16
- package/esm/Transfer/Transfer.js +0 -192
- package/esm/Transfer/btns.d.ts +0 -13
- package/esm/Transfer/btns.js +0 -113
- package/esm/Transfer/context.d.ts +0 -4
- package/esm/Transfer/context.js +0 -2
- package/esm/Transfer/filter.d.ts +0 -7
- package/esm/Transfer/filter.js +0 -70
- package/esm/Transfer/index.d.ts +0 -2
- package/esm/Transfer/index.js +0 -10
- package/esm/Transfer/interface.d.ts +0 -1
- package/esm/Transfer/interface.js +0 -1
- package/esm/Transfer/item.d.ts +0 -4
- package/esm/Transfer/item.js +0 -71
- package/esm/Transfer/select.d.ts +0 -3
- package/esm/Transfer/select.js +0 -20
- package/esm/Transfer/styles/index.d.ts +0 -2
- package/esm/Transfer/styles/index.js +0 -4
- package/esm/Transfer/styles/transfer.less +0 -123
- package/esm/Tree/Checkbox.d.ts +0 -12
- package/esm/Tree/Checkbox.js +0 -76
- package/esm/Tree/Content.d.ts +0 -16
- package/esm/Tree/Content.js +0 -158
- package/esm/Tree/List.d.ts +0 -21
- package/esm/Tree/List.js +0 -107
- package/esm/Tree/Node.d.ts +0 -24
- package/esm/Tree/Node.js +0 -268
- package/esm/Tree/Props.d.ts +0 -291
- package/esm/Tree/Props.js +0 -1
- package/esm/Tree/Root.d.ts +0 -10
- package/esm/Tree/Root.js +0 -23
- package/esm/Tree/Tree.d.ts +0 -33
- package/esm/Tree/Tree.js +0 -344
- package/esm/Tree/index.d.ts +0 -7
- package/esm/Tree/index.js +0 -9
- package/esm/Tree/interface.d.ts +0 -1
- package/esm/Tree/interface.js +0 -1
- package/esm/Tree/styles/index.d.ts +0 -2
- package/esm/Tree/styles/index.js +0 -4
- package/esm/Tree/styles/tree.less +0 -263
- package/esm/TreeSelect/Input.d.ts +0 -22
- package/esm/TreeSelect/Input.js +0 -110
- package/esm/TreeSelect/Props.d.ts +0 -230
- package/esm/TreeSelect/Props.js +0 -1
- package/esm/TreeSelect/Result.d.ts +0 -31
- package/esm/TreeSelect/Result.js +0 -351
- package/esm/TreeSelect/TreeSelect.d.ts +0 -59
- package/esm/TreeSelect/TreeSelect.js +0 -464
- package/esm/TreeSelect/datum.d.ts +0 -37
- package/esm/TreeSelect/datum.js +0 -75
- package/esm/TreeSelect/filter.d.ts +0 -49
- package/esm/TreeSelect/filter.js +0 -157
- package/esm/TreeSelect/index.d.ts +0 -2
- package/esm/TreeSelect/index.js +0 -15
- package/esm/TreeSelect/interface.d.ts +0 -1
- package/esm/TreeSelect/interface.js +0 -1
- package/esm/TreeSelect/styles/index.d.ts +0 -2
- package/esm/TreeSelect/styles/index.js +0 -4
- package/esm/TreeSelect/styles/treeSelect.less +0 -618
- package/esm/TreeSelect/tiled.d.ts +0 -5
- package/esm/TreeSelect/tiled.js +0 -151
- package/esm/Upload/Dragger.d.ts +0 -10
- package/esm/Upload/Dragger.js +0 -66
- package/esm/Upload/Drop.d.ts +0 -26
- package/esm/Upload/Drop.js +0 -86
- package/esm/Upload/File.d.ts +0 -8
- package/esm/Upload/File.js +0 -64
- package/esm/Upload/FileInput.d.ts +0 -11
- package/esm/Upload/FileInput.js +0 -69
- package/esm/Upload/Image.d.ts +0 -22
- package/esm/Upload/Image.js +0 -184
- package/esm/Upload/ImageFile.d.ts +0 -8
- package/esm/Upload/ImageFile.js +0 -64
- package/esm/Upload/ImageResult.d.ts +0 -24
- package/esm/Upload/ImageResult.js +0 -162
- package/esm/Upload/Progress.d.ts +0 -22
- package/esm/Upload/Progress.js +0 -152
- package/esm/Upload/Props.d.ts +0 -548
- package/esm/Upload/Props.js +0 -1
- package/esm/Upload/RemoveConfirm.d.ts +0 -13
- package/esm/Upload/RemoveConfirm.js +0 -60
- package/esm/Upload/Result.d.ts +0 -17
- package/esm/Upload/Result.js +0 -86
- package/esm/Upload/Upload.d.ts +0 -59
- package/esm/Upload/Upload.js +0 -726
- package/esm/Upload/accept.d.ts +0 -61
- package/esm/Upload/accept.js +0 -35
- package/esm/Upload/context.d.ts +0 -3
- package/esm/Upload/context.js +0 -13
- package/esm/Upload/index.d.ts +0 -2
- package/esm/Upload/index.js +0 -16
- package/esm/Upload/interface.d.ts +0 -1
- package/esm/Upload/interface.js +0 -1
- package/esm/Upload/request.d.ts +0 -5
- package/esm/Upload/request.js +0 -71
- package/esm/Upload/styles/index.d.ts +0 -2
- package/esm/Upload/styles/index.js +0 -4
- package/esm/Upload/styles/upload.less +0 -539
- package/esm/component.d.ts +0 -116
- package/esm/component.js +0 -63
- package/esm/config.d.ts +0 -21
- package/esm/config.js +0 -42
- package/esm/context/index.d.ts +0 -3
- package/esm/context/index.js +0 -4
- package/esm/hoc/Props.d.ts +0 -96
- package/esm/hoc/Props.js +0 -1
- package/esm/hoc/coin.d.ts +0 -5
- package/esm/hoc/coin.js +0 -122
- package/esm/hoc/config.d.ts +0 -31
- package/esm/hoc/config.js +0 -38
- package/esm/hoc/delay.d.ts +0 -2
- package/esm/hoc/delay.js +0 -118
- package/esm/hoc/draggable.d.ts +0 -2
- package/esm/hoc/draggable.js +0 -105
- package/esm/hoc/hidable.d.ts +0 -20
- package/esm/hoc/hidable.js +0 -156
- package/esm/hoc/inputBorder.d.ts +0 -2
- package/esm/hoc/inputBorder.js +0 -139
- package/esm/hoc/moveable.d.ts +0 -2
- package/esm/hoc/moveable.js +0 -143
- package/esm/hoc/pagable.d.ts +0 -46
- package/esm/hoc/pagable.js +0 -81
- package/esm/hoc/resizable.d.ts +0 -57
- package/esm/hoc/resizable.js +0 -151
- package/esm/hoc/styles/hidable.less +0 -60
- package/esm/hoc/styles/index.d.ts +0 -4
- package/esm/hoc/styles/index.js +0 -8
- package/esm/hoc/styles/moveable.less +0 -10
- package/esm/hoc/styles/resizable.less +0 -43
- package/esm/icons/Caret.d.ts +0 -31
- package/esm/icons/Caret.js +0 -15
- package/esm/icons/Props.d.ts +0 -1
- package/esm/icons/Props.js +0 -1
- package/esm/icons/index.d.ts +0 -26
- package/esm/icons/index.js +0 -58
- package/esm/index.d.ts +0 -58
- package/esm/index.js +0 -58
- package/esm/locale/Props.d.ts +0 -2
- package/esm/locale/Props.js +0 -1
- package/esm/locale/en_US.d.ts +0 -45
- package/esm/locale/en_US.js +0 -44
- package/esm/locale/index.d.ts +0 -4
- package/esm/locale/index.js +0 -19
- package/esm/locale/zh-CN.d.ts +0 -45
- package/esm/locale/zh-CN.js +0 -44
- package/esm/styles/expose.d.ts +0 -1
- package/esm/styles/expose.js +0 -3
- package/esm/styles/expose.less +0 -491
- package/esm/styles/index.d.ts +0 -1
- package/esm/styles/index.js +0 -1
- package/esm/styles/mixins/alerts.less +0 -44
- package/esm/styles/mixins/animation.less +0 -2
- package/esm/styles/mixins/background-variant.less +0 -10
- package/esm/styles/mixins/border-radius.less +0 -18
- package/esm/styles/mixins/breadcrumbs.less +0 -12
- package/esm/styles/mixins/buttons.less +0 -434
- package/esm/styles/mixins/caret.less +0 -120
- package/esm/styles/mixins/center-block.less +0 -7
- package/esm/styles/mixins/clearfix.less +0 -23
- package/esm/styles/mixins/close.less +0 -35
- package/esm/styles/mixins/forms.less +0 -88
- package/esm/styles/mixins/gradients.less +0 -138
- package/esm/styles/mixins/grid-framework.less +0 -97
- package/esm/styles/mixins/grid.less +0 -122
- package/esm/styles/mixins/hide-text.less +0 -21
- package/esm/styles/mixins/image.less +0 -25
- package/esm/styles/mixins/input-title.less +0 -66
- package/esm/styles/mixins/labels.less +0 -12
- package/esm/styles/mixins/list-group.less +0 -31
- package/esm/styles/mixins/menu-selected.less +0 -36
- package/esm/styles/mixins/nav-divider.less +0 -10
- package/esm/styles/mixins/nav-vertical-align.less +0 -9
- package/esm/styles/mixins/opacity.less +0 -9
- package/esm/styles/mixins/pagination.less +0 -26
- package/esm/styles/mixins/panels.less +0 -26
- package/esm/styles/mixins/progress-bar.less +0 -10
- package/esm/styles/mixins/reset-filter.less +0 -8
- package/esm/styles/mixins/reset-text.less +0 -18
- package/esm/styles/mixins/resize.less +0 -6
- package/esm/styles/mixins/responsive-visibility.less +0 -24
- package/esm/styles/mixins/size.less +0 -10
- package/esm/styles/mixins/tab-focus.less +0 -10
- package/esm/styles/mixins/table-row.less +0 -28
- package/esm/styles/mixins/tag.less +0 -7
- package/esm/styles/mixins/text-emphasis.less +0 -10
- package/esm/styles/mixins/text-overflow.less +0 -8
- package/esm/styles/mixins/vendor-prefixes.less +0 -229
- package/esm/styles/normalize.less +0 -580
- package/esm/styles/themes/antd.less +0 -296
- package/esm/styles/themes/antd2.less +0 -25
- package/esm/styles/themes/base.less +0 -899
- package/esm/styles/themes/bootstrap.less +0 -290
- package/esm/styles/themes/cssvar.less +0 -735
- package/esm/styles/themes/default.less +0 -183
- package/esm/styles/themes/shineout.less +0 -806
- package/esm/styles/themes/vars-inject.less +0 -6
- package/esm/styles/variables.less +0 -54
- package/esm/utils/accept.d.ts +0 -3
- package/esm/utils/accept.js +0 -24
- package/esm/utils/classname.d.ts +0 -12
- package/esm/utils/classname.js +0 -34
- package/esm/utils/cleanProps.d.ts +0 -10
- package/esm/utils/cleanProps.js +0 -15
- package/esm/utils/clone.d.ts +0 -3
- package/esm/utils/clone.js +0 -38
- package/esm/utils/color.d.ts +0 -21
- package/esm/utils/color.js +0 -458
- package/esm/utils/compose.d.ts +0 -1
- package/esm/utils/compose.js +0 -96
- package/esm/utils/css-accessors.d.ts +0 -10
- package/esm/utils/css-accessors.js +0 -119
- package/esm/utils/curry.d.ts +0 -24
- package/esm/utils/curry.js +0 -23
- package/esm/utils/dom/detect.d.ts +0 -12
- package/esm/utils/dom/detect.js +0 -50
- package/esm/utils/dom/document.d.ts +0 -11
- package/esm/utils/dom/document.js +0 -43
- package/esm/utils/dom/element.d.ts +0 -37
- package/esm/utils/dom/element.js +0 -262
- package/esm/utils/dom/getDataset.d.ts +0 -4
- package/esm/utils/dom/getDataset.js +0 -10
- package/esm/utils/dom/isDOMElement.d.ts +0 -6
- package/esm/utils/dom/isDOMElement.js +0 -3
- package/esm/utils/dom/normalizeWheel.d.ts +0 -14
- package/esm/utils/dom/normalizeWheel.js +0 -67
- package/esm/utils/dom/popContainer.d.ts +0 -2
- package/esm/utils/dom/popContainer.js +0 -17
- package/esm/utils/dom/popover.d.ts +0 -9
- package/esm/utils/dom/popover.js +0 -96
- package/esm/utils/dom/ready.d.ts +0 -1
- package/esm/utils/dom/ready.js +0 -6
- package/esm/utils/dom/scrollBehavior.d.ts +0 -1
- package/esm/utils/dom/scrollBehavior.js +0 -27
- package/esm/utils/dom/translate.d.ts +0 -2
- package/esm/utils/dom/translate.js +0 -30
- package/esm/utils/errors.d.ts +0 -9
- package/esm/utils/errors.js +0 -62
- package/esm/utils/expose.d.ts +0 -18
- package/esm/utils/expose.js +0 -125
- package/esm/utils/flat.d.ts +0 -25
- package/esm/utils/flat.js +0 -166
- package/esm/utils/func.d.ts +0 -25
- package/esm/utils/func.js +0 -72
- package/esm/utils/hash.d.ts +0 -1
- package/esm/utils/hash.js +0 -36
- package/esm/utils/index.d.ts +0 -24
- package/esm/utils/index.js +0 -24
- package/esm/utils/is.d.ts +0 -28
- package/esm/utils/is.js +0 -111
- package/esm/utils/lazyload.d.ts +0 -13
- package/esm/utils/lazyload.js +0 -136
- package/esm/utils/notification.d.ts +0 -15
- package/esm/utils/notification.js +0 -43
- package/esm/utils/numbers.d.ts +0 -7
- package/esm/utils/numbers.js +0 -97
- package/esm/utils/objects.d.ts +0 -19
- package/esm/utils/objects.js +0 -296
- package/esm/utils/proptypes.d.ts +0 -14
- package/esm/utils/proptypes.js +0 -30
- package/esm/utils/shallowEqual.d.ts +0 -7
- package/esm/utils/shallowEqual.js +0 -79
- package/esm/utils/strings.d.ts +0 -7
- package/esm/utils/strings.js +0 -86
- package/esm/utils/transform.d.ts +0 -2
- package/esm/utils/transform.js +0 -30
- package/esm/utils/tree.d.ts +0 -14
- package/esm/utils/tree.js +0 -93
- package/esm/utils/uid.d.ts +0 -5
- package/esm/utils/uid.js +0 -23
- package/esm/utils/validate/index.d.ts +0 -4
- package/esm/utils/validate/index.js +0 -109
- package/esm/utils/validate/isJson.d.ts +0 -1
- package/esm/utils/validate/isJson.js +0 -30
- package/esm/utils/validate/nullable.d.ts +0 -2
- package/esm/utils/validate/nullable.js +0 -10
- package/esm/utils/validate/range.d.ts +0 -6
- package/esm/utils/validate/range.js +0 -29
- package/esm/utils/validate/rangeLength.d.ts +0 -6
- package/esm/utils/validate/rangeLength.js +0 -22
- package/esm/utils/validate/regExp.d.ts +0 -4
- package/esm/utils/validate/regExp.js +0 -21
- package/esm/utils/validate/required.d.ts +0 -5
- package/esm/utils/validate/required.js +0 -18
- package/esm/utils/validate/type.d.ts +0 -14
- package/esm/utils/validate/type.js +0 -93
- package/esm/utils/vars-inject.d.ts +0 -1070
- package/esm/utils/vars-inject.js +0 -4272
- package/esm/utils/zoom.d.ts +0 -2
- package/esm/utils/zoom.js +0 -33
|
@@ -1,857 +0,0 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/extends";
|
|
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 React from 'react';
|
|
7
|
-
import immer from 'immer';
|
|
8
|
-
import { PureComponent } from '../component';
|
|
9
|
-
import { setTranslate } from '../utils/dom/translate';
|
|
10
|
-
import { range, split } from '../utils/numbers';
|
|
11
|
-
import { compareColumns } from '../utils/shallowEqual';
|
|
12
|
-
import { getParent } from '../utils/dom/element';
|
|
13
|
-
import { tableClass } from './styles';
|
|
14
|
-
import Scroll from '../Scroll';
|
|
15
|
-
import { BAR_WIDTH } from '../Scroll/Scroll';
|
|
16
|
-
import Colgroup from './Colgroup';
|
|
17
|
-
import Thead from './Thead';
|
|
18
|
-
import Tbody from './Tbody';
|
|
19
|
-
import Tfoot from './Tfoot';
|
|
20
|
-
import { isNumber } from '../utils/is';
|
|
21
|
-
import { Provider as AbsoluteProvider } from './context';
|
|
22
|
-
import { CLASS_FIXED_LEFT, CLASS_FIXED_RIGHT } from './Td';
|
|
23
|
-
import Sticky from '../Sticky';
|
|
24
|
-
import { banOverScrollX } from '../utils/dom/scrollBehavior';
|
|
25
|
-
var DefaultProps = {
|
|
26
|
-
rowHeight: 40
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
var SeperateTable =
|
|
30
|
-
/*#__PURE__*/
|
|
31
|
-
function (_PureComponent) {
|
|
32
|
-
_inheritsLoose(SeperateTable, _PureComponent);
|
|
33
|
-
|
|
34
|
-
function SeperateTable(props) {
|
|
35
|
-
var _this;
|
|
36
|
-
|
|
37
|
-
_this = _PureComponent.call(this, props) || this;
|
|
38
|
-
|
|
39
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "bindTbody", void 0);
|
|
40
|
-
|
|
41
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "bindRealTbody", void 0);
|
|
42
|
-
|
|
43
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "bindThead", void 0);
|
|
44
|
-
|
|
45
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "bindHeadWrapper", void 0);
|
|
46
|
-
|
|
47
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "bindFoot", void 0);
|
|
48
|
-
|
|
49
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "rmOverScrollListener", void 0);
|
|
50
|
-
|
|
51
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "thead", void 0);
|
|
52
|
-
|
|
53
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "tbody", void 0);
|
|
54
|
-
|
|
55
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "tfoot", void 0);
|
|
56
|
-
|
|
57
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "realTbody", void 0);
|
|
58
|
-
|
|
59
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "headWrapper", void 0);
|
|
60
|
-
|
|
61
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "cachedRowHeight", void 0);
|
|
62
|
-
|
|
63
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastScrollArgs", void 0);
|
|
64
|
-
|
|
65
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastScrollTop", void 0);
|
|
66
|
-
|
|
67
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "ajustBottomScroll", void 0);
|
|
68
|
-
|
|
69
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "renderByExpand", void 0);
|
|
70
|
-
|
|
71
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastResetLeft", void 0);
|
|
72
|
-
|
|
73
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastResetRight", void 0);
|
|
74
|
-
|
|
75
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastData", void 0);
|
|
76
|
-
|
|
77
|
-
_defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), "lastColumns", void 0);
|
|
78
|
-
|
|
79
|
-
_this.state = {
|
|
80
|
-
currentIndex: 0,
|
|
81
|
-
scrollLeft: 0,
|
|
82
|
-
scrollTop: 0,
|
|
83
|
-
floatFixed: true,
|
|
84
|
-
resize: false
|
|
85
|
-
};
|
|
86
|
-
_this.bindTbody = _this.bindElement.bind(_assertThisInitialized(_assertThisInitialized(_this)), 'tbody');
|
|
87
|
-
_this.bindRealTbody = _this.bindElement.bind(_assertThisInitialized(_assertThisInitialized(_this)), 'realTbody');
|
|
88
|
-
_this.bindThead = _this.bindElement.bind(_assertThisInitialized(_assertThisInitialized(_this)), 'thead');
|
|
89
|
-
_this.bindHeadWrapper = _this.bindElement.bind(_assertThisInitialized(_assertThisInitialized(_this)), 'headWrapper');
|
|
90
|
-
_this.bindFoot = _this.bindElement.bind(_assertThisInitialized(_assertThisInitialized(_this)), 'tfoot');
|
|
91
|
-
_this.setRowHeight = _this.setRowHeight.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
92
|
-
_this.handleColgroup = _this.handleColgroup.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
93
|
-
_this.handleScroll = _this.handleScroll.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
94
|
-
_this.handleSortChange = _this.handleSortChange.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
95
|
-
_this.scrollToTop = _this.scrollToTop.bind(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
96
|
-
_this.cachedRowHeight = [];
|
|
97
|
-
_this.lastScrollArgs = {};
|
|
98
|
-
_this.lastScrollTop = 0;
|
|
99
|
-
if (props.tableRef) props.tableRef(_assertThisInitialized(_assertThisInitialized(_this)));
|
|
100
|
-
return _this;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
var _proto = SeperateTable.prototype;
|
|
104
|
-
|
|
105
|
-
_proto.componentDidMount = function componentDidMount() {
|
|
106
|
-
_PureComponent.prototype.componentDidMount.call(this);
|
|
107
|
-
|
|
108
|
-
this.adjustScrollLeft();
|
|
109
|
-
} // reset scrollTop when data changed
|
|
110
|
-
;
|
|
111
|
-
|
|
112
|
-
_proto.componentDidUpdate = function componentDidUpdate(prevProps) {
|
|
113
|
-
if (!this.tbody) return;
|
|
114
|
-
var dataChange = this.props.data !== prevProps.data;
|
|
115
|
-
|
|
116
|
-
if (dataChange) {
|
|
117
|
-
var resize = prevProps.data.length === 0 && this.props.data.length; // eslint-disable-next-line react/no-did-update-set-state
|
|
118
|
-
|
|
119
|
-
if (resize || this.props.dataChangeResize) this.setState({
|
|
120
|
-
resize: true,
|
|
121
|
-
colgroup: undefined
|
|
122
|
-
});
|
|
123
|
-
this.resetHeight();
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
this.updateScrollLeft();
|
|
127
|
-
|
|
128
|
-
if (!compareColumns(prevProps.columns, this.props.columns)) {
|
|
129
|
-
this.resetWidth(); // eslint-disable-next-line react/no-did-update-set-state
|
|
130
|
-
|
|
131
|
-
this.setState({
|
|
132
|
-
colgroup: undefined
|
|
133
|
-
});
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
this.ajustBottom(dataChange);
|
|
137
|
-
};
|
|
138
|
-
|
|
139
|
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
140
|
-
_PureComponent.prototype.componentWillUnmount.call(this);
|
|
141
|
-
|
|
142
|
-
if (this.rmOverScrollListener) this.rmOverScrollListener();
|
|
143
|
-
};
|
|
144
|
-
|
|
145
|
-
_proto.getIndex = function getIndex(scrollTop) {
|
|
146
|
-
if (scrollTop === void 0) {
|
|
147
|
-
scrollTop = this.state.scrollTop;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
var _this$props = this.props,
|
|
151
|
-
data = _this$props.data,
|
|
152
|
-
rowsInView = _this$props.rowsInView;
|
|
153
|
-
var max = data.length;
|
|
154
|
-
var mcf = scrollTop > 0.5 ? Math.ceil : Math.floor;
|
|
155
|
-
var index = mcf(scrollTop * max - rowsInView * scrollTop);
|
|
156
|
-
if (index > max - rowsInView) index = max - rowsInView;
|
|
157
|
-
if (index < 0) index = 0;
|
|
158
|
-
return index;
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
_proto.getContentHeight = function getContentHeight() {
|
|
162
|
-
if (!this.props.data) return 0;
|
|
163
|
-
return this.getSumHeight(0, this.props.data.length);
|
|
164
|
-
};
|
|
165
|
-
|
|
166
|
-
_proto.getContentWidth = function getContentWidth() {
|
|
167
|
-
if (this.props.width) return this.props.width;
|
|
168
|
-
if (this.tbody) return this.tbody.offsetWidth;
|
|
169
|
-
return 0;
|
|
170
|
-
};
|
|
171
|
-
|
|
172
|
-
_proto.getSumHeight = function getSumHeight(start, end) {
|
|
173
|
-
var _this$props$rowHeight = this.props.rowHeight,
|
|
174
|
-
rowHeight = _this$props$rowHeight === void 0 ? DefaultProps.rowHeight : _this$props$rowHeight;
|
|
175
|
-
var height = 0;
|
|
176
|
-
|
|
177
|
-
for (var i = start; i < end; i++) {
|
|
178
|
-
height += this.cachedRowHeight[i] || rowHeight;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
return height;
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
_proto.getLastRowHeight = function getLastRowHeight(index) {
|
|
185
|
-
var _this$props2 = this.props,
|
|
186
|
-
_this$props2$rowHeigh = _this$props2.rowHeight,
|
|
187
|
-
rowHeight = _this$props2$rowHeigh === void 0 ? DefaultProps.rowHeight : _this$props2$rowHeigh,
|
|
188
|
-
data = _this$props2.data,
|
|
189
|
-
rowsInView = _this$props2.rowsInView;
|
|
190
|
-
if (index + rowsInView >= data.length) return 0;
|
|
191
|
-
var lastRowHeight = 0;
|
|
192
|
-
|
|
193
|
-
if (index >= 1 && index < data.length / 2) {
|
|
194
|
-
lastRowHeight = this.cachedRowHeight[index - 1] || rowHeight;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
return lastRowHeight;
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
_proto.setRowHeight = function setRowHeight(height, index, expand) {
|
|
201
|
-
var _this$props$rowHeight2 = this.props.rowHeight,
|
|
202
|
-
rowHeight = _this$props$rowHeight2 === void 0 ? DefaultProps.rowHeight : _this$props$rowHeight2;
|
|
203
|
-
var oldHeight = this.cachedRowHeight[index];
|
|
204
|
-
this.cachedRowHeight[index] = height;
|
|
205
|
-
|
|
206
|
-
if (!this.renderByExpand && expand) {
|
|
207
|
-
this.renderByExpand = true;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
if (!this.tbody) return;
|
|
211
|
-
var _this$state = this.state,
|
|
212
|
-
offsetLeft = _this$state.offsetLeft,
|
|
213
|
-
currentIndex = _this$state.currentIndex;
|
|
214
|
-
|
|
215
|
-
if (currentIndex === index && !oldHeight) {
|
|
216
|
-
this.lastScrollTop += height - rowHeight;
|
|
217
|
-
if (this.lastScrollTop < 0) this.lastScrollTop = 0;
|
|
218
|
-
setTranslate(this.tbody, "-" + offsetLeft + "px", "-" + this.lastScrollTop + "px");
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
var contentHeight = this.getContentHeight();
|
|
222
|
-
|
|
223
|
-
if (oldHeight && height !== oldHeight) {
|
|
224
|
-
if (this.lastScrollTop > contentHeight) {
|
|
225
|
-
this.handleScroll.apply(this, immer(this.lastScrollArgs, function (draft) {
|
|
226
|
-
draft[7] = 1;
|
|
227
|
-
}));
|
|
228
|
-
return;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
var scrollTop = this.lastScrollTop / contentHeight;
|
|
232
|
-
this.setState({
|
|
233
|
-
scrollTop: scrollTop
|
|
234
|
-
});
|
|
235
|
-
|
|
236
|
-
if (scrollTop === this.state.scrollTop) {
|
|
237
|
-
this.forceUpdate();
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* if press and hold bar to scroll to the bottom, reset scroll
|
|
242
|
-
*/
|
|
243
|
-
// if (this.lastScrollArgs[1] === 1) {
|
|
244
|
-
// setTimeout(() => {
|
|
245
|
-
// this.handleScroll(
|
|
246
|
-
// ...immer(this.lastScrollArgs, draft => {
|
|
247
|
-
// draft[7] = undefined
|
|
248
|
-
// })
|
|
249
|
-
// )
|
|
250
|
-
// })
|
|
251
|
-
// }
|
|
252
|
-
|
|
253
|
-
};
|
|
254
|
-
|
|
255
|
-
_proto.setTop = function setTop(scrollHeight, fullHeight, top) {
|
|
256
|
-
var _this2 = this;
|
|
257
|
-
|
|
258
|
-
var offsetLeft = this.state.offsetLeft;
|
|
259
|
-
this.tbody.style.marginTop = scrollHeight * top + "px";
|
|
260
|
-
this.lastScrollTop = fullHeight * top;
|
|
261
|
-
setTranslate(this.tbody, "-" + offsetLeft + "px", "-" + this.lastScrollTop + "px");
|
|
262
|
-
setTimeout(function () {
|
|
263
|
-
_this2.setState({
|
|
264
|
-
scrollTop: top
|
|
265
|
-
});
|
|
266
|
-
|
|
267
|
-
_this2.lastScrollArgs[1] = top;
|
|
268
|
-
});
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
_proto.checkScrollToIndex = function checkScrollToIndex(index, outerHeight) {
|
|
272
|
-
var _this$props3 = this.props,
|
|
273
|
-
data = _this$props3.data,
|
|
274
|
-
rowsInView = _this$props3.rowsInView;
|
|
275
|
-
var max = data.length;
|
|
276
|
-
|
|
277
|
-
if (max - index >= rowsInView) {
|
|
278
|
-
return index;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
var contentHeight = this.getSumHeight(index, max);
|
|
282
|
-
|
|
283
|
-
if (contentHeight >= outerHeight) {
|
|
284
|
-
return index;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
return max;
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
_proto.ajustBottom = function ajustBottom(dataChange) {
|
|
291
|
-
var _this3 = this;
|
|
292
|
-
|
|
293
|
-
var reachBottom = this.lastScrollArgs[1] === 1;
|
|
294
|
-
var drag = this.lastScrollArgs[8];
|
|
295
|
-
|
|
296
|
-
if (!dataChange && reachBottom && drag) {
|
|
297
|
-
if (this.ajustBottomScroll) return;
|
|
298
|
-
this.ajustBottomScroll = true;
|
|
299
|
-
setTimeout(function () {
|
|
300
|
-
_this3.handleScroll.apply(_this3, _this3.lastScrollArgs);
|
|
301
|
-
});
|
|
302
|
-
}
|
|
303
|
-
};
|
|
304
|
-
|
|
305
|
-
_proto.updateScrollLeft = function updateScrollLeft() {
|
|
306
|
-
var scrollLeft = this.props.scrollLeft;
|
|
307
|
-
this.resetFloatFixed();
|
|
308
|
-
if (!isNumber(scrollLeft)) return;
|
|
309
|
-
var args = Array.isArray(this.lastScrollArgs) && this.lastScrollArgs.slice();
|
|
310
|
-
|
|
311
|
-
if (scrollLeft !== this.state.offsetLeft && args) {
|
|
312
|
-
var bodyWidth = this.lastScrollArgs[4];
|
|
313
|
-
if (scrollLeft < 0) scrollLeft = 0;
|
|
314
|
-
if (scrollLeft > this.getContentWidth() - bodyWidth) scrollLeft = this.getContentWidth() - bodyWidth;
|
|
315
|
-
args[0] = scrollLeft / (this.getContentWidth() - args[4]);
|
|
316
|
-
args[1] = this.state.scrollTop;
|
|
317
|
-
args[6] = 0;
|
|
318
|
-
args[7] = 0;
|
|
319
|
-
this.handleScroll.apply(this, args);
|
|
320
|
-
}
|
|
321
|
-
};
|
|
322
|
-
|
|
323
|
-
_proto.adjustScrollLeft = function adjustScrollLeft() {
|
|
324
|
-
var scrollLeft = this.props.scrollLeft;
|
|
325
|
-
this.resetFloatFixed();
|
|
326
|
-
|
|
327
|
-
if (isNumber(scrollLeft) && scrollLeft > 0) {
|
|
328
|
-
var v = this.headWrapper.clientWidth;
|
|
329
|
-
var offset = this.getContentWidth() - v;
|
|
330
|
-
this.setState({
|
|
331
|
-
scrollLeft: scrollLeft / offset,
|
|
332
|
-
offsetLeft: scrollLeft
|
|
333
|
-
});
|
|
334
|
-
}
|
|
335
|
-
};
|
|
336
|
-
|
|
337
|
-
_proto.resetFloatFixed = function resetFloatFixed() {
|
|
338
|
-
if (!this.headWrapper || !this.tbody) return;
|
|
339
|
-
var fixed = this.props.fixed;
|
|
340
|
-
var delta = fixed === 'x' ? 0 : BAR_WIDTH;
|
|
341
|
-
var floatFixed = Math.abs(this.headWrapper.clientWidth - this.tbody.clientWidth) !== delta;
|
|
342
|
-
|
|
343
|
-
if (floatFixed !== this.state.floatFixed) {
|
|
344
|
-
this.setState({
|
|
345
|
-
floatFixed: floatFixed
|
|
346
|
-
});
|
|
347
|
-
}
|
|
348
|
-
};
|
|
349
|
-
|
|
350
|
-
_proto.resetIndex = function resetIndex() {
|
|
351
|
-
var currentIndex = this.state.currentIndex;
|
|
352
|
-
var max = this.props.data.length - this.props.rowsInView;
|
|
353
|
-
if (max < 0) max = 0;
|
|
354
|
-
if (max >= currentIndex) return currentIndex; // if data.length < currentIndex
|
|
355
|
-
|
|
356
|
-
return max;
|
|
357
|
-
};
|
|
358
|
-
|
|
359
|
-
_proto.resetHeight = function resetHeight() {
|
|
360
|
-
var _this4 = this;
|
|
361
|
-
|
|
362
|
-
var scrollTop = this.state.scrollTop;
|
|
363
|
-
var _this$props4 = this.props,
|
|
364
|
-
treeColumnsName = _this$props4.treeColumnsName,
|
|
365
|
-
changedByExpand = _this$props4.changedByExpand;
|
|
366
|
-
var fullHeight = this.getContentHeight();
|
|
367
|
-
var height = fullHeight * scrollTop;
|
|
368
|
-
var scrollHeight = this.lastScrollArgs[5]; // Height reduced
|
|
369
|
-
|
|
370
|
-
if (this.lastScrollTop - height >= 1) {
|
|
371
|
-
var index = this.resetIndex();
|
|
372
|
-
this.setState({
|
|
373
|
-
currentIndex: index
|
|
374
|
-
});
|
|
375
|
-
|
|
376
|
-
if (this.renderByExpand) {
|
|
377
|
-
this.renderByExpand = false;
|
|
378
|
-
return;
|
|
379
|
-
} // this.lastScrollTop = height
|
|
380
|
-
// if (treeColumnsName && changedByExpand) {
|
|
381
|
-
// this.tbody.style.marginTop = `${this.lastScrollTop - this.realOffset}px`
|
|
382
|
-
// setTranslate(this.tbody, `-${offsetLeft}px`, `-${this.lastScrollTop}px`)
|
|
383
|
-
// return
|
|
384
|
-
// }
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
if (treeColumnsName && changedByExpand) {
|
|
388
|
-
// Blank space may appear after clicking the top or bottom collapse button
|
|
389
|
-
if (fullHeight - this.lastScrollTop < (1 - this.lastScrollArgs[1]) * scrollHeight) {
|
|
390
|
-
if (fullHeight <= scrollHeight) {
|
|
391
|
-
index = 0;
|
|
392
|
-
} else {
|
|
393
|
-
this.setTop(scrollHeight, fullHeight, 1);
|
|
394
|
-
return;
|
|
395
|
-
}
|
|
396
|
-
} else {
|
|
397
|
-
return;
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
if (index === 0) {
|
|
402
|
-
this.setTop(scrollHeight, fullHeight, 0);
|
|
403
|
-
} else if (fullHeight - this.lastScrollTop < (1 - this.lastScrollArgs[1]) * scrollHeight) {
|
|
404
|
-
this.setTop(scrollHeight, fullHeight, 1);
|
|
405
|
-
} else {
|
|
406
|
-
var keepTop = this.lastScrollTop - this.lastScrollArgs[1] * scrollHeight; // keepTop = scrollTopLength - scrollTopLength/fullHeight * scrollHeight
|
|
407
|
-
// keepTop = (1 - scrollHeight / fullHeight) * scrollTopLength
|
|
408
|
-
|
|
409
|
-
var scrollTopLength = keepTop / (1 - scrollHeight / fullHeight);
|
|
410
|
-
this.lastScrollTop = scrollTopLength;
|
|
411
|
-
var st = this.lastScrollTop / fullHeight;
|
|
412
|
-
this.setTop(scrollHeight, fullHeight, st);
|
|
413
|
-
}
|
|
414
|
-
} else if (this.lastScrollTop - height < 1) {
|
|
415
|
-
setTimeout(function () {
|
|
416
|
-
_this4.lastScrollArgs[1] = _this4.lastScrollTop / fullHeight;
|
|
417
|
-
|
|
418
|
-
_this4.setState({
|
|
419
|
-
scrollTop: _this4.lastScrollTop / fullHeight
|
|
420
|
-
});
|
|
421
|
-
});
|
|
422
|
-
}
|
|
423
|
-
};
|
|
424
|
-
|
|
425
|
-
_proto.resetWidth = function resetWidth(left, right) {
|
|
426
|
-
if (left === void 0) {
|
|
427
|
-
left = this.lastResetLeft || 0;
|
|
428
|
-
}
|
|
429
|
-
|
|
430
|
-
if (right === void 0) {
|
|
431
|
-
right = this.lastResetRight || 0;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
this.lastResetLeft = left;
|
|
435
|
-
this.lastResetRight = right;
|
|
436
|
-
setTranslate(this.tbody, "-" + left + "px", "-" + this.lastScrollTop + "px");
|
|
437
|
-
|
|
438
|
-
if (this.thead) {
|
|
439
|
-
setTranslate(this.thead, "-" + left + "px", '0');
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
if (this.tfoot) {
|
|
443
|
-
setTranslate(this.tfoot, "-" + left + "px", '0');
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
;
|
|
447
|
-
[this.thead, this.tbody, this.tfoot].forEach(function (el) {
|
|
448
|
-
if (!el) return;
|
|
449
|
-
[].forEach.call(el.parentNode.querySelectorAll('td, th'), function (cell) {
|
|
450
|
-
if (cell.classList.contains(tableClass(CLASS_FIXED_LEFT))) {
|
|
451
|
-
setTranslate(cell, left + "px", '0');
|
|
452
|
-
} else if (cell.classList.contains(tableClass(CLASS_FIXED_RIGHT))) {
|
|
453
|
-
setTranslate(cell, "-" + right + "px", '0');
|
|
454
|
-
} else if (cell.style.transform) {
|
|
455
|
-
setTranslate(cell, '0', '0');
|
|
456
|
-
}
|
|
457
|
-
});
|
|
458
|
-
});
|
|
459
|
-
};
|
|
460
|
-
|
|
461
|
-
_proto.bindElement = function bindElement(key, el) {
|
|
462
|
-
// @ts-ignore
|
|
463
|
-
this[key] = el;
|
|
464
|
-
|
|
465
|
-
if (key === 'headWrapper') {
|
|
466
|
-
if (el) {
|
|
467
|
-
this.rmOverScrollListener = banOverScrollX(el);
|
|
468
|
-
} else if (this.rmOverScrollListener) {
|
|
469
|
-
this.rmOverScrollListener();
|
|
470
|
-
this.rmOverScrollListener = null;
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
};
|
|
474
|
-
|
|
475
|
-
_proto.scrollToTop = function scrollToTop() {
|
|
476
|
-
this.scrollToIndex(0);
|
|
477
|
-
};
|
|
478
|
-
|
|
479
|
-
_proto.scrollToIndex = function scrollToIndex(index, callback) {
|
|
480
|
-
if (!this.$isMounted) return;
|
|
481
|
-
if (index >= 1) index -= 1;
|
|
482
|
-
if (index < 0) index = 0;
|
|
483
|
-
var contentHeight = this.getContentHeight();
|
|
484
|
-
var outerHeight = getParent(this.realTbody, "." + tableClass('body')).clientHeight - 12;
|
|
485
|
-
var currentIndex = this.checkScrollToIndex(index, outerHeight);
|
|
486
|
-
var sumHeight = this.getSumHeight(0, currentIndex);
|
|
487
|
-
var scrollTop = sumHeight / contentHeight;
|
|
488
|
-
var marginTop = scrollTop * outerHeight;
|
|
489
|
-
var offsetScrollTop = sumHeight + marginTop;
|
|
490
|
-
|
|
491
|
-
if (offsetScrollTop > contentHeight) {
|
|
492
|
-
offsetScrollTop = contentHeight;
|
|
493
|
-
currentIndex = this.props.data.length - this.props.rowsInView;
|
|
494
|
-
scrollTop = 1;
|
|
495
|
-
marginTop = outerHeight;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
this.lastScrollArgs[1] = scrollTop;
|
|
499
|
-
this.setState({
|
|
500
|
-
currentIndex: currentIndex,
|
|
501
|
-
scrollTop: scrollTop
|
|
502
|
-
}, callback);
|
|
503
|
-
this.lastScrollTop = offsetScrollTop;
|
|
504
|
-
this.tbody.style.marginTop = marginTop + "px";
|
|
505
|
-
setTranslate(this.tbody, "-" + this.state.offsetLeft + "px", "-" + offsetScrollTop + "px");
|
|
506
|
-
} // business component needed
|
|
507
|
-
;
|
|
508
|
-
|
|
509
|
-
_proto.scrollOffset = function scrollOffset(index, callback) {
|
|
510
|
-
var currentIndex = this.state.currentIndex;
|
|
511
|
-
var outerHeight = getParent(this.realTbody, "." + tableClass('body')).clientHeight - 12;
|
|
512
|
-
var lastRowHeight = this.cachedRowHeight[this.cachedRowHeight.length - 1];
|
|
513
|
-
if (this.state.scrollTop === 1 && index >= 0) return;
|
|
514
|
-
if (lastRowHeight && this.realTbody.clientHeight - outerHeight < lastRowHeight && index >= 0) return;
|
|
515
|
-
var scrollIndex = currentIndex + index + 1;
|
|
516
|
-
|
|
517
|
-
if (currentIndex === 1 && index === -1) {
|
|
518
|
-
scrollIndex = 0;
|
|
519
|
-
}
|
|
520
|
-
|
|
521
|
-
this.scrollToIndex(scrollIndex, callback);
|
|
522
|
-
};
|
|
523
|
-
|
|
524
|
-
_proto.handleScroll = function handleScroll() {
|
|
525
|
-
if (!this.tbody || this.realTbody.clientHeight === 0) return; // @ts-ignore
|
|
526
|
-
|
|
527
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
528
|
-
args[_key] = arguments[_key];
|
|
529
|
-
}
|
|
530
|
-
|
|
531
|
-
var x = args[0],
|
|
532
|
-
y = args[1],
|
|
533
|
-
max = args[2],
|
|
534
|
-
bar = args[3],
|
|
535
|
-
v = args[4],
|
|
536
|
-
h = args[5],
|
|
537
|
-
pixelX = args[6],
|
|
538
|
-
pixelY = args[7];
|
|
539
|
-
var colgroup = this.state.colgroup;
|
|
540
|
-
var isResize = v && this.lastScrollArgs[4] && v !== this.lastScrollArgs[4];
|
|
541
|
-
this.lastScrollArgs = args;
|
|
542
|
-
|
|
543
|
-
if (this.ajustBottomScroll) {
|
|
544
|
-
this.lastScrollArgs[8] = false;
|
|
545
|
-
this.ajustBottomScroll = false;
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
var _this$props5 = this.props,
|
|
549
|
-
data = _this$props5.data,
|
|
550
|
-
_this$props5$rowHeigh = _this$props5.rowHeight,
|
|
551
|
-
rowHeight = _this$props5$rowHeigh === void 0 ? DefaultProps.rowHeight : _this$props5$rowHeigh,
|
|
552
|
-
rowsInView = _this$props5.rowsInView;
|
|
553
|
-
var contentWidth = this.getContentWidth();
|
|
554
|
-
var contentHeight = this.getContentHeight();
|
|
555
|
-
var left = x * (contentWidth - v);
|
|
556
|
-
var scrollTop = h > contentHeight ? 0 : y;
|
|
557
|
-
var right = max - left;
|
|
558
|
-
if (right < 0) right = 0;
|
|
559
|
-
/* set x */
|
|
560
|
-
|
|
561
|
-
if (left < 0) left = 0;
|
|
562
|
-
this.resetWidth(left, right);
|
|
563
|
-
/* set x end */
|
|
564
|
-
|
|
565
|
-
/* set y */
|
|
566
|
-
|
|
567
|
-
this.tbody.style.marginTop = scrollTop * h + "px";
|
|
568
|
-
|
|
569
|
-
if (pixelY === undefined) {
|
|
570
|
-
// drag scroll bar
|
|
571
|
-
var index = this.getIndex(scrollTop);
|
|
572
|
-
var lastRowHeight = this.getLastRowHeight(index);
|
|
573
|
-
var offsetScrollTop = this.getSumHeight(0, index) + scrollTop * this.realTbody.clientHeight;
|
|
574
|
-
this.setState({
|
|
575
|
-
currentIndex: index
|
|
576
|
-
});
|
|
577
|
-
this.lastScrollTop = offsetScrollTop;
|
|
578
|
-
setTranslate(this.tbody, "-" + left + "px", "-" + (offsetScrollTop + lastRowHeight) + "px");
|
|
579
|
-
} else if (pixelY === 0) {
|
|
580
|
-
// whell x
|
|
581
|
-
setTranslate(this.tbody, "-" + left + "px", "-" + this.lastScrollTop + "px");
|
|
582
|
-
} else if (contentHeight < h) {
|
|
583
|
-
this.lastScrollTop = 0;
|
|
584
|
-
scrollTop = 0;
|
|
585
|
-
setTranslate(this.tbody, "-" + left + "px", '0px');
|
|
586
|
-
this.setState({
|
|
587
|
-
currentIndex: 0
|
|
588
|
-
});
|
|
589
|
-
} else {
|
|
590
|
-
// wheel scroll
|
|
591
|
-
this.lastScrollTop += pixelY;
|
|
592
|
-
if (this.lastScrollTop < 0) this.lastScrollTop = 0; // scroll over bottom
|
|
593
|
-
|
|
594
|
-
if (this.lastScrollTop > contentHeight) this.lastScrollTop = contentHeight;
|
|
595
|
-
var temp = this.lastScrollTop - scrollTop * h;
|
|
596
|
-
var _index = 0;
|
|
597
|
-
|
|
598
|
-
while (temp > 0) {
|
|
599
|
-
temp -= this.cachedRowHeight[_index] || rowHeight;
|
|
600
|
-
_index += 1;
|
|
601
|
-
} // offset last row
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
_index -= 1;
|
|
605
|
-
if (data.length - rowsInView < _index) _index = data.length - rowsInView;
|
|
606
|
-
if (_index < 0) _index = 0;
|
|
607
|
-
this.setState({
|
|
608
|
-
currentIndex: _index
|
|
609
|
-
});
|
|
610
|
-
scrollTop = this.lastScrollTop / contentHeight;
|
|
611
|
-
setTranslate(this.tbody, "-" + left + "px", "-" + this.lastScrollTop + "px");
|
|
612
|
-
}
|
|
613
|
-
/* set y end */
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
this.setState({
|
|
617
|
-
scrollLeft: x,
|
|
618
|
-
scrollTop: scrollTop,
|
|
619
|
-
offsetLeft: left,
|
|
620
|
-
offsetRight: right,
|
|
621
|
-
colgroup: isResize ? undefined : colgroup,
|
|
622
|
-
resize: isResize ? v : false
|
|
623
|
-
});
|
|
624
|
-
if (this.props.onScroll) this.props.onScroll(x, y, left);
|
|
625
|
-
};
|
|
626
|
-
|
|
627
|
-
_proto.handleSortChange = function handleSortChange() {
|
|
628
|
-
var _this$props6;
|
|
629
|
-
|
|
630
|
-
this.scrollToIndex(0);
|
|
631
|
-
|
|
632
|
-
(_this$props6 = this.props).onSortChange.apply(_this$props6, arguments);
|
|
633
|
-
};
|
|
634
|
-
|
|
635
|
-
_proto.handleColgroup = function handleColgroup(tds) {
|
|
636
|
-
var columns = this.props.columns;
|
|
637
|
-
var colgroup = [];
|
|
638
|
-
|
|
639
|
-
var _loop = function _loop(i, count) {
|
|
640
|
-
var _tds$i$getBoundingCli = tds[i].getBoundingClientRect(),
|
|
641
|
-
width = _tds$i$getBoundingCli.width;
|
|
642
|
-
|
|
643
|
-
var colSpan = parseInt(tds[i].getAttribute('colspan'), 10);
|
|
644
|
-
|
|
645
|
-
if (colSpan && colSpan > 1) {
|
|
646
|
-
split(width, range(colSpan).map(function (j) {
|
|
647
|
-
return columns[i + j].width;
|
|
648
|
-
})).forEach(function (w) {
|
|
649
|
-
return colgroup.push(w);
|
|
650
|
-
});
|
|
651
|
-
} else {
|
|
652
|
-
colgroup.push(width);
|
|
653
|
-
}
|
|
654
|
-
};
|
|
655
|
-
|
|
656
|
-
for (var i = 0, count = tds.length; i < count; i++) {
|
|
657
|
-
_loop(i, count);
|
|
658
|
-
}
|
|
659
|
-
|
|
660
|
-
this.setState({
|
|
661
|
-
colgroup: colgroup,
|
|
662
|
-
resize: false
|
|
663
|
-
});
|
|
664
|
-
};
|
|
665
|
-
|
|
666
|
-
_proto.renderBody = function renderBody(floatClass) {
|
|
667
|
-
var _this$props7 = this.props,
|
|
668
|
-
data = _this$props7.data,
|
|
669
|
-
rowsInView = _this$props7.rowsInView,
|
|
670
|
-
columns = _this$props7.columns,
|
|
671
|
-
width = _this$props7.width,
|
|
672
|
-
fixed = _this$props7.fixed,
|
|
673
|
-
rowHeight = _this$props7.rowHeight,
|
|
674
|
-
columnResizable = _this$props7.columnResizable,
|
|
675
|
-
innerScrollAttr = _this$props7.innerScrollAttr,
|
|
676
|
-
bordered = _this$props7.bordered,
|
|
677
|
-
others = _objectWithoutPropertiesLoose(_this$props7, ["data", "rowsInView", "columns", "width", "fixed", "rowHeight", "columnResizable", "innerScrollAttr", "bordered"]);
|
|
678
|
-
|
|
679
|
-
var _this$state2 = this.state,
|
|
680
|
-
colgroup = _this$state2.colgroup,
|
|
681
|
-
scrollTop = _this$state2.scrollTop,
|
|
682
|
-
scrollLeft = _this$state2.scrollLeft,
|
|
683
|
-
offsetLeft = _this$state2.offsetLeft,
|
|
684
|
-
offsetRight = _this$state2.offsetRight,
|
|
685
|
-
currentIndex = _this$state2.currentIndex,
|
|
686
|
-
resize = _this$state2.resize;
|
|
687
|
-
var contentWidth = this.getContentWidth();
|
|
688
|
-
var minWidthSup = columns.find(function (d) {
|
|
689
|
-
return d.minWidth;
|
|
690
|
-
});
|
|
691
|
-
|
|
692
|
-
if (!data || data.length === 0) {
|
|
693
|
-
return React.createElement("div", null);
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
var dataUpdated = this.lastData !== data; // Incorrect height due to changing data length dynamically
|
|
697
|
-
|
|
698
|
-
if (this.lastData && !dataUpdated) dataUpdated = this.lastData.length !== data.length;
|
|
699
|
-
this.lastData = data;
|
|
700
|
-
if (!dataUpdated && this.lastColumns && !compareColumns(this.lastColumns, columns)) dataUpdated = true;
|
|
701
|
-
this.lastColumns = columns;
|
|
702
|
-
var prevHeight = this.getSumHeight(0, currentIndex);
|
|
703
|
-
var hasNotRenderRows = data.length > rowsInView;
|
|
704
|
-
return React.createElement(Scroll, {
|
|
705
|
-
scrollTop: scrollTop,
|
|
706
|
-
scrollLeft: scrollLeft,
|
|
707
|
-
scroll: fixed,
|
|
708
|
-
scrollHeight: this.getContentHeight(),
|
|
709
|
-
scrollWidth: contentWidth,
|
|
710
|
-
onScroll: this.handleScroll,
|
|
711
|
-
className: tableClass.apply(void 0, ['body'].concat(floatClass)),
|
|
712
|
-
innerScrollAttr: innerScrollAttr,
|
|
713
|
-
footer: this.renderFooter(floatClass)
|
|
714
|
-
}, React.createElement("div", {
|
|
715
|
-
ref: this.bindTbody,
|
|
716
|
-
className: tableClass('scroll-inner'),
|
|
717
|
-
style: {
|
|
718
|
-
width: width
|
|
719
|
-
}
|
|
720
|
-
}, React.createElement("div", {
|
|
721
|
-
style: {
|
|
722
|
-
height: prevHeight
|
|
723
|
-
}
|
|
724
|
-
}), React.createElement("table", {
|
|
725
|
-
className: tableClass(!colgroup && minWidthSup && 'init', bordered && 'table-bordered'),
|
|
726
|
-
style: {
|
|
727
|
-
width: width
|
|
728
|
-
},
|
|
729
|
-
ref: this.bindRealTbody
|
|
730
|
-
}, React.createElement(Colgroup, {
|
|
731
|
-
colgroup: colgroup,
|
|
732
|
-
columns: columns,
|
|
733
|
-
resizable: columnResizable && this.lastScrollArgs[4]
|
|
734
|
-
}), React.createElement(Tbody, _extends({}, others, {
|
|
735
|
-
bordered: bordered,
|
|
736
|
-
columns: columns,
|
|
737
|
-
onBodyRender: this.handleColgroup,
|
|
738
|
-
index: currentIndex,
|
|
739
|
-
offsetLeft: offsetLeft,
|
|
740
|
-
offsetRight: offsetRight,
|
|
741
|
-
data: data.slice(currentIndex, currentIndex + rowsInView),
|
|
742
|
-
setRowHeight: this.setRowHeight,
|
|
743
|
-
hasNotRenderRows: hasNotRenderRows,
|
|
744
|
-
dataUpdated: dataUpdated,
|
|
745
|
-
resize: resize,
|
|
746
|
-
colgroup: colgroup,
|
|
747
|
-
onScrollTop: this.scrollToTop,
|
|
748
|
-
columnResizable: columnResizable
|
|
749
|
-
})))));
|
|
750
|
-
};
|
|
751
|
-
|
|
752
|
-
_proto.renderHeader = function renderHeader(floatClass) {
|
|
753
|
-
var _this$props8 = this.props,
|
|
754
|
-
columns = _this$props8.columns,
|
|
755
|
-
width = _this$props8.width,
|
|
756
|
-
onResize = _this$props8.onResize,
|
|
757
|
-
columnResizable = _this$props8.columnResizable,
|
|
758
|
-
sticky = _this$props8.sticky,
|
|
759
|
-
bordered = _this$props8.bordered;
|
|
760
|
-
var colgroup = this.state.colgroup;
|
|
761
|
-
var header = React.createElement("div", {
|
|
762
|
-
key: "head",
|
|
763
|
-
className: tableClass.apply(void 0, ['head'].concat(floatClass)),
|
|
764
|
-
ref: this.bindHeadWrapper
|
|
765
|
-
}, React.createElement("table", {
|
|
766
|
-
style: {
|
|
767
|
-
width: width
|
|
768
|
-
},
|
|
769
|
-
ref: this.bindThead,
|
|
770
|
-
className: tableClass(bordered && 'table-bordered')
|
|
771
|
-
}, React.createElement(Colgroup, {
|
|
772
|
-
colgroup: colgroup,
|
|
773
|
-
columns: columns,
|
|
774
|
-
resizable: columnResizable && this.lastScrollArgs[4]
|
|
775
|
-
}), React.createElement(Thead, _extends({}, this.props, {
|
|
776
|
-
colgroup: colgroup,
|
|
777
|
-
onSortChange: this.handleSortChange,
|
|
778
|
-
onColChange: onResize
|
|
779
|
-
}))));
|
|
780
|
-
|
|
781
|
-
if (sticky) {
|
|
782
|
-
var stickyProps = Object.assign({
|
|
783
|
-
top: 0
|
|
784
|
-
}, sticky);
|
|
785
|
-
return React.createElement(Sticky, _extends({}, stickyProps, {
|
|
786
|
-
key: "head"
|
|
787
|
-
}), header);
|
|
788
|
-
}
|
|
789
|
-
|
|
790
|
-
return header;
|
|
791
|
-
};
|
|
792
|
-
|
|
793
|
-
_proto.renderFooter = function renderFooter(floatClass) {
|
|
794
|
-
var _this$props9 = this.props,
|
|
795
|
-
columns = _this$props9.columns,
|
|
796
|
-
width = _this$props9.width,
|
|
797
|
-
columnResizable = _this$props9.columnResizable,
|
|
798
|
-
bordered = _this$props9.bordered,
|
|
799
|
-
summary = _this$props9.summary,
|
|
800
|
-
data = _this$props9.data,
|
|
801
|
-
fixed = _this$props9.fixed;
|
|
802
|
-
var colgroup = this.state.colgroup;
|
|
803
|
-
if (!(data && data.length)) return null;
|
|
804
|
-
if (!(summary && summary.length)) return null;
|
|
805
|
-
var scrollX = fixed === 'x' || fixed === 'both';
|
|
806
|
-
var footer = React.createElement("div", {
|
|
807
|
-
key: "foot",
|
|
808
|
-
className: tableClass.apply(void 0, ['foot'].concat(floatClass, [scrollX && 'foot-scroll-x']))
|
|
809
|
-
}, React.createElement("table", {
|
|
810
|
-
ref: this.bindFoot,
|
|
811
|
-
style: {
|
|
812
|
-
width: width
|
|
813
|
-
},
|
|
814
|
-
className: tableClass(bordered && 'table-bordered')
|
|
815
|
-
}, React.createElement(Colgroup, {
|
|
816
|
-
colgroup: colgroup,
|
|
817
|
-
columns: columns,
|
|
818
|
-
resizable: columnResizable && this.lastScrollArgs[4]
|
|
819
|
-
}), React.createElement(Tfoot, this.props)));
|
|
820
|
-
return footer;
|
|
821
|
-
};
|
|
822
|
-
|
|
823
|
-
_proto.render = function render() {
|
|
824
|
-
var _this$props10 = this.props,
|
|
825
|
-
fixed = _this$props10.fixed,
|
|
826
|
-
hideHeader = _this$props10.hideHeader;
|
|
827
|
-
var _this$state3 = this.state,
|
|
828
|
-
scrollLeft = _this$state3.scrollLeft,
|
|
829
|
-
floatFixed = _this$state3.floatFixed;
|
|
830
|
-
var floatClass = [];
|
|
831
|
-
|
|
832
|
-
if (floatFixed) {
|
|
833
|
-
if (scrollLeft > 0) {
|
|
834
|
-
floatClass.push('float-left');
|
|
835
|
-
}
|
|
836
|
-
|
|
837
|
-
if (scrollLeft !== 1) {
|
|
838
|
-
floatClass.push('float-right');
|
|
839
|
-
}
|
|
840
|
-
}
|
|
841
|
-
|
|
842
|
-
if (fixed === 'y' || fixed === 'both') {
|
|
843
|
-
floatClass.push('scroll-y');
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
return [hideHeader ? null : this.renderHeader(floatClass), React.createElement(AbsoluteProvider, {
|
|
847
|
-
value: true,
|
|
848
|
-
key: "body"
|
|
849
|
-
}, this.renderBody(floatClass))];
|
|
850
|
-
};
|
|
851
|
-
|
|
852
|
-
return SeperateTable;
|
|
853
|
-
}(PureComponent);
|
|
854
|
-
|
|
855
|
-
_defineProperty(SeperateTable, "defaultProps", DefaultProps);
|
|
856
|
-
|
|
857
|
-
export default SeperateTable;
|