@hi-ui/hiui 3.9.0-rc.8 → 4.0.0-beta.1
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/README.md +5 -79
- package/lib/cjs/index.js +576 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/esm/index.js +66 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/types/index.d.ts +56 -0
- package/package.json +101 -184
- package/CHANGELOG.md +0 -330
- package/es/_util/EventEmitter.js +0 -56
- package/es/_util/SwitchVersion.js +0 -40
- package/es/_util/depreactedPropsCompat.js +0 -58
- package/es/_util/deprecatedPropsCheck.js +0 -21
- package/es/_util/index.js +0 -31
- package/es/_util/warning.js +0 -19
- package/es/alert/Alert.js +0 -129
- package/es/alert/__tests__/index.test.js +0 -84
- package/es/alert/index.d.ts +0 -18
- package/es/alert/index.js +0 -20
- package/es/alert/style/index.css +0 -1
- package/es/alert/style/index.js +0 -3
- package/es/badge/Badge.js +0 -94
- package/es/badge/__tests__/index.test.js +0 -82
- package/es/badge/index.d.ts +0 -15
- package/es/badge/index.js +0 -22
- package/es/badge/style/index.css +0 -1
- package/es/badge/style/index.js +0 -3
- package/es/base-css/index.js +0 -3
- package/es/base-css/style/index.css +0 -1
- package/es/base-css/style/index.js +0 -3
- package/es/breadcrumb/__tests__/index.test.js +0 -61
- package/es/breadcrumb/index.d.ts +0 -19
- package/es/breadcrumb/index.js +0 -72
- package/es/breadcrumb/style/index.css +0 -1
- package/es/breadcrumb/style/index.js +0 -3
- package/es/button/Button.js +0 -158
- package/es/button/ButtonGroup.js +0 -63
- package/es/button/IconLoading.js +0 -27
- package/es/button/__tests__/index.test.js +0 -221
- package/es/button/index.d.ts +0 -26
- package/es/button/index.js +0 -19
- package/es/button/style/index.css +0 -1
- package/es/button/style/index.js +0 -3
- package/es/card/CoverCard.js +0 -41
- package/es/card/NormalCard.js +0 -46
- package/es/card/SimpleCard.js +0 -32
- package/es/card/__tests__/index.test.js +0 -180
- package/es/card/index.d.ts +0 -18
- package/es/card/index.js +0 -75
- package/es/card/style/index.css +0 -1
- package/es/card/style/index.js +0 -3
- package/es/carousel/__tests__/index.test.js +0 -104
- package/es/carousel/index.d.ts +0 -13
- package/es/carousel/index.js +0 -242
- package/es/carousel/style/index.css +0 -1
- package/es/carousel/style/index.js +0 -3
- package/es/cascader/Cascader.js +0 -530
- package/es/cascader/Menu.js +0 -147
- package/es/cascader/__tests__/index.test.js +0 -393
- package/es/cascader/img/empty.png +0 -0
- package/es/cascader/index.d.ts +0 -36
- package/es/cascader/index.js +0 -15
- package/es/cascader/style/cascader.css +0 -1
- package/es/cascader/style/index.js +0 -5
- package/es/cascader/style/menu.css +0 -1
- package/es/cascader/utils.js +0 -216
- package/es/charts/hi-echarts-theme-default.json +0 -502
- package/es/charts/index.d.ts +0 -12
- package/es/charts/index.js +0 -32
- package/es/checkbox/Checkbox.js +0 -145
- package/es/checkbox/Group.js +0 -198
- package/es/checkbox/__tests__/index.test.js +0 -226
- package/es/checkbox/checkbox-legacy/Base.js +0 -216
- package/es/checkbox/checkbox-legacy/CheckBox.js +0 -161
- package/es/checkbox/checkbox-legacy/common.js +0 -47
- package/es/checkbox/checkbox-legacy/index.js +0 -15
- package/es/checkbox/checkbox-legacy/style/index.css +0 -1
- package/es/checkbox/checkbox-legacy/style/index.js +0 -3
- package/es/checkbox/index.d.ts +0 -35
- package/es/checkbox/index.js +0 -38
- package/es/checkbox/style/index.css +0 -1
- package/es/checkbox/style/index.js +0 -3
- package/es/collapse/Panel.js +0 -135
- package/es/collapse/__tests__/index.test.js +0 -111
- package/es/collapse/index.d.ts +0 -24
- package/es/collapse/index.js +0 -197
- package/es/collapse/style/index.css +0 -1
- package/es/collapse/style/index.js +0 -3
- package/es/context/index.d.ts +0 -3
- package/es/context/index.js +0 -120
- package/es/counter/Counter.js +0 -369
- package/es/counter/__tests__/index.test.js +0 -134
- package/es/counter/counter-legacy/index.js +0 -271
- package/es/counter/index.d.ts +0 -13
- package/es/counter/index.js +0 -29
- package/es/counter/style/index.css +0 -1
- package/es/counter/style/index.js +0 -3
- package/es/date-picker/BasePicker.js +0 -325
- package/es/date-picker/TimePicker.d.ts +0 -23
- package/es/date-picker/TimePicker.js +0 -211
- package/es/date-picker/__tests__/index.test.js +0 -957
- package/es/date-picker/components/Calender.js +0 -274
- package/es/date-picker/components/Header.js +0 -98
- package/es/date-picker/components/Input.js +0 -103
- package/es/date-picker/components/Panel.js +0 -145
- package/es/date-picker/components/PickerIcon.js +0 -33
- package/es/date-picker/components/RangePanel.js +0 -353
- package/es/date-picker/components/Root.js +0 -128
- package/es/date-picker/components/Time.js +0 -258
- package/es/date-picker/components/TimeList.js +0 -193
- package/es/date-picker/components/TimePanel.js +0 -67
- package/es/date-picker/components/TimePeriodPanel.js +0 -78
- package/es/date-picker/constants.js +0 -54
- package/es/date-picker/context.js +0 -15
- package/es/date-picker/hooks/index.js +0 -47
- package/es/date-picker/hooks/useAltData.js +0 -112
- package/es/date-picker/hooks/useCalenderData.js +0 -371
- package/es/date-picker/hooks/useDate.js +0 -46
- package/es/date-picker/hooks/useFormat.js +0 -27
- package/es/date-picker/hooks/usePlaceholder.js +0 -43
- package/es/date-picker/hooks/useTimePeriodData.js +0 -29
- package/es/date-picker/index.d.ts +0 -61
- package/es/date-picker/index.js +0 -31
- package/es/date-picker/style/index.css +0 -1
- package/es/date-picker/style/index.js +0 -3
- package/es/date-picker/style/timepicker.css +0 -1
- package/es/date-picker/style/timepicker.js +0 -3
- package/es/date-picker/toLunar.js +0 -172
- package/es/date-picker/utils.js +0 -347
- package/es/drawer/index.d.ts +0 -18
- package/es/drawer/index.js +0 -133
- package/es/drawer/style/index.css +0 -1
- package/es/drawer/style/index.js +0 -3
- package/es/dropdown/Dropdown.js +0 -239
- package/es/dropdown/DropdownButton.js +0 -105
- package/es/dropdown/DropdownMenu.js +0 -119
- package/es/dropdown/DropdownMenuItem.js +0 -176
- package/es/dropdown/__tests__/index.test.js +0 -313
- package/es/dropdown/index.d.ts +0 -29
- package/es/dropdown/index.js +0 -88
- package/es/dropdown/style/index.css +0 -1
- package/es/dropdown/style/index.js +0 -3
- package/es/dropdown/tests/index.test.js +0 -76
- package/es/dropdown/utils.js +0 -35
- package/es/ficon/index.js +0 -56
- package/es/ficon/style/_fa/font-awesome.css +0 -1
- package/es/ficon/style/fonts/FontAwesome.otf +0 -0
- package/es/ficon/style/fonts/fontawesome-webfont.eot +0 -0
- package/es/ficon/style/fonts/fontawesome-webfont.svg +0 -2671
- package/es/ficon/style/fonts/fontawesome-webfont.ttf +0 -0
- package/es/ficon/style/fonts/fontawesome-webfont.woff +0 -0
- package/es/ficon/style/fonts/fontawesome-webfont.woff2 +0 -0
- package/es/ficon/style/index.css +0 -1
- package/es/ficon/style/index.js +0 -3
- package/es/filter/index.d.ts +0 -18
- package/es/filter/index.js +0 -146
- package/es/filter/style/index.css +0 -1
- package/es/filter/style/index.js +0 -3
- package/es/form/Form.js +0 -425
- package/es/form/FormContext.js +0 -15
- package/es/form/FormReducer.js +0 -144
- package/es/form/Item.js +0 -557
- package/es/form/List.js +0 -127
- package/es/form/Reset.js +0 -41
- package/es/form/SchemaForm.js +0 -129
- package/es/form/Submit.js +0 -39
- package/es/form/__tests__/index.test.js +0 -575
- package/es/form/form-legacy/form-v2/Form.js +0 -175
- package/es/form/form-legacy/form-v2/Item.js +0 -283
- package/es/form/form-legacy/form-v2/__tests__/index.test.js +0 -575
- package/es/form/form-legacy/form-v2/index.js +0 -27
- package/es/form/form-legacy/form-v2/style/index.css +0 -1
- package/es/form/form-legacy/form-v2/style/index.js +0 -3
- package/es/form/hooks/useForm.js +0 -48
- package/es/form/hooks/useFormInstance.js +0 -46
- package/es/form/index.d.ts +0 -80
- package/es/form/index.js +0 -47
- package/es/form/style/index.css +0 -1
- package/es/form/style/index.js +0 -3
- package/es/form/test.js +0 -52
- package/es/form/utils.js +0 -77
- package/es/grid/__tests__/index.test.js +0 -100
- package/es/grid/index.d.ts +0 -38
- package/es/grid/index.js +0 -178
- package/es/grid/style/index.css +0 -1
- package/es/grid/style/index.js +0 -3
- package/es/hi-base-table/index.d.ts +0 -675
- package/es/hi-base-table/index.js +0 -226
- package/es/hi-base-table/style/hiui-basetable-theme.css +0 -1
- package/es/hi-base-table/style/index.js +0 -3
- package/es/hi-request/axios.d.ts +0 -5
- package/es/hi-request/axios.js +0 -40
- package/es/hi-request/download.d.ts +0 -5
- package/es/hi-request/download.js +0 -30
- package/es/hi-request/index.d.ts +0 -4
- package/es/hi-request/index.js +0 -4
- package/es/hi-request/jsonp.d.ts +0 -5
- package/es/hi-request/jsonp.js +0 -66
- package/es/hi-request/mixin.d.ts +0 -3
- package/es/hi-request/mixin.js +0 -42
- package/es/hi-request/type.d.ts +0 -69
- package/es/hi-request/type.js +0 -0
- package/es/hi-request/upload.d.ts +0 -5
- package/es/hi-request/upload.js +0 -23
- package/es/hi-request/utils.d.ts +0 -1
- package/es/hi-request/utils.js +0 -3
- package/es/icon/iconfont.js +0 -48
- package/es/icon/index.d.ts +0 -13
- package/es/icon/index.js +0 -101
- package/es/icon/style/index.css +0 -1
- package/es/icon/style/index.js +0 -3
- package/es/index.d.ts +0 -95
- package/es/index.js +0 -58
- package/es/input/Input.js +0 -420
- package/es/input/__tests__/index.test.js +0 -377
- package/es/input/index.d.ts +0 -27
- package/es/input/index.js +0 -44
- package/es/input/input-legacy/index.js +0 -349
- package/es/input/input-legacy/util.js +0 -176
- package/es/input/style/index.css +0 -1
- package/es/input/style/index.js +0 -5
- package/es/input/util.js +0 -191
- package/es/lib/withDragDropContext.js +0 -16
- package/es/list/IconText.js +0 -40
- package/es/list/Item.js +0 -63
- package/es/list/index.d.ts +0 -30
- package/es/list/index.js +0 -159
- package/es/list/style/index.css +0 -1
- package/es/list/style/index.js +0 -3
- package/es/loading/Loading.js +0 -185
- package/es/loading/__tests__/index.test.js +0 -110
- package/es/loading/index.d.ts +0 -24
- package/es/loading/index.js +0 -18
- package/es/loading/style/index.css +0 -1
- package/es/loading/style/index.js +0 -3
- package/es/locales/en-US.js +0 -138
- package/es/locales/index.js +0 -25
- package/es/locales/zh-CN.js +0 -141
- package/es/locales/zh-Hant-HK.js +0 -141
- package/es/locales/zh-Hant-TW.js +0 -141
- package/es/menu/Item.js +0 -100
- package/es/menu/Menu.js +0 -420
- package/es/menu/SubMenu.js +0 -218
- package/es/menu/Title.js +0 -84
- package/es/menu/__tests__/index.test.js +0 -275
- package/es/menu/index.d.ts +0 -26
- package/es/menu/index.js +0 -24
- package/es/menu/style/index.css +0 -1
- package/es/menu/style/index.js +0 -3
- package/es/message/__tests__/index.test.js +0 -71
- package/es/message/index.d.ts +0 -18
- package/es/message/index.js +0 -70
- package/es/message/style/index.css +0 -1
- package/es/message/style/index.js +0 -5
- package/es/modal/__tests__/index.test.js +0 -178
- package/es/modal/index.d.ts +0 -33
- package/es/modal/index.js +0 -312
- package/es/modal/style/index.css +0 -1
- package/es/modal/style/index.js +0 -3
- package/es/notice/Notice.js +0 -138
- package/es/notice/NoticeContainer.js +0 -109
- package/es/notice/__tests__/index.test.js +0 -174
- package/es/notice/index.js +0 -66
- package/es/notice/style/index.css +0 -1
- package/es/notice/style/index.js +0 -5
- package/es/notification/HandleNotification/index.js +0 -220
- package/es/notification/HandleNotification/style/index.css +0 -1
- package/es/notification/HandleNotification/style/index.js +0 -5
- package/es/notification/__tests__/index.test.js +0 -114
- package/es/notification/index.d.ts +0 -25
- package/es/notification/index.js +0 -87
- package/es/notification/style/index.css +0 -1
- package/es/notification/style/index.js +0 -5
- package/es/pagination/Pager.js +0 -57
- package/es/pagination/Pagination.js +0 -538
- package/es/pagination/__tests__/index.test.js +0 -244
- package/es/pagination/index.d.ts +0 -20
- package/es/pagination/index.js +0 -18
- package/es/pagination/style/index.css +0 -1
- package/es/pagination/style/index.js +0 -5
- package/es/popover/__tests__/index.test.js +0 -152
- package/es/popover/index.d.ts +0 -14
- package/es/popover/index.js +0 -220
- package/es/popover/style/index.css +0 -1
- package/es/popover/style/index.js +0 -3
- package/es/popper/Overlay.js +0 -246
- package/es/popper/Portal.js +0 -42
- package/es/popper/index.js +0 -90
- package/es/popper/style/index.css +0 -1
- package/es/popper/style/index.js +0 -3
- package/es/popper/utils/popper.js +0 -311
- package/es/popper/utils/positionUtils.js +0 -314
- package/es/popper/utils/useClickOutside.js +0 -37
- package/es/popper/utils/useWaitForDOMRef.js +0 -56
- package/es/preview/index.d.ts +0 -16
- package/es/preview/index.js +0 -442
- package/es/preview/style/index.css +0 -1
- package/es/preview/style/index.js +0 -3
- package/es/progress/BarProgress.js +0 -157
- package/es/progress/CircleProgress.js +0 -49
- package/es/progress/DashboardProgress.js +0 -60
- package/es/progress/Progress.js +0 -111
- package/es/progress/__tests__/index.test.js +0 -131
- package/es/progress/index.d.ts +0 -18
- package/es/progress/index.js +0 -15
- package/es/progress/style/index.css +0 -1
- package/es/progress/style/index.js +0 -3
- package/es/radio/Group.js +0 -280
- package/es/radio/Radio.js +0 -167
- package/es/radio/__tests__/index.test.js +0 -128
- package/es/radio/index.d.ts +0 -32
- package/es/radio/index.js +0 -31
- package/es/radio/radio-legacy/__test__/index.test.js +0 -79
- package/es/radio/radio-legacy/index.js +0 -218
- package/es/radio/radio-legacy/style/index.css +0 -1
- package/es/radio/radio-legacy/style/index.js +0 -3
- package/es/radio/style/index.css +0 -1
- package/es/radio/style/index.js +0 -3
- package/es/rate/Icons.js +0 -294
- package/es/rate/Rate.js +0 -316
- package/es/rate/__tests__/index.test.js +0 -124
- package/es/rate/index.d.ts +0 -22
- package/es/rate/index.js +0 -15
- package/es/rate/style/index.css +0 -1
- package/es/rate/style/index.js +0 -3
- package/es/rich-text-editor/index.d.ts +0 -8
- package/es/rich-text-editor/index.js +0 -67
- package/es/rich-text-editor/style/index.css +0 -1
- package/es/rich-text-editor/style/index.js +0 -9
- package/es/search/index.d.ts +0 -23
- package/es/search/index.js +0 -264
- package/es/search/searchDropdown.js +0 -111
- package/es/search/style/index.css +0 -1
- package/es/search/style/index.js +0 -3
- package/es/select/MultipleInput.js +0 -163
- package/es/select/Select.js +0 -775
- package/es/select/SelectDropdown.js +0 -341
- package/es/select/SelectInput.js +0 -31
- package/es/select/SingleInput.js +0 -94
- package/es/select/__tests__/index.test.js +0 -505
- package/es/select/common.js +0 -19
- package/es/select/index.d.ts +0 -65
- package/es/select/index.js +0 -32
- package/es/select/select-legacy/select-v1/Option.js +0 -81
- package/es/select/select-legacy/select-v1/Select.js +0 -706
- package/es/select/select-legacy/select-v1/SelectDropdown.js +0 -160
- package/es/select/select-legacy/select-v1/SelectInput.js +0 -308
- package/es/select/select-legacy/select-v1/common.js +0 -19
- package/es/select/select-legacy/select-v1/index.js +0 -16
- package/es/select/select-legacy/select-v2/Select.js +0 -756
- package/es/select/select-legacy/select-v2/SelectDropdown.js +0 -322
- package/es/select/select-legacy/select-v2/SelectInput.js +0 -331
- package/es/select/select-legacy/select-v2/__tests__/index.test.js +0 -505
- package/es/select/select-legacy/select-v2/common.js +0 -19
- package/es/select/select-legacy/select-v2/index.js +0 -15
- package/es/select/select-legacy/select-v2/style/index.css +0 -1
- package/es/select/select-legacy/select-v2/style/index.js +0 -9
- package/es/select/select-legacy/select-v2/style/select-dropdown.css +0 -1
- package/es/select/select-legacy/select-v2/style/select-input.css +0 -1
- package/es/select/style/index.css +0 -1
- package/es/select/style/index.js +0 -9
- package/es/select/style/select-dropdown.css +0 -1
- package/es/select/style/select-input.css +0 -1
- package/es/select/utils.js +0 -72
- package/es/select-tree/SelectTreeHook.js +0 -788
- package/es/select-tree/components/Trigger.js +0 -85
- package/es/select-tree/components/tree/LoadingIcon.js +0 -38
- package/es/select-tree/components/tree/NavTree.js +0 -229
- package/es/select-tree/components/tree/TreeNode.js +0 -167
- package/es/select-tree/components/tree/context.js +0 -15
- package/es/select-tree/components/tree/index.js +0 -80
- package/es/select-tree/components/tree/style/index.css +0 -1
- package/es/select-tree/components/tree/style/index.js +0 -3
- package/es/select-tree/components/tree/util.js +0 -621
- package/es/select-tree/index.d.ts +0 -47
- package/es/select-tree/index.js +0 -15
- package/es/select-tree/keyEvents.js +0 -121
- package/es/select-tree/style/index.css +0 -1
- package/es/select-tree/style/index.js +0 -3
- package/es/slider/index.d.ts +0 -22
- package/es/slider/index.js +0 -491
- package/es/slider/style/index.css +0 -1
- package/es/slider/style/index.js +0 -3
- package/es/stepper/Stepper.js +0 -158
- package/es/stepper/__tests__/index.test.js +0 -161
- package/es/stepper/index.d.ts +0 -16
- package/es/stepper/index.js +0 -33
- package/es/stepper/style/index.css +0 -1
- package/es/stepper/style/index.js +0 -3
- package/es/style/icon/diyIcon.css +0 -1
- package/es/style/icon/index.css +0 -1
- package/es/switch/__tests__/index.test.js +0 -68
- package/es/switch/index.d.ts +0 -13
- package/es/switch/index.js +0 -21
- package/es/switch/style/index.css +0 -1
- package/es/switch/style/index.js +0 -3
- package/es/switch/switch-legacy/__tests__/index.test.js +0 -68
- package/es/switch/switch-legacy/index.js +0 -128
- package/es/switch/switch-legacy/style/index.css +0 -1
- package/es/switch/switch-legacy/style/index.js +0 -3
- package/es/switch/switch.js +0 -76
- package/es/table/AdvanceHeader/CustomFilter.js +0 -73
- package/es/table/AdvanceHeader/Sorter.js +0 -72
- package/es/table/AdvanceHeader/index.js +0 -41
- package/es/table/AdvanceHeader/select/index.js +0 -720
- package/es/table/AdvanceHeader/select/style/index.css +0 -1
- package/es/table/AdvanceHeader/select/style/index.js +0 -5
- package/es/table/AdvanceHeader/style/index.css +0 -1
- package/es/table/AdvanceHeader/style/index.js +0 -3
- package/es/table/BodyTable.js +0 -261
- package/es/table/Cell.js +0 -193
- package/es/table/ColumnMenu.js +0 -148
- package/es/table/Expandcol.js +0 -48
- package/es/table/HeaderTable.js +0 -359
- package/es/table/Indent.js +0 -27
- package/es/table/LoadingIcon.js +0 -38
- package/es/table/Row.js +0 -261
- package/es/table/SettingMenu.js +0 -205
- package/es/table/Table.js +0 -697
- package/es/table/context.js +0 -15
- package/es/table/hooks/useClickOutside.js +0 -23
- package/es/table/index.d.ts +0 -108
- package/es/table/index.js +0 -21
- package/es/table/style/Table.css +0 -1
- package/es/table/style/index.css +0 -1
- package/es/table/style/index.js +0 -3
- package/es/table/style/reset.css +0 -1
- package/es/table/style/variable.css +0 -0
- package/es/table/table-legacy/table-v2/Body.js +0 -298
- package/es/table/table-legacy/table-v2/ClickOuterside.js +0 -99
- package/es/table/table-legacy/table-v2/Footer.js +0 -174
- package/es/table/table-legacy/table-v2/Header.js +0 -319
- package/es/table/table-legacy/table-v2/TableContent.js +0 -105
- package/es/table/table-legacy/table-v2/__tests__/index.test.js +0 -129
- package/es/table/table-legacy/table-v2/checkbox/index.js +0 -98
- package/es/table/table-legacy/table-v2/checkbox/style/index.css +0 -1
- package/es/table/table-legacy/table-v2/checkbox/style/index.js +0 -3
- package/es/table/table-legacy/table-v2/index.js +0 -1466
- package/es/table/table-legacy/table-v2/menu/index.js +0 -110
- package/es/table/table-legacy/table-v2/prefix.js +0 -20
- package/es/table/table-legacy/table-v2/style/Table.css +0 -1
- package/es/table/table-legacy/table-v2/style/index.css +0 -1
- package/es/table/table-legacy/table-v2/style/index.js +0 -3
- package/es/table/table-legacy/table-v2/tool.js +0 -129
- package/es/table/util.js +0 -320
- package/es/tabs/ItemDropdown.js +0 -158
- package/es/tabs/TabItem.js +0 -116
- package/es/tabs/TabPane.js +0 -64
- package/es/tabs/Tabs.js +0 -576
- package/es/tabs/__tests__/index.test.js +0 -333
- package/es/tabs/hooks/useTabItems.js +0 -77
- package/es/tabs/hooks/useTranslate.js +0 -71
- package/es/tabs/index.d.ts +0 -47
- package/es/tabs/index.js +0 -38
- package/es/tabs/style/animate.css +0 -1
- package/es/tabs/style/index.css +0 -1
- package/es/tabs/style/index.js +0 -3
- package/es/tabs/tabs-legacy/ItemDropdown.js +0 -166
- package/es/tabs/tabs-legacy/TabPane.js +0 -74
- package/es/tabs/tabs-legacy/Tabs.js +0 -295
- package/es/tabs/tabs-legacy/index.js +0 -18
- package/es/tabs/tabs-legacy/style/index.css +0 -1
- package/es/tabs/tabs-legacy/style/index.js +0 -3
- package/es/tag/TagGroup.js +0 -235
- package/es/tag/TagItem.js +0 -116
- package/es/tag/__tests__/index.test.js +0 -46
- package/es/tag/index.d.ts +0 -32
- package/es/tag/index.js +0 -18
- package/es/tag/style/index.css +0 -1
- package/es/tag/style/index.js +0 -3
- package/es/timeline/__tests__/index.test.js +0 -198
- package/es/timeline/index.d.ts +0 -18
- package/es/timeline/index.js +0 -264
- package/es/timeline/style/index.css +0 -1
- package/es/timeline/style/index.js +0 -3
- package/es/tooltip/__tests__/index.test.js +0 -170
- package/es/tooltip/index.d.ts +0 -19
- package/es/tooltip/index.js +0 -210
- package/es/tooltip/style/index.css +0 -1
- package/es/tooltip/style/index.js +0 -3
- package/es/transfer/Item.js +0 -192
- package/es/transfer/Transfer.js +0 -562
- package/es/transfer/__tests__/index.test.js +0 -210
- package/es/transfer/img/switch.png +0 -0
- package/es/transfer/img/warning.png +0 -0
- package/es/transfer/index.d.ts +0 -25
- package/es/transfer/index.js +0 -16
- package/es/transfer/style/index.css +0 -1
- package/es/transfer/style/index.js +0 -3
- package/es/tree/BaseTree.js +0 -209
- package/es/tree/IconLoading.js +0 -38
- package/es/tree/Switcher.js +0 -42
- package/es/tree/Tree.js +0 -610
- package/es/tree/TreeNode.js +0 -326
- package/es/tree/context.js +0 -15
- package/es/tree/customTreeNode.js +0 -140
- package/es/tree/hooks/useCheckable.js +0 -153
- package/es/tree/hooks/useClickOutside.js +0 -26
- package/es/tree/hooks/useExpand.js +0 -46
- package/es/tree/hooks/useFlatData.js +0 -61
- package/es/tree/hooks/useSelect.js +0 -47
- package/es/tree/index.d.ts +0 -67
- package/es/tree/index.js +0 -21
- package/es/tree/style/index.css +0 -1
- package/es/tree/style/index.js +0 -3
- package/es/tree/tree-legacy/tree-v1/Tree.js +0 -333
- package/es/tree/tree-legacy/tree-v1/TreeDivider.js +0 -25
- package/es/tree/tree-legacy/tree-v1/TreeItem.js +0 -329
- package/es/tree/tree-legacy/tree-v1/TreeNode.js +0 -715
- package/es/tree/tree-legacy/tree-v1/index.js +0 -13
- package/es/tree/tree-legacy/tree-v1/style/index.css +0 -1
- package/es/tree/tree-legacy/tree-v1/style/index.js +0 -3
- package/es/tree/tree-legacy/tree-v1/util.js +0 -434
- package/es/tree/tree-legacy/tree-v2/IconLoading.js +0 -38
- package/es/tree/tree-legacy/tree-v2/Modal.js +0 -71
- package/es/tree/tree-legacy/tree-v2/Tree.js +0 -347
- package/es/tree/tree-legacy/tree-v2/TreeDivider.js +0 -25
- package/es/tree/tree-legacy/tree-v2/TreeItem.js +0 -439
- package/es/tree/tree-legacy/tree-v2/TreeNode.js +0 -909
- package/es/tree/tree-legacy/tree-v2/__tests__/index.test.js +0 -603
- package/es/tree/tree-legacy/tree-v2/index.js +0 -20
- package/es/tree/tree-legacy/tree-v2/style/index.css +0 -1
- package/es/tree/tree-legacy/tree-v2/style/index.js +0 -3
- package/es/tree/tree-legacy/tree-v2/util.js +0 -195
- package/es/tree/util.js +0 -131
- package/es/upload/AvatarUpload.js +0 -293
- package/es/upload/DragUpload.js +0 -194
- package/es/upload/FileSelect.js +0 -47
- package/es/upload/NormalUpload.js +0 -146
- package/es/upload/PictureListUpload.js +0 -147
- package/es/upload/PictureUpload.js +0 -233
- package/es/upload/Preview.js +0 -441
- package/es/upload/__tests__/index.test.js +0 -760
- package/es/upload/hooks/useUpload.js +0 -274
- package/es/upload/index.d.ts +0 -42
- package/es/upload/index.js +0 -44
- package/es/upload/request.js +0 -118
- package/es/upload/style/index.css +0 -1
- package/es/upload/style/index.js +0 -5
- package/es/upload/style/preview.css +0 -1
- package/es/upload/style/preview.js +0 -3
- package/es/upload/util.js +0 -55
- package/es/watermark/index.d.ts +0 -12
- package/es/watermark/index.js +0 -110
- package/es/watermark/watermark.js +0 -252
package/CHANGELOG.md
DELETED
|
@@ -1,330 +0,0 @@
|
|
|
1
|
-
# 更新日志
|
|
2
|
-
|
|
3
|
-
# 3.8.0-rc
|
|
4
|
-
|
|
5
|
-
- 新增 `Table` 组件 `hiddenColKeys` 和 `onHiddenColKeysChange` 受控控制列显隐 [#1994](https://github.com/XiaoMi/hiui/issues/1994)
|
|
6
|
-
- 新增 `Input` 组件支持 placeholder 受控动态更新 [#1982](https://github.com/XiaoMi/hiui/issues/1982)
|
|
7
|
-
- 新增 `Table` 组件支持 checkAll 复选框右侧自定义操作按钮 [#2007](https://github.com/XiaoMi/hiui/issues/2007)
|
|
8
|
-
- 修复 `Select` 组件高亮词搜索存在正则注入 [#1972](https://github.com/XiaoMi/hiui/issues/1972)
|
|
9
|
-
- 修复 `Table` 组件 resizable 调节列宽功能失效 [#1970](https://github.com/XiaoMi/hiui/issues/1970)
|
|
10
|
-
- 修复 `Input` 组件的 placeholder 没法动态更新 [#1970](https://github.com/XiaoMi/hiui/issues/1982)
|
|
11
|
-
- 优化 `Dropdown` 组件 props 中的 data 消除副作用 [#1991](https://github.com/XiaoMi/hiui/issues/1991)
|
|
12
|
-
- 修复 `TimePicker` 组件使用 minusStep 当点击 clear 后会再次自动回显值 [#1986](https://github.com/XiaoMi/hiui/issues/1986)
|
|
13
|
-
- 修复 `Table` 组件 window 系统 `draggable=false` 禁用失效 [#1993](https://github.com/XiaoMi/hiui/issues/1993)
|
|
14
|
-
- 修复 `Popper` 组件 Popper DOM 节点位置移动时未同步进行位置计算 [#2011](https://github.com/XiaoMi/hiui/issues/2011)
|
|
15
|
-
|
|
16
|
-
# 3.8.0
|
|
17
|
-
|
|
18
|
-
- 新增 所有组件 props TS 类型定义的导出 [#1933](https://github.com/XiaoMi/hiui/issues/1933)
|
|
19
|
-
- 新增 `Modal` confirmLoading 控制确定按钮的 loading 状态 [#1866](https://github.com/XiaoMi/hiui/issues/1866)
|
|
20
|
-
- 新增 `Cascader` onOpen 下拉菜单打开、onClose 下拉菜单关闭回调方法,优化动态加载数据功能 [#1854](https://github.com/XiaoMi/hiui/issues/1854)
|
|
21
|
-
- 新增 `Table` 组件 align 属性接受 center 属性 [#1835](https://github.com/XiaoMi/hiui/issues/1835)
|
|
22
|
-
- 新增 `Table` 组件 拖拽功能 [#1851](https://github.com/XiaoMi/hiui/issues/1851)
|
|
23
|
-
- 新增 `Table` 组件 自定义列筛选 [#1850](https://github.com/XiaoMi/hiui/issues/1850)
|
|
24
|
-
- 新增 `Table` 树形组件 onExpand 事件 [#1939](https://github.com/XiaoMi/hiui/issues/1939)
|
|
25
|
-
- 新增 `Select` 组件 renderExtraFooter 自定义下拉菜单底部渲染函数 [#1864](https://github.com/XiaoMi/hiui/issues/1864)
|
|
26
|
-
- 新增 `Select` 组件 onBlur 事件 [#1901](https://github.com/XiaoMi/hiui/issues/1901)
|
|
27
|
-
- 新增 `SelectTree` 组件 className 设置 [#1921](https://github.com/XiaoMi/hiui/issues/1921)
|
|
28
|
-
- 新增 `Tree` 组件指定节点设置 selectable [#1893](https://github.com/XiaoMi/hiui/issues/1893)
|
|
29
|
-
- 新增 `DatePicker` 组件中对时间选择器的禁选功能 [#1917](https://github.com/XiaoMi/hiui/issues/1917)
|
|
30
|
-
- 新增 `SelectTree` 组件节点支持 disabled 禁用状态 [#1870](https://github.com/XiaoMi/hiui/issues/1870)
|
|
31
|
-
- 新增 `SelectTree` 组件节点支持 fieldNames 属性 [#1879](https://github.com/XiaoMi/hiui/issues/1879)
|
|
32
|
-
- 优化 `DatePicker` 组件在 `Table` 组件中受控形态下无法选中问题 [#1844](https://github.com/XiaoMi/hiui/issues/1844)
|
|
33
|
-
- 优化 `Carousel` 组件内容宽度根据容器改变自适应 [#1834](https://github.com/XiaoMi/hiui/issues/1834)
|
|
34
|
-
- 优化 `Select` 组件多选模式标签顺序与value顺序一致化 [#1898](https://github.com/XiaoMi/hiui/issues/1898)
|
|
35
|
-
- 优化 `Charts` 组件文档中对 echarts 版本约束 [#1896](https://github.com/XiaoMi/hiui/issues/1896)
|
|
36
|
-
- 优化 `Tabs` 组件滚动方向交互控制 [#1928](https://github.com/XiaoMi/hiui/issues/1928)
|
|
37
|
-
- 优化 `Message` 组件文本溢出折行处理 [#1936](https://github.com/XiaoMi/hiui/issues/1936)
|
|
38
|
-
- 修复 `Cascader` 组件 异步加载在受控形态下,无法选中数据 [#1875](https://github.com/XiaoMi/hiui/issues/1875)
|
|
39
|
-
- 修复 `Form` 组件对 Counter 组件默认值为 0 校验异常问题 [#1842](https://github.com/XiaoMi/hiui/issues/1842)
|
|
40
|
-
- 修复 `Preview` 组件,图片打开失败时,页面一直处在加载状态 [#1816](https://github.com/XiaoMi/hiui/issues/1816)
|
|
41
|
-
- 修复 `HiRequest` 在 type='download'时 不能正确解析 filename 问题 [#1820](https://github.com/XiaoMi/hiui/issues/1820)
|
|
42
|
-
- 修复 `SelectTree` searchMode 为 filter 时,搜索后勾选,SelectTree 已选节点被清空 [#1791](https://github.com/XiaoMi/hiui/issues/#1791)
|
|
43
|
-
- 修复 `Select` data 属性发生改变,选中值未更新问题 [#1823](https://github.com/XiaoMi/hiui/issues/1823)
|
|
44
|
-
- 修复 `Popper` 基础弹层组件弹出位置未能及时更新问题 [#1857](https://github.com/XiaoMi/hiui/issues/1857)
|
|
45
|
-
- 修复 `Form` 组件中使用 schemaFrom 时,schema 更新未生效问题 [#1862](https://github.com/XiaoMi/hiui/issues/1862)
|
|
46
|
-
- 修复 `Form` 组件中使用 List 组件,输出值格式异常 [#1872](https://github.com/XiaoMi/hiui/issues/1872)
|
|
47
|
-
- 修复 `Form` 组件 onBlur 触发无效的 onChange,导致 value 更新失效 [#1910](https://github.com/XiaoMi/hiui/issues/1910)
|
|
48
|
-
- 修复 `Form` 组件中 SchemaForm 重渲染导致表单控件无法输入 [#1908](https://github.com/XiaoMi/hiui/issues/1908)
|
|
49
|
-
- 修复 `Form` 组件中对 rules 的动态更新校验 [#1935](https://github.com/XiaoMi/hiui/issues/1935)
|
|
50
|
-
- 修复 `Select` 组件异步搜索模式下,清空搜索内容未触发搜索问题 [#1883](https://github.com/XiaoMi/hiui/issues/1883)
|
|
51
|
-
- 修复 `Table` 组件子节点 isLeaf 属性为 false 时,显示展开 icon [#1887](https://github.com/XiaoMi/hiui/issues/1887)
|
|
52
|
-
- 修复 `Table` 组件列更新时,setting 列未跟随更新问题 [#1885](https://github.com/XiaoMi/hiui/issues/1885)
|
|
53
|
-
- 修复 `Alert` 组件 type 属性值文档描述错误 [#1877](https://github.com/XiaoMi/hiui/issues/1877)
|
|
54
|
-
- 修复 `Transfer` 组件中搜索输入框交互样式异常 [#1895](https://github.com/XiaoMi/hiui/issues/1895)
|
|
55
|
-
- 修复 `DatePicker` 组件在 Form 校验失败时边框爆红提示未正常显示 [#1897](https://github.com/XiaoMi/hiui/issues/1897)
|
|
56
|
-
- 修复 `Input` 组件中输入手机号在11位时再尝试输入,总会多出一位 [#1919](https://github.com/XiaoMi/hiui/issues/1919)
|
|
57
|
-
- 修复 `Badge` 组件 offset 属性设置状态点的位置偏移异常 [#1931](https://github.com/XiaoMi/hiui/issues/1931)
|
|
58
|
-
- 修复 `Carousel` 组件左侧切换按钮点击失效 [#1942](https://github.com/XiaoMi/hiui/issues/1942)
|
|
59
|
-
|
|
60
|
-
# 3.7.0
|
|
61
|
-
|
|
62
|
-
- 新增 `Collapse` 组件 extra 属性作为标题额外元素扩展[#1831](https://github.com/XiaoMi/hiui/issues/1831)
|
|
63
|
-
- 新增 `Message` 组件 onClick、onClose 方法[#1727](https://github.com/XiaoMi/hiui/issues/1727)
|
|
64
|
-
- 新增 `From` 组件 setListItemFieldsValue 方法, 设置表单中 From.List 的指定项的值[#1760](https://github.com/XiaoMi/hiui/issues/1760)
|
|
65
|
-
- 新增 `Table` 组件 onLoadChildren 方法, 树形表格下异步加载子数据 [#1725](https://github.com/XiaoMi/hiui/issues/1725)
|
|
66
|
-
- 新增 `Badge` 组件 offset 属性设置状态点的位置偏移 [#1786](https://github.com/XiaoMi/hiui/issues/1786)
|
|
67
|
-
- 新增 `Slider` 组件 showRangeLabel 属性设置是否显示范围值 [#1783](https://github.com/XiaoMi/hiui/issues/1783)
|
|
68
|
-
- 优化 `Table` 组件树形表格,允许控制指定节点的展开收起 [#1784](https://github.com/XiaoMi/hiui/issues/1784)
|
|
69
|
-
- 优化 `Grid` 组件接受原生属性 [#1609](https://github.com/XiaoMi/hiui/issues/1609)
|
|
70
|
-
- 优化 `Select` onChang 回调方法中,获取全部选项详细内容 [#1726](https://github.com/XiaoMi/hiui/issues/1726)
|
|
71
|
-
- 优化 `Form` 组件允许 FormItem 中的表单类组件设置 value [#1741](https://github.com/XiaoMi/hiui/issues/1741)
|
|
72
|
-
- 优化 `Table` 组件 showColHighlight 属性,修改内部触发逻辑 [#1759](https://github.com/XiaoMi/hiui/issues/1759)
|
|
73
|
-
- 优化 `Table` 组件 render 自定义渲染函数,可以获取列的位置 [#1808](https://github.com/XiaoMi/hiui/issues/1808)
|
|
74
|
-
- 优化 `Tree` 组件文字较多折行时,遮盖问题 [#1768](https://github.com/XiaoMi/hiui/issues/1768)
|
|
75
|
-
- 修复 `Table` 组件表头吸顶问题 [#1789](https://github.com/XiaoMi/hiui/issues/1789)
|
|
76
|
-
- 修复 `Tree` 编辑形态,不能输入空格问题 [#1768](https://github.com/XiaoMi/hiui/issues/1768)
|
|
77
|
-
- 修复 `Select` disabled 情况下,输入框仍能删除选项问题 [#1707](https://github.com/XiaoMi/hiui/issues/1707)
|
|
78
|
-
- 修复 `Table` 组件表头分组中使用 fixedToColumn 属性导致表头错乱 [#1732](https://github.com/XiaoMi/hiui/issues/1732)
|
|
79
|
-
- 修复 `Upload` 组件 onRemove 回调 api 导致外部引用闭包的问题 [#1739](https://github.com/XiaoMi/hiui/issues/1739)
|
|
80
|
-
- 修复 `Form` 组件 Form.Item 子节点 onChange 方法中设置表单值异常问题 [#1745](https://github.com/XiaoMi/hiui/issues/1745)
|
|
81
|
-
- 修复 `Table` 组件 批量选择形态中,在 data 为空数组时,表头全选项会默认勾选问题 [#1749](https://github.com/XiaoMi/hiui/issues/1749)
|
|
82
|
-
- 修复 `Table` 组件 批量选择形态中,表格禁用行,全选时会被勾选问题 [#1752](https://github.com/XiaoMi/hiui/issues/1752)
|
|
83
|
-
- 修复 `Tree` 组件 editable 受控状态下,编辑菜单显示问题 [#1761](https://github.com/XiaoMi/hiui/issues/1761)
|
|
84
|
-
- 修复 `Tree` LegacyTree 组件 draggable 为 true 时,节点展开且无法选中节点问题 [#1781](https://github.com/XiaoMi/hiui/issues/1781)
|
|
85
|
-
- 修复 `Slider` 组件 max、min 受控问题,Modal 中不能拖拽 [#1783](https://github.com/XiaoMi/hiui/issues/1783)
|
|
86
|
-
- 修复 `DatePicker` 组件 yearrange、monthrange 无法通过 min、max 限制时间区间问题 [#1780](https://github.com/XiaoMi/hiui/issues/1780)
|
|
87
|
-
- 修复 `Form` 组件值校验问题 [#1802](https://github.com/XiaoMi/hiui/issues/1802)
|
|
88
|
-
- 修复 `Tree` 自定义右侧菜单参数错误问题 [#1812](https://github.com/XiaoMi/hiui/issues/1812)
|
|
89
|
-
- 修复 `Tree` 在 onBeforeSave 返回 false 后依然可以新增子节点问题 [#1813](https://github.com/XiaoMi/hiui/issues/1813)
|
|
90
|
-
|
|
91
|
-
# 3.6.1
|
|
92
|
-
|
|
93
|
-
- 修复部分组件 'regeneratorRuntime is not defined' 问题 [#1719](https://github.com/XiaoMi/hiui/issues/1719)
|
|
94
|
-
- 修复 `Slider` max 和 min 受控问题 [#1703](https://github.com/XiaoMi/hiui/issues/1703)
|
|
95
|
-
|
|
96
|
-
# 3.6.0
|
|
97
|
-
|
|
98
|
-
- 新增 `Table` 组件 rowExpandable 方法,对内嵌式表格中左侧箭头进行自定义[#1679](https://github.com/XiaoMi/hiui/issues/1679)
|
|
99
|
-
- 新增 `Form` 组件新增 clearValidates 方法,用于清除表单校验 [#1691](https://github.com/XiaoMi/hiui/issues/1691)
|
|
100
|
-
- 新增 `Form` 组件 getFieldsError、getFieldsValue 方法,用于静默获取表单状态 [#1680](https://github.com/XiaoMi/hiui/issues/1680)
|
|
101
|
-
- 新增 `SelectTree` disabled 属性,控制禁用状态[#1675](https://github.com/XiaoMi/hiui/issues/1675)
|
|
102
|
-
- 优化 `Table` expandedRender 函数接受 Promise,可以进行异步渲染[#1679](https://github.com/XiaoMi/hiui/issues/1679)
|
|
103
|
-
- 优化 `Tabs` 组件 在 type 为 editable 时右上角的加号的显示隐藏随 onAdd 方法自动显示隐藏 [#1662](https://github.com/XiaoMi/hiui/issues/1662)
|
|
104
|
-
- 修复 `Modal` 组件 confirm 方法传入 className 属性无效问题 [#1584](https://github.com/XiaoMi/hiui/issues/1584)
|
|
105
|
-
- 修复 `Modal` 组件 closeable 属性无效问题 [#1645](https://github.com/XiaoMi/hiui/issues/1645)
|
|
106
|
-
- 修复 `Form` 组件 setFieldsValue 方式调用显示异常问题 [#1642](https://github.com/XiaoMi/hiui/issues/1642)
|
|
107
|
-
- 修复 `Form` 组件中包裹多个 List 组件,值未展示问题 [#1649](https://github.com/XiaoMi/hiui/issues/1649)
|
|
108
|
-
- 修复 `Table` 组件 data 值为带正负符号的数字类型字符串时,无法进行求和及平均值的问题 [#1616](https://github.com/XiaoMi/hiui/issues/1616)
|
|
109
|
-
- 修复 `Tabs` 组件 panes 数据源异步变更,导致 Tabs.Pane 重渲染时,底部高亮线偏移的问题 [#1651](https://github.com/XiaoMi/hiui/issues/1651)
|
|
110
|
-
- 修复 `DatePicker` 组件 type 为 timeperiod 在受控时,选择完成时间后该组件内容显示为空 [#1653](https://github.com/XiaoMi/hiui/issues/1653)
|
|
111
|
-
- 修复 `Select` 组件在分组形态下,搜索功能无效 [#1655](https://github.com/XiaoMi/hiui/issues/1655)
|
|
112
|
-
- 修复 `DatePicker` type 为 daterange 时,且 showTime 为 true 选择时间显示异常 [#1640](https://github.com/XiaoMi/hiui/issues/1640)
|
|
113
|
-
- 修复 `Cascader` id 为 Number 类型时导致节点重复添加问题[#1648](https://github.com/XiaoMi/hiui/issues/1648)
|
|
114
|
-
- 修复 `Tabs` 组件 onDelete、onAdd 等方法获取数据操作异常问题[#1676](https://github.com/XiaoMi/hiui/issues/1676)
|
|
115
|
-
- 修复 `DatePicker` maxDate 属性设置日期后,月份禁用错误 [#1690](https://github.com/XiaoMi/hiui/issues/1690)
|
|
116
|
-
- 修复 `Upload` 在 type 为 drag 时,通过拖动文件上传,data 数据不可更新[#1693](https://github.com/XiaoMi/hiui/issues/1693)
|
|
117
|
-
- 修复 `DatePicker` 在 type 为 daterange 时, 时间区间选择同一天无效问题[#1688](https://github.com/XiaoMi/hiui/issues/1688)
|
|
118
|
-
|
|
119
|
-
## 3.5.0
|
|
120
|
-
|
|
121
|
-
- 新增 `Table` 组件 showColHighlight 方法 [#1602](https://github.com/XiaoMi/hiui/issues/1602)
|
|
122
|
-
- 修复 `Table` 组件列冻结无法展示求和及平均值的问题 [#1616](https://github.com/XiaoMi/hiui/issues/1616)
|
|
123
|
-
- 新增 `Table` 组件 表格表头事件回调函数输出 [#1625](https://github.com/XiaoMi/hiui/issues/1625)
|
|
124
|
-
- 新增 `Form` SchemaForm 中 component 属性接受 ReactNode,SchemaForm 新增 updateSchema 更新函数 [#1612](https://github.com/XiaoMi/hiui/issues/1612)
|
|
125
|
-
- 新增 `DatePicker` onSelect 选择日期的回调函数 [#1592](https://github.com/XiaoMi/hiui/issues/1592)
|
|
126
|
-
- 新增 `Transfer` 组件 render 自定义菜单渲染函数 [#1575](https://github.com/XiaoMi/hiui/issues/1575)
|
|
127
|
-
- 优化 `Select` 组件异步类型时,searchable 属性可控制筛选框的显示隐藏 [#1577](https://github.com/XiaoMi/hiui/issues/1577)
|
|
128
|
-
- 优化 `DatePicker` type 为 week 形态时显示内容 [#1587](https://github.com/XiaoMi/hiui/issues/1587)
|
|
129
|
-
- 修复 `DatePicker` type 为 week 或者 weekrange 时 输入相应格式日期解析错误问题 [#1579](https://github.com/XiaoMi/hiui/issues/1579)
|
|
130
|
-
- 修复 `Form` 触发 onValuesChange 数据更新出现旧值问题 [#1618](https://github.com/XiaoMi/hiui/issues/1618)
|
|
131
|
-
- 修复 `DatePicker` type 为 timeperiod 时,设置 timeInterval 分钟显示不正确问题 [#1604](https://github.com/XiaoMi/hiui/issues/1604)
|
|
132
|
-
- 修复 `Preview` 图片预览组件,滚轮放大缩小错误 [#1573](https://github.com/XiaoMi/hiui/issues/1573)
|
|
133
|
-
- 修复 `TimePicker` 时间范围选择,为空时无法选择打开弹窗时的当前值 [#1530](https://github.com/XiaoMi/hiui/issues/1530)
|
|
134
|
-
- 修复 `Collapse` onChange 属性未传入控制台报错问题 [#1580](https://github.com/XiaoMi/hiui/issues/1580)
|
|
135
|
-
- 修复 `Select` 组件在异步多选时,关闭弹层下拉选项内容丢失问题 [#1578](https://github.com/XiaoMi/hiui/issues/1578)
|
|
136
|
-
- 修复 `Table` 组件 data 值为数字类型字符串时,无法进行求和及平均值的问题 [#1616](https://github.com/XiaoMi/hiui/issues/1616)
|
|
137
|
-
|
|
138
|
-
## 3.4.0
|
|
139
|
-
|
|
140
|
-
- 优化组件弹出层自动计算合适的左右位置 [#1494](https://github.com/XiaoMi/hiui/issues/1494)
|
|
141
|
-
- 新增 `Select SelectTree Cascader DatePicker Input` 等组件无边框形态 [#1553](https://github.com/XiaoMi/hiui/issues/1553)
|
|
142
|
-
- 新增 `Preview` 预览组件 [#1546](https://github.com/XiaoMi/hiui/issues/1546)
|
|
143
|
-
- 新增 `Select` 组件 onSearch、onOverlayScroll 方法 [#1522](https://github.com/XiaoMi/hiui/issues/1522)
|
|
144
|
-
- 修复 `SelectTree` 搜索输入框在输入值时失焦问题 [#1491](https://github.com/XiaoMi/hiui/issues/1491)
|
|
145
|
-
- 修复 `SelectTree` 单选形态下受控问题 [#1519](https://github.com/XiaoMi/hiui/issues/1519)
|
|
146
|
-
- 修复 `Select` 组件分组形态 filterOption 函数无法使用问题 [#1497](https://github.com/XiaoMi/hiui/issues/1497)
|
|
147
|
-
- 修复 `Select` 组件分组形态全选以及受控问题 [#1501](https://github.com/XiaoMi/hiui/issues/1501)
|
|
148
|
-
- 修复 `Select` 异步数据请求返回结果顺序异常 [#1543](https://github.com/XiaoMi/hiui/issues/1543)
|
|
149
|
-
- 修复 `Tabs` 组件垂直方向样式显示异常问题 [#1493](https://github.com/XiaoMi/hiui/issues/1493)
|
|
150
|
-
- 修复 `Form` DatePicker、SelectTree 在 Form.Item 中点击清空 Icon 无效问题 [#1524](https://github.com/XiaoMi/hiui/issues/1524)
|
|
151
|
-
- 修复 `DatePicker` minDate、maxDate、disabledDate 在非 date 类型下不生效问题 [#1547](https://github.com/XiaoMi/hiui/issues/1547)
|
|
152
|
-
- 优化 `Checkbox` 样式相关内容 [#1482](https://github.com/XiaoMi/hiui/issues/1482)
|
|
153
|
-
- 优化 `SelectTree` 异步受控数据返显问题 [#1510](https://github.com/XiaoMi/hiui/issues/1510)
|
|
154
|
-
- 优化 `Select SelectTree` 计数根据窗口自动调整 [#1527](https://github.com/XiaoMi/hiui/issues/1527)
|
|
155
|
-
- 优化 `Drawer` 组件支持 className 属性 [#1536](https://github.com/XiaoMi/hiui/issues/1536)
|
|
156
|
-
|
|
157
|
-
## 3.3.0
|
|
158
|
-
|
|
159
|
-
- 新增 `Card` 模式模式下 loading 加载中状态 [#1454](https://github.com/XiaoMi/hiui/issues/1454)
|
|
160
|
-
- 新增 `Table` loading 加载中状态 [#1466](https://github.com/XiaoMi/hiui/issues/1466)
|
|
161
|
-
- 新增 `Table` 列冻结结合树形使用 [#1424](https://github.com/XiaoMi/hiui/issues/1424)
|
|
162
|
-
- 新增 `Table` rowSelection getCheckboxConfig 方法配置行选择 [#1444](https://github.com/XiaoMi/hiui/issues/1444)
|
|
163
|
-
- 新增 `SelectTree` valueRender 自定义渲染 Input 中展示内容 [#1407](https://github.com/XiaoMi/hiui/issues/1407)
|
|
164
|
-
- 新增 `SelectTree` 通过关键字异步搜索功能 [#1479](https://github.com/XiaoMi/hiui/issues/1479)
|
|
165
|
-
- 修复 `Input` type = textarea 的时候,className 设置无效 [#1458](https://github.com/XiaoMi/hiui/issues/1458)
|
|
166
|
-
- 修复 `Form` 在页面渲染完成后 调用中 setFieldsValue 无效问题 [#1408](https://github.com/XiaoMi/hiui/issues/1408)
|
|
167
|
-
- 修复 `Form` 在 Form.Item 中调用 setFieldsValue 数据获取错误 [#1456](https://github.com/XiaoMi/hiui/issues/1456)
|
|
168
|
-
- 修复 `Rate` 组件在快速移动显示异常问题 [#1410](https://github.com/XiaoMi/hiui/issues/1410)
|
|
169
|
-
- 修复 `DatePicker` type 不受控问题 [#1401](https://github.com/XiaoMi/hiui/issues/1401)
|
|
170
|
-
- 修复 `DatePicker` 点击空白区域触发 onChange 问题 [#1477](https://github.com/XiaoMi/hiui/issues/1477)
|
|
171
|
-
- 修复 `DatePicker` 跨年或跨月选择周,数据显示错误 [#1476](https://github.com/XiaoMi/hiui/issues/1476)
|
|
172
|
-
- 修复 `Select` 下拉框默认选中行显示错误 [#1405](https://github.com/XiaoMi/hiui/issues/1405)
|
|
173
|
-
- 修复 `DatePicker` 在 type 为 daterange 时候,传入不合法日期,面板显示异常 [#1418](https://github.com/XiaoMi/hiui/issues/1418)
|
|
174
|
-
- 修复 `Table` 对其他组件造成的样式污染问题 [#1428](https://github.com/XiaoMi/hiui/issues/1428)
|
|
175
|
-
- 修复 `Table` 数据为空时右侧冻结展示不正确的问题 [#1473](https://github.com/XiaoMi/hiui/issues/1473)
|
|
176
|
-
- 修复 `Tree` onDrop 回调函数参数不正确的问题 [#1425](https://github.com/XiaoMi/hiui/issues/1425)
|
|
177
|
-
- 修复 `Select` 异步多选值返显问题 [#1425](https://github.com/XiaoMi/hiui/issues/1425)
|
|
178
|
-
- 修复 `Modal` confirm 方法为适配主题色的问题 [#1446](https://github.com/XiaoMi/hiui/issues/1446)
|
|
179
|
-
- 修复 `Loading` children 不存在时,设置 visible 为 false 无效的问题 [#1461](https://github.com/XiaoMi/hiui/issues/1461)
|
|
180
|
-
- 优化 `Tabs` 组件弹出层样式[#1437](https://github.com/XiaoMi/hiui/issues/1437)
|
|
181
|
-
- 优化 `DatePicker` 类型为 week 时输入框显示内容以及周起始方式 [#1475](https://github.com/XiaoMi/hiui/issues/1475)
|
|
182
|
-
- 优化 `Progress` width、height 属性支持传入 String 类型 [#1480](https://github.com/XiaoMi/hiui/issues/1480)
|
|
183
|
-
|
|
184
|
-
## 3.2.0
|
|
185
|
-
|
|
186
|
-
- 新增 HiUI 基础样式 css 文件 [#1338](https://github.com/XiaoMi/hiui/issues/1338)
|
|
187
|
-
- 新增 `Table` expandedRowKeys,onExpand 扩展内嵌式表格的展开操作 [#1378](https://github.com/XiaoMi/hiui/issues/1378)
|
|
188
|
-
- 修复 `List` 组件导出问题 [#1314](https://github.com/XiaoMi/hiui/issues/1314)
|
|
189
|
-
- 修复 `Tabs` Tabs.Pane 组件中 tabTitle 属性传入 ReactNode 报错问题 [#1320](https://github.com/XiaoMi/hiui/issues/1320)
|
|
190
|
-
- 修复 `Upload` onRemove 的问题 [#1322](https://github.com/XiaoMi/hiui/issues/1322)
|
|
191
|
-
- 修复 `DatePicker` 受控无法选中值问题 [#1326](https://github.com/XiaoMi/hiui/issues/1326)
|
|
192
|
-
- 修复 `Table` 列操作 icon 丢失问题 [#1336](https://github.com/XiaoMi/hiui/issues/1336)
|
|
193
|
-
- 修复 `Table` 表头吸顶层级显示问题 [#1318](https://github.com/XiaoMi/hiui/issues/1318)
|
|
194
|
-
- 修复 `Table` 内嵌式设置列宽不正确的问题 [#1325](https://github.com/XiaoMi/hiui/issues/1325)
|
|
195
|
-
- 修复 `SelectTree` 下拉选择上滑动显示异常 [#1351](https://github.com/XiaoMi/hiui/issues/1351)
|
|
196
|
-
- 修复 `Form` 包裹 Select 设置 searchable 属性时候,显示异常 [#1343](https://github.com/XiaoMi/hiui/issues/1343)
|
|
197
|
-
- 修复 `Form` Form.List 和 Form.Item 同一级混用显示异常问题 [#1345](https://github.com/XiaoMi/hiui/issues/1345)
|
|
198
|
-
- 修复 `DatePicker` weekOffset 为 1 时 周与日对照显示异常 [#1352](https://github.com/XiaoMi/hiui/issues/1352)
|
|
199
|
-
- 修复 `Input` type 等于 amount 时,数据初始化展示问题 [#1346](https://github.com/XiaoMi/hiui/pull/1346)
|
|
200
|
-
- 修复 `Input` 添加前后置节点聚焦问题 [#1342](https://github.com/XiaoMi/hiui/pull/1342)
|
|
201
|
-
- 修复 `Select` 异步多选下拉数据显示问题 [#1364](https://github.com/XiaoMi/hiui/issues/1364)
|
|
202
|
-
- 修复 `SelectTree` 异步加载子节点数据显示位置错误以及国际化适配等问题 [#1386](https://github.com/XiaoMi/hiui/issues/1386)
|
|
203
|
-
- 修复 `Progress` placement 为 inside 时,字显示折行问题 [#1385](https://github.com/XiaoMi/hiui/issues/1385)
|
|
204
|
-
- 优化 `Select` 下拉框展开收起,输入框内容存在显示差异[#1380](https://github.com/XiaoMi/hiui/issues/1380)
|
|
205
|
-
- 修复 `Select` 滚动报错问题[#1390](https://github.com/XiaoMi/hiui/issues/1390)
|
|
206
|
-
- 优化 `Search` 后置元素应该收起下拉选项 [#1341](https://github.com/XiaoMi/hiui/issues/1341)
|
|
207
|
-
- 优化 `Form` 组件 label 内容显示折行行高以及间距 [#1376](https://github.com/XiaoMi/hiui/issues/1376)
|
|
208
|
-
- 优化 `Pagination` 国际化翻译 [#1381](https://github.com/XiaoMi/hiui/issues/1381)
|
|
209
|
-
- 修复 `Table` rowSelection 存在时的列冻结异常 [#1393](https://github.com/XiaoMi/hiui/issues/1393)
|
|
210
|
-
- 修复 `Table` 国际化问题 [#1397](https://github.com/XiaoMi/hiui/issues/1397)
|
|
211
|
-
- 优化 `Table` 树形表格 children 为空数组时的展示问题 [#1370](https://github.com/XiaoMi/hiui/issues/1370)
|
|
212
|
-
- 优化 `Tree` 内部计算逻辑,提升多条数据的渲染性能 [#1369](https://github.com/XiaoMi/hiui/issues/1369)
|
|
213
|
-
- 优化 `Modal` 当屏幕高度小于 Moadal 高度的交互效果 [#1348](https://github.com/XiaoMi/hiui/issues/1348)
|
|
214
|
-
|
|
215
|
-
## 3.1.0
|
|
216
|
-
|
|
217
|
-
- 新增 `Card` bordered 属性配置是否显示边框 [#1296](https://github.com/XiaoMi/hiui/issues/1296)
|
|
218
|
-
- 修复 `Input` 在受控状态下,设置 value 为 null 时报错问题 [#1246](https://github.com/XiaoMi/hiui/issues/1246)
|
|
219
|
-
- 修复 `Select` 设置 autoload 为 true 时无限的调用接口问题 [#1249](https://github.com/XiaoMi/hiui/issues/1249)
|
|
220
|
-
- 修复 `Select` 异步多选,点击清空下拉数据未清空问题 [#1293](https://github.com/XiaoMi/hiui/issues/1293)
|
|
221
|
-
- 修复 `Timepicker` 弹出层在页面底部未翻转到上方问题 [#1253](https://github.com/XiaoMi/hiui/issues/1253)
|
|
222
|
-
- 优化 `Timepicker` 支持字符串格式的 value [#1245](https://github.com/XiaoMi/hiui/issues/1245)
|
|
223
|
-
- 修复 `SelectTree` 弹出层在页面底部不能翻转问题 [#1254](https://github.com/XiaoMi/hiui/issues/1254)
|
|
224
|
-
- 修复 `DatePicker` 周范围显示异常问题 [#1267](https://github.com/XiaoMi/hiui/issues/1267)
|
|
225
|
-
- 修复 `SelectTree` data 数据中 Children 为空数组报错问题 [#1261](https://github.com/XiaoMi/hiui/issues/1261)
|
|
226
|
-
- 修复 `SelectTree` 在 Form 包裹下样式显示异常 [#1310](https://github.com/XiaoMi/hiui/issues/1310)
|
|
227
|
-
- 修复 `Tag` 使用 ref 无效问题 [#1262](https://github.com/XiaoMi/hiui/issues/1262)
|
|
228
|
-
- 修复 `Table` data 为 undefined 时的报错问题 [#1265](https://github.com/XiaoMi/hiui/issues/1265)
|
|
229
|
-
- 修复 `Loading` 显示不正确的问题 [#1265](https://github.com/XiaoMi/hiui/issues/1268)
|
|
230
|
-
- 优化 `SelectTree` 样式问题 [#1272](https://github.com/XiaoMi/hiui/issues/1272)
|
|
231
|
-
- 修复 `Tag` 闪烁问题 [#1273](https://github.com/XiaoMi/hiui/issues/1273)
|
|
232
|
-
- 修复 `Timeline` 折断样式问题 [#1276](https://github.com/XiaoMi/hiui/issues/1276)
|
|
233
|
-
- 修复 `Timeline` 只有一条数据时的样式问题 [#1277](https://github.com/XiaoMi/hiui/issues/1277)
|
|
234
|
-
- 修复 `SelectTree` 受控问题 [#1283](https://github.com/XiaoMi/hiui/issues/1283)
|
|
235
|
-
- 修复 `Popover` 包裹函数组件无法触发问题 [#1282](https://github.com/XiaoMi/hiui/issues/1282)
|
|
236
|
-
- 修复 `Pagination` 输入页码后回车键报错的问题 [#1299](https://github.com/XiaoMi/hiui/issues/1299)
|
|
237
|
-
- 优化 `Upload` 不同 type 文件类型默认值 [#1286](https://github.com/XiaoMi/hiui/issues/1286)
|
|
238
|
-
- 优化 `Filter` 返回值问题 [#1288](https://github.com/XiaoMi/hiui/issues/1288)
|
|
239
|
-
- 优化 `Tabs` 线型模式样式 [#1291](https://github.com/XiaoMi/hiui/issues/1291)
|
|
240
|
-
- 优化 `Breadcrumb` 渲染方式 [#1303](https://github.com/XiaoMi/hiui/issues/1303)
|
|
241
|
-
- 优化 `Form` 组件 Form.Item 宽度设置问题 [#1295](https://github.com/XiaoMi/hiui/issues/1295)
|
|
242
|
-
|
|
243
|
-
## 3.0.0
|
|
244
|
-
|
|
245
|
-
- 新增:`Slider` 滑块组件 [#1225](https://github.com/XiaoMi/hiui/issues/1225)
|
|
246
|
-
- 新增:`SelectTree` 树形选择器组件 [#1231](https://github.com/XiaoMi/hiui/issues/1231)
|
|
247
|
-
- 新增:`List` 列表组件 [#1226](https://github.com/XiaoMi/hiui/issues/1226)
|
|
248
|
-
- 新增:`Filter` 筛选组件 [#1227](https://github.com/XiaoMi/hiui/issues/1227)
|
|
249
|
-
- 新增:`Search` 搜索组件 [#1228](https://github.com/XiaoMi/hiui/issues/1228)
|
|
250
|
-
- 新增:`Drawer` 抽屉组件 [#1229](https://github.com/XiaoMi/hiui/issues/1229)
|
|
251
|
-
- 新增:`RichTextEditor` 富文本编辑器 [#1236](https://github.com/XiaoMi/hiui/issues/1236)
|
|
252
|
-
- 新增:`CodeEditor` 代码编辑器使用示例
|
|
253
|
-
- 新增常见图表样式支持(基于 echarts 封装)[#388](https://github.com/XiaoMi/hiui/issues/388)
|
|
254
|
-
- 全新的 `Form` 组件 [#1234](https://github.com/XiaoMi/hiui/issues/1234)
|
|
255
|
-
- 新增 `SchemaForm`,可通过 Schema 配置使用 `Form`。
|
|
256
|
-
- 新增 `useForm`,通过 `Form.useForm` 对表单数据域进行交互。
|
|
257
|
-
- 新增 `Form.List`,方便对表单项进行增加删除
|
|
258
|
-
- 新增 `Submit`、`Reset` 等快捷组件,方便用户重置和提交数据
|
|
259
|
-
- 优化表单中的表单项值的管理,不再由用户进行 `setState`
|
|
260
|
-
- 优化 `Form` 输出数据的内容格式,用户可通过设置 `field` 进行相关格式的设置
|
|
261
|
-
- 优化表单的校验相关功能
|
|
262
|
-
- 全新的 `DatePicker` 组件 [#1235](https://github.com/XiaoMi/hiui/issues/1234)
|
|
263
|
-
- 优化快捷选项功能,允许用户自定义快捷选项
|
|
264
|
-
- 优化选择日期相关交互
|
|
265
|
-
- 优化日期面板相关样式
|
|
266
|
-
- 全新的 `Icon` 组件 [#1224](https://github.com/XiaoMi/hiui/issues/1224)
|
|
267
|
-
- 内部改为 svg 实现方式
|
|
268
|
-
- 重新调整视觉效果
|
|
269
|
-
- 新增大量图标
|
|
270
|
-
- 全新的 `Tree` 组件 [#1232](https://github.com/XiaoMi/hiui/issues/1232)
|
|
271
|
-
- 调整了 Tree 的内部实现,提升了性能
|
|
272
|
-
- 样式进行了优化
|
|
273
|
-
- 优化了 api
|
|
274
|
-
- 全新的 `Table` 组件 [#359](https://github.com/XiaoMi/hiui/issues/359)
|
|
275
|
-
- 优化了 api
|
|
276
|
-
- 视觉交互重新调整
|
|
277
|
-
- 支持树形表格
|
|
278
|
-
- 支持列对齐
|
|
279
|
-
- 支持动态控制列宽
|
|
280
|
-
- 支持标准模式
|
|
281
|
-
- 支持控制行高亮
|
|
282
|
-
- 支持控制列高亮
|
|
283
|
-
- 优化了列冻结
|
|
284
|
-
- 优化了表头吸顶
|
|
285
|
-
- 优化了列调整,支持调整列的顺序
|
|
286
|
-
- 全新的 `Rate` 组件 [#1237](https://github.com/XiaoMi/hiui/issues/1237)
|
|
287
|
-
- 支持自定义字体图标,文字甚至图片以及评分选中颜色
|
|
288
|
-
- 支持根据评分自定义渲染图标
|
|
289
|
-
- 优化辅助文字显示位置
|
|
290
|
-
- 新增只读形态。
|
|
291
|
-
- `Breadcrumb` 组件升级 [#1230](https://github.com/XiaoMi/hiui/issues/1230)
|
|
292
|
-
- 修正最后一级的 hover 时的高亮效果
|
|
293
|
-
- `Cascader` 组件升级
|
|
294
|
-
- 修正了受控、非受控模式
|
|
295
|
-
- `Dropdown` 组件升级 [#1238](https://github.com/XiaoMi/hiui/issues/1238)
|
|
296
|
-
- 修正选项具有 `href` 属性时点击可跳转
|
|
297
|
-
- `Select` 组件升级
|
|
298
|
-
- 新增 `fieldNames` API,方便根据返回数据显示下拉框的内容
|
|
299
|
-
- 新增 `showJustSelected` API,方便快速对下拉选项进行操作
|
|
300
|
-
- 新增下拉数据的**分组**展示形式
|
|
301
|
-
- 优化 `dataSource`,请求数据方式以及支持返回多种类型
|
|
302
|
-
- 修正多选异步数据回显问题
|
|
303
|
-
- `Switch` 组件升级
|
|
304
|
-
- 修正了 onChange 的触发时机 [#1223](https://github.com/XiaoMi/hiui/issues/1223)
|
|
305
|
-
- 修正了受控、非受控模式 [#633](https://github.com/XiaoMi/hiui/issues/633)
|
|
306
|
-
- `Rate` 组件升级 [#1083](https://github.com/XiaoMi/hiui/issues/1083)
|
|
307
|
-
- 支持自定义辅助文字
|
|
308
|
-
- 支持自定义渲染效果
|
|
309
|
-
- `Tabs` 组件升级
|
|
310
|
-
- 可扩展用法增加滚动条模式 [#1222](https://github.com/XiaoMi/hiui/issues/1222)
|
|
311
|
-
- 支持拖拽 [#641](https://github.com/XiaoMi/hiui/issues/641)
|
|
312
|
-
- `Card` 组件升级 [#1220](https://github.com/XiaoMi/hiui/issues/1220)
|
|
313
|
-
- 样式调整
|
|
314
|
-
- 废弃 extraType 属性
|
|
315
|
-
- 新增 showHeaderDivider 属性展示卡片头部的分割线
|
|
316
|
-
- `Modal` 组件升级 [#1221](https://github.com/XiaoMi/hiui/issues/1221)
|
|
317
|
-
- 进行了样式调整,重点优化了 Modal.confirm 的视觉效果
|
|
318
|
-
- `Tag` 组件升级 [#1233](https://github.com/XiaoMi/hiui/issues/1233)
|
|
319
|
-
- 新增圆角形态
|
|
320
|
-
- 新增标签组用法
|
|
321
|
-
- 主题配色调整,并使用 css variable 实现主题配色的切换 [#256](https://github.com/XiaoMi/hiui/issues/256)
|
|
322
|
-
- 增加 Typescript 类型定义文件 [#181](https://github.com/XiaoMi/hiui/issues/181)
|
|
323
|
-
|
|
324
|
-
## 2.x
|
|
325
|
-
|
|
326
|
-
[更新日志汇总](https://github.com/XiaoMi/hiui/blob/master/CHANGELOG.md)
|
|
327
|
-
|
|
328
|
-
## 1.x
|
|
329
|
-
|
|
330
|
-
[更新日志汇总](https://github.com/XiaoMi/hiui/blob/stable/1.x/CHANGELOG.md)
|
package/es/_util/EventEmitter.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
12
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
-
|
|
14
|
-
var EventEmitter = /*#__PURE__*/function () {
|
|
15
|
-
function EventEmitter() {
|
|
16
|
-
(0, _classCallCheck2["default"])(this, EventEmitter);
|
|
17
|
-
this.event = {};
|
|
18
|
-
} // 监听
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
(0, _createClass2["default"])(EventEmitter, [{
|
|
22
|
-
key: "on",
|
|
23
|
-
value: function on(type, listener) {
|
|
24
|
-
this.event[type] = listener;
|
|
25
|
-
} // 触发事件
|
|
26
|
-
|
|
27
|
-
}, {
|
|
28
|
-
key: "emit",
|
|
29
|
-
value: function emit(type) {
|
|
30
|
-
var _this$event;
|
|
31
|
-
|
|
32
|
-
for (var _len = arguments.length, arg = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
33
|
-
arg[_key - 1] = arguments[_key];
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
this.event[type] && (_this$event = this.event)[type].apply(_this$event, arg);
|
|
37
|
-
}
|
|
38
|
-
}, {
|
|
39
|
-
key: "removeListener",
|
|
40
|
-
value: function removeListener(type) {
|
|
41
|
-
if (this.event[type]) {
|
|
42
|
-
delete this.event[type];
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}, {
|
|
46
|
-
key: "removeAll",
|
|
47
|
-
value: function removeAll(type) {
|
|
48
|
-
this.event = {};
|
|
49
|
-
}
|
|
50
|
-
}]);
|
|
51
|
-
return EventEmitter;
|
|
52
|
-
}();
|
|
53
|
-
|
|
54
|
-
var _default = new EventEmitter();
|
|
55
|
-
|
|
56
|
-
exports["default"] = _default;
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard");
|
|
4
|
-
|
|
5
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
6
|
-
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
exports["default"] = void 0;
|
|
11
|
-
|
|
12
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
13
|
-
|
|
14
|
-
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
15
|
-
|
|
16
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
17
|
-
|
|
18
|
-
function SwitchVersion() {
|
|
19
|
-
var component = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
20
|
-
var componentLegacy = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
21
|
-
|
|
22
|
-
var WrapperComponent = function WrapperComponent(_ref) {
|
|
23
|
-
var legacy = _ref.legacy,
|
|
24
|
-
innerRef = _ref.innerRef,
|
|
25
|
-
props = (0, _objectWithoutProperties2["default"])(_ref, ["legacy", "innerRef"]);
|
|
26
|
-
var innerComponent = legacy === true ? componentLegacy : component;
|
|
27
|
-
return /*#__PURE__*/_react["default"].createElement(innerComponent, Object.assign({}, props, {
|
|
28
|
-
ref: innerRef
|
|
29
|
-
}));
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
return /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
33
|
-
return /*#__PURE__*/_react["default"].createElement(WrapperComponent, (0, _extends2["default"])({}, props, {
|
|
34
|
-
ref: ref
|
|
35
|
-
}));
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
var _default = SwitchVersion;
|
|
40
|
-
exports["default"] = _default;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.depreactedPropsCompat = void 0;
|
|
9
|
-
|
|
10
|
-
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
11
|
-
|
|
12
|
-
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
|
|
16
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
17
|
-
|
|
18
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
19
|
-
|
|
20
|
-
var isDevelopment = /development/gi.test(process.env.NODE_ENV);
|
|
21
|
-
/**
|
|
22
|
-
* compat old api
|
|
23
|
-
* 参数为一个二维数组,里面的一维数组的第一个参数为新 prop,第二个参数为旧 prop,第三个参数为转换函数,
|
|
24
|
-
* 回调值为旧 prop 传入的值。使用示例参考 Stepper 组件
|
|
25
|
-
* @export
|
|
26
|
-
* @param {[[string, string, Function], [string, string, Function]]} compatPair
|
|
27
|
-
* @returns
|
|
28
|
-
*/
|
|
29
|
-
|
|
30
|
-
var depreactedPropsCompat = function depreactedPropsCompat(compatPair) {
|
|
31
|
-
return function (WrappedComponent) {
|
|
32
|
-
var WrapperComponent = function WrapperComponent(props) {
|
|
33
|
-
var compatProps = _objectSpread({}, props);
|
|
34
|
-
|
|
35
|
-
var componentName = WrappedComponent.displayName || WrappedComponent.name || 'unknown component';
|
|
36
|
-
compatPair.forEach(function (_ref) {
|
|
37
|
-
var _ref2 = (0, _slicedToArray2["default"])(_ref, 3),
|
|
38
|
-
newProp = _ref2[0],
|
|
39
|
-
oldProp = _ref2[1],
|
|
40
|
-
convert = _ref2[2];
|
|
41
|
-
|
|
42
|
-
if (props[oldProp] !== undefined && props[newProp] === undefined) {
|
|
43
|
-
isDevelopment && console.warn("".concat(componentName, "'s prop \"").concat(oldProp, "\" will be depreacted in next version! use ").concat(newProp, " instead."));
|
|
44
|
-
compatProps[newProp] = convert ? convert(props[oldProp]) : props[oldProp];
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
return /*#__PURE__*/_react["default"].createElement(WrappedComponent, compatProps);
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
for (var staticProp in WrappedComponent) {
|
|
51
|
-
WrapperComponent[staticProp] = WrappedComponent[staticProp];
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
return WrapperComponent;
|
|
55
|
-
};
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
exports.depreactedPropsCompat = depreactedPropsCompat;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = deprecatedPropsCheck;
|
|
7
|
-
exports.deprecatedWarning = deprecatedWarning;
|
|
8
|
-
|
|
9
|
-
function deprecatedWarning(componentName, propName, propValue) {
|
|
10
|
-
console.warn("Deprecated Warning: Invalid prop `".concat(propName, "` of value `").concat(propValue, "` supplied to `").concat(componentName, "`."));
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
function deprecatedPropsCheck(deprecatedProps, props, componentName) {
|
|
14
|
-
for (var propName in deprecatedProps) {
|
|
15
|
-
if (deprecatedProps.hasOwnProperty(propName)) {
|
|
16
|
-
if (deprecatedProps[propName].includes(props[propName])) {
|
|
17
|
-
deprecatedWarning(componentName, propName, props[propName]);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
package/es/_util/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
var _exportNames = {
|
|
9
|
-
SwitchVersion: true
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "SwitchVersion", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
get: function get() {
|
|
14
|
-
return _SwitchVersion["default"];
|
|
15
|
-
}
|
|
16
|
-
});
|
|
17
|
-
|
|
18
|
-
var _depreactedPropsCompat = require("./depreactedPropsCompat");
|
|
19
|
-
|
|
20
|
-
Object.keys(_depreactedPropsCompat).forEach(function (key) {
|
|
21
|
-
if (key === "default" || key === "__esModule") return;
|
|
22
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
23
|
-
Object.defineProperty(exports, key, {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
get: function get() {
|
|
26
|
-
return _depreactedPropsCompat[key];
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
var _SwitchVersion = _interopRequireDefault(require("./SwitchVersion"));
|
package/es/_util/warning.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.warningOnce = warningOnce;
|
|
9
|
-
|
|
10
|
-
var _warning = _interopRequireDefault(require("warning"));
|
|
11
|
-
|
|
12
|
-
var warned = {};
|
|
13
|
-
|
|
14
|
-
function warningOnce(condition, format, args) {
|
|
15
|
-
if (!warned[format]) {
|
|
16
|
-
(0, _warning["default"])(condition, format, args);
|
|
17
|
-
warned[format] = !condition;
|
|
18
|
-
}
|
|
19
|
-
}
|