tntd 2.0.13 → 2.0.14
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 +31 -6
- package/es/columns/index.js +12 -6
- package/es/development-login/LoginModal.js +10 -4
- package/es/drawer/drawer.js +8 -4
- package/es/ellipsis/index.js +25 -14
- package/es/empty/empty.js +13 -9
- package/es/handle/index.js +27 -14
- package/es/img/Contain.js +19 -13
- package/es/img/Cover.js +24 -13
- package/es/img/index.js +21 -14
- package/es/index.js +1 -0
- package/es/loading-button/index.js +13 -6
- package/es/locale/default.js +2 -0
- package/es/locale/en_US.js +2 -0
- package/es/locale/zh_CN.js +2 -0
- package/es/page/Box.js +28 -19
- package/es/page/index.js +38 -22
- package/es/page/utils.js +5 -0
- package/es/prev-locale.js +3 -0
- package/es/query-form/Field/Checkbox.js +8 -4
- package/es/query-form/Field/Select.js +17 -10
- package/es/query-form/Field/SelectInput.js +18 -4
- package/es/query-form/Field/fieldsMap.js +1 -0
- package/es/query-form/Field/index.js +11 -2
- package/es/query-form/createActions.js +8 -0
- package/es/query-form/index.js +34 -2
- package/es/query-list-scene/List.js +39 -18
- package/es/query-list-scene/QueryForm.js +19 -10
- package/es/query-list-scene/QueryListScene.js +2 -0
- package/es/query-list-scene/Toolbar.js +10 -6
- package/es/query-list-scene/createActions.js +3 -0
- package/es/render-empty/render-empty.js +2 -0
- package/es/steps/steps.js +17 -9
- package/es/steps/style/nav.less +3 -1
- package/es/svg-components/illustration-403.js +2 -0
- package/es/svg-components/illustration-404.js +2 -0
- package/es/svg-components/illustration-500.js +2 -0
- package/es/svg-components/illustration-empty.js +2 -0
- package/es/svg-components/illustration-failure.js +2 -0
- package/es/svg-components/illustration-no-access.js +2 -0
- package/es/svg-components/illustration-no-chart.js +2 -0
- package/es/svg-components/illustration-no-result.js +2 -0
- package/es/svg-components/illustration-offline.js +2 -0
- package/es/svg-components/illustration-success.js +2 -0
- package/es/table/assets/image-loading-background.js +2 -0
- package/es/table/assets/image-loading.js +2 -0
- package/es/table/hooks/use-column-setting.js +1 -0
- package/es/table/table.js +19 -14
- package/es/table/table.stories.js +2 -0
- package/es/table/utils.js +6 -2
- package/es/title/index.js +14 -10
- package/es/tntd-cascader/AntdCascader/component/context.js +4 -2
- package/es/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +2 -0
- package/es/tntd-cascader/AntdCascader/component/getIcons.js +15 -6
- package/es/tntd-cascader/AntdCascader/config/utils.js +2 -0
- package/es/tntd-cascader/AntdCascader/config/warning.js +8 -4
- package/es/tntd-cascader/AntdCascader/index.js +73 -51
- package/es/tntd-cascader/rc-cascader/Cascader.js +113 -86
- package/es/tntd-cascader/rc-cascader/OptionList/Column.js +26 -16
- package/es/tntd-cascader/rc-cascader/OptionList/index.js +43 -26
- package/es/tntd-cascader/rc-cascader/OptionList/useActive.js +7 -5
- package/es/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +41 -12
- package/es/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +10 -4
- package/es/tntd-cascader/rc-cascader/hooks/useEntities.js +4 -2
- package/es/tntd-cascader/rc-cascader/hooks/useMissingValues.js +1 -0
- package/es/tntd-cascader/rc-cascader/hooks/useRefFunc.js +1 -0
- package/es/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +7 -2
- package/es/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +15 -8
- package/es/tntd-cascader/rc-cascader/utils/commonUtil.js +6 -2
- package/es/tntd-cascader/rc-cascader/utils/treeUtil.js +4 -2
- package/es/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +7 -2
- package/es/tntd-icon/fonts/iconfont.js +12 -7
- package/es/tntd-icon/index.js +9 -5
- package/es/tntd-layout/ActionsContext.js +2 -2
- package/es/tntd-layout/AppList.js +14 -2
- package/es/tntd-layout/Application.js +4 -0
- package/es/tntd-layout/Avatar.js +4 -0
- package/es/tntd-layout/CompatibleLanguage.js +13 -0
- package/es/tntd-layout/EnterpriseLayout/Avatar.js +4 -0
- package/es/tntd-layout/EnterpriseLayout/Language.js +6 -0
- package/es/tntd-layout/EnterpriseLayout/Theme.js +4 -0
- package/es/tntd-layout/EnterpriseLayout/index.js +2 -2
- package/es/tntd-layout/GlobalNavigation/NavigationPopup.js +33 -2
- package/es/tntd-layout/GlobalNavigation/index.js +6 -0
- package/es/tntd-layout/HeaderActions.js +32 -28
- package/es/tntd-layout/HeaderNavs.js +14 -6
- package/es/tntd-layout/HeaderTabs.js +35 -14
- package/es/tntd-layout/Language.js +6 -0
- package/es/tntd-layout/Layout.js +7 -2
- package/es/tntd-layout/Logo.js +11 -4
- package/es/tntd-layout/OrgAppList.js +39 -22
- package/es/tntd-layout/SideMenu.js +45 -8
- package/es/tntd-layout/Theme.js +6 -0
- package/es/tntd-layout/index.js +17 -9
- package/es/tntd-layout/paaslayout/CompactSideMenu.js +15 -0
- package/es/tntd-layout/paaslayout/SideMenu.js +15 -0
- package/es/tntd-layout/paaslayout/index.js +13 -4
- package/es/tntd-layout/storage.js +2 -2
- package/es/tntd-modal/index.js +18 -12
- package/es/tntd-second-page/index.js +3 -0
- package/es/tntd-select/DropDownWrap.js +8 -4
- package/es/tntd-select/index.js +118 -74
- package/es/utils/checkAuth.js +1 -0
- package/es/utils/findMenuInfoByPath.js +3 -0
- package/es/utils/index.js +11 -2
- package/lib/affix/index.js +10 -4
- package/lib/alert/index.js +10 -4
- package/lib/anchor/index.js +10 -4
- package/lib/array-input/icon.js +7 -1
- package/lib/array-input/index.js +91 -41
- package/lib/auth-context/index.js +3 -0
- package/lib/auto-complete/index.js +10 -4
- package/lib/avatar/index.js +10 -4
- package/lib/back-top/index.js +10 -4
- package/lib/badge/index.js +10 -4
- package/lib/breadcrumb/index.js +10 -4
- package/lib/button/index.js +10 -4
- package/lib/calendar/index.js +10 -4
- package/lib/card/index.js +10 -4
- package/lib/carousel/index.js +10 -4
- package/lib/cascader/index.js +10 -4
- package/lib/checkbox/index.js +10 -4
- package/lib/col/index.js +10 -4
- package/lib/collapse/index.js +11 -4
- package/lib/columns/index.js +28 -14
- package/lib/comment/index.js +10 -4
- package/lib/config-provider/config-provider.js +2 -0
- package/lib/config-provider/index.js +10 -4
- package/lib/date-picker/index.js +10 -4
- package/lib/descriptions/index.js +10 -4
- package/lib/development-login/LoginModal.js +50 -25
- package/lib/development-login/index.js +22 -11
- package/lib/divider/index.js +10 -4
- package/lib/drawer/drawer.js +16 -6
- package/lib/drawer/index.js +5 -1
- package/lib/dropdown/index.js +10 -4
- package/lib/ellipsis/Svg/CopySVG.js +4 -0
- package/lib/ellipsis/Svg/TickSVG.js +4 -0
- package/lib/ellipsis/index.js +73 -42
- package/lib/empty/empty.js +30 -14
- package/lib/empty/empty.stories.js +21 -3
- package/lib/empty/index.js +5 -1
- package/lib/exception/exception.js +14 -7
- package/lib/exception/index.js +4 -1
- package/lib/form/index.js +10 -4
- package/lib/handle/index.js +46 -19
- package/lib/icon/index.js +10 -4
- package/lib/img/Contain.js +23 -12
- package/lib/img/Cover.js +53 -31
- package/lib/img/index.js +47 -29
- package/lib/index.js +187 -100
- package/lib/input/index.js +10 -4
- package/lib/input-number/index.js +10 -4
- package/lib/layout/index.js +10 -4
- package/lib/list/index.js +10 -4
- package/lib/loading-button/index.js +32 -15
- package/lib/locale/default.js +5 -0
- package/lib/locale/en_US.js +4 -0
- package/lib/locale/index.js +6 -3
- package/lib/locale/zh_CN.js +4 -0
- package/lib/locale-provider/index.js +10 -4
- package/lib/mention/index.js +10 -4
- package/lib/mentions/index.js +10 -4
- package/lib/menu/index.js +10 -4
- package/lib/message/index.js +11 -4
- package/lib/modal/index.js +11 -4
- package/lib/notification/index.js +10 -4
- package/lib/page/Box.js +37 -24
- package/lib/page/index.js +66 -37
- package/lib/page/utils.js +9 -1
- package/lib/page-header/index.js +10 -4
- package/lib/pagination/index.js +10 -4
- package/lib/popconfirm/index.js +10 -4
- package/lib/popover/index.js +10 -4
- package/lib/prev-locale.js +10 -1
- package/lib/progress/index.js +10 -4
- package/lib/query-form/Field/Checkbox.js +11 -2
- package/lib/query-form/Field/Select.js +45 -27
- package/lib/query-form/Field/SelectInput.js +46 -21
- package/lib/query-form/Field/fieldsMap.js +12 -1
- package/lib/query-form/Field/index.js +70 -38
- package/lib/query-form/createActions.js +7 -0
- package/lib/query-form/index.js +121 -52
- package/lib/query-form/useForm.js +4 -0
- package/lib/query-list-scene/List.js +111 -58
- package/lib/query-list-scene/QueryForm.js +67 -37
- package/lib/query-list-scene/QueryListScene.js +42 -21
- package/lib/query-list-scene/Title.js +5 -1
- package/lib/query-list-scene/Toolbar.js +15 -8
- package/lib/query-list-scene/createActions.js +6 -0
- package/lib/query-list-scene/index.js +10 -0
- package/lib/query-list-scene/useActions.js +4 -0
- package/lib/radio/index.js +10 -4
- package/lib/rate/index.js +10 -4
- package/lib/render-empty/index.js +2 -0
- package/lib/render-empty/render-empty.js +8 -0
- package/lib/result/index.js +10 -4
- package/lib/row/index.js +10 -4
- package/lib/select/index.js +10 -4
- package/lib/skeleton/index.js +10 -4
- package/lib/slider/index.js +10 -4
- package/lib/spin/index.js +10 -4
- package/lib/statistic/index.js +10 -4
- package/lib/steps/index.js +5 -1
- package/lib/steps/steps.js +29 -12
- package/lib/steps/style/nav.less +3 -1
- package/lib/svg-components/illustration-403.js +9 -3
- package/lib/svg-components/illustration-404.js +9 -3
- package/lib/svg-components/illustration-500.js +9 -3
- package/lib/svg-components/illustration-empty.js +9 -3
- package/lib/svg-components/illustration-failure.js +9 -3
- package/lib/svg-components/illustration-no-access.js +9 -3
- package/lib/svg-components/illustration-no-chart.js +9 -3
- package/lib/svg-components/illustration-no-result.js +9 -3
- package/lib/svg-components/illustration-offline.js +9 -3
- package/lib/svg-components/illustration-success.js +9 -3
- package/lib/svg-components/index.js +11 -0
- package/lib/switch/index.js +10 -4
- package/lib/table/assets/image-loading-background.js +9 -3
- package/lib/table/assets/image-loading.js +9 -3
- package/lib/table/context.js +2 -0
- package/lib/table/hooks/index.js +2 -1
- package/lib/table/hooks/use-column-setting.js +16 -8
- package/lib/table/index.js +5 -1
- package/lib/table/table.js +63 -34
- package/lib/table/table.stories.js +11 -2
- package/lib/table/utils.js +11 -2
- package/lib/tabs/index.js +10 -4
- package/lib/tag/index.js +10 -4
- package/lib/time-picker/index.js +10 -4
- package/lib/timeline/index.js +10 -4
- package/lib/title/index.js +20 -10
- package/lib/tntd-cascader/AntdCascader/component/DisabledContext.js +11 -4
- package/lib/tntd-cascader/AntdCascader/component/FormItemInputContext.js +8 -3
- package/lib/tntd-cascader/AntdCascader/component/SizeContext.js +8 -3
- package/lib/tntd-cascader/AntdCascader/component/context.js +9 -3
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +12 -4
- package/lib/tntd-cascader/AntdCascader/component/getIcons.js +37 -19
- package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +17 -8
- package/lib/tntd-cascader/AntdCascader/config/utils.js +15 -6
- package/lib/tntd-cascader/AntdCascader/config/warning.js +15 -7
- package/lib/tntd-cascader/AntdCascader/index.js +133 -80
- package/lib/tntd-cascader/AntdCascader/interface.js +3 -0
- package/lib/tntd-cascader/index.js +2 -0
- package/lib/tntd-cascader/rc-cascader/Cascader.js +188 -123
- package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +21 -11
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +88 -60
- package/lib/tntd-cascader/rc-cascader/OptionList/index.js +109 -65
- package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +33 -18
- package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +106 -56
- package/lib/tntd-cascader/rc-cascader/context.js +8 -3
- package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +31 -14
- package/lib/tntd-cascader/rc-cascader/hooks/useEntities.js +15 -5
- package/lib/tntd-cascader/rc-cascader/hooks/useMissingValues.js +11 -3
- package/lib/tntd-cascader/rc-cascader/hooks/useRefFunc.js +8 -3
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +15 -3
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +41 -26
- package/lib/tntd-cascader/rc-cascader/index.js +3 -0
- package/lib/tntd-cascader/rc-cascader/utils/commonUtil.js +20 -9
- package/lib/tntd-cascader/rc-cascader/utils/treeUtil.js +8 -0
- package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +14 -7
- package/lib/tntd-icon/fonts/iconfont.js +12 -7
- package/lib/tntd-icon/index.js +17 -6
- package/lib/tntd-layout/ActionsContext.js +3 -0
- package/lib/tntd-layout/AppList.js +105 -30
- package/lib/tntd-layout/Application.js +84 -22
- package/lib/tntd-layout/Avatar.js +72 -18
- package/lib/tntd-layout/CompatibleLanguage.js +105 -32
- package/lib/tntd-layout/EnterpriseLayout/Avatar.js +80 -24
- package/lib/tntd-layout/EnterpriseLayout/Language.js +45 -14
- package/lib/tntd-layout/EnterpriseLayout/Theme.js +46 -16
- package/lib/tntd-layout/EnterpriseLayout/index.js +12 -4
- package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +174 -45
- package/lib/tntd-layout/GlobalNavigation/index.js +70 -19
- package/lib/tntd-layout/Header.js +54 -20
- package/lib/tntd-layout/HeaderActions.js +64 -33
- package/lib/tntd-layout/HeaderNavs.js +59 -19
- package/lib/tntd-layout/HeaderTabs.js +111 -43
- package/lib/tntd-layout/Iconfont.js +5 -0
- package/lib/tntd-layout/Language.js +45 -14
- package/lib/tntd-layout/Layout.js +113 -74
- package/lib/tntd-layout/Logo.js +41 -14
- package/lib/tntd-layout/OrgAppList.js +119 -51
- package/lib/tntd-layout/SideMenu.js +120 -42
- package/lib/tntd-layout/Theme.js +71 -19
- package/lib/tntd-layout/createActions.js +5 -0
- package/lib/tntd-layout/images/index.js +28 -0
- package/lib/tntd-layout/index.js +49 -21
- package/lib/tntd-layout/paaslayout/CompactSideMenu.js +81 -29
- package/lib/tntd-layout/paaslayout/Header.js +47 -14
- package/lib/tntd-layout/paaslayout/Logo.js +19 -2
- package/lib/tntd-layout/paaslayout/SideMenu.js +82 -31
- package/lib/tntd-layout/paaslayout/index.js +108 -62
- 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 +33 -3
- package/lib/tntd-modal/index.js +51 -32
- package/lib/tntd-second-page/index.js +24 -14
- package/lib/tntd-select/DropDownWrap.js +45 -24
- package/lib/tntd-select/index.js +206 -117
- package/lib/tooltip/index.js +10 -4
- package/lib/transfer/index.js +10 -4
- package/lib/tree/index.js +10 -4
- package/lib/tree-select/index.js +10 -4
- package/lib/typography/index.js +10 -4
- package/lib/upload/index.js +10 -4
- package/lib/utils/checkAuth.js +10 -4
- package/lib/utils/findMenuInfoByPath.js +7 -1
- package/lib/utils/index.js +41 -13
- package/lib/version/index.js +10 -4
- package/package.json +1 -1
- package/es/array-input/style/index.js +0 -1
- package/es/array-input/style/index.js.map +0 -1
- package/es/auth-context/style/index.js +0 -1
- package/es/auth-context/style/index.js.map +0 -1
- package/es/development-login/style/index.js +0 -1
- package/es/development-login/style/index.js.map +0 -1
- package/es/ellipsis/style/index.js +0 -1
- package/es/ellipsis/style/index.js.map +0 -1
- package/es/empty/render-empty.js +0 -22
- package/es/empty/render-empty.js.map +0 -1
- package/es/empty/style/index.js +0 -2
- package/es/empty/style/index.js.map +0 -1
- package/es/handle/style/index.js +0 -1
- package/es/handle/style/index.js.map +0 -1
- package/es/icon-list/style/index.js +0 -1
- package/es/icon-list/style/index.js.map +0 -1
- package/es/img/style/index.js +0 -1
- package/es/img/style/index.js.map +0 -1
- package/es/loading-button/style/index.js +0 -1
- package/es/loading-button/style/index.js.map +0 -1
- package/es/page/style/index.js +0 -1
- package/es/page/style/index.js.map +0 -1
- package/es/query-form/style/index.js +0 -1
- package/es/query-form/style/index.js.map +0 -1
- package/es/query-list-scene/style/index.js +0 -1
- package/es/query-list-scene/style/index.js.map +0 -1
- package/es/render-empty/style/index.js +0 -1
- package/es/render-empty/style/index.js.map +0 -1
- package/es/table/style/index.js +0 -2
- package/es/table/style/index.js.map +0 -1
- package/es/title/style/index.js +0 -1
- package/es/title/style/index.js.map +0 -1
- package/es/tntd-icon/style/index.js +0 -1
- package/es/tntd-icon/style/index.js.map +0 -1
- package/es/tntd-layout/style/index.js +0 -1
- package/es/tntd-layout/style/index.js.map +0 -1
- package/es/tntd-modal/style/index.js +0 -1
- package/es/tntd-modal/style/index.js.map +0 -1
- package/es/tntd-select/style/index.js +0 -1
- package/es/tntd-select/style/index.js.map +0 -1
- package/lib/array-input/style/index.d.ts +0 -1
- package/lib/array-input/style/index.d.ts.map +0 -1
- package/lib/array-input/style/index.js +0 -1
- package/lib/array-input/style/index.js.map +0 -1
- package/lib/auth-context/style/index.d.ts +0 -1
- package/lib/auth-context/style/index.d.ts.map +0 -1
- package/lib/auth-context/style/index.js +0 -1
- package/lib/auth-context/style/index.js.map +0 -1
- package/lib/development-login/style/index.d.ts +0 -1
- package/lib/development-login/style/index.d.ts.map +0 -1
- package/lib/development-login/style/index.js +0 -1
- package/lib/development-login/style/index.js.map +0 -1
- package/lib/ellipsis/style/index.d.ts +0 -1
- package/lib/ellipsis/style/index.d.ts.map +0 -1
- package/lib/ellipsis/style/index.js +0 -1
- package/lib/ellipsis/style/index.js.map +0 -1
- package/lib/empty/render-empty.d.ts +0 -3
- package/lib/empty/render-empty.d.ts.map +0 -1
- package/lib/empty/render-empty.js +0 -32
- package/lib/empty/render-empty.js.map +0 -1
- package/lib/empty/style/index.d.ts +0 -3
- package/lib/empty/style/index.d.ts.map +0 -1
- package/lib/empty/style/index.js +0 -4
- package/lib/empty/style/index.js.map +0 -1
- package/lib/handle/style/index.d.ts +0 -1
- package/lib/handle/style/index.d.ts.map +0 -1
- package/lib/handle/style/index.js +0 -1
- package/lib/handle/style/index.js.map +0 -1
- package/lib/icon-list/style/index.d.ts +0 -3
- package/lib/icon-list/style/index.d.ts.map +0 -1
- package/lib/icon-list/style/index.js +0 -8
- package/lib/icon-list/style/index.js.map +0 -1
- package/lib/img/style/index.d.ts +0 -1
- package/lib/img/style/index.d.ts.map +0 -1
- package/lib/img/style/index.js +0 -1
- package/lib/img/style/index.js.map +0 -1
- package/lib/loading-button/style/index.d.ts +0 -1
- package/lib/loading-button/style/index.d.ts.map +0 -1
- package/lib/loading-button/style/index.js +0 -1
- package/lib/loading-button/style/index.js.map +0 -1
- package/lib/page/style/index.d.ts +0 -1
- package/lib/page/style/index.d.ts.map +0 -1
- package/lib/page/style/index.js +0 -1
- package/lib/page/style/index.js.map +0 -1
- package/lib/query-form/style/index.d.ts +0 -1
- package/lib/query-form/style/index.d.ts.map +0 -1
- package/lib/query-form/style/index.js +0 -1
- package/lib/query-form/style/index.js.map +0 -1
- package/lib/query-list-scene/style/index.d.ts +0 -1
- package/lib/query-list-scene/style/index.d.ts.map +0 -1
- package/lib/query-list-scene/style/index.js +0 -1
- package/lib/query-list-scene/style/index.js.map +0 -1
- package/lib/render-empty/style/index.d.ts +0 -2
- package/lib/render-empty/style/index.d.ts.map +0 -1
- package/lib/render-empty/style/index.js +0 -3
- package/lib/render-empty/style/index.js.map +0 -1
- package/lib/table/style/index.d.ts +0 -3
- package/lib/table/style/index.d.ts.map +0 -1
- package/lib/table/style/index.js +0 -4
- package/lib/table/style/index.js.map +0 -1
- package/lib/title/style/index.d.ts +0 -1
- package/lib/title/style/index.d.ts.map +0 -1
- package/lib/title/style/index.js +0 -1
- package/lib/title/style/index.js.map +0 -1
- package/lib/tntd-icon/style/index.d.ts +0 -1
- package/lib/tntd-icon/style/index.d.ts.map +0 -1
- package/lib/tntd-icon/style/index.js +0 -1
- package/lib/tntd-icon/style/index.js.map +0 -1
- package/lib/tntd-layout/style/index.d.ts +0 -1
- package/lib/tntd-layout/style/index.d.ts.map +0 -1
- package/lib/tntd-layout/style/index.js +0 -1
- package/lib/tntd-layout/style/index.js.map +0 -1
- package/lib/tntd-modal/style/index.d.ts +0 -1
- package/lib/tntd-modal/style/index.d.ts.map +0 -1
- package/lib/tntd-modal/style/index.js +0 -1
- package/lib/tntd-modal/style/index.js.map +0 -1
- package/lib/tntd-select/style/index.d.ts +0 -1
- package/lib/tntd-select/style/index.d.ts.map +0 -1
- package/lib/tntd-select/style/index.js +0 -1
- package/lib/tntd-select/style/index.js.map +0 -1
package/lib/query-form/index.js
CHANGED
|
@@ -1,53 +1,82 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports["default"] = void 0;
|
|
7
|
+
|
|
8
8
|
var _debounce2 = _interopRequireDefault(require("lodash/debounce"));
|
|
9
|
+
|
|
9
10
|
var _classnames3 = _interopRequireDefault(require("classnames"));
|
|
11
|
+
|
|
10
12
|
var _react = _interopRequireWildcard(require("react"));
|
|
13
|
+
|
|
11
14
|
var _createActions = _interopRequireDefault(require("./createActions"));
|
|
15
|
+
|
|
12
16
|
var _Field = _interopRequireDefault(require("./Field"));
|
|
17
|
+
|
|
13
18
|
var _useForm = _interopRequireDefault(require("./useForm"));
|
|
19
|
+
|
|
14
20
|
var _badge = _interopRequireDefault(require("../badge"));
|
|
21
|
+
|
|
15
22
|
var _button = _interopRequireDefault(require("../button"));
|
|
23
|
+
|
|
16
24
|
var _drawer = _interopRequireDefault(require("../drawer"));
|
|
25
|
+
|
|
17
26
|
var _form = _interopRequireDefault(require("../form"));
|
|
27
|
+
|
|
18
28
|
var _prevLocale = require("../prev-locale");
|
|
29
|
+
|
|
19
30
|
var _tntdIcon = _interopRequireDefault(require("../tntd-icon"));
|
|
31
|
+
|
|
20
32
|
require("./index.less");
|
|
21
|
-
|
|
22
|
-
function
|
|
33
|
+
|
|
34
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
35
|
+
|
|
36
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
37
|
+
|
|
23
38
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
24
|
-
|
|
39
|
+
|
|
40
|
+
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
|
41
|
+
|
|
42
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
43
|
+
|
|
25
44
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
26
|
-
|
|
27
|
-
function
|
|
28
|
-
|
|
29
|
-
function
|
|
30
|
-
|
|
31
|
-
function
|
|
32
|
-
|
|
33
|
-
function
|
|
45
|
+
|
|
46
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
47
|
+
|
|
48
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
49
|
+
|
|
50
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
|
|
51
|
+
|
|
52
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
53
|
+
|
|
34
54
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
35
|
-
|
|
36
|
-
function
|
|
55
|
+
|
|
56
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
57
|
+
|
|
58
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
59
|
+
|
|
37
60
|
var clsPrefix = 'tnt-queryform';
|
|
38
|
-
|
|
61
|
+
|
|
62
|
+
var QueryForm =
|
|
63
|
+
/*#__PURE__*/
|
|
64
|
+
function (_React$PureComponent) {
|
|
39
65
|
_inherits(QueryForm, _React$PureComponent);
|
|
40
|
-
|
|
66
|
+
|
|
41
67
|
function QueryForm(props) {
|
|
42
68
|
var _this;
|
|
69
|
+
|
|
43
70
|
_classCallCheck(this, QueryForm);
|
|
44
|
-
|
|
71
|
+
|
|
72
|
+
_this = _possibleConstructorReturn(this, _getPrototypeOf(QueryForm).call(this, props));
|
|
45
73
|
Object.defineProperty(_assertThisInitialized(_this), "onWindowResize", {
|
|
46
74
|
enumerable: true,
|
|
47
75
|
configurable: true,
|
|
48
76
|
writable: true,
|
|
49
77
|
value: (0, _debounce2["default"])(function () {
|
|
50
78
|
var current = _this.fieldsRef.current;
|
|
79
|
+
|
|
51
80
|
if (current) {
|
|
52
81
|
setTimeout(function () {
|
|
53
82
|
_this.setState({
|
|
@@ -71,6 +100,7 @@ var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
71
100
|
writable: true,
|
|
72
101
|
value: function value() {
|
|
73
102
|
var _a, _b;
|
|
103
|
+
|
|
74
104
|
(_b = (_a = _this.props).onSearch) === null || _b === void 0 ? void 0 : _b.call(_a, _this.form.getValues());
|
|
75
105
|
}
|
|
76
106
|
});
|
|
@@ -80,10 +110,13 @@ var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
80
110
|
writable: true,
|
|
81
111
|
value: function value() {
|
|
82
112
|
var _this$props = _this.props,
|
|
83
|
-
|
|
84
|
-
|
|
113
|
+
initialValues = _this$props.initialValues,
|
|
114
|
+
onReset = _this$props.onReset;
|
|
115
|
+
|
|
85
116
|
_this.form.setValues(Object.assign({}, initialValues));
|
|
117
|
+
|
|
86
118
|
_this.updateDrawerFieldsValueCount();
|
|
119
|
+
|
|
87
120
|
onReset === null || onReset === void 0 ? void 0 : onReset(initialValues);
|
|
88
121
|
}
|
|
89
122
|
});
|
|
@@ -93,9 +126,11 @@ var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
93
126
|
writable: true,
|
|
94
127
|
value: function value() {
|
|
95
128
|
var _a, _b;
|
|
129
|
+
|
|
96
130
|
_this.setState({
|
|
97
131
|
expanded: !_this.state.expanded
|
|
98
132
|
});
|
|
133
|
+
|
|
99
134
|
(_b = (_a = _this.props).onToggleExpand) === null || _b === void 0 ? void 0 : _b.call(_a, !_this.state.expanded);
|
|
100
135
|
}
|
|
101
136
|
});
|
|
@@ -115,6 +150,7 @@ var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
115
150
|
writable: true,
|
|
116
151
|
value: function value(name, _value) {
|
|
117
152
|
var values = _this.form.getValues();
|
|
153
|
+
|
|
118
154
|
var newValues = Object.assign(Object.assign({}, values), _defineProperty({}, name, _value));
|
|
119
155
|
var changedInfo = {
|
|
120
156
|
name: name,
|
|
@@ -122,11 +158,15 @@ var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
122
158
|
preValue: values === null || values === void 0 ? void 0 : values[name]
|
|
123
159
|
};
|
|
124
160
|
var onChange = _this.props.onChange;
|
|
161
|
+
|
|
125
162
|
_this.form.setData('values', newValues);
|
|
163
|
+
|
|
126
164
|
for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
127
165
|
rest[_key - 2] = arguments[_key];
|
|
128
166
|
}
|
|
167
|
+
|
|
129
168
|
onChange && onChange.apply(void 0, [newValues, changedInfo].concat(rest));
|
|
169
|
+
|
|
130
170
|
_this.updateDrawerFieldsValueCount(newValues);
|
|
131
171
|
}
|
|
132
172
|
});
|
|
@@ -136,17 +176,22 @@ var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
136
176
|
writable: true,
|
|
137
177
|
value: function value() {
|
|
138
178
|
var values = _this.form.getValues();
|
|
179
|
+
|
|
139
180
|
var _this$props2 = _this.props,
|
|
140
|
-
|
|
141
|
-
|
|
181
|
+
showFieldCount = _this$props2.showFieldCount,
|
|
182
|
+
children = _this$props2.children;
|
|
183
|
+
|
|
142
184
|
if (showFieldCount) {
|
|
143
185
|
var drawerFieldsValueCount = children.reduce(function (acc, cur, index) {
|
|
144
186
|
var _a;
|
|
187
|
+
|
|
145
188
|
if (index >= showFieldCount && (values === null || values === void 0 ? void 0 : values[(_a = cur === null || cur === void 0 ? void 0 : cur.props) === null || _a === void 0 ? void 0 : _a.name])) {
|
|
146
189
|
acc++;
|
|
147
190
|
}
|
|
191
|
+
|
|
148
192
|
return acc;
|
|
149
193
|
}, 0);
|
|
194
|
+
|
|
150
195
|
if (drawerFieldsValueCount !== _this.state.drawerFieldsValueCount) {
|
|
151
196
|
_this.setState({
|
|
152
197
|
drawerFieldsValueCount: drawerFieldsValueCount
|
|
@@ -162,6 +207,7 @@ var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
162
207
|
value: function value() {
|
|
163
208
|
if ('ResizeObserver' in window) {
|
|
164
209
|
var current = _this.fieldsRef.current;
|
|
210
|
+
|
|
165
211
|
if (current) {
|
|
166
212
|
var observer = new ResizeObserver(_this.onWindowResize);
|
|
167
213
|
observer.observe(current);
|
|
@@ -178,11 +224,11 @@ var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
178
224
|
}
|
|
179
225
|
});
|
|
180
226
|
var form = props.form,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
227
|
+
initialValues = props.initialValues,
|
|
228
|
+
_props$showExpand = props.showExpand,
|
|
229
|
+
showExpand = _props$showExpand === void 0 ? true : _props$showExpand,
|
|
230
|
+
renderActions = props.renderActions,
|
|
231
|
+
defaultExpanded = props.defaultExpanded;
|
|
186
232
|
_this.state = {
|
|
187
233
|
showMore: false,
|
|
188
234
|
expanded: defaultExpanded || !showExpand || renderActions ? true : false,
|
|
@@ -192,35 +238,41 @@ var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
192
238
|
_this.fieldsRef = (0, _react.createRef)();
|
|
193
239
|
_this.formBoxRef = (0, _react.createRef)();
|
|
194
240
|
_this.form = form || (0, _createActions["default"])();
|
|
241
|
+
|
|
195
242
|
_this.form.setData('initialValues', initialValues);
|
|
243
|
+
|
|
196
244
|
_this.form.setData('values', Object.assign({}, initialValues));
|
|
245
|
+
|
|
197
246
|
return _this;
|
|
198
247
|
}
|
|
248
|
+
|
|
199
249
|
_createClass(QueryForm, [{
|
|
200
250
|
key: "render",
|
|
201
251
|
value: function render() {
|
|
202
252
|
var _this2 = this;
|
|
253
|
+
|
|
203
254
|
var _this$props3 = this.props,
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
255
|
+
children = _this$props3.children,
|
|
256
|
+
_this$props3$classNam = _this$props3.className,
|
|
257
|
+
className = _this$props3$classNam === void 0 ? '' : _this$props3$classNam,
|
|
258
|
+
_this$props3$initialV = _this$props3.initialValues,
|
|
259
|
+
initialValues = _this$props3$initialV === void 0 ? {} : _this$props3$initialV,
|
|
260
|
+
renderActions = _this$props3.renderActions,
|
|
261
|
+
_this$props3$showSear = _this$props3.showSearch,
|
|
262
|
+
showSearch = _this$props3$showSear === void 0 ? true : _this$props3$showSear,
|
|
263
|
+
_this$props3$showRese = _this$props3.showReset,
|
|
264
|
+
showReset = _this$props3$showRese === void 0 ? true : _this$props3$showRese,
|
|
265
|
+
showFieldCount = _this$props3.showFieldCount,
|
|
266
|
+
_this$props3$drawerPr = _this$props3.drawerProps,
|
|
267
|
+
drawerProps = _this$props3$drawerPr === void 0 ? {} : _this$props3$drawerPr,
|
|
268
|
+
size = _this$props3.size;
|
|
218
269
|
var extraActions = this.props.extraActions;
|
|
219
270
|
var _this$state = this.state,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
271
|
+
expanded = _this$state.expanded,
|
|
272
|
+
showMore = _this$state.showMore,
|
|
273
|
+
drawerVisible = _this$state.drawerVisible,
|
|
274
|
+
drawerFieldsValueCount = _this$state.drawerFieldsValueCount;
|
|
275
|
+
|
|
224
276
|
var renderFormActions = renderActions || function () {
|
|
225
277
|
return _react["default"].createElement(_react["default"].Fragment, null, showFieldCount && _react["default"].createElement(_badge["default"], {
|
|
226
278
|
count: drawerFieldsValueCount
|
|
@@ -239,9 +291,11 @@ var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
239
291
|
onClick: _this2.onToggleExpand
|
|
240
292
|
}, _this2.getText(expanded ? 'collapse' : 'expand')), _react["default"].Children.map(children, function (child) {
|
|
241
293
|
var _a;
|
|
294
|
+
|
|
242
295
|
return child && ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.align) === 'right' && _react["default"].cloneElement(child);
|
|
243
296
|
}));
|
|
244
297
|
};
|
|
298
|
+
|
|
245
299
|
return _react["default"].createElement("div", {
|
|
246
300
|
ref: this.formBoxRef,
|
|
247
301
|
className: (0, _classnames3["default"])(clsPrefix, _defineProperty({}, className, className))
|
|
@@ -255,6 +309,7 @@ var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
255
309
|
ref: this.fieldsRef
|
|
256
310
|
}, _react["default"].Children.map(children, function (child, index) {
|
|
257
311
|
var _a;
|
|
312
|
+
|
|
258
313
|
return child && ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.align) !== 'right' && (!showFieldCount || showFieldCount > index) && _react["default"].cloneElement(child, {
|
|
259
314
|
form: _this2.form,
|
|
260
315
|
initialValue: initialValues === null || initialValues === void 0 ? void 0 : initialValues[child.props.name],
|
|
@@ -303,11 +358,13 @@ var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
303
358
|
key: "isFieldsWidthOverflow",
|
|
304
359
|
value: function isFieldsWidthOverflow() {
|
|
305
360
|
var current = this.fieldsRef.current;
|
|
361
|
+
|
|
306
362
|
if (current) {
|
|
307
363
|
return parseFloat(window.getComputedStyle(current).width, 10) < [].reduce.call(current.children, function (acc, cur) {
|
|
308
364
|
var _window$getComputedSt = window.getComputedStyle(cur),
|
|
309
|
-
|
|
310
|
-
|
|
365
|
+
margin = _window$getComputedSt.margin,
|
|
366
|
+
width = _window$getComputedSt.width;
|
|
367
|
+
|
|
311
368
|
var marginArray = margin.split(' ').map(function (str) {
|
|
312
369
|
return parseFloat(str, 10);
|
|
313
370
|
});
|
|
@@ -315,23 +372,30 @@ var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
315
372
|
return acc;
|
|
316
373
|
}, 0);
|
|
317
374
|
}
|
|
375
|
+
|
|
318
376
|
return false;
|
|
319
377
|
}
|
|
320
378
|
}, {
|
|
321
379
|
key: "updateFieldHeight",
|
|
322
380
|
value: function updateFieldHeight() {
|
|
323
381
|
var _a, _b, _c;
|
|
382
|
+
|
|
324
383
|
var formBoxRef = this.formBoxRef,
|
|
325
|
-
|
|
384
|
+
fieldsRef = this.fieldsRef;
|
|
385
|
+
|
|
326
386
|
var getFieldHeight = function getFieldHeight() {
|
|
327
387
|
var _a;
|
|
388
|
+
|
|
328
389
|
var current = fieldsRef.current;
|
|
329
390
|
var height = '32px';
|
|
391
|
+
|
|
330
392
|
if (current && ((_a = current.children) === null || _a === void 0 ? void 0 : _a[0])) {
|
|
331
393
|
height = window.getComputedStyle(current.children[0]).height;
|
|
332
394
|
}
|
|
395
|
+
|
|
333
396
|
return height;
|
|
334
397
|
};
|
|
398
|
+
|
|
335
399
|
var queryFormActionsDom = (_a = formBoxRef === null || formBoxRef === void 0 ? void 0 : formBoxRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(".".concat(clsPrefix, "-actions"));
|
|
336
400
|
var queryFormExtraDom = (_b = formBoxRef === null || formBoxRef === void 0 ? void 0 : formBoxRef.current) === null || _b === void 0 ? void 0 : _b.querySelector(".".concat(clsPrefix, "-extra"));
|
|
337
401
|
var formItemsDomList = (_c = fieldsRef === null || fieldsRef === void 0 ? void 0 : fieldsRef.current) === null || _c === void 0 ? void 0 : _c.querySelectorAll('.ant-form-item-control');
|
|
@@ -352,22 +416,24 @@ var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
352
416
|
value: function componentDidMount() {
|
|
353
417
|
var current = this.fieldsRef.current;
|
|
354
418
|
var _this$props4 = this.props,
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
419
|
+
showFieldCount = _this$props4.showFieldCount,
|
|
420
|
+
_this$props4$showExpa = _this$props4.showExpand,
|
|
421
|
+
showExpand = _this$props4$showExpa === void 0 ? true : _this$props4$showExpa;
|
|
358
422
|
this.updateFieldHeight();
|
|
359
|
-
this.form.on('search', this.search);
|
|
360
|
-
// 未设置第一行显示数量且禁止了展开操作 或 自定义了操作区域,则不需要处理展开计算逻辑
|
|
423
|
+
this.form.on('search', this.search); // 未设置第一行显示数量且禁止了展开操作 或 自定义了操作区域,则不需要处理展开计算逻辑
|
|
361
424
|
// || renderActions
|
|
425
|
+
|
|
362
426
|
if (!showFieldCount && !showExpand) {
|
|
363
427
|
return;
|
|
364
428
|
}
|
|
429
|
+
|
|
365
430
|
if (!showFieldCount) {
|
|
366
431
|
if (current && this.isFieldsWidthOverflow()) {
|
|
367
432
|
this.setState({
|
|
368
433
|
showMore: true
|
|
369
434
|
});
|
|
370
435
|
}
|
|
436
|
+
|
|
371
437
|
this.removeResizeListener = this.addResizeListener();
|
|
372
438
|
} else {
|
|
373
439
|
this.updateDrawerFieldsValueCount();
|
|
@@ -379,14 +445,17 @@ var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
379
445
|
key: "componentWillUnmount",
|
|
380
446
|
value: function componentWillUnmount() {
|
|
381
447
|
var _a;
|
|
448
|
+
|
|
382
449
|
(_a = this.removeResizeListener) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
383
450
|
this.form.off('setValues', this.updateDrawerFieldsValueCount);
|
|
384
451
|
this.form.off('setValue', this.updateDrawerFieldsValueCount);
|
|
385
452
|
this.form.off('search', this.search);
|
|
386
453
|
}
|
|
387
454
|
}]);
|
|
455
|
+
|
|
388
456
|
return QueryForm;
|
|
389
457
|
}(_react["default"].PureComponent);
|
|
458
|
+
|
|
390
459
|
QueryForm.Field = _Field["default"];
|
|
391
460
|
QueryForm.useForm = _useForm["default"];
|
|
392
461
|
QueryForm.createForm = _createActions["default"];
|
|
@@ -4,9 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = useForm;
|
|
7
|
+
|
|
7
8
|
var _react = require("react");
|
|
9
|
+
|
|
8
10
|
var _createActions = _interopRequireDefault(require("./createActions"));
|
|
11
|
+
|
|
9
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
13
|
+
|
|
10
14
|
function useForm() {
|
|
11
15
|
var form = (0, _react.useRef)((0, _createActions["default"])());
|
|
12
16
|
return [form.current];
|