tntd 2.0.12 → 2.0.13
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/es/array-input/index.js +6 -31
- package/es/array-input/style/index.js +1 -0
- package/es/array-input/style/index.js.map +1 -0
- package/es/auth-context/style/index.js +1 -0
- package/es/auth-context/style/index.js.map +1 -0
- package/es/columns/index.js +6 -12
- package/es/development-login/LoginModal.js +4 -10
- package/es/development-login/style/index.js +1 -0
- package/es/development-login/style/index.js.map +1 -0
- package/es/drawer/drawer.js +4 -8
- package/es/ellipsis/index.js +14 -25
- package/es/ellipsis/style/index.js +1 -0
- package/es/ellipsis/style/index.js.map +1 -0
- package/es/empty/empty.js +9 -14
- package/es/empty/empty.js.map +1 -1
- package/es/empty/render-empty.js +22 -0
- package/es/empty/render-empty.js.map +1 -0
- package/es/empty/style/index.js +2 -0
- package/es/empty/style/index.js.map +1 -0
- package/es/handle/index.js +14 -27
- package/es/handle/style/index.js +1 -0
- package/es/handle/style/index.js.map +1 -0
- package/es/icon-list/style/index.js +1 -0
- package/es/icon-list/style/index.js.map +1 -0
- package/es/img/Contain.js +13 -19
- package/es/img/Cover.js +13 -24
- package/es/img/index.js +14 -21
- package/es/img/style/index.js +1 -0
- package/es/img/style/index.js.map +1 -0
- package/es/index.js +0 -1
- package/es/loading-button/index.js +6 -13
- package/es/loading-button/style/index.js +1 -0
- package/es/loading-button/style/index.js.map +1 -0
- package/es/locale/default.js +0 -2
- package/es/locale/en_US.js +0 -2
- package/es/locale/zh_CN.js +0 -2
- package/es/page/Box.js +19 -28
- package/es/page/index.js +22 -38
- package/es/page/style/index.js +1 -0
- package/es/page/style/index.js.map +1 -0
- package/es/page/utils.js +0 -5
- package/es/prev-locale.js +0 -3
- package/es/query-form/Field/Checkbox.js +4 -8
- package/es/query-form/Field/Select.js +10 -17
- package/es/query-form/Field/SelectInput.js +4 -18
- package/es/query-form/Field/fieldsMap.js +0 -1
- package/es/query-form/Field/index.js +2 -11
- package/es/query-form/createActions.js +0 -8
- package/es/query-form/index.js +2 -34
- package/es/query-form/style/index.js +1 -0
- package/es/query-form/style/index.js.map +1 -0
- package/es/query-list-scene/List.js +18 -39
- package/es/query-list-scene/QueryForm.js +10 -19
- package/es/query-list-scene/QueryListScene.js +0 -2
- package/es/query-list-scene/Toolbar.js +6 -10
- package/es/query-list-scene/createActions.js +0 -3
- package/es/query-list-scene/style/index.js +1 -0
- package/es/query-list-scene/style/index.js.map +1 -0
- package/es/render-empty/render-empty.js +0 -2
- package/es/render-empty/style/index.js +1 -0
- package/es/render-empty/style/index.js.map +1 -0
- package/es/steps/steps.js +9 -17
- package/es/svg-components/illustration-403.js +0 -2
- package/es/svg-components/illustration-404.js +0 -2
- package/es/svg-components/illustration-500.js +0 -2
- package/es/svg-components/illustration-empty.js +0 -2
- package/es/svg-components/illustration-failure.js +0 -2
- package/es/svg-components/illustration-no-access.js +0 -2
- package/es/svg-components/illustration-no-chart.js +0 -2
- package/es/svg-components/illustration-no-result.js +0 -2
- package/es/svg-components/illustration-offline.js +0 -2
- package/es/svg-components/illustration-success.js +0 -2
- package/es/table/assets/image-loading-background.js +0 -2
- package/es/table/assets/image-loading.js +0 -2
- package/es/table/hooks/use-column-setting.js +0 -1
- package/es/table/style/index.js +2 -0
- package/es/table/style/index.js.map +1 -0
- package/es/table/table.js +14 -19
- package/es/table/table.stories.js +0 -2
- package/es/table/utils.js +2 -6
- package/es/title/index.js +10 -14
- package/es/title/style/index.js +1 -0
- package/es/title/style/index.js.map +1 -0
- package/es/tntd-cascader/AntdCascader/component/context.js +2 -4
- package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +0 -2
- package/es/tntd-cascader/AntdCascader/component/getIcons.js +6 -15
- package/es/tntd-cascader/AntdCascader/config/utils.js +0 -2
- package/es/tntd-cascader/AntdCascader/config/warning.js +4 -8
- package/es/tntd-cascader/AntdCascader/index.js +51 -73
- package/es/tntd-cascader/rc-cascader/Cascader.js +86 -113
- package/es/tntd-cascader/rc-cascader/OptionList/Column.js +16 -26
- package/es/tntd-cascader/rc-cascader/OptionList/index.js +26 -43
- package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -7
- package/es/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +12 -41
- package/es/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +4 -10
- package/es/tntd-cascader/rc-cascader/hooks/useEntities.js +2 -4
- package/es/tntd-cascader/rc-cascader/hooks/useMissingValues.js +0 -1
- package/es/tntd-cascader/rc-cascader/hooks/useRefFunc.js +0 -1
- package/es/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +2 -7
- package/es/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +8 -15
- package/es/tntd-cascader/rc-cascader/utils/commonUtil.js +2 -6
- package/es/tntd-cascader/rc-cascader/utils/treeUtil.js +2 -4
- package/es/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +2 -7
- package/es/tntd-icon/fonts/iconfont.js +7 -12
- package/es/tntd-icon/index.js +5 -9
- package/es/tntd-icon/style/index.js +1 -0
- package/es/tntd-icon/style/index.js.map +1 -0
- package/es/tntd-layout/ActionsContext.js +2 -2
- package/es/tntd-layout/AppList.js +2 -14
- package/es/tntd-layout/Application.js +0 -4
- package/es/tntd-layout/Avatar.js +0 -4
- package/es/tntd-layout/CompatibleLanguage.js +0 -13
- package/es/tntd-layout/EnterpriseLayout/Avatar.js +0 -4
- package/es/tntd-layout/EnterpriseLayout/Language.js +0 -6
- package/es/tntd-layout/EnterpriseLayout/Theme.js +0 -4
- package/es/tntd-layout/EnterpriseLayout/index.js +2 -2
- package/es/tntd-layout/GlobalNavigation/NavigationPopup.js +2 -33
- package/es/tntd-layout/GlobalNavigation/index.js +0 -6
- package/es/tntd-layout/HeaderActions.js +28 -32
- package/es/tntd-layout/HeaderNavs.js +6 -14
- package/es/tntd-layout/HeaderTabs.js +14 -35
- package/es/tntd-layout/Language.js +0 -6
- package/es/tntd-layout/Layout.js +2 -7
- package/es/tntd-layout/Logo.js +4 -11
- package/es/tntd-layout/OrgAppList.js +22 -39
- package/es/tntd-layout/SideMenu.js +8 -45
- package/es/tntd-layout/Theme.js +0 -6
- package/es/tntd-layout/index.js +9 -17
- package/es/tntd-layout/paaslayout/CompactSideMenu.js +0 -15
- package/es/tntd-layout/paaslayout/SideMenu.js +0 -15
- package/es/tntd-layout/paaslayout/index.js +4 -13
- package/es/tntd-layout/storage.js +2 -2
- package/es/tntd-layout/style/index.js +1 -0
- package/es/tntd-layout/style/index.js.map +1 -0
- package/es/tntd-modal/index.js +12 -18
- package/es/tntd-modal/style/index.js +1 -0
- package/es/tntd-modal/style/index.js.map +1 -0
- package/es/tntd-second-page/index.js +0 -3
- package/es/tntd-select/DropDownWrap.js +4 -8
- package/es/tntd-select/index.js +74 -118
- package/es/tntd-select/style/index.js +1 -0
- package/es/tntd-select/style/index.js.map +1 -0
- package/es/utils/checkAuth.js +0 -1
- package/es/utils/findMenuInfoByPath.js +0 -3
- package/es/utils/index.js +2 -11
- package/lib/affix/index.js +4 -10
- package/lib/alert/index.js +4 -10
- package/lib/anchor/index.js +4 -10
- package/lib/array-input/icon.js +1 -7
- package/lib/array-input/index.js +41 -91
- package/lib/array-input/style/index.d.ts +1 -0
- package/lib/array-input/style/index.d.ts.map +1 -0
- package/lib/array-input/style/index.js +1 -0
- package/lib/array-input/style/index.js.map +1 -0
- package/lib/auth-context/index.js +0 -3
- package/lib/auth-context/style/index.d.ts +1 -0
- package/lib/auth-context/style/index.d.ts.map +1 -0
- package/lib/auth-context/style/index.js +1 -0
- package/lib/auth-context/style/index.js.map +1 -0
- package/lib/auto-complete/index.js +4 -10
- package/lib/avatar/index.js +4 -10
- package/lib/back-top/index.js +4 -10
- package/lib/badge/index.js +4 -10
- package/lib/breadcrumb/index.js +4 -10
- package/lib/button/index.js +4 -10
- package/lib/calendar/index.js +4 -10
- package/lib/card/index.js +4 -10
- package/lib/carousel/index.js +4 -10
- package/lib/cascader/index.js +4 -10
- package/lib/checkbox/index.js +4 -10
- package/lib/col/index.js +4 -10
- package/lib/collapse/index.js +4 -11
- package/lib/columns/index.js +14 -28
- package/lib/comment/index.js +4 -10
- package/lib/config-provider/config-provider.js +0 -2
- package/lib/config-provider/index.js +4 -10
- package/lib/date-picker/index.js +4 -10
- package/lib/descriptions/index.js +4 -10
- package/lib/development-login/LoginModal.js +25 -50
- package/lib/development-login/index.js +11 -22
- package/lib/development-login/style/index.d.ts +1 -0
- package/lib/development-login/style/index.d.ts.map +1 -0
- package/lib/development-login/style/index.js +1 -0
- package/lib/development-login/style/index.js.map +1 -0
- package/lib/divider/index.js +4 -10
- package/lib/drawer/drawer.js +6 -16
- package/lib/drawer/index.js +1 -5
- package/lib/dropdown/index.js +4 -10
- package/lib/ellipsis/Svg/CopySVG.js +0 -4
- package/lib/ellipsis/Svg/TickSVG.js +0 -4
- package/lib/ellipsis/index.js +42 -73
- package/lib/ellipsis/style/index.d.ts +1 -0
- package/lib/ellipsis/style/index.d.ts.map +1 -0
- package/lib/ellipsis/style/index.js +1 -0
- package/lib/ellipsis/style/index.js.map +1 -0
- package/lib/empty/empty.d.ts.map +1 -1
- package/lib/empty/empty.js +14 -31
- package/lib/empty/empty.js.map +1 -1
- package/lib/empty/empty.stories.js +3 -21
- package/lib/empty/index.js +1 -5
- package/lib/empty/render-empty.d.ts +3 -0
- package/lib/empty/render-empty.d.ts.map +1 -0
- package/lib/empty/render-empty.js +32 -0
- package/lib/empty/render-empty.js.map +1 -0
- package/lib/empty/style/index.d.ts +3 -0
- package/lib/empty/style/index.d.ts.map +1 -0
- package/lib/empty/style/index.js +4 -0
- package/lib/empty/style/index.js.map +1 -0
- package/lib/exception/exception.js +7 -14
- package/lib/exception/index.js +1 -4
- package/lib/form/index.js +4 -10
- package/lib/handle/index.js +19 -46
- package/lib/handle/style/index.d.ts +1 -0
- package/lib/handle/style/index.d.ts.map +1 -0
- package/lib/handle/style/index.js +1 -0
- package/lib/handle/style/index.js.map +1 -0
- package/lib/icon/index.js +4 -10
- package/lib/icon-list/style/index.d.ts +3 -0
- package/lib/icon-list/style/index.d.ts.map +1 -0
- package/lib/icon-list/style/index.js +8 -0
- package/lib/icon-list/style/index.js.map +1 -0
- package/lib/img/Contain.js +12 -23
- package/lib/img/Cover.js +31 -53
- package/lib/img/index.js +29 -47
- package/lib/img/style/index.d.ts +1 -0
- package/lib/img/style/index.d.ts.map +1 -0
- package/lib/img/style/index.js +1 -0
- package/lib/img/style/index.js.map +1 -0
- package/lib/index.js +100 -187
- package/lib/input/index.js +4 -10
- package/lib/input-number/index.js +4 -10
- package/lib/layout/index.js +4 -10
- package/lib/list/index.js +4 -10
- package/lib/loading-button/index.js +15 -32
- package/lib/loading-button/style/index.d.ts +1 -0
- package/lib/loading-button/style/index.d.ts.map +1 -0
- package/lib/loading-button/style/index.js +1 -0
- package/lib/loading-button/style/index.js.map +1 -0
- package/lib/locale/default.js +0 -5
- package/lib/locale/en_US.js +0 -4
- package/lib/locale/index.js +3 -6
- package/lib/locale/zh_CN.js +0 -4
- package/lib/locale-provider/index.js +4 -10
- package/lib/mention/index.js +4 -10
- package/lib/mentions/index.js +4 -10
- package/lib/menu/index.js +4 -10
- package/lib/message/index.js +4 -11
- package/lib/modal/index.js +4 -11
- package/lib/notification/index.js +4 -10
- package/lib/page/Box.js +24 -37
- package/lib/page/index.js +37 -66
- package/lib/page/style/index.d.ts +1 -0
- package/lib/page/style/index.d.ts.map +1 -0
- package/lib/page/style/index.js +1 -0
- package/lib/page/style/index.js.map +1 -0
- package/lib/page/utils.js +1 -9
- package/lib/page-header/index.js +4 -10
- package/lib/pagination/index.js +4 -10
- package/lib/popconfirm/index.js +4 -10
- package/lib/popover/index.js +4 -10
- package/lib/prev-locale.js +1 -10
- package/lib/progress/index.js +4 -10
- package/lib/query-form/Field/Checkbox.js +2 -11
- package/lib/query-form/Field/Select.js +27 -45
- package/lib/query-form/Field/SelectInput.js +21 -46
- package/lib/query-form/Field/fieldsMap.js +1 -12
- package/lib/query-form/Field/index.js +38 -70
- package/lib/query-form/createActions.js +0 -7
- package/lib/query-form/index.js +52 -121
- package/lib/query-form/style/index.d.ts +1 -0
- package/lib/query-form/style/index.d.ts.map +1 -0
- package/lib/query-form/style/index.js +1 -0
- package/lib/query-form/style/index.js.map +1 -0
- package/lib/query-form/useForm.js +0 -4
- package/lib/query-list-scene/List.js +58 -111
- package/lib/query-list-scene/QueryForm.js +37 -67
- package/lib/query-list-scene/QueryListScene.js +21 -42
- package/lib/query-list-scene/Title.js +1 -5
- package/lib/query-list-scene/Toolbar.js +8 -15
- package/lib/query-list-scene/createActions.js +0 -6
- package/lib/query-list-scene/index.js +0 -10
- package/lib/query-list-scene/style/index.d.ts +1 -0
- package/lib/query-list-scene/style/index.d.ts.map +1 -0
- package/lib/query-list-scene/style/index.js +1 -0
- package/lib/query-list-scene/style/index.js.map +1 -0
- package/lib/query-list-scene/useActions.js +0 -4
- package/lib/radio/index.js +4 -10
- package/lib/rate/index.js +4 -10
- package/lib/render-empty/index.js +0 -2
- package/lib/render-empty/render-empty.js +0 -8
- package/lib/render-empty/style/index.d.ts +2 -0
- package/lib/render-empty/style/index.d.ts.map +1 -0
- package/lib/render-empty/style/index.js +3 -0
- package/lib/render-empty/style/index.js.map +1 -0
- package/lib/result/index.js +4 -10
- package/lib/row/index.js +4 -10
- package/lib/select/index.js +4 -10
- package/lib/skeleton/index.js +4 -10
- package/lib/slider/index.js +4 -10
- package/lib/spin/index.js +4 -10
- package/lib/statistic/index.js +4 -10
- package/lib/steps/index.js +1 -5
- package/lib/steps/steps.js +12 -29
- package/lib/svg-components/illustration-403.js +3 -9
- package/lib/svg-components/illustration-404.js +3 -9
- package/lib/svg-components/illustration-500.js +3 -9
- package/lib/svg-components/illustration-empty.js +3 -9
- package/lib/svg-components/illustration-failure.js +3 -9
- package/lib/svg-components/illustration-no-access.js +3 -9
- package/lib/svg-components/illustration-no-chart.js +3 -9
- package/lib/svg-components/illustration-no-result.js +3 -9
- package/lib/svg-components/illustration-offline.js +3 -9
- package/lib/svg-components/illustration-success.js +3 -9
- package/lib/svg-components/index.js +0 -11
- package/lib/switch/index.js +4 -10
- package/lib/table/assets/image-loading-background.js +3 -9
- package/lib/table/assets/image-loading.js +3 -9
- package/lib/table/context.js +0 -2
- package/lib/table/hooks/index.js +1 -2
- package/lib/table/hooks/use-column-setting.js +8 -16
- package/lib/table/index.js +1 -5
- package/lib/table/style/index.d.ts +3 -0
- package/lib/table/style/index.d.ts.map +1 -0
- package/lib/table/style/index.js +4 -0
- package/lib/table/style/index.js.map +1 -0
- package/lib/table/table.js +34 -63
- package/lib/table/table.stories.js +2 -11
- package/lib/table/utils.js +2 -11
- package/lib/tabs/index.js +4 -10
- package/lib/tag/index.js +4 -10
- package/lib/time-picker/index.js +4 -10
- package/lib/timeline/index.js +4 -10
- package/lib/title/index.js +10 -20
- package/lib/title/style/index.d.ts +1 -0
- package/lib/title/style/index.d.ts.map +1 -0
- package/lib/title/style/index.js +1 -0
- package/lib/title/style/index.js.map +1 -0
- package/lib/tntd-cascader/AntdCascader/component/DisabledContext.js +4 -11
- package/lib/tntd-cascader/AntdCascader/component/FormItemInputContext.js +3 -8
- package/lib/tntd-cascader/AntdCascader/component/SizeContext.js +3 -8
- package/lib/tntd-cascader/AntdCascader/component/context.js +3 -9
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +4 -12
- package/lib/tntd-cascader/AntdCascader/component/getIcons.js +19 -37
- package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +8 -17
- package/lib/tntd-cascader/AntdCascader/config/utils.js +6 -15
- package/lib/tntd-cascader/AntdCascader/config/warning.js +7 -15
- package/lib/tntd-cascader/AntdCascader/index.js +80 -133
- package/lib/tntd-cascader/AntdCascader/interface.js +0 -3
- package/lib/tntd-cascader/index.js +0 -2
- package/lib/tntd-cascader/rc-cascader/Cascader.js +123 -188
- package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +11 -21
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +60 -88
- package/lib/tntd-cascader/rc-cascader/OptionList/index.js +65 -109
- package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +18 -33
- package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +56 -106
- package/lib/tntd-cascader/rc-cascader/context.js +3 -8
- package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +14 -31
- package/lib/tntd-cascader/rc-cascader/hooks/useEntities.js +5 -15
- package/lib/tntd-cascader/rc-cascader/hooks/useMissingValues.js +3 -11
- package/lib/tntd-cascader/rc-cascader/hooks/useRefFunc.js +3 -8
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +3 -15
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +26 -41
- package/lib/tntd-cascader/rc-cascader/index.js +0 -3
- package/lib/tntd-cascader/rc-cascader/utils/commonUtil.js +9 -20
- package/lib/tntd-cascader/rc-cascader/utils/treeUtil.js +0 -8
- package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +7 -14
- package/lib/tntd-icon/fonts/iconfont.js +7 -12
- package/lib/tntd-icon/index.js +6 -17
- package/lib/tntd-icon/style/index.d.ts +1 -0
- package/lib/tntd-icon/style/index.d.ts.map +1 -0
- package/lib/tntd-icon/style/index.js +1 -0
- package/lib/tntd-icon/style/index.js.map +1 -0
- package/lib/tntd-layout/ActionsContext.js +0 -3
- package/lib/tntd-layout/AppList.js +30 -105
- package/lib/tntd-layout/Application.js +22 -84
- package/lib/tntd-layout/Avatar.js +18 -72
- package/lib/tntd-layout/CompatibleLanguage.js +32 -105
- package/lib/tntd-layout/EnterpriseLayout/Avatar.js +24 -80
- package/lib/tntd-layout/EnterpriseLayout/Language.js +14 -45
- package/lib/tntd-layout/EnterpriseLayout/Theme.js +16 -46
- package/lib/tntd-layout/EnterpriseLayout/index.js +4 -12
- package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +45 -174
- package/lib/tntd-layout/GlobalNavigation/index.js +19 -70
- package/lib/tntd-layout/Header.js +20 -54
- package/lib/tntd-layout/HeaderActions.js +33 -64
- package/lib/tntd-layout/HeaderNavs.js +19 -59
- package/lib/tntd-layout/HeaderTabs.js +43 -111
- package/lib/tntd-layout/Iconfont.js +0 -5
- package/lib/tntd-layout/Language.js +14 -45
- package/lib/tntd-layout/Layout.js +74 -113
- package/lib/tntd-layout/Logo.js +14 -41
- package/lib/tntd-layout/OrgAppList.js +51 -119
- package/lib/tntd-layout/SideMenu.js +42 -120
- package/lib/tntd-layout/Theme.js +19 -71
- package/lib/tntd-layout/createActions.js +0 -5
- package/lib/tntd-layout/images/index.js +0 -28
- package/lib/tntd-layout/index.js +21 -49
- package/lib/tntd-layout/paaslayout/CompactSideMenu.js +29 -81
- package/lib/tntd-layout/paaslayout/Header.js +14 -47
- package/lib/tntd-layout/paaslayout/Logo.js +2 -19
- package/lib/tntd-layout/paaslayout/SideMenu.js +31 -82
- package/lib/tntd-layout/paaslayout/index.js +62 -108
- package/lib/tntd-layout/storage.d.ts +1 -1
- package/lib/tntd-layout/storage.d.ts.map +1 -1
- package/lib/tntd-layout/storage.js +3 -33
- package/lib/tntd-layout/style/index.d.ts +1 -0
- package/lib/tntd-layout/style/index.d.ts.map +1 -0
- package/lib/tntd-layout/style/index.js +1 -0
- package/lib/tntd-layout/style/index.js.map +1 -0
- package/lib/tntd-modal/index.js +32 -51
- package/lib/tntd-modal/style/index.d.ts +1 -0
- package/lib/tntd-modal/style/index.d.ts.map +1 -0
- package/lib/tntd-modal/style/index.js +1 -0
- package/lib/tntd-modal/style/index.js.map +1 -0
- package/lib/tntd-second-page/index.js +14 -24
- package/lib/tntd-select/DropDownWrap.js +24 -45
- package/lib/tntd-select/index.js +117 -206
- package/lib/tntd-select/style/index.d.ts +1 -0
- package/lib/tntd-select/style/index.d.ts.map +1 -0
- package/lib/tntd-select/style/index.js +1 -0
- package/lib/tntd-select/style/index.js.map +1 -0
- package/lib/tooltip/index.js +4 -10
- package/lib/transfer/index.js +4 -10
- package/lib/tree/index.js +4 -10
- package/lib/tree-select/index.js +4 -10
- package/lib/typography/index.js +4 -10
- package/lib/upload/index.js +4 -10
- package/lib/utils/checkAuth.js +4 -10
- package/lib/utils/findMenuInfoByPath.js +1 -7
- package/lib/utils/index.js +13 -41
- package/lib/version/index.js +4 -10
- package/package.json +7 -4
|
@@ -19,7 +19,6 @@ export default (() => {
|
|
|
19
19
|
getPagination: () => _get(data, 'pagination'),
|
|
20
20
|
setFormData: (formData, needSearch = true) => {
|
|
21
21
|
_set('formData', formData);
|
|
22
|
-
|
|
23
22
|
eventEmitter.emit('setFormData', formData, needSearch);
|
|
24
23
|
},
|
|
25
24
|
resetFormData: (needSearch = false) => {
|
|
@@ -27,12 +26,10 @@ export default (() => {
|
|
|
27
26
|
},
|
|
28
27
|
setTableDataSource: dataSource => {
|
|
29
28
|
_set('dataSource', dataSource);
|
|
30
|
-
|
|
31
29
|
eventEmitter.emit('setTableDataSource', dataSource);
|
|
32
30
|
},
|
|
33
31
|
setPagination: pagination => {
|
|
34
32
|
_set('pagination', pagination);
|
|
35
|
-
|
|
36
33
|
eventEmitter.emit('setPagination', pagination);
|
|
37
34
|
},
|
|
38
35
|
// 重置记忆数据,form、pagination
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/query-list-scene/style/index.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|
|
@@ -8,7 +8,6 @@ export const renderEmpty = componentName => React.createElement(ConfigConsumer,
|
|
|
8
8
|
return React.createElement(Empty, {
|
|
9
9
|
type: "no-result"
|
|
10
10
|
});
|
|
11
|
-
|
|
12
11
|
case 'Select':
|
|
13
12
|
case 'TreeSelect':
|
|
14
13
|
case 'Cascader':
|
|
@@ -17,7 +16,6 @@ export const renderEmpty = componentName => React.createElement(ConfigConsumer,
|
|
|
17
16
|
return React.createElement(Empty, {
|
|
18
17
|
size: "mini"
|
|
19
18
|
});
|
|
20
|
-
|
|
21
19
|
default:
|
|
22
20
|
return React.createElement(Empty, null);
|
|
23
21
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import 'antd/es/version/style';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/render-empty/style/index.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAA","sourcesContent":["import 'antd/es/version/style'\n"]}
|
package/es/steps/steps.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
var __rest = this && this.__rest || function (s, e) {
|
|
2
2
|
var t = {};
|
|
3
|
-
|
|
4
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
5
|
-
|
|
6
4
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
5
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
8
6
|
}
|
|
9
7
|
return t;
|
|
10
8
|
};
|
|
11
|
-
|
|
12
9
|
import classNames from 'classnames';
|
|
13
10
|
import React from 'react';
|
|
14
11
|
import { ConfigConsumer } from 'antd/es/config-provider';
|
|
@@ -16,14 +13,12 @@ import { default as AntdSteps } from 'antd/es/steps';
|
|
|
16
13
|
export * from 'antd/es/steps';
|
|
17
14
|
export function Steps(_a) {
|
|
18
15
|
var {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
16
|
+
className,
|
|
17
|
+
type,
|
|
18
|
+
children
|
|
19
|
+
} = _a,
|
|
20
|
+
rest = __rest(_a, ["className", "type", "children"]);
|
|
25
21
|
let navContainDesc = false;
|
|
26
|
-
|
|
27
22
|
if (children) {
|
|
28
23
|
if (Array.isArray(children)) {
|
|
29
24
|
navContainDesc = children.some(child => {
|
|
@@ -33,7 +28,6 @@ export function Steps(_a) {
|
|
|
33
28
|
});
|
|
34
29
|
}
|
|
35
30
|
}
|
|
36
|
-
|
|
37
31
|
return React.createElement(ConfigConsumer, null, ({
|
|
38
32
|
getPrefixCls
|
|
39
33
|
}) => {
|
|
@@ -48,14 +42,12 @@ export function Steps(_a) {
|
|
|
48
42
|
}, rest));
|
|
49
43
|
});
|
|
50
44
|
}
|
|
51
|
-
|
|
52
45
|
Steps.Step = function (_a) {
|
|
53
46
|
var {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
47
|
+
description,
|
|
48
|
+
className
|
|
49
|
+
} = _a,
|
|
50
|
+
rest = __rest(_a, ["description", "className"]);
|
|
59
51
|
return React.createElement(ConfigConsumer, null, ({
|
|
60
52
|
getPrefixCls
|
|
61
53
|
}) => {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
function SvgIllustration403(props, svgRef) {
|
|
4
3
|
return React.createElement("svg", Object.assign({
|
|
5
4
|
viewBox: "0 0 330 250",
|
|
@@ -207,7 +206,6 @@ function SvgIllustration403(props, svgRef) {
|
|
|
207
206
|
fillRule: "nonzero"
|
|
208
207
|
})))));
|
|
209
208
|
}
|
|
210
|
-
|
|
211
209
|
const ForwardRef = React.forwardRef(SvgIllustration403);
|
|
212
210
|
const MemoForwardRef = React.memo(ForwardRef);
|
|
213
211
|
export default MemoForwardRef;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
function SvgIllustration404(props, svgRef) {
|
|
4
3
|
return React.createElement("svg", Object.assign({
|
|
5
4
|
viewBox: "0 0 330 250",
|
|
@@ -291,7 +290,6 @@ function SvgIllustration404(props, svgRef) {
|
|
|
291
290
|
fill: "#D6DAE1"
|
|
292
291
|
}))));
|
|
293
292
|
}
|
|
294
|
-
|
|
295
293
|
const ForwardRef = React.forwardRef(SvgIllustration404);
|
|
296
294
|
const MemoForwardRef = React.memo(ForwardRef);
|
|
297
295
|
export default MemoForwardRef;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
function SvgIllustration500(props, svgRef) {
|
|
4
3
|
return React.createElement("svg", Object.assign({
|
|
5
4
|
viewBox: "0 0 330 250",
|
|
@@ -322,7 +321,6 @@ function SvgIllustration500(props, svgRef) {
|
|
|
322
321
|
d: "M77.945 35.44a1.074 1.074 0 002.112 0l.704-9.68A1.764 1.764 0 0079 24a1.81 1.81 0 00-1.76 1.936l.704 9.504zM79 38.08a1.76 1.76 0 101.76 1.76A1.663 1.663 0 0079 38.08z"
|
|
323
322
|
}))));
|
|
324
323
|
}
|
|
325
|
-
|
|
326
324
|
const ForwardRef = React.forwardRef(SvgIllustration500);
|
|
327
325
|
const MemoForwardRef = React.memo(ForwardRef);
|
|
328
326
|
export default MemoForwardRef;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
function SvgIllustrationEmpty(props, svgRef) {
|
|
4
3
|
return React.createElement("svg", Object.assign({
|
|
5
4
|
viewBox: "0 0 80 50",
|
|
@@ -55,7 +54,6 @@ function SvgIllustrationEmpty(props, svgRef) {
|
|
|
55
54
|
r: 5.186
|
|
56
55
|
})))));
|
|
57
56
|
}
|
|
58
|
-
|
|
59
57
|
const ForwardRef = React.forwardRef(SvgIllustrationEmpty);
|
|
60
58
|
const MemoForwardRef = React.memo(ForwardRef);
|
|
61
59
|
export default MemoForwardRef;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
function SvgIllustrationFailure(props, svgRef) {
|
|
4
3
|
return React.createElement("svg", Object.assign({
|
|
5
4
|
viewBox: "0 0 160 160",
|
|
@@ -113,7 +112,6 @@ function SvgIllustrationFailure(props, svgRef) {
|
|
|
113
112
|
fillRule: "nonzero"
|
|
114
113
|
})));
|
|
115
114
|
}
|
|
116
|
-
|
|
117
115
|
const ForwardRef = React.forwardRef(SvgIllustrationFailure);
|
|
118
116
|
const MemoForwardRef = React.memo(ForwardRef);
|
|
119
117
|
export default MemoForwardRef;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
function SvgIllustrationNoAccess(props, svgRef) {
|
|
4
3
|
return React.createElement("svg", Object.assign({
|
|
5
4
|
viewBox: "0 0 161 160",
|
|
@@ -115,7 +114,6 @@ function SvgIllustrationNoAccess(props, svgRef) {
|
|
|
115
114
|
fillRule: "nonzero"
|
|
116
115
|
})));
|
|
117
116
|
}
|
|
118
|
-
|
|
119
117
|
const ForwardRef = React.forwardRef(SvgIllustrationNoAccess);
|
|
120
118
|
const MemoForwardRef = React.memo(ForwardRef);
|
|
121
119
|
export default MemoForwardRef;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
function SvgIllustrationNoChart(props, svgRef) {
|
|
4
3
|
return React.createElement("svg", Object.assign({
|
|
5
4
|
viewBox: "0 0 160 160",
|
|
@@ -135,7 +134,6 @@ function SvgIllustrationNoChart(props, svgRef) {
|
|
|
135
134
|
fillRule: "nonzero"
|
|
136
135
|
}))));
|
|
137
136
|
}
|
|
138
|
-
|
|
139
137
|
const ForwardRef = React.forwardRef(SvgIllustrationNoChart);
|
|
140
138
|
const MemoForwardRef = React.memo(ForwardRef);
|
|
141
139
|
export default MemoForwardRef;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
function SvgIllustrationNoResult(props, svgRef) {
|
|
4
3
|
return React.createElement("svg", Object.assign({
|
|
5
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -93,7 +92,6 @@ function SvgIllustrationNoResult(props, svgRef) {
|
|
|
93
92
|
d: "M34.233 7.963l-6.1-5.033m-1.87 10.522l-6.13-1.522"
|
|
94
93
|
}))));
|
|
95
94
|
}
|
|
96
|
-
|
|
97
95
|
const ForwardRef = React.forwardRef(SvgIllustrationNoResult);
|
|
98
96
|
const MemoForwardRef = React.memo(ForwardRef);
|
|
99
97
|
export default MemoForwardRef;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
function SvgIllustrationOffline(props, svgRef) {
|
|
4
3
|
return React.createElement("svg", Object.assign({
|
|
5
4
|
viewBox: "0 0 160 160",
|
|
@@ -132,7 +131,6 @@ function SvgIllustrationOffline(props, svgRef) {
|
|
|
132
131
|
fill: "#18263C"
|
|
133
132
|
})))));
|
|
134
133
|
}
|
|
135
|
-
|
|
136
134
|
const ForwardRef = React.forwardRef(SvgIllustrationOffline);
|
|
137
135
|
const MemoForwardRef = React.memo(ForwardRef);
|
|
138
136
|
export default MemoForwardRef;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
function SvgIllustrationSuccess(props, svgRef) {
|
|
4
3
|
return React.createElement("svg", Object.assign({
|
|
5
4
|
viewBox: "0 0 160 160",
|
|
@@ -138,7 +137,6 @@ function SvgIllustrationSuccess(props, svgRef) {
|
|
|
138
137
|
fillRule: "nonzero"
|
|
139
138
|
}))));
|
|
140
139
|
}
|
|
141
|
-
|
|
142
140
|
const ForwardRef = React.forwardRef(SvgIllustrationSuccess);
|
|
143
141
|
const MemoForwardRef = React.memo(ForwardRef);
|
|
144
142
|
export default MemoForwardRef;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
function SvgTableLoading(props, svgRef) {
|
|
4
3
|
return React.createElement("svg", Object.assign({
|
|
5
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -46,7 +45,6 @@ function SvgTableLoading(props, svgRef) {
|
|
|
46
45
|
d: "M54.056 49.364v33m22-33v33"
|
|
47
46
|
})));
|
|
48
47
|
}
|
|
49
|
-
|
|
50
48
|
const ForwardRef = React.forwardRef(SvgTableLoading);
|
|
51
49
|
const MemoForwardRef = React.memo(ForwardRef);
|
|
52
50
|
export default MemoForwardRef;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
2
|
function SvgTableLoading(props, svgRef) {
|
|
4
3
|
return React.createElement("svg", Object.assign({
|
|
5
4
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -27,7 +26,6 @@ function SvgTableLoading(props, svgRef) {
|
|
|
27
26
|
keyTimes: "0;1"
|
|
28
27
|
})));
|
|
29
28
|
}
|
|
30
|
-
|
|
31
29
|
const ForwardRef = React.forwardRef(SvgTableLoading);
|
|
32
30
|
const MemoForwardRef = React.memo(ForwardRef);
|
|
33
31
|
export default MemoForwardRef;
|
|
@@ -6,7 +6,6 @@ export const useColumnSetting = (columns, storageKey) => {
|
|
|
6
6
|
if (!columnSetting || columnSetting.length === 0) {
|
|
7
7
|
return columns;
|
|
8
8
|
}
|
|
9
|
-
|
|
10
9
|
return columns.filter(column => columnSetting.some(setting => setting.key === column.key)).sort((a, b) => {
|
|
11
10
|
const aIndex = columnSetting.find(setting => setting.key === a.key);
|
|
12
11
|
const bIndex = columnSetting.find(setting => setting.key === b.key);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/table/style/index.ts"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAA;AAC5B,OAAO,cAAc,CAAA","sourcesContent":["import 'antd/es/table/style'\nimport './table.less'\n"]}
|
package/es/table/table.js
CHANGED
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
var __rest = this && this.__rest || function (s, e) {
|
|
2
2
|
var t = {};
|
|
3
|
-
|
|
4
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
5
|
-
|
|
6
4
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
5
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
8
6
|
}
|
|
9
7
|
return t;
|
|
10
8
|
};
|
|
11
|
-
|
|
12
9
|
import { useLocalStorage } from '@stellaris/hooks';
|
|
13
10
|
import { ConfigConsumer } from 'antd/es/config-provider';
|
|
14
11
|
import LocaleReceiver from 'antd/es/locale-provider/LocaleReceiver';
|
|
@@ -23,21 +20,20 @@ import { useColumnSetting } from './hooks';
|
|
|
23
20
|
import { normalizeColumns } from './utils';
|
|
24
21
|
export const Table = _a => {
|
|
25
22
|
var {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
23
|
+
className,
|
|
24
|
+
locale,
|
|
25
|
+
bordered,
|
|
26
|
+
refresh,
|
|
27
|
+
size,
|
|
28
|
+
storageKey,
|
|
29
|
+
columns,
|
|
30
|
+
children,
|
|
31
|
+
pagination = {
|
|
32
|
+
showTotal: total => `共 ${total} 条记录`
|
|
33
|
+
},
|
|
34
|
+
enableToolbar = false
|
|
35
|
+
} = _a,
|
|
36
|
+
rest = __rest(_a, ["className", "locale", "bordered", "refresh", "size", "storageKey", "columns", "children", "pagination", "enableToolbar"]);
|
|
41
37
|
const tableContainer = useRef(null);
|
|
42
38
|
const [innerSize, setInnerSize] = useLocalStorage(TABLE_SIZE_STORAGE_KEY, 'default');
|
|
43
39
|
const normalizedColumns = useMemo(() => columns || normalizeColumns(children), [children, columns]);
|
|
@@ -45,7 +41,6 @@ export const Table = _a => {
|
|
|
45
41
|
/**
|
|
46
42
|
* update the innerSize when props size changes
|
|
47
43
|
*/
|
|
48
|
-
|
|
49
44
|
useEffect(() => {
|
|
50
45
|
if (size) {
|
|
51
46
|
setInnerSize(size);
|
|
@@ -18,13 +18,11 @@ export default {
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
|
|
22
21
|
const Template = args => React.createElement("div", {
|
|
23
22
|
style: {
|
|
24
23
|
marginTop: '20px'
|
|
25
24
|
}
|
|
26
25
|
}, React.createElement(Table, Object.assign({}, args)));
|
|
27
|
-
|
|
28
26
|
export const Empty = Template.bind({});
|
|
29
27
|
Empty.args = {
|
|
30
28
|
columns: [{
|
package/es/table/utils.js
CHANGED
|
@@ -5,18 +5,14 @@ export function normalizeColumns(elements) {
|
|
|
5
5
|
if (!React.isValidElement(element)) {
|
|
6
6
|
return;
|
|
7
7
|
}
|
|
8
|
-
|
|
9
8
|
const column = Object.assign({}, element.props);
|
|
10
|
-
|
|
11
9
|
if (element.key) {
|
|
12
10
|
column.key = element.key;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
}
|
|
12
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
16
13
|
if (element.type && element.type.__ANT_TABLE_COLUMN_GROUP) {
|
|
17
14
|
column.children = normalizeColumns(column.children);
|
|
18
15
|
}
|
|
19
|
-
|
|
20
16
|
columns.push(column);
|
|
21
17
|
});
|
|
22
18
|
return columns;
|
package/es/title/index.js
CHANGED
|
@@ -1,30 +1,26 @@
|
|
|
1
1
|
var __rest = this && this.__rest || function (s, e) {
|
|
2
2
|
var t = {};
|
|
3
|
-
|
|
4
3
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
5
|
-
|
|
6
4
|
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
5
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
8
6
|
}
|
|
9
7
|
return t;
|
|
10
8
|
};
|
|
11
|
-
|
|
12
9
|
import React from 'react';
|
|
13
10
|
import cn from 'classnames';
|
|
14
11
|
import './index.less';
|
|
15
12
|
export default (props => {
|
|
16
13
|
const _a = props || {},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
14
|
+
{
|
|
15
|
+
title = '暂无标题',
|
|
16
|
+
subTitle,
|
|
17
|
+
size = 'default',
|
|
18
|
+
extra,
|
|
19
|
+
number,
|
|
20
|
+
simple,
|
|
21
|
+
style
|
|
22
|
+
} = _a,
|
|
23
|
+
rest = __rest(_a, ["title", "subTitle", "size", "extra", "number", "simple", "style"]);
|
|
28
24
|
return React.createElement("div", {
|
|
29
25
|
className: cn('tnt-title', size, {
|
|
30
26
|
'has-number': number
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/title/style/index.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
|
|
3
2
|
const defaultGetPrefixCls = (suffixCls, customizePrefixCls) => {
|
|
4
3
|
if (customizePrefixCls) return customizePrefixCls;
|
|
5
4
|
return suffixCls ? `tntd-${suffixCls}` : 'tntd';
|
|
6
5
|
};
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
export const defaultIconPrefixCls = 'anticon';
|
|
7
|
+
// zombieJ: 🚨 Do not pass `defaultRenderEmpty` here since it will case circular dependency.
|
|
10
8
|
export const ConfigContext = React.createContext({
|
|
11
9
|
// We provide a default function for Context without provider
|
|
12
10
|
getPrefixCls: defaultGetPrefixCls
|
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
import * as React from 'react';
|
|
9
9
|
import { ConfigConsumer } from './context';
|
|
10
10
|
import LocaleReceiver from 'antd/es/locale-provider/LocaleReceiver';
|
|
11
|
-
|
|
12
11
|
const defaultRenderEmpty = conponentName => React.createElement(ConfigConsumer, null, ({
|
|
13
12
|
getPrefixCls
|
|
14
13
|
}) => {
|
|
@@ -30,5 +29,4 @@ const defaultRenderEmpty = conponentName => React.createElement(ConfigConsumer,
|
|
|
30
29
|
}, locale.noDate));
|
|
31
30
|
});
|
|
32
31
|
});
|
|
33
|
-
|
|
34
32
|
export default defaultRenderEmpty;
|
|
@@ -17,13 +17,11 @@ export default function getIcons({
|
|
|
17
17
|
const mergedClearIcon = clearIcon !== null && clearIcon !== void 0 ? clearIcon : React.createElement(_Icon, {
|
|
18
18
|
type: "close-circle",
|
|
19
19
|
theme: "filled"
|
|
20
|
-
});
|
|
21
|
-
|
|
22
|
-
const getSuffixIconNode = arrowIcon => React.createElement(React.Fragment, null, showArrow !== false && arrowIcon, hasFeedback && feedbackIcon);
|
|
23
|
-
|
|
24
|
-
|
|
20
|
+
});
|
|
21
|
+
// Validation Feedback Icon
|
|
22
|
+
const getSuffixIconNode = arrowIcon => React.createElement(React.Fragment, null, showArrow !== false && arrowIcon, hasFeedback && feedbackIcon);
|
|
23
|
+
// Arrow item icon
|
|
25
24
|
let mergedSuffixIcon = null;
|
|
26
|
-
|
|
27
25
|
if (suffixIcon !== undefined) {
|
|
28
26
|
mergedSuffixIcon = getSuffixIconNode(suffixIcon);
|
|
29
27
|
} else if (loading) {
|
|
@@ -32,7 +30,6 @@ export default function getIcons({
|
|
|
32
30
|
}));
|
|
33
31
|
} else {
|
|
34
32
|
const iconCls = `${prefixCls}-suffix`;
|
|
35
|
-
|
|
36
33
|
mergedSuffixIcon = ({
|
|
37
34
|
open,
|
|
38
35
|
showSearch
|
|
@@ -43,17 +40,14 @@ export default function getIcons({
|
|
|
43
40
|
type: "search"
|
|
44
41
|
}));
|
|
45
42
|
}
|
|
46
|
-
|
|
47
43
|
return getSuffixIconNode(React.createElement(_Icon, {
|
|
48
44
|
className: iconCls,
|
|
49
45
|
type: "down"
|
|
50
46
|
}));
|
|
51
47
|
};
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
}
|
|
49
|
+
// Checked item icon
|
|
55
50
|
let mergedItemIcon = null;
|
|
56
|
-
|
|
57
51
|
if (menuItemSelectedIcon !== undefined) {
|
|
58
52
|
mergedItemIcon = menuItemSelectedIcon;
|
|
59
53
|
} else if (multiple) {
|
|
@@ -63,9 +57,7 @@ export default function getIcons({
|
|
|
63
57
|
} else {
|
|
64
58
|
mergedItemIcon = null;
|
|
65
59
|
}
|
|
66
|
-
|
|
67
60
|
let mergedRemoveIcon = null;
|
|
68
|
-
|
|
69
61
|
if (removeIcon !== undefined) {
|
|
70
62
|
mergedRemoveIcon = removeIcon;
|
|
71
63
|
} else {
|
|
@@ -73,7 +65,6 @@ export default function getIcons({
|
|
|
73
65
|
type: "close"
|
|
74
66
|
});
|
|
75
67
|
}
|
|
76
|
-
|
|
77
68
|
return {
|
|
78
69
|
clearIcon: mergedClearIcon,
|
|
79
70
|
suffixIcon: mergedSuffixIcon,
|
|
@@ -3,14 +3,12 @@ export const getTransitionDirection = placement => {
|
|
|
3
3
|
if (placement !== undefined && (placement === 'topLeft' || placement === 'topRight')) {
|
|
4
4
|
return `slide-down`;
|
|
5
5
|
}
|
|
6
|
-
|
|
7
6
|
return `slide-up`;
|
|
8
7
|
};
|
|
9
8
|
export const getTransitionName = (rootPrefixCls, motion, transitionName) => {
|
|
10
9
|
if (transitionName !== undefined) {
|
|
11
10
|
return transitionName;
|
|
12
11
|
}
|
|
13
|
-
|
|
14
12
|
return `${rootPrefixCls}-${motion}`;
|
|
15
13
|
};
|
|
16
14
|
export function getStatusClassNames(prefixCls, status, hasFeedback) {
|
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import rcWarning, { resetWarned } from 'rc-util/lib/warning';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
function noop() {}
|
|
3
|
+
// eslint-disable-next-line import/no-mutable-exports
|
|
6
4
|
let warning = noop;
|
|
7
|
-
|
|
8
5
|
if (process.env.NODE_ENV !== 'production') {
|
|
9
6
|
warning = (valid, component, message) => {
|
|
10
|
-
rcWarning(valid, `[antd: ${component}] ${message}`);
|
|
11
|
-
|
|
7
|
+
rcWarning(valid, `[antd: ${component}] ${message}`);
|
|
8
|
+
// StrictMode will inject console which will not throw warning in React 17.
|
|
12
9
|
if (process.env.NODE_ENV === 'test') {
|
|
13
10
|
resetWarned();
|
|
14
11
|
}
|
|
15
12
|
};
|
|
16
13
|
}
|
|
17
|
-
|
|
18
14
|
export default warning;
|