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
|
@@ -0,0 +1,93 @@
|
|
|
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 _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _drawer = _interopRequireDefault(require("../../drawer"));
|
|
10
|
+
var _spin = _interopRequireDefault(require("../../spin"));
|
|
11
|
+
var _tooltip = _interopRequireDefault(require("../../tooltip"));
|
|
12
|
+
var _message = _interopRequireDefault(require("../../message"));
|
|
13
|
+
var _ReferenceInfo = _interopRequireDefault(require("../ReferenceInfo"));
|
|
14
|
+
var _prevLocale = require("../../prev-locale");
|
|
15
|
+
require("./index.less");
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
|
+
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); }
|
|
18
|
+
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; }
|
|
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 _default = exports["default"] = function _default(props) {
|
|
34
|
+
var fetchReference = props.fetchReference,
|
|
35
|
+
_props$data = props.data,
|
|
36
|
+
data = _props$data === void 0 ? null : _props$data,
|
|
37
|
+
_props$orgMap = props.orgMap,
|
|
38
|
+
orgMap = _props$orgMap === void 0 ? {} : _props$orgMap,
|
|
39
|
+
_props$appList = props.appList,
|
|
40
|
+
appList = _props$appList === void 0 ? [] : _props$appList,
|
|
41
|
+
title = props.title,
|
|
42
|
+
visible = props.visible,
|
|
43
|
+
onClose = props.onClose,
|
|
44
|
+
emptyType = props.emptyType,
|
|
45
|
+
showPagination = props.showPagination,
|
|
46
|
+
_props$destroyOnClose = props.destroyOnClose,
|
|
47
|
+
destroyOnClose = _props$destroyOnClose === void 0 ? true : _props$destroyOnClose,
|
|
48
|
+
rest = __rest(props, ["fetchReference", "data", "orgMap", "appList", "title", "visible", "onClose", "emptyType", "showPagination", "destroyOnClose"]);
|
|
49
|
+
var _useState = (0, _react.useState)(data),
|
|
50
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
51
|
+
referenceData = _useState2[0],
|
|
52
|
+
setReferenceData = _useState2[1];
|
|
53
|
+
var _useState3 = (0, _react.useState)(!data),
|
|
54
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
55
|
+
referenceLoad = _useState4[0],
|
|
56
|
+
setReferenceLoad = _useState4[1];
|
|
57
|
+
(0, _react.useEffect)(function () {
|
|
58
|
+
if (visible && fetchReference) {
|
|
59
|
+
fetchReference().then(function (res) {
|
|
60
|
+
if ((res === null || res === void 0 ? void 0 : res.success) && (res === null || res === void 0 ? void 0 : res.data)) {
|
|
61
|
+
setReferenceData((res === null || res === void 0 ? void 0 : res.data) || []);
|
|
62
|
+
}
|
|
63
|
+
if (!(res === null || res === void 0 ? void 0 : res.success)) {
|
|
64
|
+
_message["default"].error(res.message || (0, _prevLocale.getText)('referenceFail', props === null || props === void 0 ? void 0 : props.lang)); // '查询引用关系失败'
|
|
65
|
+
}
|
|
66
|
+
})["finally"](function () {
|
|
67
|
+
setReferenceLoad(false);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
}, [visible, fetchReference]);
|
|
71
|
+
return _react["default"].createElement(_drawer["default"], Object.assign({
|
|
72
|
+
className: "reference-drawer",
|
|
73
|
+
width: 900,
|
|
74
|
+
title: _react["default"].createElement(_tooltip["default"], {
|
|
75
|
+
title: title
|
|
76
|
+
}, title || ''),
|
|
77
|
+
onClose: onClose,
|
|
78
|
+
visible: visible,
|
|
79
|
+
destroyOnClose: destroyOnClose
|
|
80
|
+
}, rest), referenceLoad && _react["default"].createElement(_spin["default"], {
|
|
81
|
+
className: "globalSpin",
|
|
82
|
+
tip: (0, _prevLocale.getText)('inQuery', props === null || props === void 0 ? void 0 : props.lang)
|
|
83
|
+
}), !referenceLoad && _react["default"].createElement("div", {
|
|
84
|
+
className: "drawer-reference-body"
|
|
85
|
+
}, _react["default"].createElement(_ReferenceInfo["default"], {
|
|
86
|
+
emptyType: emptyType,
|
|
87
|
+
referenceData: referenceData || [],
|
|
88
|
+
appList: appList || [],
|
|
89
|
+
orgMap: orgMap || {},
|
|
90
|
+
unmountHandle: onClose,
|
|
91
|
+
showPagination: showPagination
|
|
92
|
+
})));
|
|
93
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tntd-reference/ReferenceDrawer/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAmD;AACnD,0DAAkC;AAClC,sDAA8B;AAC9B,4DAAoC;AACpC,4DAAoC;AACpC,qEAA6C;AAC7C,mDAA4C;AAC5C,wBAAsB;AAEtB,kBAAe,CAAC,KAAK,EAAE,EAAE;IACvB,MAAM,EACJ,cAAc,EACd,IAAI,GAAG,IAAI,EACX,MAAM,GAAG,EAAE,EACX,OAAO,GAAG,EAAE,EACZ,KAAK,EACL,OAAO,EACP,OAAO,EACP,SAAS,EACT,cAAc,EACd,cAAc,GAAG,IAAI,KAEnB,KAAK,EADJ,IAAI,UACL,KAAK,EAZH,+HAYL,CAAQ,CAAC;IACV,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,IAAA,gBAAQ,EAAC,IAAI,CAAC,CAAC;IACzD,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,IAAA,gBAAQ,EAAC,CAA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C,aAAa,IAAI,CACjB,uCAAK,SAAS,EAAC,uBAAuB;YACpC,8BAAC,uBAAa,IACZ,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,aAAa,IAAI,EAAE,EAClC,OAAO,EAAE,OAAO,IAAI,EAAE,EACtB,MAAM,EAAE,MAAM,IAAI,EAAE,EACpB,aAAa,EAAE,OAAO,EACtB,cAAc,EAAE,cAAc,GAC9B,CACE,CACP,CACM,CACV,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React, { useEffect, useState } from 'react';\nimport Drawer from '../../drawer';\nimport Spin from \"../../spin\";\nimport Tooltip from \"../../tooltip\";\nimport message from '../../message';\nimport ReferenceInfo from '../ReferenceInfo';\nimport { getText } from '../../prev-locale';\nimport './index.less';\n\nexport default (props) => {\n const {\n fetchReference,\n data = null,\n orgMap = {},\n appList = [],\n title,\n visible,\n onClose,\n emptyType,\n showPagination,\n destroyOnClose = true,\n ...rest\n } = props;\n const [referenceData, setReferenceData] = useState(data);\n const [referenceLoad, setReferenceLoad] = useState(!data);\n useEffect(() => {\n if (visible && fetchReference) {\n fetchReference()\n .then((res) => {\n if (res?.success && res?.data) {\n setReferenceData(res?.data || []);\n }\n if (!res?.success) {\n message.error(res.message || getText('referenceFail', props?.lang)); // '查询引用关系失败'\n }\n })\n .finally(() => {\n setReferenceLoad(false);\n });\n }\n }, [visible, fetchReference]);\n\n return (\n <Drawer\n className=\"reference-drawer\"\n width={900}\n title={<Tooltip title={title}>{title || ''}</Tooltip>}\n onClose={onClose}\n visible={visible}\n destroyOnClose={destroyOnClose}\n {...rest}\n >\n {referenceLoad && <Spin className=\"globalSpin\" tip={getText('inQuery', props?.lang)}></Spin>}\n {!referenceLoad && (\n <div className=\"drawer-reference-body\">\n <ReferenceInfo\n emptyType={emptyType}\n referenceData={referenceData || []}\n appList={appList || []}\n orgMap={orgMap || {}}\n unmountHandle={onClose}\n showPagination={showPagination}\n />\n </div>\n )}\n </Drawer>\n );\n};"]}
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tntd-reference/ReferenceInfo/index.js"],"names":[],"mappings":"AAce,yDA6Jd"}
|
|
@@ -0,0 +1,164 @@
|
|
|
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 _tooltip = _interopRequireDefault(require("../../tooltip"));
|
|
9
|
+
var _icon = _interopRequireDefault(require("../../icon"));
|
|
10
|
+
var _table = _interopRequireDefault(require("../../table"));
|
|
11
|
+
require("../../row");
|
|
12
|
+
var _empty = _interopRequireDefault(require("../../empty"));
|
|
13
|
+
var _ellipsis = _interopRequireDefault(require("../../ellipsis"));
|
|
14
|
+
var _tag = _interopRequireDefault(require("../../tag"));
|
|
15
|
+
var _title = _interopRequireDefault(require("../../title"));
|
|
16
|
+
var _AHref = _interopRequireDefault(require("../AHref"));
|
|
17
|
+
var _prevLocale = require("../../prev-locale");
|
|
18
|
+
require("./index.less");
|
|
19
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
20
|
+
var _default = exports["default"] = function _default(props) {
|
|
21
|
+
var from = props.from,
|
|
22
|
+
_props$referenceData = props.referenceData,
|
|
23
|
+
referenceData = _props$referenceData === void 0 ? [] : _props$referenceData,
|
|
24
|
+
_props$orgMap = props.orgMap,
|
|
25
|
+
orgMap = _props$orgMap === void 0 ? {} : _props$orgMap,
|
|
26
|
+
_props$appList = props.appList,
|
|
27
|
+
appList = _props$appList === void 0 ? [] : _props$appList,
|
|
28
|
+
_props$description = props.description,
|
|
29
|
+
description = _props$description === void 0 ? '' : _props$description,
|
|
30
|
+
unmountHandle = props.unmountHandle,
|
|
31
|
+
_props$imageStyle = props.imageStyle,
|
|
32
|
+
imageStyle = _props$imageStyle === void 0 ? {} : _props$imageStyle,
|
|
33
|
+
_props$showPagination = props.showPagination,
|
|
34
|
+
showPagination = _props$showPagination === void 0 ? true : _props$showPagination,
|
|
35
|
+
type = props.type;
|
|
36
|
+
var paginationInfo = {
|
|
37
|
+
pagination: {
|
|
38
|
+
hideOnSinglePage: true,
|
|
39
|
+
size: 'small'
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
if (!showPagination) {
|
|
43
|
+
paginationInfo = {
|
|
44
|
+
pagination: false
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
return _react["default"].createElement("div", {
|
|
48
|
+
className: "reference-body"
|
|
49
|
+
}, !(referenceData === null || referenceData === void 0 ? void 0 : referenceData.length) && _react["default"].createElement(_empty["default"], {
|
|
50
|
+
description: description || (0, _prevLocale.getText)('noData', props === null || props === void 0 ? void 0 : props.lang),
|
|
51
|
+
type: type || 'no-result',
|
|
52
|
+
imageStyle: Object.assign({
|
|
53
|
+
marginTop: 120
|
|
54
|
+
}, imageStyle)
|
|
55
|
+
}), referenceData === null || referenceData === void 0 ? void 0 : referenceData.map(function (d, dIndex) {
|
|
56
|
+
var _ref = d || {},
|
|
57
|
+
columns = _ref.columns,
|
|
58
|
+
goName = _ref.goName;
|
|
59
|
+
var renderColumns = [];
|
|
60
|
+
if (columns === null || columns === void 0 ? void 0 : columns.length) {
|
|
61
|
+
renderColumns = columns === null || columns === void 0 ? void 0 : columns.map(function (c, i) {
|
|
62
|
+
var newC = Object.assign(Object.assign({}, c), {
|
|
63
|
+
title: _react["default"].createElement(_tooltip["default"], {
|
|
64
|
+
title: c === null || c === void 0 ? void 0 : c.title,
|
|
65
|
+
placement: "topLeft"
|
|
66
|
+
}, c === null || c === void 0 ? void 0 : c.title),
|
|
67
|
+
width: 160,
|
|
68
|
+
ellipsis: true
|
|
69
|
+
});
|
|
70
|
+
if (from === 'ReferenceOnlineCheck' && c.dataIndex === 'status') {
|
|
71
|
+
newC.className = 'refer-warning-txt';
|
|
72
|
+
}
|
|
73
|
+
newC.render = function (t, record) {
|
|
74
|
+
var _a, _b;
|
|
75
|
+
var content = t;
|
|
76
|
+
if (c.dataIndex === 'org') {
|
|
77
|
+
content = ((_a = orgMap[t]) === null || _a === void 0 ? void 0 : _a.name) || t;
|
|
78
|
+
}
|
|
79
|
+
if (c.dataIndex === 'app') {
|
|
80
|
+
content = ((_b = appList.find(function (a) {
|
|
81
|
+
return a.key === t;
|
|
82
|
+
})) === null || _b === void 0 ? void 0 : _b.name) || t;
|
|
83
|
+
}
|
|
84
|
+
// 强弱引用
|
|
85
|
+
var tagInfo = null;
|
|
86
|
+
if (i === 0 && (record === null || record === void 0 ? void 0 : record.referenceCheckType)) {
|
|
87
|
+
var checkObj;
|
|
88
|
+
// 能进行下一步操作
|
|
89
|
+
var isStrong = ['STRONG'].includes(record === null || record === void 0 ? void 0 : record.referenceCheckType);
|
|
90
|
+
if (isStrong) {
|
|
91
|
+
checkObj = {
|
|
92
|
+
name: (record === null || record === void 0 ? void 0 : record.referenceCheckTypeName) || (0, _prevLocale.getText)('strong', props === null || props === void 0 ? void 0 : props.lang),
|
|
93
|
+
color: 'red'
|
|
94
|
+
};
|
|
95
|
+
} else {
|
|
96
|
+
checkObj = {
|
|
97
|
+
name: (record === null || record === void 0 ? void 0 : record.referenceCheckTypeName) || (0, _prevLocale.getText)('weak', props === null || props === void 0 ? void 0 : props.lang),
|
|
98
|
+
color: 'grey'
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
tagInfo = checkObj ? _react["default"].createElement(_tag["default"], {
|
|
102
|
+
size: "small",
|
|
103
|
+
color: checkObj.color
|
|
104
|
+
}, checkObj.name) : null;
|
|
105
|
+
}
|
|
106
|
+
if (c.dataIndex === goName && (record === null || record === void 0 ? void 0 : record.goLink)) {
|
|
107
|
+
return _react["default"].createElement(_AHref["default"], {
|
|
108
|
+
href: record === null || record === void 0 ? void 0 : record.goLink,
|
|
109
|
+
target: "_blank",
|
|
110
|
+
unmountHandle: unmountHandle
|
|
111
|
+
}, _react["default"].createElement(_tooltip["default"], {
|
|
112
|
+
placement: "topLeft",
|
|
113
|
+
title: content || '- -'
|
|
114
|
+
}, _react["default"].createElement("span", {
|
|
115
|
+
className: "content-span"
|
|
116
|
+
}, tagInfo, content || '- -')));
|
|
117
|
+
}
|
|
118
|
+
if (c.dataIndex === goName) {
|
|
119
|
+
return _react["default"].createElement(_ellipsis["default"], {
|
|
120
|
+
placement: "topLeft",
|
|
121
|
+
copyable: true,
|
|
122
|
+
title: content || '- -',
|
|
123
|
+
prefix: tagInfo
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
return _react["default"].createElement(_tooltip["default"], {
|
|
127
|
+
placement: "topLeft",
|
|
128
|
+
title: content || '- -'
|
|
129
|
+
}, _react["default"].createElement("span", {
|
|
130
|
+
className: "content-span"
|
|
131
|
+
}, tagInfo, content || '- -'));
|
|
132
|
+
};
|
|
133
|
+
return newC;
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
return _react["default"].createElement("div", {
|
|
137
|
+
className: "reference-body-item",
|
|
138
|
+
key: dIndex
|
|
139
|
+
}, _react["default"].createElement(_title["default"], {
|
|
140
|
+
className: "reference-body-title",
|
|
141
|
+
title: d === null || d === void 0 ? void 0 : d.title,
|
|
142
|
+
tooltip: d === null || d === void 0 ? void 0 : d.title,
|
|
143
|
+
subTitle: (d === null || d === void 0 ? void 0 : d.tips) && _react["default"].createElement(_tooltip["default"], {
|
|
144
|
+
title: d === null || d === void 0 ? void 0 : d.tips,
|
|
145
|
+
placement: "topLeft"
|
|
146
|
+
}, _react["default"].createElement(_icon["default"], {
|
|
147
|
+
type: "info-circle"
|
|
148
|
+
}))
|
|
149
|
+
}), (renderColumns === null || renderColumns === void 0 ? void 0 : renderColumns.length) && _react["default"].createElement(_table["default"], Object.assign({
|
|
150
|
+
bordered: true,
|
|
151
|
+
className: "reference-table",
|
|
152
|
+
striped: true,
|
|
153
|
+
dataSource: d === null || d === void 0 ? void 0 : d.rows,
|
|
154
|
+
columns: renderColumns,
|
|
155
|
+
scroll: renderColumns.length > 4 ? {
|
|
156
|
+
x: renderColumns.length * 160
|
|
157
|
+
} : {}
|
|
158
|
+
}, paginationInfo, {
|
|
159
|
+
rowKey: function rowKey(e, i) {
|
|
160
|
+
return "".concat(dIndex, "_").concat(i);
|
|
161
|
+
}
|
|
162
|
+
})));
|
|
163
|
+
}));
|
|
164
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tntd-reference/ReferenceInfo/index.js"],"names":[],"mappings":";;;;;AAAA,kDAA0B;AAC1B,4DAAoC;AACpC,sDAA8B;AAC9B,wDAAgC;AAChC,qBAA4B;AAC5B,wDAAgC;AAChC,8DAAsC;AACtC,oDAA4B;AAC5B,wDAAgC;AAEhC,qDAA6B;AAC7B,mDAA4C;AAC5C,wBAAsB;AAEtB,kBAAe,CAAC,KAAK,EAAE,EAAE;IACvB,MAAM,EACJ,IAAI,EACJ,aAAa,GAAG,EAAE,EAClB,MAAM,GAAG,EAAE,EACX,OAAO,GAAG,EAAE,EACZ,WAAW,GAAG,EAAE,EAChB,aAAa,EACb,UAAU,GAAG,EAAE,EACf,cAAc,GAAG,IAAI,EACrB,IAAI,GACL,GAAG,KAAK,CAAC;IAEV,IAAI,cAAc,GAAG;QACnB,UAAU,EAAE;YACV,gBAAgB,EAAE,IAAI;YACtB,IAAI,EAAE,OAAO;SACd;KACF,CAAC;IAEF,IAAI,CAAC,cAAc,EAAE;QACnB,cAAc,GAAG;YACf,UAAU,EAAE,KAAK;SAClB,CAAC;KACH;IACD,OAAO,CACL,uCAAK,SAAS,EAAC,gBAAgB;QAC5B,CAAC,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,CAAA,IAAI,CACzB,8BAAC,eAAK,IACJ,WAAW,EAAE,WAAW,IAAI,IAAA,qBAAO,EAAC,QAAQ,EAAE,KAAK,aAAL,KAAK,uBAA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CACX,GAEH;gBAED,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,MAAM,KAAI,CACxB,8BAAC,eAAK,kBACJ,QAAQ,QACR,SAAS,EAAC,iBAAiB,EAC3B,OAAO,EAAE,IAAI,EACb,UAAU,EAAE,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,IAAI,EACnB,OAAO,EAAE,aAAa,EACtB,MAAM,EACJ,aAAa,CAAC,MAAM,GAAG,CAAC;wBACtB,CAAC,CAAC;4BACE,CAAC,EAAE,aAAa,CAAC,MAAM,GAAG,GAAG;yBAC9B;wBACH,CAAC,CAAC,EAAE,IAEJ,cAAc,IAClB,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,MAAM,IAAI,CAAC,EAAE,IAClC,CACH,CACG,CACP,CAAC;QACJ,CAAC,CAAC,CACE,CACP,CAAC;AACJ,CAAC,CAAC","sourcesContent":["import React from 'react';\nimport Tooltip from \"../../tooltip\";\nimport Icon from \"../../icon\";\nimport Table from \"../../table\";\nimport Row from \"../../row\";\nimport Empty from \"../../empty\";\nimport Ellipsis from \"../../ellipsis\";\nimport Tag from \"../../tag\";\nimport Title from \"../../title\";\n\nimport AHref from '../AHref';\nimport { getText } from '../../prev-locale';\nimport './index.less';\n\nexport default (props) => {\n const {\n from,\n referenceData = [],\n orgMap = {},\n appList = [],\n description = '',\n unmountHandle,\n imageStyle = {},\n showPagination = true,\n type,\n } = props;\n\n let paginationInfo = {\n pagination: {\n hideOnSinglePage: true,\n size: 'small',\n },\n };\n\n if (!showPagination) {\n paginationInfo = {\n pagination: false,\n };\n }\n return (\n <div className=\"reference-body\">\n {!referenceData?.length && (\n <Empty\n description={description || getText('noData', props?.lang)}\n type={type || 'no-result'}\n imageStyle={{ marginTop: 120, ...imageStyle }}\n />\n )}\n {referenceData?.map((d, dIndex) => {\n const { columns, goName } = d || {};\n let renderColumns = [];\n if (columns?.length) {\n renderColumns = columns?.map((c, i) => {\n const newC = {\n ...c,\n title: (\n <Tooltip title={c?.title} placement=\"topLeft\">\n {c?.title}\n </Tooltip>\n ),\n width: 160,\n ellipsis: true,\n };\n if (from === 'ReferenceOnlineCheck' && c.dataIndex === 'status') {\n newC.className = 'refer-warning-txt';\n }\n newC.render = (t, record) => {\n let content = t;\n if (c.dataIndex === 'org') {\n content = orgMap[t]?.name || t;\n }\n if (c.dataIndex === 'app') {\n content = appList.find((a) => a.key === t)?.name || t;\n }\n // 强弱引用\n let tagInfo = null;\n if (i === 0 && record?.referenceCheckType) {\n let checkObj;\n // 能进行下一步操作\n const isStrong = ['STRONG'].includes(record?.referenceCheckType);\n if (isStrong) {\n checkObj = {\n name: record?.referenceCheckTypeName || getText('strong', props?.lang),\n color: 'red',\n };\n } else {\n checkObj = {\n name: record?.referenceCheckTypeName || getText('weak', props?.lang),\n color: 'grey',\n };\n }\n tagInfo = checkObj ? (\n <Tag size=\"small\" color={checkObj.color}>\n {checkObj.name}\n </Tag>\n ) : null;\n }\n\n if (c.dataIndex === goName && record?.goLink) {\n return (\n <AHref href={record?.goLink} target=\"_blank\" unmountHandle={unmountHandle}>\n <Tooltip placement=\"topLeft\" title={content || '- -'}>\n <span className=\"content-span\">\n {tagInfo}\n {content || '- -'}\n </span>\n </Tooltip>\n </AHref>\n );\n }\n if (c.dataIndex === goName) {\n return (\n <Ellipsis\n placement=\"topLeft\"\n copyable={true}\n title={content || '- -'}\n prefix={tagInfo}\n />\n );\n }\n return (\n <Tooltip placement=\"topLeft\" title={content || '- -'}>\n <span className=\"content-span\">\n {tagInfo}\n {content || '- -'}\n </span>\n </Tooltip>\n );\n };\n\n return newC;\n });\n }\n return (\n <div className=\"reference-body-item\" key={dIndex}>\n <Title\n className=\"reference-body-title\"\n title={d?.title}\n tooltip={d?.title}\n subTitle={\n d?.tips && (\n <Tooltip title={d?.tips} placement=\"topLeft\">\n <Icon type=\"info-circle\" />\n </Tooltip>\n )\n }\n />\n\n {renderColumns?.length && (\n <Table\n bordered\n className=\"reference-table\"\n striped={true}\n dataSource={d?.rows}\n columns={renderColumns}\n scroll={\n renderColumns.length > 4\n ? {\n x: renderColumns.length * 160,\n }\n : {}\n }\n {...paginationInfo}\n rowKey={(e, i) => `${dIndex}_${i}`}\n />\n )}\n </div>\n );\n })}\n </div>\n );\n};\n"]}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.reference-body {
|
|
2
|
+
.tntd-title {
|
|
3
|
+
margin-bottom: 12px;
|
|
4
|
+
}
|
|
5
|
+
.reference-body-item {
|
|
6
|
+
padding: 8px 16px 16px 16px;
|
|
7
|
+
background: #fff;
|
|
8
|
+
border-radius: @border-radius-base;
|
|
9
|
+
&:not(:last-of-type) {
|
|
10
|
+
margin-bottom: 16px;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
.ant-table-tbody > tr > td {
|
|
14
|
+
&.refer-warning-txt {
|
|
15
|
+
* {
|
|
16
|
+
color: #d96156 !important;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.content-span {
|
|
22
|
+
display: block;
|
|
23
|
+
max-width: 100%;
|
|
24
|
+
height: 24px;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
line-height: 24px;
|
|
27
|
+
white-space: nowrap;
|
|
28
|
+
text-overflow: ellipsis;
|
|
29
|
+
word-break: keep-all;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
export { ReferenceDrawer };
|
|
3
|
+
export { ReferenceBatchDrawer };
|
|
4
|
+
export { ReferenceCheck };
|
|
5
|
+
export { ReferenceInfo };
|
|
6
|
+
export { ReferenceBatchCheck };
|
|
7
|
+
export { ReferenceBatchCheck as ReferenceOnlineCheck };
|
|
8
|
+
}
|
|
9
|
+
export default _default;
|
|
10
|
+
import ReferenceDrawer from "./ReferenceDrawer";
|
|
11
|
+
import ReferenceBatchDrawer from "./ReferenceBatchDrawer";
|
|
12
|
+
import ReferenceCheck from "./ReferenceCheck";
|
|
13
|
+
import ReferenceInfo from "./ReferenceInfo";
|
|
14
|
+
import ReferenceBatchCheck from "./ReferenceBatchCheck";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tntd-reference/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
var _ReferenceDrawer = _interopRequireDefault(require("./ReferenceDrawer"));
|
|
8
|
+
var _ReferenceCheck = _interopRequireDefault(require("./ReferenceCheck"));
|
|
9
|
+
var _ReferenceBatchCheck = _interopRequireDefault(require("./ReferenceBatchCheck"));
|
|
10
|
+
var _ReferenceInfo = _interopRequireDefault(require("./ReferenceInfo"));
|
|
11
|
+
var _ReferenceBatchDrawer = _interopRequireDefault(require("./ReferenceBatchDrawer"));
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
|
+
var _default = exports["default"] = {
|
|
14
|
+
ReferenceDrawer: _ReferenceDrawer["default"],
|
|
15
|
+
ReferenceBatchDrawer: _ReferenceBatchDrawer["default"],
|
|
16
|
+
ReferenceCheck: _ReferenceCheck["default"],
|
|
17
|
+
ReferenceInfo: _ReferenceInfo["default"],
|
|
18
|
+
ReferenceBatchCheck: _ReferenceBatchCheck["default"],
|
|
19
|
+
ReferenceOnlineCheck: _ReferenceBatchCheck["default"]
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tntd-reference/index.js"],"names":[],"mappings":";;;;;AAAA,wEAAiD;AACjD,sEAA+C;AAC/C,gFAAyD;AACzD,oEAA6C;AAC7C,kFAA2D;AAC3D,kBAAgB;IACd,eAAe,EAAf,yBAAe;IACf,oBAAoB,EAApB,8BAAoB;IACpB,cAAc,EAAd,wBAAc;IACd,aAAa,EAAb,uBAAa;IACb,mBAAmB,EAAnB,6BAAmB;IACnB,oBAAoB,EAAC,6BAAmB;CACzC,CAAC","sourcesContent":["import ReferenceDrawer from './ReferenceDrawer';\nimport ReferenceCheck from './ReferenceCheck';\nimport ReferenceBatchCheck from './ReferenceBatchCheck';\nimport ReferenceInfo from './ReferenceInfo';\nimport ReferenceBatchDrawer from './ReferenceBatchDrawer';\nexport default {\n ReferenceDrawer,\n ReferenceBatchDrawer,\n ReferenceCheck,\n ReferenceInfo,\n ReferenceBatchCheck,\n ReferenceOnlineCheck:ReferenceBatchCheck\n};\n"]}
|
|
@@ -9,7 +9,7 @@ var _classnames = _interopRequireDefault(require("classnames"));
|
|
|
9
9
|
var _LocaleReceiver = _interopRequireDefault(require("antd/lib/locale-provider/LocaleReceiver"));
|
|
10
10
|
var _icon = _interopRequireDefault(require("../icon"));
|
|
11
11
|
require("./index.less");
|
|
12
|
-
function _interopRequireDefault(
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
13
13
|
var empty = function empty() {};
|
|
14
14
|
function TntdSecondPage(_ref) {
|
|
15
15
|
var title = _ref.title,
|
|
@@ -8,18 +8,18 @@ exports["default"] = void 0;
|
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
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); }
|
|
10
10
|
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; }
|
|
11
|
-
function _classCallCheck(
|
|
12
|
-
function _defineProperties(
|
|
13
|
-
function _createClass(
|
|
11
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
12
|
+
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); } }
|
|
13
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
14
14
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
15
15
|
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); }
|
|
16
16
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
17
|
-
function _possibleConstructorReturn(
|
|
18
|
-
function _assertThisInitialized(
|
|
17
|
+
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); }
|
|
18
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
19
19
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
|
-
function _getPrototypeOf(
|
|
21
|
-
function _inherits(
|
|
22
|
-
function _setPrototypeOf(
|
|
20
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
21
|
+
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); }
|
|
22
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
23
23
|
var DropDownWrap = exports["default"] = /*#__PURE__*/function (_PureComponent) {
|
|
24
24
|
function DropDownWrap(props) {
|
|
25
25
|
var _this;
|
package/lib/tntd-select/index.js
CHANGED
|
@@ -13,21 +13,22 @@ var _utils = require("../utils");
|
|
|
13
13
|
var _DropDownWrap = _interopRequireDefault(require("./DropDownWrap"));
|
|
14
14
|
var _prevLocale = require("../prev-locale");
|
|
15
15
|
require("./index.less");
|
|
16
|
-
function _interopRequireDefault(
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
17
17
|
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); }
|
|
18
18
|
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; }
|
|
19
|
-
function
|
|
20
|
-
function
|
|
21
|
-
function
|
|
19
|
+
function _readOnlyError(r) { throw new TypeError('"' + r + '" is read-only'); }
|
|
20
|
+
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
21
|
+
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); } }
|
|
22
|
+
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
22
23
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
23
24
|
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); }
|
|
24
25
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
25
|
-
function _possibleConstructorReturn(
|
|
26
|
-
function _assertThisInitialized(
|
|
26
|
+
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); }
|
|
27
|
+
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
27
28
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
28
|
-
function _getPrototypeOf(
|
|
29
|
-
function _inherits(
|
|
30
|
-
function _setPrototypeOf(
|
|
29
|
+
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
30
|
+
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); }
|
|
31
|
+
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
31
32
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
32
33
|
var t = {};
|
|
33
34
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default VirtualTree;
|
|
2
|
+
declare function VirtualTree({ value, itemHeight, height, filterKey, treeData, checkable, checkStrictly, checkedKeys, defaultExpandAll, expandedKeys, fieldNames, titleRender, onCheck, onExpand, onSelect }: {
|
|
3
|
+
value: any;
|
|
4
|
+
itemHeight: any;
|
|
5
|
+
height: any;
|
|
6
|
+
filterKey: any;
|
|
7
|
+
treeData: any;
|
|
8
|
+
checkable: any;
|
|
9
|
+
checkStrictly: any;
|
|
10
|
+
checkedKeys: any;
|
|
11
|
+
defaultExpandAll?: boolean | undefined;
|
|
12
|
+
expandedKeys: any;
|
|
13
|
+
fieldNames: any;
|
|
14
|
+
titleRender: any;
|
|
15
|
+
onCheck: any;
|
|
16
|
+
onExpand: any;
|
|
17
|
+
onSelect: any;
|
|
18
|
+
}): React.JSX.Element;
|
|
19
|
+
import React from "react";
|
|
20
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tntd-virtual-tree/index.jsx"],"names":[],"mappings":";AAyBA;;;;;;;;;;;;;;;;sBA6NC"}
|