@lm_fe/components 0.1.201 → 0.2.5
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/README.md +1 -1
- package/dist/keep-alive/common.d.ts +46 -0
- package/dist/keep-alive/components/AsyncComponent.d.ts +27 -0
- package/dist/keep-alive/components/Comment.d.ts +18 -0
- package/dist/keep-alive/components/Consumer.d.ts +20 -0
- package/dist/keep-alive/components/keepAlive.d.ts +4 -0
- package/dist/keep-alive/components/provider.d.ts +31 -0
- package/dist/keep-alive/contexts/IdentificationContext.d.ts +12 -0
- package/dist/keep-alive/contexts/KeepAliveContext.d.ts +5 -0
- package/dist/keep-alive/index.d.ts +7 -0
- package/dist/keep-alive/index.js +1901 -0
- package/dist/keep-alive/utils/bindLifecycle.d.ts +3 -0
- package/dist/keep-alive/utils/changePositionByComment.d.ts +1 -0
- package/dist/keep-alive/utils/createEventEmitter.d.ts +11 -0
- package/dist/keep-alive/utils/createStoreElement.d.ts +1 -0
- package/dist/keep-alive/utils/createUniqueIdentification.d.ts +8 -0
- package/dist/keep-alive/utils/debug.d.ts +3 -0
- package/dist/keep-alive/utils/getDisplayName.d.ts +2 -0
- package/dist/keep-alive/utils/getKeepAlive.d.ts +3 -0
- package/dist/keep-alive/utils/getKeyByFiberNode.d.ts +1 -0
- package/dist/keep-alive/utils/isRegExp.d.ts +1 -0
- package/dist/keep-alive/utils/keepAliveDecorator.d.ts +17 -0
- package/dist/keep-alive/utils/md5.d.ts +1 -0
- package/dist/keep-alive/utils/noop.d.ts +2 -0
- package/dist/keep-alive/utils/shallowEqual.d.ts +2 -0
- package/dist/keep-alive/utils/useKeepAliveEffect.d.ts +2 -0
- package/dist/keep-alive/utils/withIdentificationContextConsumer.d.ts +10 -0
- package/dist/keep-alive/utils/withKeepAliveContextConsumer.d.ts +10 -0
- package/dist/src/ArraySingle/Inner.d.ts +3 -0
- package/dist/src/ArraySingle/index.d.ts +2 -0
- package/dist/src/CaseTempleteEdit/Inner.d.ts +4 -0
- package/dist/src/CaseTempleteEdit/config.d.ts +20 -0
- package/dist/src/CaseTempleteEdit/index.d.ts +4 -0
- package/dist/src/CaseTempleteEdit/types.d.ts +19 -0
- package/dist/src/CaseTempleteEdit/utils.d.ts +2 -0
- package/dist/src/CaseTempleteEditEmr/Inner.d.ts +3 -0
- package/dist/src/CaseTempleteEditEmr/demo_text.d.ts +1 -0
- package/dist/src/CaseTempleteEditEmr/index.d.ts +2 -0
- package/dist/src/CaseTempleteEditEmr/types.d.ts +6 -0
- package/dist/src/CaseTempleteEditEmr/utils.d.ts +3 -0
- package/dist/{GlobalModal → src/GlobalModal}/index.d.ts +2 -1
- package/dist/src/LazyAntd/index.d.ts +17 -0
- package/dist/{Monaco → src/Monaco}/Inner.d.ts +1 -1
- package/dist/src/MyAddress/Inner.d.ts +3 -0
- package/dist/{MyImageEditor → src/MyImageEditor}/Inner.d.ts +1 -1
- package/dist/{MyImageEditor → src/MyImageEditor}/utils.d.ts +1 -1
- package/dist/{MyInput → src/MyInput}/index.d.ts +2 -2
- package/dist/{PDF_Frame_View → src/PDF_Frame_View}/utils.d.ts +1 -1
- package/dist/src/PatientSelect/Inner.d.ts +16 -0
- package/dist/src/PatientSelect/index.d.ts +3 -0
- package/dist/src/SimpleForm/Inner.d.ts +5 -0
- package/dist/{SimpleForm → src/SimpleForm}/components/TabForm/index.d.ts +3 -2
- package/dist/{SimpleForm → src/SimpleForm}/components/extra/Custom.d.ts +2 -1
- package/dist/{SimpleForm → src/SimpleForm}/components/index.d.ts +3 -6
- package/dist/src/SimpleForm/index.d.ts +17 -0
- package/dist/{SimpleForm/index.d.ts → src/SimpleForm/types.d.ts} +0 -14
- package/dist/src/a_chunks/ArraySingle.Inner.js +19 -0
- package/dist/src/a_chunks/CaseTempleteEdit.Inner.js +622 -0
- package/dist/src/a_chunks/CaseTempleteEditEmr.Inner.js +235 -0
- package/dist/{a_chunks/.root6.js → src/a_chunks/MyAddress.Inner.js} +38 -89
- package/dist/{a_chunks/.root4.js → src/a_chunks/MyImageEditor.Inner.js} +128 -179
- package/dist/{a_chunks/.root5.js → src/a_chunks/Old.InnerOld.js} +20 -59
- package/dist/{a_chunks/.root2.js → src/a_chunks/PDF_Frame_View.Inner.js} +11 -51
- package/dist/src/a_chunks/PatientSelect.Inner.js +281 -0
- package/dist/src/a_chunks/SimpleForm.Inner.js +318 -0
- package/dist/src/a_chunks/index.js +550 -0
- package/dist/src/a_chunks/style-inject.es.js +25 -0
- package/dist/src/config.d.ts +1 -0
- package/dist/{hooks → src/hooks}/index.d.ts +1 -0
- package/dist/src/hooks/use_fuck.d.ts +5 -0
- package/dist/src/index.d.ts +11 -0
- package/dist/src/index.js +10 -0
- package/dist/src/pack_components.d.ts +213 -0
- package/dist/src/utils/getInputStyle.d.ts +1 -0
- package/dist/src/utils/index.d.ts +1 -0
- package/dist/src/utils/other.d.ts +3 -0
- package/package.json +30 -26
- package/dist/ContainerDimensions2/index.d.ts +0 -10
- package/dist/LazyAntd/AutoComplete/Inner.d.ts +0 -4
- package/dist/LazyAntd/AutoComplete/index.d.ts +0 -4
- package/dist/LazyAntd/DatePicker/Base/Calendar.d.ts +0 -3
- package/dist/LazyAntd/DatePicker/Base/DatePicker.d.ts +0 -11
- package/dist/LazyAntd/DatePicker/Base/index.d.ts +0 -12
- package/dist/LazyAntd/DatePicker/Base/props.d.ts +0 -14
- package/dist/LazyAntd/DatePicker/Calendar.d.ts +0 -4
- package/dist/LazyAntd/DatePicker/DatePicker.d.ts +0 -4
- package/dist/LazyAntd/DatePicker/MonthPicker.d.ts +0 -4
- package/dist/LazyAntd/DatePicker/RangePicker.d.ts +0 -4
- package/dist/LazyAntd/DatePicker/TimePicker.d.ts +0 -4
- package/dist/LazyAntd/DatePicker/index.d.ts +0 -5
- package/dist/LazyAntd/Dropdown/Button.d.ts +0 -2
- package/dist/LazyAntd/Dropdown/Inner.d.ts +0 -3
- package/dist/LazyAntd/Dropdown/index.d.ts +0 -10
- package/dist/LazyAntd/Form/FormItemInner.d.ts +0 -2
- package/dist/LazyAntd/Form/Inner.d.ts +0 -3
- package/dist/LazyAntd/Form/index.d.ts +0 -9
- package/dist/LazyAntd/Modal/Inner.d.ts +0 -4
- package/dist/LazyAntd/Modal/index.d.ts +0 -3
- package/dist/LazyAntd/Pagination/Inner.d.ts +0 -3
- package/dist/LazyAntd/Pagination/index.d.ts +0 -3
- package/dist/LazyAntd/Select/Inner.d.ts +0 -3
- package/dist/LazyAntd/Select/OptionInner.d.ts +0 -2
- package/dist/LazyAntd/Select/index.d.ts +0 -10
- package/dist/LazyAntd/Table/Inner.d.ts +0 -3
- package/dist/LazyAntd/Table/index.d.ts +0 -3
- package/dist/LazyAntd/Tree/DirectoryTreeInner.d.ts +0 -3
- package/dist/LazyAntd/Tree/Inner.d.ts +0 -3
- package/dist/LazyAntd/Tree/TreeNodeInner.d.ts +0 -4
- package/dist/LazyAntd/Tree/index.d.ts +0 -12
- package/dist/LazyAntd/TreeSelect/Inner.d.ts +0 -3
- package/dist/LazyAntd/TreeSelect/index.d.ts +0 -3
- package/dist/LazyAntd/index.d.ts +0 -25
- package/dist/MyAddress/Inner.d.ts +0 -3
- package/dist/QRCode/Inner.d.ts +0 -3
- package/dist/QRCode/index.d.ts +0 -2
- package/dist/QRCode/types.d.ts +0 -68
- package/dist/a_chunks/.root.js +0 -805
- package/dist/a_chunks/.root.js.map +0 -1
- package/dist/a_chunks/.root10.js +0 -8
- package/dist/a_chunks/.root10.js.map +0 -1
- package/dist/a_chunks/.root11.js +0 -7
- package/dist/a_chunks/.root11.js.map +0 -1
- package/dist/a_chunks/.root12.js +0 -8
- package/dist/a_chunks/.root12.js.map +0 -1
- package/dist/a_chunks/.root13.js +0 -4
- package/dist/a_chunks/.root13.js.map +0 -1
- package/dist/a_chunks/.root14.js +0 -8
- package/dist/a_chunks/.root14.js.map +0 -1
- package/dist/a_chunks/.root15.js +0 -7
- package/dist/a_chunks/.root15.js.map +0 -1
- package/dist/a_chunks/.root16.js +0 -8
- package/dist/a_chunks/.root16.js.map +0 -1
- package/dist/a_chunks/.root17.js +0 -8
- package/dist/a_chunks/.root17.js.map +0 -1
- package/dist/a_chunks/.root18.js +0 -8
- package/dist/a_chunks/.root18.js.map +0 -1
- package/dist/a_chunks/.root19.js +0 -8
- package/dist/a_chunks/.root19.js.map +0 -1
- package/dist/a_chunks/.root2.js.map +0 -1
- package/dist/a_chunks/.root20.js +0 -6
- package/dist/a_chunks/.root20.js.map +0 -1
- package/dist/a_chunks/.root21.js +0 -5
- package/dist/a_chunks/.root21.js.map +0 -1
- package/dist/a_chunks/.root3.js +0 -7
- package/dist/a_chunks/.root3.js.map +0 -1
- package/dist/a_chunks/.root4.js.map +0 -1
- package/dist/a_chunks/.root5.js.map +0 -1
- package/dist/a_chunks/.root6.js.map +0 -1
- package/dist/a_chunks/.root7.js +0 -8
- package/dist/a_chunks/.root7.js.map +0 -1
- package/dist/a_chunks/.root8.js +0 -8
- package/dist/a_chunks/.root8.js.map +0 -1
- package/dist/a_chunks/.root9.js +0 -7
- package/dist/a_chunks/.root9.js.map +0 -1
- package/dist/a_chunks/index.js +0 -1238
- package/dist/a_chunks/index.js.map +0 -1
- package/dist/index.d.ts +0 -11
- package/dist/index.js +0 -45
- package/dist/index.js.map +0 -1
- package/dist/pack_components.d.ts +0 -17
- package/dist/utils/getInputStyle.d.ts +0 -11
- package/dist/utils/index.d.ts +0 -2
- package/dist/utils/other.d.ts +0 -4
- /package/dist/{ContainerDimensions → src/ContainerDimensions}/index.d.ts +0 -0
- /package/dist/{GlobalModal → src/GlobalModal}/utils.d.ts +0 -0
- /package/dist/{Monaco → src/Monaco}/index.d.ts +0 -0
- /package/dist/{MyAddress → src/MyAddress}/Old/InnerOld.d.ts +0 -0
- /package/dist/{MyAddress → src/MyAddress}/Old/index.d.ts +0 -0
- /package/dist/{MyAddress → src/MyAddress}/Old/options.d.ts +0 -0
- /package/dist/{MyAddress → src/MyAddress}/index.d.ts +0 -0
- /package/dist/{MyAddress → src/MyAddress}/type.d.ts +0 -0
- /package/dist/{MyAddress → src/MyAddress}/utils.d.ts +0 -0
- /package/dist/{MyImageEditor → src/MyImageEditor}/index.d.ts +0 -0
- /package/dist/{MyImageEditor → src/MyImageEditor}/init_delete_control.d.ts +0 -0
- /package/dist/{MyInput → src/MyInput}/types.d.ts +0 -0
- /package/dist/{MyLazyComponent → src/MyLazyComponent}/index.d.ts +0 -0
- /package/dist/{PDF_Frame_View → src/PDF_Frame_View}/Inner.d.ts +0 -0
- /package/dist/{PDF_Frame_View → src/PDF_Frame_View}/index.d.ts +0 -0
- /package/dist/{PDF_Frame_View → src/PDF_Frame_View}/types.d.ts +0 -0
- /package/dist/{SimpleForm → src/SimpleForm}/components/extra/MultiInput.d.ts +0 -0
- /package/dist/{SimpleForm → src/SimpleForm}/components/extra/SimpleSelect.d.ts +0 -0
- /package/dist/{SimpleForm → src/SimpleForm}/components/extra/SwitchSelect.d.ts +0 -0
- /package/dist/{SimpleForm → src/SimpleForm}/types/help.d.ts +0 -0
- /package/dist/{SimpleForm → src/SimpleForm}/types/metaTypes.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMchcDriverStatus.d.ts +0 -0
- /package/dist/{hooks → src/hooks}/useMyEffect.d.ts +0 -0
- /package/dist/{style → src/style}/index.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function changePositionByComment(identification: string, presentParentNode: Node, originalParentNode: Node): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
type EventNames = string | string[];
|
|
2
|
+
type Listener = (...args: any) => void;
|
|
3
|
+
export default function createEventEmitter(): {
|
|
4
|
+
on: (eventNames: EventNames, listener: Listener, direction?: boolean) => void;
|
|
5
|
+
off: (eventNames: EventNames, listener: Listener) => void;
|
|
6
|
+
emit: (eventNames: EventNames, ...args: any) => void;
|
|
7
|
+
clear: () => void;
|
|
8
|
+
listenerCount: (eventNames: EventNames) => number;
|
|
9
|
+
removeAllListeners: (eventNames: EventNames) => void;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function createStoreElement(): HTMLElement;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function getKeyByFiberNode(fiberNode: any): string | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function isRegExp(value: RegExp): boolean;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare enum COMMAND {
|
|
3
|
+
UNACTIVATE = "unactivate",
|
|
4
|
+
UNMOUNT = "unmount",
|
|
5
|
+
ACTIVATE = "activate",
|
|
6
|
+
CURRENT_UNMOUNT = "current_unmount",
|
|
7
|
+
CURRENT_UNACTIVATE = "current_unactivate"
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Decorating the <KeepAlive> component, the main function is to listen to events emitted by the upper <KeepAlive> component, triggering events of the current <KeepAlive> component.
|
|
11
|
+
*
|
|
12
|
+
* @export
|
|
13
|
+
* @template P
|
|
14
|
+
* @param {React.ComponentType<any>} Component
|
|
15
|
+
* @returns {React.ComponentType<P>}
|
|
16
|
+
*/
|
|
17
|
+
export default function keepAliveDecorator<P = any>(Component: React.ComponentType<any>): React.ComponentType<P>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function createMD5(value?: string, length?: number): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IIdentificationContextProps } from '../contexts/IdentificationContext';
|
|
3
|
+
export interface IIdentificationContextConsumerComponentProps {
|
|
4
|
+
_identificationContextProps: IIdentificationContextProps;
|
|
5
|
+
}
|
|
6
|
+
export declare const withIdentificationContextConsumerDisplayName = "withIdentificationContextConsumer";
|
|
7
|
+
export default function withIdentificationContextConsumer<P = any>(Component: React.ComponentType<IIdentificationContextConsumerComponentProps & P>): {
|
|
8
|
+
(props: P): React.JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IKeepAliveContextProps } from '../contexts/KeepAliveContext';
|
|
3
|
+
export interface IKeepAliveContextConsumerComponentProps {
|
|
4
|
+
_keepAliveContextProps: IKeepAliveContextProps;
|
|
5
|
+
}
|
|
6
|
+
export declare const WithKeepAliveContextConsumerDisplayName = "withKeepAliveContextConsumer";
|
|
7
|
+
export default function withKeepAliveContextConsumer<P = any>(Component: React.ComponentType<IKeepAliveContextConsumerComponentProps & P>): {
|
|
8
|
+
(props: P): React.JSX.Element;
|
|
9
|
+
displayName: string;
|
|
10
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare const defaultToolbars: {
|
|
2
|
+
name: string;
|
|
3
|
+
title: string;
|
|
4
|
+
items: {
|
|
5
|
+
name: string;
|
|
6
|
+
title: string;
|
|
7
|
+
items: (string | {
|
|
8
|
+
name: string;
|
|
9
|
+
title: string;
|
|
10
|
+
items: {
|
|
11
|
+
title: string;
|
|
12
|
+
name: string;
|
|
13
|
+
}[];
|
|
14
|
+
} | {
|
|
15
|
+
name: string;
|
|
16
|
+
title: string;
|
|
17
|
+
items?: undefined;
|
|
18
|
+
})[];
|
|
19
|
+
}[];
|
|
20
|
+
}[];
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface ICaseEditProps {
|
|
2
|
+
onChange?(str?: string): void;
|
|
3
|
+
value?: string;
|
|
4
|
+
containerProps?: {
|
|
5
|
+
width?: number;
|
|
6
|
+
height?: number;
|
|
7
|
+
};
|
|
8
|
+
toolbars?: any;
|
|
9
|
+
mode?: 'DESIGN' | 'EDITOR' | 'STRICT' | 'READONLY';
|
|
10
|
+
emr_mode?: 'design' | 'form';
|
|
11
|
+
hiddenButton?: boolean;
|
|
12
|
+
sdeKey?: any;
|
|
13
|
+
hidentoolbars?: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface IFuck_Xsde {
|
|
16
|
+
execCommand(cmd: string): void;
|
|
17
|
+
html(str?: string): string;
|
|
18
|
+
addListener(e: string, cb: () => void): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const demo_text = "<div id=\"_page\" style=\"margin: 0px auto; background: rgb(255, 255, 255); width: 210mm; min-height: 297mm; transform: scale(1, 1); transform-origin: 50% 0px 0px;\" pagekind=\"A4\" direct=\"portrait\"><div id=\"_header\" style=\"min-height: 0.65cm; padding-left: 0.65cm; padding-right: 0.65cm; padding-top: 0.65cm; position: relative; outline: none;\" contenteditable=\"false\" class=\"\">\u55E1\u55E1\u55E1</div><div id=\"_body\" style=\"min-height: calc(297mm - 0.65cm - 0.65cm - 0.65cm - 0.65cm);padding-left:0.65cm;padding-right:0.65cm;\" contenteditable=\"false\" class=\"\"><p><span style=\"background-color: rgb(231, 64, 37); color: rgb(255, 255, 255);\">\u4E09\u627D\u4E09\u627D</span></p></div><div id=\"_footer\" style=\"position: relative; min-height: 0.65cm; padding-left: 0.65cm; padding-right: 0.65cm; padding-bottom: 0.65cm; outline: none;\" contenteditable=\"false\" class=\"\"></div> \n \n </div>";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { GlobalModal, TGlobalModalMeta } from './utils';
|
|
2
|
+
import { GlobalModal, IGlobalModalProps, TGlobalModalMeta } from './utils';
|
|
3
3
|
export * from './utils';
|
|
4
|
+
export { IGlobalModalProps };
|
|
4
5
|
export declare function MountGlobalModal(props: {
|
|
5
6
|
meta: TGlobalModalMeta;
|
|
6
7
|
globalModal: GlobalModal<any>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Pagination_L, Table_L, TreeSelect_L, TreeNodeProps } from "@noah-libjs/components";
|
|
2
|
+
export declare const LazyAntd: {
|
|
3
|
+
Tree: import("react").ForwardRefExoticComponent<import("@noah-libjs/components").TreeProps<import("antd").TreeDataNode> & import("react").RefAttributes<import("rc-tree").default<import("antd").TreeDataNode>>> & {
|
|
4
|
+
TreeNode: import("react").FC<TreeNodeProps<import("@noah-libjs/components").DataNode>>;
|
|
5
|
+
DirectoryTree: (props: import("@noah-libjs/components").DirectoryTreeProps) => React.JSX.Element;
|
|
6
|
+
RCTree: import("rc-tree").default;
|
|
7
|
+
};
|
|
8
|
+
TreeSelect: typeof TreeSelect_L;
|
|
9
|
+
Select: (<T extends Object = any>(props: import("antd").SelectProps<T>) => React.JSX.Element) & {
|
|
10
|
+
Option: typeof import("@noah-libjs/components").SelectOption_L;
|
|
11
|
+
};
|
|
12
|
+
Table: typeof Table_L;
|
|
13
|
+
Dropdown: import("react").FC<import("antd").DropDownProps> & {
|
|
14
|
+
Button: (props: import("antd/es/dropdown").DropdownButtonProps) => React.JSX.Element;
|
|
15
|
+
};
|
|
16
|
+
Pagination: typeof Pagination_L;
|
|
17
|
+
};
|
|
@@ -8,5 +8,5 @@ interface IProps {
|
|
|
8
8
|
height?: string;
|
|
9
9
|
theme?: "vs-dark" | 'light';
|
|
10
10
|
}
|
|
11
|
-
declare function MyMonaco(
|
|
11
|
+
declare function MyMonaco(props: IProps): React.JSX.Element;
|
|
12
12
|
export default MyMonaco;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IMyImageEditorProps } from './utils';
|
|
3
|
-
declare function MyImageEditor_Inner(props: IMyImageEditorProps): React.JSX.Element;
|
|
3
|
+
declare function MyImageEditor_Inner(props: IMyImageEditorProps): React.JSX.Element | "加载中...";
|
|
4
4
|
export default MyImageEditor_Inner;
|
|
@@ -15,7 +15,7 @@ export type RealListenCbs = {
|
|
|
15
15
|
'object:added': RealEventCb;
|
|
16
16
|
};
|
|
17
17
|
import { Canvas, ICanvasOptions, IEvent } from 'fabric/fabric-impl';
|
|
18
|
-
export declare const real_fabric: RealType;
|
|
18
|
+
export declare const real_fabric: () => RealType;
|
|
19
19
|
export declare const default_legends: {
|
|
20
20
|
img: string;
|
|
21
21
|
width: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { InputRef } from 'antd';
|
|
3
3
|
import { IMyInputProps } from './types';
|
|
4
4
|
export * from './types';
|
|
5
|
-
export declare const MyInput: React.ForwardRefExoticComponent<IMyInputProps & React.RefAttributes<
|
|
5
|
+
export declare const MyInput: React.ForwardRefExoticComponent<IMyInputProps & React.RefAttributes<InputRef>>;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AutoCompleteProps, FormInstance } from 'antd';
|
|
2
|
+
import { DefaultOptionType } from 'antd/es/select';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
type KeyType = [DefaultOptionType, DefaultOptionType, DefaultOptionType, DefaultOptionType];
|
|
5
|
+
interface IProps extends Omit<AutoCompleteProps, 'onChange'> {
|
|
6
|
+
name?: string;
|
|
7
|
+
PatientSelect_url?: string;
|
|
8
|
+
PatientSelect_filterKey?: string;
|
|
9
|
+
PatientSelect_displayKey?: KeyType;
|
|
10
|
+
width?: any;
|
|
11
|
+
form?: FormInstance;
|
|
12
|
+
onPatientSelect?(v: any, form?: FormInstance): void;
|
|
13
|
+
onChange?(v: any): void;
|
|
14
|
+
}
|
|
15
|
+
export default function PatientSelect(props: IProps): React.JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { TabsProps } from "antd";
|
|
2
|
-
import
|
|
2
|
+
import React from "react";
|
|
3
|
+
import { SimpleFormProps } from "src/SimpleForm/types";
|
|
3
4
|
interface IItem {
|
|
4
5
|
_id: number;
|
|
5
6
|
[x: string]: any;
|
|
@@ -10,5 +11,5 @@ interface IProps extends Omit<TabsProps, 'onChange'> {
|
|
|
10
11
|
onChange?: (v: IItem[]) => void;
|
|
11
12
|
formSchema: SimpleFormProps;
|
|
12
13
|
}
|
|
13
|
-
export default function TabForm({ value, formSchema, onChange, title, style, ...others }: IProps):
|
|
14
|
+
export default function TabForm({ value, formSchema, onChange, title, style, ...others }: IProps): React.JSX.Element;
|
|
14
15
|
export {};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { InputProps } from "antd";
|
|
2
2
|
import { FC } from "react";
|
|
3
3
|
export { InputProps };
|
|
4
|
+
import React from "react";
|
|
4
5
|
export default function Custom<T>(props: InputProps & {
|
|
5
6
|
CustomedComponent: FC<T>;
|
|
6
7
|
[x: string]: any;
|
|
7
|
-
}):
|
|
8
|
+
}): React.JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Checkbox, DatePicker, Divider, Input, InputNumber, Radio, Rate, Row, Slider, Switch, TimePicker
|
|
1
|
+
import { Checkbox, DatePicker, Divider, Input, InputNumber, Radio, Rate, Row, Slider, Switch, TimePicker } from 'antd';
|
|
2
2
|
import SimpleSelect from './extra/SimpleSelect';
|
|
3
3
|
import { MultiInput } from './extra/MultiInput';
|
|
4
4
|
import Custom from './extra/Custom';
|
|
@@ -6,12 +6,10 @@ import SwitchSelect from './extra/SwitchSelect';
|
|
|
6
6
|
import { RangePickerProps } from 'antd/lib/date-picker';
|
|
7
7
|
import { ComponentClass } from 'react';
|
|
8
8
|
import TabForm from './TabForm';
|
|
9
|
-
|
|
10
|
-
Option: (props: import("rc-select/lib/Option").OptionProps) => import("react").JSX.Element;
|
|
11
|
-
};
|
|
9
|
+
import { Select_L } from '@noah-libjs/components';
|
|
12
10
|
export interface IC {
|
|
13
11
|
Input: typeof Input;
|
|
14
|
-
Select: typeof
|
|
12
|
+
Select: typeof Select_L;
|
|
15
13
|
Radio: typeof Radio;
|
|
16
14
|
InputNumber: typeof InputNumber;
|
|
17
15
|
Checkbox: typeof Checkbox;
|
|
@@ -34,4 +32,3 @@ export interface IC {
|
|
|
34
32
|
Grid: typeof Row;
|
|
35
33
|
}
|
|
36
34
|
export declare const ComponentMapping: IC;
|
|
37
|
-
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { SimpleFormProps } from "./types";
|
|
2
|
+
import { FormInstance } from "antd";
|
|
3
|
+
import { Rule } from "antd/es/form";
|
|
4
|
+
export * from './types';
|
|
5
|
+
type InternalFormType = React.ForwardRefExoticComponent<SimpleFormProps & React.RefAttributes<FormInstance<any>>>;
|
|
6
|
+
export interface SimpleFormType extends InternalFormType {
|
|
7
|
+
getPresetRules: (name: keyof typeof basicRules, required?: boolean) => Rule[];
|
|
8
|
+
requiredRules: Rule[];
|
|
9
|
+
}
|
|
10
|
+
declare const SimpleForm: SimpleFormType;
|
|
11
|
+
declare const basicRules: {
|
|
12
|
+
telephone: {
|
|
13
|
+
validator: (_: any, value: any) => Promise<void>;
|
|
14
|
+
message: string;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
export { SimpleForm };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { FormInstance, FormProps } from 'antd';
|
|
2
2
|
import { AllTypes } from './types/metaTypes';
|
|
3
|
-
import { Rule } from 'antd/lib/form';
|
|
4
3
|
type TLayoutType = 6 | 8 | 12 | 16 | 24;
|
|
5
4
|
type TFormItemMix = AllTypes & {
|
|
6
5
|
layoutType?: TLayoutType;
|
|
@@ -22,17 +21,4 @@ interface IRowSchema {
|
|
|
22
21
|
label?: string;
|
|
23
22
|
disabled?: boolean;
|
|
24
23
|
}
|
|
25
|
-
declare const SimpleFormInner: import("react").ForwardRefExoticComponent<SimpleFormProps & import("react").RefAttributes<FormInstance<any>>>;
|
|
26
|
-
type InternalFormType = typeof SimpleFormInner;
|
|
27
|
-
interface SimpleFormType extends InternalFormType {
|
|
28
|
-
getPresetRules: (name: keyof typeof basicRules, required?: boolean) => Rule[];
|
|
29
|
-
requiredRules: Rule[];
|
|
30
|
-
}
|
|
31
|
-
export declare const SimpleForm: SimpleFormType;
|
|
32
|
-
declare const basicRules: {
|
|
33
|
-
telephone: {
|
|
34
|
-
validator: (_: any, value: any) => Promise<void>;
|
|
35
|
-
message: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
24
|
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/defineProperty";
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
import { ArraySingle } from '@noah-libjs/components';
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { p as pack_components } from './index.js';
|
|
7
|
+
import '@lm_fe/env';
|
|
8
|
+
import 'lodash';
|
|
9
|
+
import 'antd';
|
|
10
|
+
import '@lm_fe/static';
|
|
11
|
+
import '@lm_fe/service';
|
|
12
|
+
import '@lm_fe/provoke';
|
|
13
|
+
import '@lm_fe/utils';
|
|
14
|
+
var ArraySingle_Inner = function ArraySingle_Inner(props) {
|
|
15
|
+
return /*#__PURE__*/React.createElement(ArraySingle, _objectSpread(_objectSpread({}, props), {}, {
|
|
16
|
+
component_map: pack_components
|
|
17
|
+
}));
|
|
18
|
+
};
|
|
19
|
+
export { ArraySingle_Inner as default };
|