dcp-design-react 1.7.42
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/LICENSE +21 -0
- package/README.md +4 -0
- package/lib/_utils/cloneElement.d.ts +2 -0
- package/lib/_utils/dom.d.ts +75 -0
- package/lib/_utils/download.d.ts +7 -0
- package/lib/_utils/error.d.ts +2 -0
- package/lib/_utils/isDev.d.ts +1 -0
- package/lib/_utils/isMobile.d.ts +1 -0
- package/lib/_utils/isServer.d.ts +2 -0
- package/lib/_utils/prefix.d.ts +1 -0
- package/lib/_utils/resize-event.d.ts +10 -0
- package/lib/_utils/scrollbar-width.d.ts +1 -0
- package/lib/_utils/types.d.ts +39 -0
- package/lib/_utils/util.d.ts +27 -0
- package/lib/_utils/validators.d.ts +2 -0
- package/lib/anchor/index.d.ts +4 -0
- package/lib/anchor/src/anchor-item.d.ts +15 -0
- package/lib/anchor/src/anchor-nav.d.ts +12 -0
- package/lib/anchor/src/anchor.d.ts +61 -0
- package/lib/anchor/style/index.less +101 -0
- package/lib/antd/Calendar.d.ts +4 -0
- package/lib/antd/DatePicker.d.ts +50 -0
- package/lib/antd/TimePicker.d.ts +16 -0
- package/lib/antd/compact.less +11 -0
- package/lib/antd/dayjs.d.ts +1 -0
- package/lib/antd/index.d.ts +124 -0
- package/lib/antd/index.less +19 -0
- package/lib/button/index.d.ts +3 -0
- package/lib/button/src/button.d.ts +32 -0
- package/lib/button/style/index.less +12 -0
- package/lib/collapse/index.d.ts +3 -0
- package/lib/collapse/src/Content.d.ts +3 -0
- package/lib/collapse/src/_util/motion.less +13 -0
- package/lib/collapse/src/_util/motionUtil.d.ts +3 -0
- package/lib/collapse/src/collapse.d.ts +18 -0
- package/lib/collapse/style/index.less +24 -0
- package/lib/config-provider/context.d.ts +10 -0
- package/lib/config-provider/index.d.ts +3 -0
- package/lib/config-provider/src/config-provider.d.ts +36 -0
- package/lib/copy-to-clipboard/index.d.ts +3 -0
- package/lib/copy-to-clipboard/src/copy-to-clipboard.d.ts +15 -0
- package/lib/copy-to-clipboard/style/index.less +12 -0
- package/lib/countup/index.d.ts +3 -0
- package/lib/countup/src/countup.d.ts +17 -0
- package/lib/countup/style/index.less +22 -0
- package/lib/cropper/index.d.ts +3 -0
- package/lib/cropper/src/cropper.d.ts +213 -0
- package/lib/cropper/style/index.less +13 -0
- package/lib/divider/index.d.ts +3 -0
- package/lib/divider/src/divider.d.ts +27 -0
- package/lib/divider/style/index.less +54 -0
- package/lib/download/index.d.ts +3 -0
- package/lib/download/src/download.d.ts +54 -0
- package/lib/download/style/index.less +12 -0
- package/lib/drawer/index.d.ts +3 -0
- package/lib/drawer/src/drawer.d.ts +46 -0
- package/lib/drawer/style/index.less +82 -0
- package/lib/empty/index.d.ts +3 -0
- package/lib/empty/src/empty.d.ts +15 -0
- package/lib/empty/style/index.less +35 -0
- package/lib/form/index.d.ts +4 -0
- package/lib/form/src/context.d.ts +9 -0
- package/lib/form/src/fields-filter.d.ts +26 -0
- package/lib/form/src/form-cascader.d.ts +21 -0
- package/lib/form/src/form-checkbox-group.d.ts +19 -0
- package/lib/form/src/form-checkbox.d.ts +16 -0
- package/lib/form/src/form-city-select.d.ts +10 -0
- package/lib/form/src/form-date.d.ts +10 -0
- package/lib/form/src/form-divider.d.ts +10 -0
- package/lib/form/src/form-immediate.d.ts +20 -0
- package/lib/form/src/form-input-number.d.ts +11 -0
- package/lib/form/src/form-input.d.ts +11 -0
- package/lib/form/src/form-item-view.d.ts +7 -0
- package/lib/form/src/form-multiple-search-helper.d.ts +20 -0
- package/lib/form/src/form-multiple-tree-table-helper.d.ts +20 -0
- package/lib/form/src/form-radio.d.ts +19 -0
- package/lib/form/src/form-range-date.d.ts +10 -0
- package/lib/form/src/form-range-input-number.d.ts +10 -0
- package/lib/form/src/form-range-input.d.ts +10 -0
- package/lib/form/src/form-range-search-helper.d.ts +20 -0
- package/lib/form/src/form-range-time.d.ts +10 -0
- package/lib/form/src/form-rate.d.ts +10 -0
- package/lib/form/src/form-region-select.d.ts +10 -0
- package/lib/form/src/form-search-helper.d.ts +21 -0
- package/lib/form/src/form-select.d.ts +21 -0
- package/lib/form/src/form-switch.d.ts +10 -0
- package/lib/form/src/form-text-area.d.ts +10 -0
- package/lib/form/src/form-time.d.ts +10 -0
- package/lib/form/src/form-tinymce.d.ts +10 -0
- package/lib/form/src/form-tree-select.d.ts +21 -0
- package/lib/form/src/form-tree-table-helper.d.ts +20 -0
- package/lib/form/src/form-upload-file.d.ts +10 -0
- package/lib/form/src/form-upload-img.d.ts +10 -0
- package/lib/form/src/form.d.ts +197 -0
- package/lib/form/src/types.d.ts +356 -0
- package/lib/form/src/utils.d.ts +57 -0
- package/lib/form/style/index.less +352 -0
- package/lib/guide-tracker/index.d.ts +3 -0
- package/lib/guide-tracker/src/Panel.d.ts +9 -0
- package/lib/guide-tracker/src/guideTracker.d.ts +37 -0
- package/lib/guide-tracker/src/lib/Highlighter.d.ts +2 -0
- package/lib/guide-tracker/src/lib/Overlay.d.ts +36 -0
- package/lib/guide-tracker/src/lib/index.d.ts +29 -0
- package/lib/guide-tracker/src/lib/utils.d.ts +27 -0
- package/lib/guide-tracker/style/index.less +189 -0
- package/lib/hoc/outsideClick.d.ts +1 -0
- package/lib/hooks/useDebounce.d.ts +3 -0
- package/lib/hooks/useEvent.d.ts +2 -0
- package/lib/hooks/useForceUpdate.d.ts +1 -0
- package/lib/hooks/useLayoutUpdateEffect.d.ts +2 -0
- package/lib/hooks/useLocale.d.ts +4 -0
- package/lib/hooks/useMergedState.d.ts +8 -0
- package/lib/hooks/useOutsideClick.d.ts +2 -0
- package/lib/hooks/useResizeObserve.d.ts +5 -0
- package/lib/hooks/useSafeState.d.ts +4 -0
- package/lib/hooks/useSize.d.ts +9 -0
- package/lib/hooks/useUpdateEffect.d.ts +2 -0
- package/lib/index.d.ts +127 -0
- package/lib/index.esm.js +1 -0
- package/lib/index.full.js +1 -0
- package/lib/index.js +1 -0
- package/lib/locale/index.d.ts +11 -0
- package/lib/locale/index.js +44 -0
- package/lib/locale/lang/en.d.ts +320 -0
- package/lib/locale/lang/en.js +325 -0
- package/lib/locale/lang/zh-cn.d.ts +320 -0
- package/lib/locale/lang/zh-cn.js +325 -0
- package/lib/modal/index.d.ts +3 -0
- package/lib/modal/src/modal.d.ts +68 -0
- package/lib/modal/style/index.less +95 -0
- package/lib/pinyin/core.d.ts +12 -0
- package/lib/pinyin/dict.d.ts +31 -0
- package/lib/pinyin/index.d.ts +2 -0
- package/lib/pinyin/patchers/56l.d.ts +7 -0
- package/lib/print/index.d.ts +3 -0
- package/lib/print/src/LodopFuncs.d.ts +1 -0
- package/lib/print/src/config.d.ts +6 -0
- package/lib/print/src/container.d.ts +14 -0
- package/lib/print/src/context.d.ts +6 -0
- package/lib/print/src/preview.d.ts +61 -0
- package/lib/print/src/print.d.ts +37 -0
- package/lib/print/src/setting.d.ts +49 -0
- package/lib/print/src/utils.d.ts +5 -0
- package/lib/print/style/index.less +175 -0
- package/lib/qm-design.d.ts +28 -0
- package/lib/range-table-helper/index.d.ts +3 -0
- package/lib/range-table-helper/src/range-table-helper.d.ts +22 -0
- package/lib/range-table-helper/style/index.less +18 -0
- package/lib/scrollbar/index.d.ts +3 -0
- package/lib/scrollbar/src/context.d.ts +7 -0
- package/lib/scrollbar/src/scrollbar.d.ts +28 -0
- package/lib/scrollbar/src/thumb.d.ts +15 -0
- package/lib/scrollbar/style/index.less +72 -0
- package/lib/search-helper/index.d.ts +3 -0
- package/lib/search-helper/src/search-helper.d.ts +24 -0
- package/lib/search-helper/style/index.less +14 -0
- package/lib/search-tree/index.d.ts +3 -0
- package/lib/search-tree/src/search-tree.d.ts +57 -0
- package/lib/search-tree/style/index.less +34 -0
- package/lib/space/index.d.ts +3 -0
- package/lib/space/src/space.d.ts +12 -0
- package/lib/space/style/index.less +12 -0
- package/lib/spin/index.d.ts +3 -0
- package/lib/spin/src/spin.d.ts +14 -0
- package/lib/spin/style/index.less +16 -0
- package/lib/split/index.d.ts +4 -0
- package/lib/split/src/context.d.ts +8 -0
- package/lib/split/src/resize-bar.d.ts +8 -0
- package/lib/split/src/split-pane.d.ts +11 -0
- package/lib/split/src/split.d.ts +18 -0
- package/lib/split/style/index.less +83 -0
- package/lib/style/common.less +8 -0
- package/lib/style/compact.css +26706 -0
- package/lib/style/compact.less +10 -0
- package/lib/style/compact.min.css +1 -0
- package/lib/style/index.css +30459 -0
- package/lib/style/index.less +39 -0
- package/lib/style/index.min.css +1 -0
- package/lib/style/mixins/box.less +13 -0
- package/lib/style/mixins/clearfix.less +21 -0
- package/lib/style/mixins/index.less +11 -0
- package/lib/style/mixins/operation-unit.less +24 -0
- package/lib/style/mixins/reset.less +34 -0
- package/lib/style/mixins/size.less +15 -0
- package/lib/style/reset.less +132 -0
- package/lib/style/themes/compact.less +19 -0
- package/lib/style/themes/default.less +117 -0
- package/lib/style/themes/index.less +7 -0
- package/lib/style/var.less +9 -0
- package/lib/table/index.d.ts +4 -0
- package/lib/table/src/alert/index.d.ts +6 -0
- package/lib/table/src/body/index.d.ts +8 -0
- package/lib/table/src/body/useMergeCell.d.ts +7 -0
- package/lib/table/src/body/useValueFormat.d.ts +12 -0
- package/lib/table/src/clipboard/index.d.ts +8 -0
- package/lib/table/src/clipboard/setting.d.ts +8 -0
- package/lib/table/src/column-filter/index.d.ts +7 -0
- package/lib/table/src/config/index.d.ts +47 -0
- package/lib/table/src/context/index.d.ts +85 -0
- package/lib/table/src/edit/InputNumber.d.ts +26 -0
- package/lib/table/src/edit/index.d.ts +15 -0
- package/lib/table/src/empty/index.d.ts +3 -0
- package/lib/table/src/expandable/all.d.ts +6 -0
- package/lib/table/src/expandable/index.d.ts +9 -0
- package/lib/table/src/export/define.d.ts +8 -0
- package/lib/table/src/export/index.d.ts +19 -0
- package/lib/table/src/export/setting.d.ts +14 -0
- package/lib/table/src/export/useExport.d.ts +13 -0
- package/lib/table/src/fast-search/index.d.ts +7 -0
- package/lib/table/src/fast-search/setting.d.ts +6 -0
- package/lib/table/src/filter/index.d.ts +8 -0
- package/lib/table/src/filter-sql/index.d.ts +5 -0
- package/lib/table/src/filter-sql/lib/filter_string.d.ts +11 -0
- package/lib/table/src/filter-sql/lib/operations.d.ts +8 -0
- package/lib/table/src/filter-sql/lib/variables_replacement.d.ts +5 -0
- package/lib/table/src/footer/index.d.ts +8 -0
- package/lib/table/src/full-screen/index.d.ts +8 -0
- package/lib/table/src/group-summary/index.d.ts +7 -0
- package/lib/table/src/group-summary/result.d.ts +9 -0
- package/lib/table/src/group-summary/setting.d.ts +6 -0
- package/lib/table/src/header/index.d.ts +10 -0
- package/lib/table/src/hooks/useImperativeMethod.d.ts +49 -0
- package/lib/table/src/hooks/useTableCore.d.ts +93 -0
- package/lib/table/src/hooks/useTableEffect.d.ts +45 -0
- package/lib/table/src/hooks/useTableLayout.d.ts +44 -0
- package/lib/table/src/hooks/useTableMemo.d.ts +48 -0
- package/lib/table/src/hooks/useTableRef.d.ts +111 -0
- package/lib/table/src/hooks/useTableState.d.ts +98 -0
- package/lib/table/src/icon/caretdown.d.ts +3 -0
- package/lib/table/src/icon/caretup.d.ts +3 -0
- package/lib/table/src/icon/filter.d.ts +3 -0
- package/lib/table/src/import/SelectFile.d.ts +8 -0
- package/lib/table/src/import/index.d.ts +8 -0
- package/lib/table/src/import/setting.d.ts +8 -0
- package/lib/table/src/manager/index.d.ts +15 -0
- package/lib/table/src/pager/index.d.ts +9 -0
- package/lib/table/src/print/index.d.ts +8 -0
- package/lib/table/src/reload/index.d.ts +7 -0
- package/lib/table/src/resizable/index.d.ts +7 -0
- package/lib/table/src/select-collection/index.d.ts +8 -0
- package/lib/table/src/select-collection/result.d.ts +8 -0
- package/lib/table/src/selection/all.d.ts +7 -0
- package/lib/table/src/selection/index.d.ts +12 -0
- package/lib/table/src/store/index.d.ts +33 -0
- package/lib/table/src/super-search/index.d.ts +7 -0
- package/lib/table/src/super-search/result.d.ts +6 -0
- package/lib/table/src/table/index.d.ts +5 -0
- package/lib/table/src/table/props.d.ts +299 -0
- package/lib/table/src/table/types.d.ts +444 -0
- package/lib/table/src/toolbox/index.d.ts +18 -0
- package/lib/table/src/utils/index.d.ts +43 -0
- package/lib/table/style/alert.less +34 -0
- package/lib/table/style/body.less +77 -0
- package/lib/table/style/clipboard.less +29 -0
- package/lib/table/style/column-filter.less +94 -0
- package/lib/table/style/empty.less +19 -0
- package/lib/table/style/expandable.less +64 -0
- package/lib/table/style/export.less +26 -0
- package/lib/table/style/fast-search.less +110 -0
- package/lib/table/style/footer.less +33 -0
- package/lib/table/style/full-screen.less +21 -0
- package/lib/table/style/group-summary.less +93 -0
- package/lib/table/style/header.less +207 -0
- package/lib/table/style/import.less +25 -0
- package/lib/table/style/index.less +29 -0
- package/lib/table/style/pager.less +29 -0
- package/lib/table/style/print.less +21 -0
- package/lib/table/style/reload.less +21 -0
- package/lib/table/style/select-collection.less +21 -0
- package/lib/table/style/size.less +88 -0
- package/lib/table/style/super-search.less +102 -0
- package/lib/table/style/table.less +372 -0
- package/lib/table/style/tollbox.less +39 -0
- package/lib/table/style/toper.less +31 -0
- package/lib/table/style/variable.less +48 -0
- package/lib/tabs/index.d.ts +4 -0
- package/lib/tabs/src/tab-pane.d.ts +9 -0
- package/lib/tabs/src/tabs.d.ts +19 -0
- package/lib/tabs/style/index.less +32 -0
- package/lib/tinymce/index.d.ts +3 -0
- package/lib/tinymce/src/Events.d.ts +85 -0
- package/lib/tinymce/src/ScriptLoader.d.ts +13 -0
- package/lib/tinymce/src/TinyMCE.d.ts +9 -0
- package/lib/tinymce/src/Utils.d.ts +20 -0
- package/lib/tinymce/src/components/Editor.d.ts +73 -0
- package/lib/tinymce/src/components/EditorPropTypes.d.ts +18 -0
- package/lib/tinymce/src/index.d.ts +35 -0
- package/lib/tinymce/style/index.less +18 -0
- package/lib/tour/index.d.ts +4 -0
- package/lib/tour/src/Mask.d.ts +17 -0
- package/lib/tour/src/Pause.d.ts +10 -0
- package/lib/tour/src/Tour.d.ts +41 -0
- package/lib/tour/src/TourStep/DefaultPanel.d.ts +4 -0
- package/lib/tour/src/TourStep/index.d.ts +34 -0
- package/lib/tour/src/hooks/useTarget.d.ts +14 -0
- package/lib/tour/src/placements.d.ts +29 -0
- package/lib/tour/src/util.d.ts +5 -0
- package/lib/tour/style/index.less +157 -0
- package/lib/transition/index.d.ts +3 -0
- package/lib/transition/src/tools.d.ts +13 -0
- package/lib/transition/src/transition.d.ts +12 -0
- package/lib/transition/src/types.d.ts +25 -0
- package/lib/transition/src/useTransition.d.ts +2 -0
- package/lib/tree-helper/index.d.ts +3 -0
- package/lib/tree-helper/src/tree-helper.d.ts +22 -0
- package/lib/tree-helper/style/index.less +21 -0
- package/lib/tree-table-helper/index.d.ts +3 -0
- package/lib/tree-table-helper/src/tree-table-helper.d.ts +31 -0
- package/lib/tree-table-helper/style/index.less +24 -0
- package/lib/upload-file/index.d.ts +3 -0
- package/lib/upload-file/src/upload-file.d.ts +35 -0
- package/lib/upload-file/style/index.less +18 -0
- package/lib/upload-img/index.d.ts +3 -0
- package/lib/upload-img/src/cropper-preview.d.ts +32 -0
- package/lib/upload-img/src/upload-img.d.ts +39 -0
- package/lib/upload-img/style/index.less +41 -0
- package/lib/version/index.d.ts +2 -0
- package/package.json +138 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
|
+
import type { ComponentSize, Nullable } from '../../_utils/types';
|
|
4
|
+
import type { DrawerProps as AntDrawerProps } from '../../antd';
|
|
5
|
+
type EventType = React.MouseEvent<HTMLElement>;
|
|
6
|
+
type IProps = Omit<AntDrawerProps, 'size'> & {
|
|
7
|
+
visible?: boolean;
|
|
8
|
+
size?: ComponentSize;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
showFullScreen?: boolean;
|
|
11
|
+
onClose?: (e: EventType) => void;
|
|
12
|
+
onClosed?: () => void;
|
|
13
|
+
onFullChange?: (value: boolean) => void;
|
|
14
|
+
};
|
|
15
|
+
type IState = {
|
|
16
|
+
fullscreen: boolean;
|
|
17
|
+
spinning: boolean;
|
|
18
|
+
sloading: boolean;
|
|
19
|
+
};
|
|
20
|
+
export type DrawerProps = IProps;
|
|
21
|
+
declare class QmDrawer extends Component<IProps, IState> {
|
|
22
|
+
static contextType: React.Context<import("../../config-provider/context").IConfig>;
|
|
23
|
+
static propTypes: {
|
|
24
|
+
size: (props: any, propName: any, componentName: any) => void;
|
|
25
|
+
spinning: PropTypes.Requireable<boolean>;
|
|
26
|
+
};
|
|
27
|
+
static defaultProps: {
|
|
28
|
+
width: string;
|
|
29
|
+
showFullScreen: boolean;
|
|
30
|
+
destroyOnClose: boolean;
|
|
31
|
+
footer: null;
|
|
32
|
+
};
|
|
33
|
+
titleRef: React.RefObject<HTMLSpanElement>;
|
|
34
|
+
$drawer: Nullable<HTMLElement>;
|
|
35
|
+
private opened;
|
|
36
|
+
state: IState;
|
|
37
|
+
componentWillUnmount(): void;
|
|
38
|
+
componentDidUpdate(prevProps: IProps, prevState: IState): void;
|
|
39
|
+
afterVisibleChange: (visible: boolean) => void;
|
|
40
|
+
toggleHandle: () => void;
|
|
41
|
+
renderTitle(): React.JSX.Element;
|
|
42
|
+
START_LOADING: () => void;
|
|
43
|
+
STOP_LOADING: () => void;
|
|
44
|
+
render(): React.JSX.Element;
|
|
45
|
+
}
|
|
46
|
+
export default QmDrawer;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-07-23 19:05:57
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2022-11-26 20:25:11
|
|
6
|
+
*/
|
|
7
|
+
@import '../../style/common';
|
|
8
|
+
|
|
9
|
+
@prefix-drawer: ~'@{qm-prefix}-drawer';
|
|
10
|
+
|
|
11
|
+
.@{prefix-drawer} {
|
|
12
|
+
.ant-drawer-header {
|
|
13
|
+
display: flex;
|
|
14
|
+
align-items: center;
|
|
15
|
+
flex: 0 auto;
|
|
16
|
+
flex-shrink: 0;
|
|
17
|
+
height: 44px;
|
|
18
|
+
padding: 0 15px;
|
|
19
|
+
border-bottom: 1px solid @--border-color-secondary;
|
|
20
|
+
.ant-drawer-title {
|
|
21
|
+
display: flex;
|
|
22
|
+
flex: 1;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: space-between;
|
|
25
|
+
padding-right: 20px;
|
|
26
|
+
.full-screen {
|
|
27
|
+
padding: @--padding-md 5px @--padding-md @--padding-md;
|
|
28
|
+
color: @--text-color-secondary;
|
|
29
|
+
line-height: 1;
|
|
30
|
+
font-size: @--font-size-lg;
|
|
31
|
+
transition: all 0.3s ease;
|
|
32
|
+
cursor: pointer;
|
|
33
|
+
&:hover {
|
|
34
|
+
color: @--text-color;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
.ant-drawer-close {
|
|
39
|
+
position: absolute;
|
|
40
|
+
right: -8px;
|
|
41
|
+
font-size: 17px;
|
|
42
|
+
padding: @--padding-md @--padding-md @--padding-md 5px;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
.ant-drawer-body {
|
|
46
|
+
padding: @--padding-md;
|
|
47
|
+
}
|
|
48
|
+
.spinning {
|
|
49
|
+
position: absolute;
|
|
50
|
+
top: 44px;
|
|
51
|
+
left: 0;
|
|
52
|
+
right: 0;
|
|
53
|
+
bottom: 0;
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
align-items: center;
|
|
58
|
+
background-color: rgba(255, 255, 255, 0.65);
|
|
59
|
+
z-index: 9999;
|
|
60
|
+
.ant-spin-text {
|
|
61
|
+
margin-top: 4px;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
// ------ size ------
|
|
65
|
+
// 52 48 44
|
|
66
|
+
&--lg {
|
|
67
|
+
.ant-drawer-header {
|
|
68
|
+
height: 48px;
|
|
69
|
+
}
|
|
70
|
+
.spinning {
|
|
71
|
+
top: 48px;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
&--sm {
|
|
75
|
+
.ant-drawer-header {
|
|
76
|
+
height: 40px;
|
|
77
|
+
}
|
|
78
|
+
.spinning {
|
|
79
|
+
top: 40px;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { ComponentSize } from '../../_utils/types';
|
|
3
|
+
import type { EmptyProps as AntEmptyProps } from '../../antd';
|
|
4
|
+
type IProps = AntEmptyProps & {
|
|
5
|
+
size?: ComponentSize;
|
|
6
|
+
};
|
|
7
|
+
export type EmptyProps = IProps;
|
|
8
|
+
declare class QmEmpty extends Component<IProps> {
|
|
9
|
+
static contextType: React.Context<import("../../config-provider/context").IConfig>;
|
|
10
|
+
static propTypes: {
|
|
11
|
+
size: (props: any, propName: any, componentName: any) => void;
|
|
12
|
+
};
|
|
13
|
+
render(): React.JSX.Element;
|
|
14
|
+
}
|
|
15
|
+
export default QmEmpty;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-07-23 19:05:57
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2021-07-31 22:38:07
|
|
6
|
+
*/
|
|
7
|
+
@import '../../style/common';
|
|
8
|
+
|
|
9
|
+
@prefix-empty: ~'@{qm-prefix}-empty';
|
|
10
|
+
|
|
11
|
+
.@{prefix-empty} {
|
|
12
|
+
.ant-empty-image {
|
|
13
|
+
height: auto;
|
|
14
|
+
}
|
|
15
|
+
// ------ size ------
|
|
16
|
+
// 40 32 24
|
|
17
|
+
&--lg {
|
|
18
|
+
.ant-empty-image > svg {
|
|
19
|
+
width: 80px;
|
|
20
|
+
height: 50px;
|
|
21
|
+
}
|
|
22
|
+
.ant-empty-description {
|
|
23
|
+
font-size: @--font-size-base;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
&--sm {
|
|
27
|
+
.ant-empty-image > svg {
|
|
28
|
+
width: 55px;
|
|
29
|
+
height: 35px;
|
|
30
|
+
}
|
|
31
|
+
.ant-empty-description {
|
|
32
|
+
font-size: @--font-size-sm;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import type { FormRef } from './form';
|
|
3
|
+
import type { IDict } from '../../_utils/types';
|
|
4
|
+
export type IFormContext = {
|
|
5
|
+
$$form: FormRef;
|
|
6
|
+
echo_data: Record<string, IDict[]>;
|
|
7
|
+
};
|
|
8
|
+
declare const FormContext: import("react").Context<IFormContext | undefined>;
|
|
9
|
+
export default FormContext;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
uniqueKey?: string;
|
|
5
|
+
items: IFormItem[];
|
|
6
|
+
fieldsChange?: (items: IFormItem[]) => void;
|
|
7
|
+
};
|
|
8
|
+
type IState = {
|
|
9
|
+
visible: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare class FieldsFilter extends Component<IProps, IState> {
|
|
12
|
+
static contextType: React.Context<import("../../config-provider/context").IConfig>;
|
|
13
|
+
private linkRef;
|
|
14
|
+
state: IState;
|
|
15
|
+
get formUniqueKey(): string;
|
|
16
|
+
constructor(props: IProps);
|
|
17
|
+
getTableFieldsConfig(key: string): Promise<unknown[] | void>;
|
|
18
|
+
saveTableColumnsConfig(key: string, value: Partial<IFormItem>[]): Promise<void>;
|
|
19
|
+
getLocalFields(): Array<IFormItem> | void;
|
|
20
|
+
setLocalFields(list: IFormItem[]): void;
|
|
21
|
+
initLocalfields(): void;
|
|
22
|
+
changeHandle(items: IFormItem[]): void;
|
|
23
|
+
popupRender(): React.JSX.Element;
|
|
24
|
+
render(): React.JSX.Element;
|
|
25
|
+
}
|
|
26
|
+
export default FieldsFilter;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
import type { IDict } from '../../_utils/types';
|
|
4
|
+
type IProps = {
|
|
5
|
+
option: IFormItem;
|
|
6
|
+
multiple?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type IState = {
|
|
9
|
+
itemList: IDict[];
|
|
10
|
+
loading: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare class FormCascader extends Component<IProps, IState> {
|
|
13
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
14
|
+
state: IState;
|
|
15
|
+
componentDidMount(): void;
|
|
16
|
+
componentWillUnmount(): void;
|
|
17
|
+
componentDidUpdate(prevProps: IProps): void;
|
|
18
|
+
getItemList: () => Promise<void>;
|
|
19
|
+
render(): React.JSX.Element;
|
|
20
|
+
}
|
|
21
|
+
export default FormCascader;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
import type { IDict } from '../../_utils/types';
|
|
4
|
+
type IProps = {
|
|
5
|
+
option: IFormItem;
|
|
6
|
+
};
|
|
7
|
+
type IState = {
|
|
8
|
+
itemList: IDict[];
|
|
9
|
+
};
|
|
10
|
+
declare class FormCheckboxGroup extends Component<IProps, IState> {
|
|
11
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
12
|
+
state: IState;
|
|
13
|
+
componentDidMount(): void;
|
|
14
|
+
componentWillUnmount(): void;
|
|
15
|
+
componentDidUpdate(prevProps: IProps): void;
|
|
16
|
+
getItemList(): Promise<void>;
|
|
17
|
+
render(): React.JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
export default FormCheckboxGroup;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
type ICheckboxProps<T = string | number> = IProps & {
|
|
7
|
+
value?: T;
|
|
8
|
+
onChange?: (value: T) => void;
|
|
9
|
+
onValuesChange: (value: T, text: string) => void;
|
|
10
|
+
};
|
|
11
|
+
export declare const VCheckbox: React.FC<ICheckboxProps>;
|
|
12
|
+
declare class FormCheckbox extends Component<IProps> {
|
|
13
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
14
|
+
render(): React.JSX.Element;
|
|
15
|
+
}
|
|
16
|
+
export default FormCheckbox;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare class FormCitySelect extends Component<IProps> {
|
|
7
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default FormCitySelect;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare class FormDate extends Component<IProps> {
|
|
7
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default FormDate;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare class FormDivider extends Component<IProps> {
|
|
7
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default FormDivider;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
type IState = {
|
|
7
|
+
searchHelper: IFormItem['searchHelper'];
|
|
8
|
+
};
|
|
9
|
+
declare class FormImmediate extends Component<IProps, IState> {
|
|
10
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
11
|
+
private promiseRef;
|
|
12
|
+
state: IState;
|
|
13
|
+
constructor(props: IProps, { $$form }: {
|
|
14
|
+
$$form: any;
|
|
15
|
+
});
|
|
16
|
+
waiting: () => Promise<void>;
|
|
17
|
+
getHelperConfig: ($configContext: any) => void;
|
|
18
|
+
render(): React.JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
export default FormImmediate;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare class FormInputNumber extends Component<IProps> {
|
|
7
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
+
focus: () => void;
|
|
9
|
+
render(): React.JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export default FormInputNumber;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare class FormInput extends Component<IProps> {
|
|
7
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
+
focus: () => void;
|
|
9
|
+
render(): React.JSX.Element;
|
|
10
|
+
}
|
|
11
|
+
export default FormInput;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
type IState = {
|
|
7
|
+
searchHelper: IFormItem['searchHelper'];
|
|
8
|
+
};
|
|
9
|
+
declare class FormMultipleSearchHelper extends Component<IProps, IState> {
|
|
10
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
11
|
+
private promiseRef;
|
|
12
|
+
state: IState;
|
|
13
|
+
constructor(props: IProps, { $$form }: {
|
|
14
|
+
$$form: any;
|
|
15
|
+
});
|
|
16
|
+
waiting: () => Promise<void>;
|
|
17
|
+
getHelperConfig: ($configContext: any) => void;
|
|
18
|
+
render(): React.JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
export default FormMultipleSearchHelper;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
type IState = {
|
|
7
|
+
searchHelper: IFormItem['searchHelper'];
|
|
8
|
+
};
|
|
9
|
+
declare class FormMultipleTreeTableHelper extends Component<IProps, IState> {
|
|
10
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
11
|
+
private promiseRef;
|
|
12
|
+
state: IState;
|
|
13
|
+
constructor(props: IProps, { $$form }: {
|
|
14
|
+
$$form: any;
|
|
15
|
+
});
|
|
16
|
+
waiting: () => Promise<void>;
|
|
17
|
+
getHelperConfig: ($configContext: any) => void;
|
|
18
|
+
render(): React.JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
export default FormMultipleTreeTableHelper;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
import type { IDict } from '../../_utils/types';
|
|
4
|
+
type IProps = {
|
|
5
|
+
option: IFormItem;
|
|
6
|
+
};
|
|
7
|
+
type IState = {
|
|
8
|
+
itemList: IDict[];
|
|
9
|
+
};
|
|
10
|
+
declare class FormRadio extends Component<IProps, IState> {
|
|
11
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
12
|
+
state: IState;
|
|
13
|
+
componentDidMount(): void;
|
|
14
|
+
componentWillUnmount(): void;
|
|
15
|
+
componentDidUpdate(prevProps: IProps): void;
|
|
16
|
+
getItemList: () => Promise<void>;
|
|
17
|
+
render(): React.JSX.Element;
|
|
18
|
+
}
|
|
19
|
+
export default FormRadio;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare class FormRangeDate extends Component<IProps> {
|
|
7
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default FormRangeDate;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare class FormRangeInputNumber extends Component<IProps> {
|
|
7
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default FormRangeInputNumber;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare class FormRangeInput extends Component<IProps> {
|
|
7
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default FormRangeInput;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
type IState = {
|
|
7
|
+
searchHelper: IFormItem['searchHelper'];
|
|
8
|
+
};
|
|
9
|
+
declare class FormRangeSearchHelper extends Component<IProps, IState> {
|
|
10
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
11
|
+
private promiseRef;
|
|
12
|
+
state: IState;
|
|
13
|
+
constructor(props: IProps, { $$form }: {
|
|
14
|
+
$$form: any;
|
|
15
|
+
});
|
|
16
|
+
waiting: () => Promise<void>;
|
|
17
|
+
getHelperConfig: ($configContext: any) => void;
|
|
18
|
+
render(): React.JSX.Element;
|
|
19
|
+
}
|
|
20
|
+
export default FormRangeSearchHelper;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare class FormRangeTime extends Component<IProps> {
|
|
7
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default FormRangeTime;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare class FormRate extends Component<IProps> {
|
|
7
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default FormRate;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare class FormRegionSelect extends Component<IProps> {
|
|
7
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default FormRegionSelect;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
type IState = {
|
|
7
|
+
searchHelper: IFormItem['searchHelper'];
|
|
8
|
+
};
|
|
9
|
+
declare class FormSearchHelper extends Component<IProps, IState> {
|
|
10
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
11
|
+
private promiseRef;
|
|
12
|
+
searchRef: any;
|
|
13
|
+
state: IState;
|
|
14
|
+
constructor(props: IProps, { $$form }: {
|
|
15
|
+
$$form: any;
|
|
16
|
+
});
|
|
17
|
+
waiting: () => Promise<void>;
|
|
18
|
+
getHelperConfig: ($configContext: any) => void;
|
|
19
|
+
render(): React.JSX.Element;
|
|
20
|
+
}
|
|
21
|
+
export default FormSearchHelper;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
import type { IDict } from '../../_utils/types';
|
|
4
|
+
type IProps = {
|
|
5
|
+
option: IFormItem;
|
|
6
|
+
multiple?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type IState = {
|
|
9
|
+
itemList: IDict[];
|
|
10
|
+
loading: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare class FormSelect extends Component<IProps, IState> {
|
|
13
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
14
|
+
state: IState;
|
|
15
|
+
componentDidMount(): void;
|
|
16
|
+
componentWillUnmount(): void;
|
|
17
|
+
componentDidUpdate(prevProps: IProps): void;
|
|
18
|
+
getItemList: () => Promise<void>;
|
|
19
|
+
render(): React.JSX.Element;
|
|
20
|
+
}
|
|
21
|
+
export default FormSelect;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare class FormSwitch extends Component<IProps> {
|
|
7
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default FormSwitch;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare class FormTextArea extends Component<IProps> {
|
|
7
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default FormTextArea;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare class FormTime extends Component<IProps> {
|
|
7
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default FormTime;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
type IProps = {
|
|
4
|
+
option: IFormItem;
|
|
5
|
+
};
|
|
6
|
+
declare class FormTinymce extends Component<IProps> {
|
|
7
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export default FormTinymce;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { Component } from 'react';
|
|
2
|
+
import type { IFormItem } from './types';
|
|
3
|
+
import type { IDict } from '../../_utils/types';
|
|
4
|
+
type IProps = {
|
|
5
|
+
option: IFormItem;
|
|
6
|
+
multiple?: boolean;
|
|
7
|
+
};
|
|
8
|
+
type IState = {
|
|
9
|
+
itemList: IDict[];
|
|
10
|
+
loading: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare class FormTreeSelect extends Component<IProps, IState> {
|
|
13
|
+
static contextType: React.Context<import("./context").IFormContext | undefined>;
|
|
14
|
+
state: IState;
|
|
15
|
+
componentDidMount(): void;
|
|
16
|
+
componentWillUnmount(): void;
|
|
17
|
+
componentDidUpdate(prevProps: IProps): void;
|
|
18
|
+
getItemList: () => Promise<void>;
|
|
19
|
+
render(): React.JSX.Element;
|
|
20
|
+
}
|
|
21
|
+
export default FormTreeSelect;
|