tntd 3.0.9 → 3.0.11-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/es/array-input/index.js +10 -1
- package/es/array-input/index.js.map +1 -1
- package/es/index.js +3 -1
- package/es/index.js.map +1 -1
- package/es/locale/en_US.js +17 -1
- package/es/locale/en_US.js.map +1 -1
- package/es/locale/zh_CN.js +16 -0
- package/es/locale/zh_CN.js.map +1 -1
- package/es/prev-locale.js +32 -2
- package/es/prev-locale.js.map +1 -1
- package/es/query-form-v3/Field/Checkbox.js +23 -0
- package/es/query-form-v3/Field/Checkbox.js.map +1 -0
- package/es/query-form-v3/Field/Composition/FieldPopover.js +330 -0
- package/es/query-form-v3/Field/Composition/FieldPopover.js.map +1 -0
- package/es/query-form-v3/Field/Composition/FieldPopover.less +35 -0
- package/es/query-form-v3/Field/Composition/Select.js +107 -0
- package/es/query-form-v3/Field/Composition/Select.js.map +1 -0
- package/es/query-form-v3/Field/Composition/index.js +208 -0
- package/es/query-form-v3/Field/Composition/index.js.map +1 -0
- package/es/query-form-v3/Field/Composition/index.less +118 -0
- package/es/query-form-v3/Field/Composition/utils.js +132 -0
- package/es/query-form-v3/Field/Composition/utils.js.map +1 -0
- package/es/query-form-v3/Field/Select.js +59 -0
- package/es/query-form-v3/Field/Select.js.map +1 -0
- package/es/query-form-v3/Field/SelectInput.js +87 -0
- package/es/query-form-v3/Field/SelectInput.js.map +1 -0
- package/es/query-form-v3/Field/fieldsMap.js +28 -0
- package/es/query-form-v3/Field/fieldsMap.js.map +1 -0
- package/es/query-form-v3/Field/index.js +117 -0
- package/es/query-form-v3/Field/index.js.map +1 -0
- package/es/query-form-v3/createActions.js +47 -0
- package/es/query-form-v3/createActions.js.map +1 -0
- package/es/query-form-v3/index.js +175 -0
- package/es/query-form-v3/index.js.map +1 -0
- package/es/query-form-v3/index.less +91 -0
- package/es/query-form-v3/useForm.js +6 -0
- package/es/query-form-v3/useForm.js.map +1 -0
- package/es/query-list-scene/QueryForm.js +6 -3
- package/es/query-list-scene/QueryForm.js.map +1 -1
- package/es/query-list-scene/index.less +4 -0
- package/es/svg-components/illustration-offline.js +11 -29
- package/es/svg-components/illustration-offline.js.map +1 -1
- package/es/table/index.js +2 -2
- package/es/table/index.js.map +1 -1
- package/es/table/resizableTable/index.js +87 -0
- package/es/table/resizableTable/index.js.map +1 -0
- package/es/table/resizableTable/index.less +36 -0
- package/es/table/table-hoc.js +26 -0
- package/es/table/table-hoc.js.map +1 -0
- package/es/tabs/tabs.less +23 -0
- package/es/title/index.js +18 -4
- package/es/title/index.js.map +1 -1
- package/es/title/index.less +88 -34
- package/es/tntd-reference/AHref/index.js +39 -0
- package/es/tntd-reference/AHref/index.js.map +1 -0
- package/es/tntd-reference/ReferenceBatchCheck/index.js +153 -0
- package/es/tntd-reference/ReferenceBatchCheck/index.js.map +1 -0
- package/es/tntd-reference/ReferenceBatchCheck/index.less +21 -0
- package/es/tntd-reference/ReferenceBatchDrawer/index.js +102 -0
- package/es/tntd-reference/ReferenceBatchDrawer/index.js.map +1 -0
- package/es/tntd-reference/ReferenceBatchDrawer/index.less +0 -0
- package/es/tntd-reference/ReferenceCheck/index.js +117 -0
- package/es/tntd-reference/ReferenceCheck/index.js.map +1 -0
- package/es/tntd-reference/ReferenceCheck/index.less +10 -0
- package/es/tntd-reference/ReferenceDrawer/index.js +69 -0
- package/es/tntd-reference/ReferenceDrawer/index.js.map +1 -0
- package/es/tntd-reference/ReferenceDrawer/index.less +0 -0
- package/es/tntd-reference/ReferenceInfo/index.js +150 -0
- package/es/tntd-reference/ReferenceInfo/index.js.map +1 -0
- package/es/tntd-reference/ReferenceInfo/index.less +31 -0
- package/es/tntd-reference/index.js +13 -0
- package/es/tntd-reference/index.js.map +1 -0
- package/es/tntd-virtual-tree/index.js +229 -0
- package/es/tntd-virtual-tree/index.js.map +1 -0
- package/es/tntd-virtual-tree/index.less +59 -0
- package/es/tntd-virtual-tree/utils.js +296 -0
- package/es/tntd-virtual-tree/utils.js.map +1 -0
- package/es/tntd-virtual-tree-select/index.js +98 -22
- package/es/tntd-virtual-tree-select/index.js.map +1 -1
- package/es/tntd-virtual-tree-select/utils.js +20 -124
- package/es/tntd-virtual-tree-select/utils.js.map +1 -1
- package/lib/_util/context.js +1 -1
- package/lib/_util/defaultRenderEmpty.js +1 -1
- package/lib/_util/hooks/useFlexGapSupport.js +4 -4
- package/lib/_util/hooks/useForceUpdate.js +4 -4
- package/lib/_util/responsiveObserve.js +1 -1
- package/lib/_util/styleChecker.js +1 -1
- package/lib/actions/index.js +1 -1
- package/lib/alert/alert.js +2 -2
- package/lib/alert/index.js +1 -1
- package/lib/array-input/index.d.ts.map +1 -1
- package/lib/array-input/index.js +23 -10
- package/lib/array-input/index.js.map +1 -1
- package/lib/button/button.js +2 -2
- package/lib/cascader/cascader.js +1 -1
- package/lib/check-card/group.js +8 -8
- package/lib/check-card/index.js +6 -6
- package/lib/checkbox/checkbox.js +1 -1
- package/lib/color-picker/ColorPicker.js +6 -6
- package/lib/color-picker/index.js +1 -1
- package/lib/columns/index.js +1 -1
- package/lib/config-provider/config-provider.js +1 -1
- package/lib/date-picker/DatePicker.js +1 -1
- package/lib/descriptions/descriptions.js +5 -5
- package/lib/development-login/LoginModal.js +6 -6
- package/lib/development-login/index.js +4 -4
- package/lib/drawer/drawer.js +2 -2
- package/lib/ellipsis/Svg/CopySVG.js +1 -1
- package/lib/ellipsis/Svg/TickSVG.js +1 -1
- package/lib/ellipsis/index.js +5 -5
- package/lib/empty/empty.js +2 -2
- package/lib/empty/empty.stories.js +2 -2
- package/lib/exception/exception.js +1 -1
- package/lib/form/form.js +2 -2
- package/lib/grid-v4/col.js +2 -2
- package/lib/grid-v4/hooks/useBreakpoint.js +1 -1
- package/lib/grid-v4/index.js +1 -1
- package/lib/grid-v4/row.js +6 -6
- package/lib/handle/index.js +1 -1
- package/lib/handle-icon/index.js +11 -11
- package/lib/icon/IconFont.js +1 -1
- package/lib/icon/components/Icon.js +9 -9
- package/lib/icon/components/index.js +1 -1
- package/lib/icon/components/utils.js +3 -3
- package/lib/icon/index.js +7 -7
- package/lib/icon/twoTonePrimaryColor.js +1 -1
- package/lib/icon/utils.js +1 -1
- package/lib/img/Contain.js +1 -1
- package/lib/img/Cover.js +5 -5
- package/lib/img/index.js +5 -5
- package/lib/index.d.ts +3 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +17 -3
- package/lib/index.js.map +1 -1
- package/lib/input/input.js +2 -2
- package/lib/input-number/inputNumber.js +1 -1
- package/lib/label/index.js +2 -2
- package/lib/loading-button/index.js +5 -5
- package/lib/locale/default.d.ts +16 -0
- package/lib/locale/default.d.ts.map +1 -1
- package/lib/locale/default.js +1 -1
- package/lib/locale/en_US.d.ts +16 -0
- package/lib/locale/en_US.d.ts.map +1 -1
- package/lib/locale/en_US.js +18 -2
- package/lib/locale/en_US.js.map +1 -1
- package/lib/locale/zh_CN.d.ts +16 -0
- package/lib/locale/zh_CN.d.ts.map +1 -1
- package/lib/locale/zh_CN.js +17 -1
- package/lib/locale/zh_CN.js.map +1 -1
- package/lib/modal/modal.js +1 -1
- package/lib/notification/assets/index.js +1 -1
- package/lib/notification/index.js +1 -1
- package/lib/notification/notification.js +1 -1
- package/lib/page/Box.js +1 -1
- package/lib/page/index.js +7 -7
- package/lib/page-container/index.js +1 -1
- package/lib/page-loading/index.js +1 -1
- package/lib/popconfirm/popconfirm.js +1 -1
- package/lib/popover/popover.js +1 -1
- package/lib/prev-locale.d.ts +42 -0
- package/lib/prev-locale.d.ts.map +1 -1
- package/lib/prev-locale.js +32 -2
- package/lib/prev-locale.js.map +1 -1
- package/lib/preview-text/index.js +7 -7
- package/lib/progress/progress.js +2 -2
- package/lib/query-form/Field/Checkbox.js +1 -1
- package/lib/query-form/Field/Select.js +6 -6
- package/lib/query-form/Field/SelectInput.js +6 -6
- package/lib/query-form/Field/fieldsMap.js +1 -1
- package/lib/query-form/Field/index.js +10 -10
- package/lib/query-form/createActions.js +1 -1
- package/lib/query-form/index.js +10 -10
- package/lib/query-form/useForm.js +1 -1
- package/lib/query-form-v3/Field/Checkbox.d.ts +8 -0
- package/lib/query-form-v3/Field/Checkbox.d.ts.map +1 -0
- package/lib/query-form-v3/Field/Checkbox.js +28 -0
- package/lib/query-form-v3/Field/Checkbox.js.map +1 -0
- package/lib/query-form-v3/Field/Composition/FieldPopover.d.ts +19 -0
- package/lib/query-form-v3/Field/Composition/FieldPopover.d.ts.map +1 -0
- package/lib/query-form-v3/Field/Composition/FieldPopover.js +370 -0
- package/lib/query-form-v3/Field/Composition/FieldPopover.js.map +1 -0
- package/lib/query-form-v3/Field/Composition/FieldPopover.less +35 -0
- package/lib/query-form-v3/Field/Composition/Select.d.ts +4 -0
- package/lib/query-form-v3/Field/Composition/Select.d.ts.map +1 -0
- package/lib/query-form-v3/Field/Composition/Select.js +131 -0
- package/lib/query-form-v3/Field/Composition/Select.js.map +1 -0
- package/lib/query-form-v3/Field/Composition/index.d.ts +10 -0
- package/lib/query-form-v3/Field/Composition/index.d.ts.map +1 -0
- package/lib/query-form-v3/Field/Composition/index.js +255 -0
- package/lib/query-form-v3/Field/Composition/index.js.map +1 -0
- package/lib/query-form-v3/Field/Composition/index.less +118 -0
- package/lib/query-form-v3/Field/Composition/utils.d.ts +22 -0
- package/lib/query-form-v3/Field/Composition/utils.d.ts.map +1 -0
- package/lib/query-form-v3/Field/Composition/utils.js +147 -0
- package/lib/query-form-v3/Field/Composition/utils.js.map +1 -0
- package/lib/query-form-v3/Field/Select.d.ts +4 -0
- package/lib/query-form-v3/Field/Select.d.ts.map +1 -0
- package/lib/query-form-v3/Field/Select.js +80 -0
- package/lib/query-form-v3/Field/Select.js.map +1 -0
- package/lib/query-form-v3/Field/SelectInput.d.ts +4 -0
- package/lib/query-form-v3/Field/SelectInput.d.ts.map +1 -0
- package/lib/query-form-v3/Field/SelectInput.js +100 -0
- package/lib/query-form-v3/Field/SelectInput.js.map +1 -0
- package/lib/query-form-v3/Field/fieldsMap.d.ts +27 -0
- package/lib/query-form-v3/Field/fieldsMap.d.ts.map +1 -0
- package/lib/query-form-v3/Field/fieldsMap.js +35 -0
- package/lib/query-form-v3/Field/fieldsMap.js.map +1 -0
- package/lib/query-form-v3/Field/index.d.ts +14 -0
- package/lib/query-form-v3/Field/index.d.ts.map +1 -0
- package/lib/query-form-v3/Field/index.js +147 -0
- package/lib/query-form-v3/Field/index.js.map +1 -0
- package/lib/query-form-v3/createActions.d.ts +14 -0
- package/lib/query-form-v3/createActions.d.ts.map +1 -0
- package/lib/query-form-v3/createActions.js +54 -0
- package/lib/query-form-v3/createActions.js.map +1 -0
- package/lib/query-form-v3/index.d.ts +27 -0
- package/lib/query-form-v3/index.d.ts.map +1 -0
- package/lib/query-form-v3/index.js +206 -0
- package/lib/query-form-v3/index.js.map +1 -0
- package/lib/query-form-v3/index.less +91 -0
- package/lib/query-form-v3/useForm.d.ts +13 -0
- package/lib/query-form-v3/useForm.d.ts.map +1 -0
- package/lib/query-form-v3/useForm.js +13 -0
- package/lib/query-form-v3/useForm.js.map +1 -0
- package/lib/query-list-scene/List.js +13 -13
- package/lib/query-list-scene/QueryForm.d.ts +2 -2
- package/lib/query-list-scene/QueryForm.d.ts.map +1 -1
- package/lib/query-list-scene/QueryForm.js +19 -17
- package/lib/query-list-scene/QueryForm.js.map +1 -1
- package/lib/query-list-scene/QueryListScene.js +10 -10
- package/lib/query-list-scene/Title.js +1 -1
- package/lib/query-list-scene/Toolbar.js +2 -2
- package/lib/query-list-scene/createActions.js +1 -1
- package/lib/query-list-scene/index.js +1 -1
- package/lib/query-list-scene/index.less +4 -0
- package/lib/query-list-scene/useActions.js +1 -1
- package/lib/radio/radio.js +1 -1
- package/lib/render-empty/render-empty.js +1 -1
- package/lib/segmented/index.d.ts +1 -1
- package/lib/segmented/index.js +2 -2
- package/lib/select/select.js +2 -2
- package/lib/spin/spin.js +1 -1
- package/lib/steps/steps.js +2 -2
- package/lib/svg-components/illustration-offline.d.ts.map +1 -1
- package/lib/svg-components/illustration-offline.js +11 -29
- package/lib/svg-components/illustration-offline.js.map +1 -1
- package/lib/svg-components/index.js +1 -1
- package/lib/table/hooks/use-column-setting.js +4 -4
- package/lib/table/hooks/use-expand-fixed.js +6 -6
- package/lib/table/index.d.ts +2 -2
- package/lib/table/index.d.ts.map +1 -1
- package/lib/table/index.js +7 -7
- package/lib/table/index.js.map +1 -1
- package/lib/table/resizableTable/index.d.ts +12 -0
- package/lib/table/resizableTable/index.d.ts.map +1 -0
- package/lib/table/resizableTable/index.js +110 -0
- package/lib/table/resizableTable/index.js.map +1 -0
- package/lib/table/resizableTable/index.less +36 -0
- package/lib/table/table-hoc.d.ts +7 -0
- package/lib/table/table-hoc.d.ts.map +1 -0
- package/lib/table/table-hoc.js +34 -0
- package/lib/table/table-hoc.js.map +1 -0
- package/lib/table/table.js +9 -9
- package/lib/table/table.stories.d.ts +1 -1
- package/lib/table/table.stories.js +2 -2
- package/lib/table/total-shower.js +1 -1
- package/lib/table/utils.js +1 -1
- package/lib/table-container/index.js +1 -1
- package/lib/tabs/tabs.js +2 -2
- package/lib/tabs/tabs.less +23 -0
- package/lib/tabs-container/index.js +1 -1
- package/lib/tag/tag.js +2 -2
- package/lib/time-picker/TimePicker.js +1 -1
- package/lib/time-picker/index.js +1 -1
- package/lib/title/index.d.ts +1 -0
- package/lib/title/index.d.ts.map +1 -1
- package/lib/title/index.js +19 -5
- package/lib/title/index.js.map +1 -1
- package/lib/title/index.less +88 -34
- package/lib/tntd-action/Action.js +9 -9
- package/lib/tntd-action/index.js +8 -8
- package/lib/tntd-cascader/AntdCascader/component/context.js +1 -1
- package/lib/tntd-cascader/AntdCascader/component/defaultRenderEmpty.js +1 -1
- package/lib/tntd-cascader/AntdCascader/component/getIcons.js +1 -1
- package/lib/tntd-cascader/AntdCascader/component/useCompactItemContext.js +2 -2
- package/lib/tntd-cascader/AntdCascader/config/utils.js +2 -2
- package/lib/tntd-cascader/AntdCascader/index.js +7 -7
- package/lib/tntd-cascader/index.js +1 -1
- package/lib/tntd-cascader/rc-cascader/Cascader.js +8 -8
- package/lib/tntd-cascader/rc-cascader/OptionList/Checkbox.js +2 -2
- package/lib/tntd-cascader/rc-cascader/OptionList/Column.js +7 -7
- package/lib/tntd-cascader/rc-cascader/OptionList/index.js +9 -9
- package/lib/tntd-cascader/rc-cascader/OptionList/useActive.js +5 -5
- package/lib/tntd-cascader/rc-cascader/OptionList/useKeyboard.js +8 -8
- package/lib/tntd-cascader/rc-cascader/hooks/useDisplayValues.js +5 -5
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchConfig.js +1 -1
- package/lib/tntd-cascader/rc-cascader/hooks/useSearchOptions.js +6 -6
- package/lib/tntd-cascader/rc-cascader/index.js +1 -1
- package/lib/tntd-cascader/rc-cascader/utils/warningPropsUtil.js +4 -4
- package/lib/tntd-form/ErrorList.js +7 -7
- package/lib/tntd-form/Form.js +6 -6
- package/lib/tntd-form/FormItem/ItemHolder.js +6 -6
- package/lib/tntd-form/FormItem/index.js +8 -8
- package/lib/tntd-form/FormItemInput.js +1 -1
- package/lib/tntd-form/FormItemLabel.js +2 -2
- package/lib/tntd-form/FormList.js +1 -1
- package/lib/tntd-form/context.js +1 -1
- package/lib/tntd-form/hooks/useDebounce.js +4 -4
- package/lib/tntd-form/hooks/useForm.js +5 -5
- package/lib/tntd-form/hooks/useFormItemStatus.js +1 -1
- package/lib/tntd-form/hooks/useFrameState.js +5 -5
- package/lib/tntd-form/index.js +1 -1
- package/lib/tntd-icon/index.js +1 -1
- package/lib/tntd-layout/AppList.js +6 -6
- package/lib/tntd-layout/Application.js +6 -6
- package/lib/tntd-layout/Avatar.js +2 -2
- package/lib/tntd-layout/CompatibleLanguage.js +6 -6
- package/lib/tntd-layout/EnterpriseLayout/Avatar.js +2 -2
- package/lib/tntd-layout/EnterpriseLayout/Language.js +6 -6
- package/lib/tntd-layout/EnterpriseLayout/Theme.js +6 -6
- package/lib/tntd-layout/EnterpriseLayout/index.js +1 -1
- package/lib/tntd-layout/GlobalNavigation/NavigationPopup.js +6 -6
- package/lib/tntd-layout/GlobalNavigation/index.js +9 -9
- package/lib/tntd-layout/Header.js +2 -2
- package/lib/tntd-layout/HeaderActions.js +2 -2
- package/lib/tntd-layout/HeaderNavs.js +6 -6
- package/lib/tntd-layout/HeaderTabs.js +7 -7
- package/lib/tntd-layout/Iconfont.js +1 -1
- package/lib/tntd-layout/Language.js +6 -6
- package/lib/tntd-layout/Layout.js +6 -6
- package/lib/tntd-layout/Logo.js +2 -2
- package/lib/tntd-layout/OrgAppList.js +6 -6
- package/lib/tntd-layout/SideMenu.js +6 -6
- package/lib/tntd-layout/Theme.js +6 -6
- package/lib/tntd-layout/createActions.js +1 -1
- package/lib/tntd-layout/images/index.js +1 -1
- package/lib/tntd-layout/index.js +1 -1
- package/lib/tntd-layout/paaslayout/CompactSideMenu.js +6 -6
- package/lib/tntd-layout/paaslayout/Header.js +2 -2
- package/lib/tntd-layout/paaslayout/Logo.js +2 -2
- package/lib/tntd-layout/paaslayout/SideMenu.js +6 -6
- package/lib/tntd-layout/paaslayout/index.js +6 -6
- package/lib/tntd-layout/storage.js +1 -1
- package/lib/tntd-modal/index.js +6 -6
- package/lib/tntd-rc-select/_util/PurePanel.js +5 -5
- package/lib/tntd-rc-select/_util/context.js +1 -1
- package/lib/tntd-rc-select/_util/defaultRenderEmpty.js +1 -1
- package/lib/tntd-rc-select/_util/getIcons.js +1 -1
- package/lib/tntd-rc-select/_util/useCompactItemContext.js +2 -2
- package/lib/tntd-rc-select/index.js +2 -2
- package/lib/tntd-reference/AHref/index.d.ts +4 -0
- package/lib/tntd-reference/AHref/index.d.ts.map +1 -0
- package/lib/tntd-reference/AHref/index.js +44 -0
- package/lib/tntd-reference/AHref/index.js.map +1 -0
- package/lib/tntd-reference/ReferenceBatchCheck/index.d.ts +3 -0
- package/lib/tntd-reference/ReferenceBatchCheck/index.d.ts.map +1 -0
- package/lib/tntd-reference/ReferenceBatchCheck/index.js +165 -0
- package/lib/tntd-reference/ReferenceBatchCheck/index.js.map +1 -0
- package/lib/tntd-reference/ReferenceBatchCheck/index.less +21 -0
- package/lib/tntd-reference/ReferenceBatchDrawer/index.d.ts +4 -0
- package/lib/tntd-reference/ReferenceBatchDrawer/index.d.ts.map +1 -0
- package/lib/tntd-reference/ReferenceBatchDrawer/index.js +126 -0
- package/lib/tntd-reference/ReferenceBatchDrawer/index.js.map +1 -0
- package/lib/tntd-reference/ReferenceBatchDrawer/index.less +0 -0
- package/lib/tntd-reference/ReferenceCheck/index.d.ts +3 -0
- package/lib/tntd-reference/ReferenceCheck/index.d.ts.map +1 -0
- package/lib/tntd-reference/ReferenceCheck/index.js +126 -0
- package/lib/tntd-reference/ReferenceCheck/index.js.map +1 -0
- package/lib/tntd-reference/ReferenceCheck/index.less +10 -0
- package/lib/tntd-reference/ReferenceDrawer/index.d.ts +4 -0
- package/lib/tntd-reference/ReferenceDrawer/index.d.ts.map +1 -0
- package/lib/tntd-reference/ReferenceDrawer/index.js +93 -0
- package/lib/tntd-reference/ReferenceDrawer/index.js.map +1 -0
- package/lib/tntd-reference/ReferenceDrawer/index.less +0 -0
- package/lib/tntd-reference/ReferenceInfo/index.d.ts +4 -0
- package/lib/tntd-reference/ReferenceInfo/index.d.ts.map +1 -0
- package/lib/tntd-reference/ReferenceInfo/index.js +164 -0
- package/lib/tntd-reference/ReferenceInfo/index.js.map +1 -0
- package/lib/tntd-reference/ReferenceInfo/index.less +31 -0
- package/lib/tntd-reference/index.d.ts +15 -0
- package/lib/tntd-reference/index.d.ts.map +1 -0
- package/lib/tntd-reference/index.js +20 -0
- package/lib/tntd-reference/index.js.map +1 -0
- package/lib/tntd-second-page/index.js +1 -1
- package/lib/tntd-select/DropDownWrap.js +8 -8
- package/lib/tntd-select/index.js +10 -9
- package/lib/tntd-virtual-tree/index.d.ts +20 -0
- package/lib/tntd-virtual-tree/index.d.ts.map +1 -0
- package/lib/tntd-virtual-tree/index.js +263 -0
- package/lib/tntd-virtual-tree/index.js.map +1 -0
- package/lib/tntd-virtual-tree/index.less +59 -0
- package/lib/tntd-virtual-tree/utils.d.ts +17 -0
- package/lib/tntd-virtual-tree/utils.d.ts.map +1 -0
- package/lib/tntd-virtual-tree/utils.js +353 -0
- package/lib/tntd-virtual-tree/utils.js.map +1 -0
- package/lib/tntd-virtual-tree-select/index.d.ts +13 -4
- package/lib/tntd-virtual-tree-select/index.d.ts.map +1 -1
- package/lib/tntd-virtual-tree-select/index.js +103 -22
- package/lib/tntd-virtual-tree-select/index.js.map +1 -1
- package/lib/tntd-virtual-tree-select/utils.d.ts +2 -9
- package/lib/tntd-virtual-tree-select/utils.d.ts.map +1 -1
- package/lib/tntd-virtual-tree-select/utils.js +28 -147
- package/lib/tntd-virtual-tree-select/utils.js.map +1 -1
- package/lib/tooltip/tooltip.js +1 -1
- package/lib/upload/index.js +1 -1
- package/lib/utils/checkAuth.js +4 -4
- package/lib/utils/index.js +9 -9
- package/lib/utils/lang.js +3 -3
- package/lib/water-mark/index.js +5 -5
- package/package.json +4 -2
- package/es/tntd-virtual-tree-select/VirtualTree.js +0 -125
- package/es/tntd-virtual-tree-select/VirtualTree.js.map +0 -1
- package/es/tntd-virtual-tree-select/tree.less +0 -29
- package/lib/tntd-virtual-tree-select/VirtualTree.d.ts +0 -13
- package/lib/tntd-virtual-tree-select/VirtualTree.d.ts.map +0 -1
- package/lib/tntd-virtual-tree-select/VirtualTree.js +0 -155
- package/lib/tntd-virtual-tree-select/VirtualTree.js.map +0 -1
- package/lib/tntd-virtual-tree-select/tree.less +0 -29
|
@@ -11,16 +11,16 @@ var _select = _interopRequireDefault(require("../../select"));
|
|
|
11
11
|
var _input = _interopRequireDefault(require("../../input"));
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
14
|
-
function _interopRequireDefault(
|
|
15
|
-
function _defineProperty(
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
|
-
function _slicedToArray(
|
|
18
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
19
19
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
20
|
-
function _unsupportedIterableToArray(
|
|
21
|
-
function _arrayLikeToArray(
|
|
20
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
21
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
22
22
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
23
|
-
function _arrayWithHoles(
|
|
23
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
24
24
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
25
25
|
var t = {};
|
|
26
26
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -10,7 +10,7 @@ var _SelectInput = _interopRequireDefault(require("./SelectInput"));
|
|
|
10
10
|
var _datePicker = _interopRequireDefault(require("../../date-picker"));
|
|
11
11
|
var _input = _interopRequireDefault(require("../../input"));
|
|
12
12
|
var _inputNumber = _interopRequireDefault(require("../../input-number"));
|
|
13
|
-
function _interopRequireDefault(
|
|
13
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
14
|
var defaultFieldWidth = exports.defaultFieldWidth = '200px';
|
|
15
15
|
var getFieldWidth = exports.getFieldWidth = function getFieldWidth(type) {
|
|
16
16
|
if (type === 'dateRange') {
|
|
@@ -11,20 +11,20 @@ var _fieldsMap = _interopRequireWildcard(require("./fieldsMap"));
|
|
|
11
11
|
var _form = _interopRequireDefault(require("../../form"));
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
13
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
14
|
-
function _interopRequireDefault(
|
|
15
|
-
function _defineProperty(
|
|
16
|
-
function _classCallCheck(
|
|
17
|
-
function _defineProperties(
|
|
18
|
-
function _createClass(
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
16
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
17
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
18
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
19
19
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
20
20
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
21
21
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
22
|
-
function _possibleConstructorReturn(
|
|
23
|
-
function _assertThisInitialized(
|
|
22
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
23
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
24
24
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
25
|
-
function _getPrototypeOf(
|
|
26
|
-
function _inherits(
|
|
27
|
-
function _setPrototypeOf(
|
|
25
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
26
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
27
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
28
28
|
var FormItem = _form["default"].Item;
|
|
29
29
|
var isInput = function isInput(type) {
|
|
30
30
|
return ['input', 'string', 'search', 'aloneSearch'].includes(type);
|
|
@@ -7,7 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _set2 = _interopRequireDefault(require("lodash/set"));
|
|
8
8
|
var _get2 = _interopRequireDefault(require("lodash/get"));
|
|
9
9
|
var _eventemitter = _interopRequireDefault(require("eventemitter3"));
|
|
10
|
-
function _interopRequireDefault(
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
11
|
var _default = exports["default"] = function _default() {
|
|
12
12
|
var eventEmitter = new _eventemitter["default"]();
|
|
13
13
|
var data = {
|
package/lib/query-form/index.js
CHANGED
|
@@ -20,20 +20,20 @@ var _tntdIcon = _interopRequireDefault(require("../tntd-icon"));
|
|
|
20
20
|
require("./index.less");
|
|
21
21
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
22
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
23
|
-
function _interopRequireDefault(
|
|
24
|
-
function _defineProperty(
|
|
25
|
-
function _classCallCheck(
|
|
26
|
-
function _defineProperties(
|
|
27
|
-
function _createClass(
|
|
23
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
24
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
25
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
26
|
+
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
27
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
28
28
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
29
29
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
30
30
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
31
|
-
function _possibleConstructorReturn(
|
|
32
|
-
function _assertThisInitialized(
|
|
31
|
+
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
32
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
33
33
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
34
|
-
function _getPrototypeOf(
|
|
35
|
-
function _inherits(
|
|
36
|
-
function _setPrototypeOf(
|
|
34
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
35
|
+
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
36
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
37
37
|
var clsPrefix = 'tnt-queryform';
|
|
38
38
|
var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
39
39
|
function QueryForm(props) {
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports["default"] = useForm;
|
|
7
7
|
var _react = require("react");
|
|
8
8
|
var _createActions = _interopRequireDefault(require("./createActions"));
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
10
|
function useForm() {
|
|
11
11
|
var form = (0, _react.useRef)((0, _createActions["default"])());
|
|
12
12
|
return [form.current];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/query-form-v3/Field/Checkbox.js"],"names":[],"mappings":"AAIe;;;;sBAQd"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _checkbox = _interopRequireDefault(require("../../checkbox"));
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
11
|
+
var t = {};
|
|
12
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
13
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
14
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
15
|
+
}
|
|
16
|
+
return t;
|
|
17
|
+
};
|
|
18
|
+
var _default = exports["default"] = function _default(_a) {
|
|
19
|
+
var value = _a.value,
|
|
20
|
+
_onChange = _a.onChange,
|
|
21
|
+
props = __rest(_a, ["value", "onChange"]);
|
|
22
|
+
return _react["default"].createElement(_checkbox["default"], Object.assign({}, props, {
|
|
23
|
+
checked: !!value,
|
|
24
|
+
onChange: function onChange(evt) {
|
|
25
|
+
_onChange === null || _onChange === void 0 ? void 0 : _onChange(evt.target.checked);
|
|
26
|
+
}
|
|
27
|
+
}));
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/query-form-v3/Field/Checkbox.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAyB;AAEzB,8DAAqC;AAErC,kBAAe,CAAC,EAA6B,EAAE,EAAE;QAAjC,EAAE,KAAK,EAAE,QAAQ,OAAY,EAAP,KAAK,cAA3B,qBAA6B,CAAF;IAAO,OAAA,CAChD,8BAAC,kBAAQ,oBACH,KAAK,IACT,OAAO,EAAE,CAAC,CAAC,KAAK,EAChB,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;YAChB,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;QAChC,CAAC,IACD,CACH,CAAA;CAAA,CAAA","sourcesContent":["import React from 'react'\n\nimport Checkbox from '../../checkbox'\n\nexport default ({ value, onChange, ...props }) => (\n <Checkbox\n {...props}\n checked={!!value}\n onChange={(evt) => {\n onChange?.(evt.target.checked)\n }}\n />\n)\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
declare var _default: React.ForwardRefExoticComponent<Pick<{
|
|
2
|
+
[x: string]: any;
|
|
3
|
+
visible: any;
|
|
4
|
+
setVisible: any;
|
|
5
|
+
searchText: any;
|
|
6
|
+
children: any;
|
|
7
|
+
value: any;
|
|
8
|
+
regex: any;
|
|
9
|
+
fieldItems: any;
|
|
10
|
+
propItem: any;
|
|
11
|
+
setFieldItem: any;
|
|
12
|
+
onChange: any;
|
|
13
|
+
form: any;
|
|
14
|
+
locale: any;
|
|
15
|
+
clsPrefix: any;
|
|
16
|
+
}, string | number> & React.RefAttributes<any>>;
|
|
17
|
+
export default _default;
|
|
18
|
+
import React from "react";
|
|
19
|
+
//# sourceMappingURL=FieldPopover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldPopover.d.ts","sourceRoot":"","sources":["../../../../src/query-form-v3/Field/Composition/FieldPopover.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,370 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports["default"] = void 0;
|
|
8
|
+
var _get2 = _interopRequireDefault(require("lodash/get"));
|
|
9
|
+
var _cloneDeep2 = _interopRequireDefault(require("lodash/cloneDeep"));
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _popover = _interopRequireDefault(require("../../../popover"));
|
|
12
|
+
var _Select = _interopRequireDefault(require("./Select"));
|
|
13
|
+
var _utils = require("./utils");
|
|
14
|
+
var _fieldsMap = _interopRequireDefault(require("../fieldsMap"));
|
|
15
|
+
require("./FieldPopover.less");
|
|
16
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
18
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
19
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
20
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
21
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
22
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
23
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
24
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
25
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
28
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
29
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
30
|
+
}
|
|
31
|
+
return t;
|
|
32
|
+
};
|
|
33
|
+
var isInput = function isInput(type) {
|
|
34
|
+
return ['input', 'string', 'search', 'number', 'inputNumber'].includes(type);
|
|
35
|
+
};
|
|
36
|
+
var FieldPopover = function FieldPopover(_a, ref) {
|
|
37
|
+
var visible = _a.visible,
|
|
38
|
+
setVisible = _a.setVisible,
|
|
39
|
+
searchText = _a.searchText,
|
|
40
|
+
children = _a.children,
|
|
41
|
+
value = _a.value,
|
|
42
|
+
regex = _a.regex,
|
|
43
|
+
fieldItems = _a.fieldItems,
|
|
44
|
+
propItem = _a.propItem,
|
|
45
|
+
setFieldItem = _a.setFieldItem,
|
|
46
|
+
onChange = _a.onChange,
|
|
47
|
+
form = _a.form,
|
|
48
|
+
locale = _a.locale,
|
|
49
|
+
clsPrefix = _a.clsPrefix,
|
|
50
|
+
props = __rest(_a, ["visible", "setVisible", "searchText", "children", "value", "regex", "fieldItems", "propItem", "setFieldItem", "onChange", "form", "locale", "clsPrefix"]);
|
|
51
|
+
var _useState = (0, _react.useState)(undefined),
|
|
52
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
53
|
+
searchTarget = _useState2[0],
|
|
54
|
+
setSearchTarget = _useState2[1];
|
|
55
|
+
var _useState3 = (0, _react.useState)(false),
|
|
56
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
57
|
+
popoverContent = _useState4[0],
|
|
58
|
+
setPopoverContent = _useState4[1];
|
|
59
|
+
var onPropsClick = function onPropsClick(props) {
|
|
60
|
+
var _ref = props || {},
|
|
61
|
+
_ref$type = _ref.type,
|
|
62
|
+
type = _ref$type === void 0 ? 'input' : _ref$type,
|
|
63
|
+
component = _ref.component;
|
|
64
|
+
var copyValue = (0, _cloneDeep2["default"])(value);
|
|
65
|
+
if (!(copyValue === null || copyValue === void 0 ? void 0 : copyValue.find(function (v) {
|
|
66
|
+
return v.key === props.name;
|
|
67
|
+
}))) {
|
|
68
|
+
copyValue.push({
|
|
69
|
+
key: props.name,
|
|
70
|
+
value: type === 'array' ? [] : undefined,
|
|
71
|
+
closable: true,
|
|
72
|
+
label: (props.propsTitle || props.title || props.name) + ':'
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
setFieldItem(props);
|
|
76
|
+
if (isInput(type) && !component) {
|
|
77
|
+
var target = copyValue.find(function (v) {
|
|
78
|
+
return v.key === props.name;
|
|
79
|
+
});
|
|
80
|
+
onChange(target, true);
|
|
81
|
+
close();
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
setVisible(true);
|
|
85
|
+
setPopoverContent(true);
|
|
86
|
+
onChange(copyValue);
|
|
87
|
+
};
|
|
88
|
+
(0, _react.useImperativeHandle)(ref, function () {
|
|
89
|
+
return {
|
|
90
|
+
onPropsClick: onPropsClick
|
|
91
|
+
};
|
|
92
|
+
});
|
|
93
|
+
var onSelectChange = function onSelectChange(v, isMultiple) {
|
|
94
|
+
var _a, _b, _c, _d, _e, _f;
|
|
95
|
+
var propObj = (v === null || v === void 0 ? void 0 : v.propItem) || propItem || {};
|
|
96
|
+
var fieldProps = propObj.props; // 直接搜索拿v.xx的值
|
|
97
|
+
var copyValue = (0, _cloneDeep2["default"])(value || []);
|
|
98
|
+
var index;
|
|
99
|
+
if (v === null || v === void 0 ? void 0 : v.propItem) {
|
|
100
|
+
// 模糊搜索
|
|
101
|
+
var _index = copyValue.findIndex(function (vv) {
|
|
102
|
+
var _a;
|
|
103
|
+
return vv.key === ((_a = v.propItem) === null || _a === void 0 ? void 0 : _a.name);
|
|
104
|
+
});
|
|
105
|
+
if (_index > -1) {
|
|
106
|
+
index = _index;
|
|
107
|
+
} else {
|
|
108
|
+
copyValue.push({
|
|
109
|
+
key: (_a = v.propItem) === null || _a === void 0 ? void 0 : _a.name,
|
|
110
|
+
value: isMultiple ? [] : ''
|
|
111
|
+
});
|
|
112
|
+
index = copyValue.length - 1;
|
|
113
|
+
}
|
|
114
|
+
setFieldItem(v.propItem);
|
|
115
|
+
} else {
|
|
116
|
+
// 选择值
|
|
117
|
+
index = copyValue.findIndex(function (v) {
|
|
118
|
+
return v.key === (propItem === null || propItem === void 0 ? void 0 : propItem.name);
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
if (isMultiple) {
|
|
122
|
+
if (!((_c = (_b = copyValue[index]) === null || _b === void 0 ? void 0 : _b.value) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
123
|
+
copyValue[index].value = [v === null || v === void 0 ? void 0 : v.value];
|
|
124
|
+
} else {
|
|
125
|
+
if (((_d = copyValue[index].value) === null || _d === void 0 ? void 0 : _d.indexOf(v.value)) > -1) {
|
|
126
|
+
copyValue[index].value = copyValue[index].value.filter(function (val) {
|
|
127
|
+
return val !== v.value;
|
|
128
|
+
});
|
|
129
|
+
} else {
|
|
130
|
+
copyValue[index].value.push(v.value);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
// 如果是模糊搜索-展开多选项
|
|
134
|
+
if (v === null || v === void 0 ? void 0 : v.propItem) {
|
|
135
|
+
setFieldItem(v === null || v === void 0 ? void 0 : v.propItem);
|
|
136
|
+
setVisible(true);
|
|
137
|
+
setPopoverContent(true);
|
|
138
|
+
}
|
|
139
|
+
} else {
|
|
140
|
+
copyValue[index].value = v === null || v === void 0 ? void 0 : v.value;
|
|
141
|
+
close();
|
|
142
|
+
}
|
|
143
|
+
var labelPrefix = "".concat(propObj.propsTitle || propObj.title || propObj.name, ": ");
|
|
144
|
+
if (propObj.setLabel) {
|
|
145
|
+
copyValue[index].label = labelPrefix + propObj.setLabel(copyValue[index].value);
|
|
146
|
+
} else {
|
|
147
|
+
copyValue[index].label = labelPrefix + (0, _utils.getLabelByValue)({
|
|
148
|
+
value: copyValue[index].value,
|
|
149
|
+
options: ((_e = propObj.props) === null || _e === void 0 ? void 0 : _e.options) || v.options,
|
|
150
|
+
fieldNames: ((_f = propObj.props) === null || _f === void 0 ? void 0 : _f.fieldNames) || {
|
|
151
|
+
label: 'label',
|
|
152
|
+
value: 'value'
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
}
|
|
156
|
+
copyValue[index].closable = true;
|
|
157
|
+
onChange(copyValue, false, true);
|
|
158
|
+
(fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.onChange) && fieldProps.onChange(copyValue[index].value);
|
|
159
|
+
};
|
|
160
|
+
var onFieldChange = function onFieldChange() {
|
|
161
|
+
var _a, _b;
|
|
162
|
+
var _ref2 = propItem || {},
|
|
163
|
+
type = _ref2.type,
|
|
164
|
+
component = _ref2.component,
|
|
165
|
+
fieldProps = _ref2.props,
|
|
166
|
+
setLabel = _ref2.setLabel,
|
|
167
|
+
propsTitle = _ref2.propsTitle,
|
|
168
|
+
title = _ref2.title,
|
|
169
|
+
name = _ref2.name;
|
|
170
|
+
var _ref3 = fieldProps || {},
|
|
171
|
+
options = _ref3.options;
|
|
172
|
+
var copyValue = (0, _cloneDeep2["default"])(value);
|
|
173
|
+
var index = copyValue.findIndex(function (v) {
|
|
174
|
+
return v.key === (propItem === null || propItem === void 0 ? void 0 : propItem.name);
|
|
175
|
+
});
|
|
176
|
+
copyValue[index].value = arguments.length <= 0 ? undefined : arguments[0];
|
|
177
|
+
var labelPrefix = "".concat(propsTitle || title || name, ": ");
|
|
178
|
+
if (setLabel) {
|
|
179
|
+
// setLabel: 对于自定义组件,无法控制label的显示,可以通过setLabel方法控制
|
|
180
|
+
copyValue[index].label = labelPrefix + setLabel(arguments.length <= 0 ? undefined : arguments[0]);
|
|
181
|
+
} else if (type === 'date') {
|
|
182
|
+
copyValue[index].label = labelPrefix + (arguments.length <= 1 ? undefined : arguments[1]);
|
|
183
|
+
close();
|
|
184
|
+
} else if (type === 'dateRange') {
|
|
185
|
+
copyValue[index].label = labelPrefix + ((_a = arguments.length <= 1 ? undefined : arguments[1]) === null || _a === void 0 ? void 0 : _a.join('~'));
|
|
186
|
+
if ((_b = arguments.length <= 1 ? undefined : arguments[1]) === null || _b === void 0 ? void 0 : _b[1]) {
|
|
187
|
+
close();
|
|
188
|
+
}
|
|
189
|
+
} else if (type === 'selectInput') {
|
|
190
|
+
var key = (0, _get2["default"])(Object.keys(arguments.length <= 0 ? undefined : arguments[0]), '0');
|
|
191
|
+
var val = (0, _get2["default"])(arguments.length <= 0 ? undefined : arguments[0], key);
|
|
192
|
+
var label = (0, _utils.getLabelFromOptions)(key, options);
|
|
193
|
+
copyValue[index].label = "".concat(label, ": ").concat(val);
|
|
194
|
+
} else if (type === 'checkbox') {
|
|
195
|
+
copyValue[index].label = labelPrefix + ((arguments.length <= 0 ? undefined : arguments[0]) ? locale.yes : locale.no);
|
|
196
|
+
close();
|
|
197
|
+
} else if (!type && component) {
|
|
198
|
+
copyValue[index].label = labelPrefix + ((arguments.length <= 1 ? undefined : arguments[1]) || (arguments.length <= 0 ? undefined : arguments[0]));
|
|
199
|
+
close();
|
|
200
|
+
}
|
|
201
|
+
copyValue[index].closable = true;
|
|
202
|
+
// onChange(copyValue, false, true)
|
|
203
|
+
onChange(copyValue, false, (arguments.length <= 0 ? undefined : arguments[0]) !== undefined);
|
|
204
|
+
(fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.onChange) && fieldProps.onChange(copyValue[index].value);
|
|
205
|
+
};
|
|
206
|
+
var close = function close() {
|
|
207
|
+
setVisible(false);
|
|
208
|
+
setTimeout(function () {
|
|
209
|
+
setFieldItem();
|
|
210
|
+
setPopoverContent(false);
|
|
211
|
+
}, 1);
|
|
212
|
+
};
|
|
213
|
+
var handleVisibleChange = function handleVisibleChange() {
|
|
214
|
+
if (!visible && !regex.test(searchText)) {
|
|
215
|
+
setVisible(true);
|
|
216
|
+
} else {
|
|
217
|
+
close();
|
|
218
|
+
}
|
|
219
|
+
};
|
|
220
|
+
(0, _react.useEffect)(function () {
|
|
221
|
+
var bool1 = false,
|
|
222
|
+
bool2 = false;
|
|
223
|
+
if (searchText && !propItem) {
|
|
224
|
+
fieldItems === null || fieldItems === void 0 ? void 0 : fieldItems.forEach(function (v) {
|
|
225
|
+
var _ref4 = v.props || {},
|
|
226
|
+
name = _ref4.name,
|
|
227
|
+
propsTitle = _ref4.propsTitle,
|
|
228
|
+
title = _ref4.title,
|
|
229
|
+
type = _ref4.type,
|
|
230
|
+
props = _ref4.props;
|
|
231
|
+
var _propsTitle = propsTitle || title || name;
|
|
232
|
+
if ((_propsTitle === null || _propsTitle === void 0 ? void 0 : _propsTitle.indexOf(searchText)) > -1) {
|
|
233
|
+
bool1 = true;
|
|
234
|
+
}
|
|
235
|
+
var sOptions = type !== 'select' ? [] : (props === null || props === void 0 ? void 0 : props.options) || [];
|
|
236
|
+
var fieldNames = props === null || props === void 0 ? void 0 : props.fieldNames;
|
|
237
|
+
var target = sOptions === null || sOptions === void 0 ? void 0 : sOptions.find(function (item) {
|
|
238
|
+
var labelKey = (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label) || 'label';
|
|
239
|
+
var label = item instanceof Object ? item[labelKey] : item + '';
|
|
240
|
+
return (_react["default"].isValidElement(label) ? (0, _utils.formatLabel)(label) : label).indexOf(searchText) > -1;
|
|
241
|
+
});
|
|
242
|
+
if (target) {
|
|
243
|
+
bool2 = true;
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
setSearchTarget(!bool2 && !bool1 ? null : {
|
|
247
|
+
propsTitle: bool1,
|
|
248
|
+
propsValue: bool2
|
|
249
|
+
});
|
|
250
|
+
} else {
|
|
251
|
+
setSearchTarget(undefined);
|
|
252
|
+
}
|
|
253
|
+
}, [fieldItems, searchText, propItem]);
|
|
254
|
+
var renderFirstOptions = function renderFirstOptions() {
|
|
255
|
+
return _react["default"].createElement("div", null, (!searchText || (searchTarget === null || searchTarget === void 0 ? void 0 : searchTarget.propsTitle)) && _react["default"].createElement("label", null, locale.propTitle), _react["default"].createElement("ul", {
|
|
256
|
+
className: "ant-select-dropdown-menu"
|
|
257
|
+
}, fieldItems === null || fieldItems === void 0 ? void 0 : fieldItems.map(function (v) {
|
|
258
|
+
var _ref5 = v.props || {},
|
|
259
|
+
name = _ref5.name,
|
|
260
|
+
propsTitle = _ref5.propsTitle,
|
|
261
|
+
title = _ref5.title,
|
|
262
|
+
type = _ref5.type,
|
|
263
|
+
props = _ref5.props;
|
|
264
|
+
var _propsTitle = propsTitle || title || name;
|
|
265
|
+
if (searchText) {
|
|
266
|
+
if ((_propsTitle === null || _propsTitle === void 0 ? void 0 : _propsTitle.indexOf(searchText)) > -1) {
|
|
267
|
+
return _react["default"].createElement("li", {
|
|
268
|
+
className: "ant-select-dropdown-menu-item",
|
|
269
|
+
key: name,
|
|
270
|
+
value: name,
|
|
271
|
+
onMouseDown: function onMouseDown(e) {
|
|
272
|
+
return e.preventDefault();
|
|
273
|
+
},
|
|
274
|
+
onClick: function onClick() {
|
|
275
|
+
onPropsClick(v.props);
|
|
276
|
+
}
|
|
277
|
+
}, _react["default"].createElement("span", {
|
|
278
|
+
dangerouslySetInnerHTML: {
|
|
279
|
+
__html: (0, _utils.highlightSubstring)(_propsTitle, searchText)
|
|
280
|
+
}
|
|
281
|
+
}));
|
|
282
|
+
}
|
|
283
|
+
return null;
|
|
284
|
+
}
|
|
285
|
+
return _react["default"].createElement("li", {
|
|
286
|
+
className: "ant-select-dropdown-menu-item",
|
|
287
|
+
key: name,
|
|
288
|
+
value: name,
|
|
289
|
+
onMouseDown: function onMouseDown(e) {
|
|
290
|
+
return e.preventDefault();
|
|
291
|
+
},
|
|
292
|
+
onClick: function onClick() {
|
|
293
|
+
onPropsClick(v.props);
|
|
294
|
+
}
|
|
295
|
+
}, _propsTitle);
|
|
296
|
+
})), searchText && _react["default"].createElement("div", null, (searchTarget === null || searchTarget === void 0 ? void 0 : searchTarget.propsValue) && _react["default"].createElement("label", null, locale.propValue), fieldItems === null || fieldItems === void 0 ? void 0 : fieldItems.map(function (v) {
|
|
297
|
+
var _ref6 = v.props || {},
|
|
298
|
+
name = _ref6.name,
|
|
299
|
+
propsTitle = _ref6.propsTitle,
|
|
300
|
+
type = _ref6.type,
|
|
301
|
+
props = _ref6.props;
|
|
302
|
+
var target = value === null || value === void 0 ? void 0 : value.find(function (v) {
|
|
303
|
+
return v.key === name;
|
|
304
|
+
});
|
|
305
|
+
if (type === 'select') {
|
|
306
|
+
// && props?.options?.length > 0
|
|
307
|
+
return _react["default"].createElement(_Select["default"], Object.assign({
|
|
308
|
+
key: name
|
|
309
|
+
}, props, {
|
|
310
|
+
searchText: searchText,
|
|
311
|
+
propItem: v.props,
|
|
312
|
+
onChange: onSelectChange,
|
|
313
|
+
value: target === null || target === void 0 ? void 0 : target.value
|
|
314
|
+
}));
|
|
315
|
+
}
|
|
316
|
+
return;
|
|
317
|
+
})));
|
|
318
|
+
};
|
|
319
|
+
var renderSecondOptions = function renderSecondOptions() {
|
|
320
|
+
var _a;
|
|
321
|
+
var _ref7 = propItem || {},
|
|
322
|
+
name = _ref7.name,
|
|
323
|
+
propsTitle = _ref7.propsTitle,
|
|
324
|
+
title = _ref7.title,
|
|
325
|
+
type = _ref7.type,
|
|
326
|
+
className = _ref7.className,
|
|
327
|
+
component = _ref7.component,
|
|
328
|
+
fieldProps = _ref7.props;
|
|
329
|
+
var target = value === null || value === void 0 ? void 0 : value.find(function (v) {
|
|
330
|
+
return v.key === name;
|
|
331
|
+
});
|
|
332
|
+
var Field = component || _fieldsMap["default"][type] || function () {
|
|
333
|
+
return null;
|
|
334
|
+
};
|
|
335
|
+
return _react["default"].createElement("div", {
|
|
336
|
+
onClick: function onClick(e) {
|
|
337
|
+
return e.stopPropagation();
|
|
338
|
+
},
|
|
339
|
+
className: className
|
|
340
|
+
}, _react["default"].createElement("label", null, propsTitle || title || name), type === 'select' ? _react["default"].createElement(_Select["default"], Object.assign({}, fieldProps, {
|
|
341
|
+
searchText: searchText,
|
|
342
|
+
propItem: propItem,
|
|
343
|
+
onChange: onSelectChange,
|
|
344
|
+
value: target === null || target === void 0 ? void 0 : target.value
|
|
345
|
+
})) : _react["default"].createElement("div", {
|
|
346
|
+
className: "".concat(clsPrefix, "-field-popover-content"),
|
|
347
|
+
onClick: function onClick(e) {
|
|
348
|
+
return e.stopPropagation();
|
|
349
|
+
}
|
|
350
|
+
}, _react["default"].createElement(Field, Object.assign({
|
|
351
|
+
form: form,
|
|
352
|
+
value: target === null || target === void 0 ? void 0 : target.value
|
|
353
|
+
}, fieldProps, {
|
|
354
|
+
style: Object.assign(Object.assign({}, fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.style), {
|
|
355
|
+
width: ((_a = fieldProps === null || fieldProps === void 0 ? void 0 : fieldProps.style) === null || _a === void 0 ? void 0 : _a.width) || '250px'
|
|
356
|
+
}),
|
|
357
|
+
close: close,
|
|
358
|
+
onChange: onFieldChange
|
|
359
|
+
}))));
|
|
360
|
+
};
|
|
361
|
+
return _react["default"].createElement(_popover["default"], Object.assign({
|
|
362
|
+
trigger: "click",
|
|
363
|
+
visible: visible,
|
|
364
|
+
placement: "bottom",
|
|
365
|
+
overlayClassName: "".concat(clsPrefix, "-field-popover"),
|
|
366
|
+
content: !popoverContent ? renderFirstOptions() : renderSecondOptions(),
|
|
367
|
+
onVisibleChange: handleVisibleChange
|
|
368
|
+
}, props), children);
|
|
369
|
+
};
|
|
370
|
+
var _default = exports["default"] = (0, _react.forwardRef)(FieldPopover);
|