ronds-metadata 1.2.83 → 1.2.84
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/comps/DynamicPorts/comps/DragNode.d.ts +1 -1
- package/es/comps/DynamicPorts/comps/NodeElement.d.ts +1 -1
- package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.d.ts +1 -2
- package/es/comps/DynamicPorts/index.d.ts +1 -2
- package/es/comps/Editable/DataCell/ButtonCell.d.ts +1 -1
- package/es/comps/Editable/DataCell/ColorPicker.d.ts +1 -1
- package/es/comps/Editable/DataCell/Input.d.ts +1 -1
- package/es/comps/Editable/DataCell/Number.d.ts +1 -1
- package/es/comps/Editable/DataCell/Select.d.ts +1 -1
- package/es/comps/Editable/DataCell/Switch.d.ts +1 -1
- package/es/comps/Editable/comps/EditableAction.d.ts +1 -2
- package/es/comps/Editable/comps/Texty.d.ts +1 -1
- package/es/comps/Editable/index.d.ts +1 -2
- package/es/comps/Editable/utils.d.ts +1 -2
- package/es/comps/FileView/index.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/Preview.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Date.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Input.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Number.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/NumberRange.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Switch.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/TextArea.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Canvas/core/index.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/index.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Settings/index.d.ts +1 -2
- package/es/comps/FormGenerator/comps/Sidebar/Elements.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Sidebar/JsonSchema.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Sidebar/index.d.ts +1 -2
- package/es/comps/FormGenerator/index.d.ts +1 -2
- package/es/comps/JsonEdit/index.d.ts +1 -2
- package/es/comps/JsonView/index.d.ts +1 -2
- package/es/comps/JsonView/index.less +41 -41
- package/es/comps/MdEdit/index.d.ts +1 -2
- package/es/comps/MdEdit/index.less +6 -6
- package/es/comps/MdEditPro/index.d.ts +1 -2
- package/es/comps/MdNavbar/index.d.ts +1 -2
- package/es/comps/MdView/index.d.ts +1 -1
- package/es/comps/MetadataEdit/components/MetaFieldsEdit.d.ts +1 -2
- package/es/comps/MetadataEdit/components/MetaPropsEdit.d.ts +1 -2
- package/es/comps/MetadataEdit/constant/index.js +30 -20
- package/es/comps/MetadataEdit/index.d.ts +1 -2
- package/es/comps/MetadataEdit/index.less +10 -10
- package/es/comps/MetadataEdit/type.d.ts +20 -20
- package/es/comps/MetadataEditV2/components/MetaFieldsEdit.d.ts +1 -2
- package/es/comps/MetadataEditV2/components/MetaPropsEdit.d.ts +1 -2
- package/es/comps/MetadataEditV2/index.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/Array.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Input.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Number.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Ref.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Select.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/Switch.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/layout/TableArray.d.ts +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/NumberRange.d.ts +1 -2
- package/es/comps/MetadataForm/HOC/index.d.ts +1 -2
- package/es/comps/MetadataForm/HOC/index.less +41 -41
- package/es/comps/MetadataForm/index.d.ts +1 -2
- package/es/comps/MetadataForm/utils.d.ts +2 -3
- package/es/comps/Split/index.d.ts +1 -1
- package/es/framework/RxStore/demo/index.d.ts +1 -2
- package/es/framework/metadata/types.d.ts +98 -98
- package/package.json +103 -103
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './index.less';
|
|
3
2
|
interface INodeContextMenuProps {
|
|
4
3
|
graph: any;
|
|
5
4
|
data: any;
|
|
6
5
|
}
|
|
7
|
-
declare const NodeContextMenu: (props: INodeContextMenuProps) =>
|
|
6
|
+
declare const NodeContextMenu: (props: INodeContextMenuProps) => JSX.Element;
|
|
8
7
|
export default NodeContextMenu;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './index.less';
|
|
3
2
|
import './comps/shape/connector';
|
|
4
3
|
import DPGraph from './graph';
|
|
@@ -21,5 +20,5 @@ interface IDynamicPortsProps {
|
|
|
21
20
|
*/
|
|
22
21
|
getDPGraphInstance?: (data: DPGraph) => void;
|
|
23
22
|
}
|
|
24
|
-
declare const DynamicPorts: (props: IDynamicPortsProps) =>
|
|
23
|
+
declare const DynamicPorts: (props: IDynamicPortsProps) => JSX.Element;
|
|
25
24
|
export default DynamicPorts;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EditableCellProps } from '../interface';
|
|
3
|
-
declare function Index(props: EditableCellProps):
|
|
3
|
+
declare function Index(props: EditableCellProps): JSX.Element;
|
|
4
4
|
declare const _default: React.MemoExoticComponent<typeof Index>;
|
|
5
5
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EditableCellProps } from '../interface';
|
|
3
|
-
declare function Index(props: EditableCellProps):
|
|
3
|
+
declare function Index(props: EditableCellProps): JSX.Element;
|
|
4
4
|
declare const _default: React.MemoExoticComponent<typeof Index>;
|
|
5
5
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EditableCellProps } from '../interface';
|
|
3
|
-
declare function Index(props: EditableCellProps):
|
|
3
|
+
declare function Index(props: EditableCellProps): JSX.Element;
|
|
4
4
|
declare const _default: React.MemoExoticComponent<typeof Index>;
|
|
5
5
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { EditableCellProps } from '../interface';
|
|
3
|
-
declare function Index(props: EditableCellProps):
|
|
3
|
+
declare function Index(props: EditableCellProps): JSX.Element;
|
|
4
4
|
declare const _default: React.MemoExoticComponent<typeof Index>;
|
|
5
5
|
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
interface IEditableActionProps {
|
|
3
2
|
type: 'single' | 'multiple' | 'freedom';
|
|
4
3
|
record: any;
|
|
5
4
|
}
|
|
6
|
-
declare const EditableAction: (props: IEditableActionProps) =>
|
|
5
|
+
declare const EditableAction: (props: IEditableActionProps) => JSX.Element;
|
|
7
6
|
export default EditableAction;
|
|
@@ -69,7 +69,7 @@ declare class Texty extends React.PureComponent<ITextyProps, any> {
|
|
|
69
69
|
private showTimer;
|
|
70
70
|
componentDidUpdate(): void;
|
|
71
71
|
componentWillUnmount(): void;
|
|
72
|
-
render():
|
|
72
|
+
render(): JSX.Element;
|
|
73
73
|
renderTooltip: ({ ref, style, placement, arrowProps }: any) => React.ReactPortal;
|
|
74
74
|
setTargetRef: (ref: any) => void;
|
|
75
75
|
handleMouseEvent: (e: any) => void;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { TableProps } from 'antd';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import { BehaviorSubject } from 'rxjs';
|
|
4
3
|
import { EditColumnsType, IEditableStream } from './interface';
|
|
5
4
|
import './index.less';
|
|
@@ -75,5 +74,5 @@ interface IEditableProps<R = any> {
|
|
|
75
74
|
*/
|
|
76
75
|
getStreamInstance?: (subject: BehaviorSubject<IEditableStream | undefined>) => void;
|
|
77
76
|
}
|
|
78
|
-
declare const Editable: (props: IEditableProps) =>
|
|
77
|
+
declare const Editable: (props: IEditableProps) => JSX.Element;
|
|
79
78
|
export default Editable;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { EditableCellProps } from './interface';
|
|
3
|
-
export declare function getDataCell(item: EditableCellProps):
|
|
2
|
+
export declare function getDataCell(item: EditableCellProps): JSX.Element;
|
|
4
3
|
export declare function isFreeEditRow(curRow: any, rowIndex: number): boolean;
|
|
5
4
|
export declare function isFreeEditCell(editCellKey: any, dataIndex: string, rowIndex: number): boolean;
|
|
6
5
|
export declare function isCellDisabled(record: any, cellDisabled?: string): boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
interface IFileViewProps {
|
|
3
2
|
/**
|
|
4
3
|
* 文件远程链接
|
|
@@ -17,5 +16,5 @@ interface IFileViewProps {
|
|
|
17
16
|
*/
|
|
18
17
|
limit?: number;
|
|
19
18
|
}
|
|
20
|
-
declare const FileView: (props: IFileViewProps) =>
|
|
19
|
+
declare const FileView: (props: IFileViewProps) => JSX.Element;
|
|
21
20
|
export default FileView;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (props: any) =>
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (props: any) =>
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (props: any) =>
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (props: any) =>
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (props: any) =>
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (props: any) =>
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (props: any) =>
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (props: any) =>
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: (props: any) =>
|
|
1
|
+
declare const _default: (props: any) => JSX.Element;
|
|
2
2
|
export default _default;
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export declare function withFieldCellWrapper(WrappedComponent: any): (props: any) => React.JSX.Element;
|
|
1
|
+
export declare function withFieldCellWrapper(WrappedComponent: any): (props: any) => JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FG } from '../../../../interface';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
interface IRenderFieldProps {
|
|
4
3
|
data: FG.Node;
|
|
5
4
|
/**
|
|
@@ -8,5 +7,5 @@ interface IRenderFieldProps {
|
|
|
8
7
|
refId?: string;
|
|
9
8
|
isShowAction?: boolean;
|
|
10
9
|
}
|
|
11
|
-
declare const RenderField: (props: IRenderFieldProps) =>
|
|
10
|
+
declare const RenderField: (props: IRenderFieldProps) => JSX.Element;
|
|
12
11
|
export default RenderField;
|
|
@@ -17,5 +17,5 @@ interface ICanvasCoreProps {
|
|
|
17
17
|
*/
|
|
18
18
|
onChange?: (nodes: FG.Node[]) => void;
|
|
19
19
|
}
|
|
20
|
-
declare const _default: React.MemoExoticComponent<(props: ICanvasCoreProps) =>
|
|
20
|
+
declare const _default: React.MemoExoticComponent<(props: ICanvasCoreProps) => JSX.Element>;
|
|
21
21
|
export default _default;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './index.less';
|
|
3
2
|
interface IFormGeneratorProps {
|
|
4
3
|
/**
|
|
@@ -6,5 +5,5 @@ interface IFormGeneratorProps {
|
|
|
6
5
|
*/
|
|
7
6
|
defaultSchema?: any;
|
|
8
7
|
}
|
|
9
|
-
declare const FormGenerator: (props: IFormGeneratorProps) =>
|
|
8
|
+
declare const FormGenerator: (props: IFormGeneratorProps) => JSX.Element;
|
|
10
9
|
export default FormGenerator;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import 'codemirror/lib/codemirror.css';
|
|
3
2
|
import 'codemirror/theme/neo.css';
|
|
4
3
|
import 'codemirror/theme/panda-syntax.css';
|
|
@@ -66,5 +65,5 @@ interface ISqlEditProps {
|
|
|
66
65
|
*/
|
|
67
66
|
onReWriteEnter?: () => void;
|
|
68
67
|
}
|
|
69
|
-
declare const SqlEdit: (props: ISqlEditProps) =>
|
|
68
|
+
declare const SqlEdit: (props: ISqlEditProps) => JSX.Element;
|
|
70
69
|
export default SqlEdit;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
pre {
|
|
2
|
-
margin: 0;
|
|
3
|
-
font-weight: 900;
|
|
4
|
-
font-size: 14px;
|
|
5
|
-
}
|
|
6
|
-
.string {
|
|
7
|
-
color: #3ab54a;
|
|
8
|
-
}
|
|
9
|
-
.number {
|
|
10
|
-
color: #25aae2;
|
|
11
|
-
}
|
|
12
|
-
.boolean {
|
|
13
|
-
color: #f98280;
|
|
14
|
-
}
|
|
15
|
-
.null {
|
|
16
|
-
color: #f1592a;
|
|
17
|
-
}
|
|
18
|
-
.width-10 {
|
|
19
|
-
width: 10px;
|
|
20
|
-
}
|
|
21
|
-
.key {
|
|
22
|
-
color: #92278f;
|
|
23
|
-
}
|
|
24
|
-
.open {
|
|
25
|
-
display: inline-block;
|
|
26
|
-
width: 12px;
|
|
27
|
-
height: 12px;
|
|
28
|
-
background: url('./icon/close.png') no-repeat;
|
|
29
|
-
background-size: 100% 100%;
|
|
30
|
-
vertical-align: middle;
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
}
|
|
33
|
-
.close {
|
|
34
|
-
display: inline-block;
|
|
35
|
-
width: 12px;
|
|
36
|
-
height: 12px;
|
|
37
|
-
background: url('./icon/open.png') no-repeat;
|
|
38
|
-
background-size: 100% 100%;
|
|
39
|
-
vertical-align: middle;
|
|
40
|
-
cursor: pointer;
|
|
41
|
-
}
|
|
1
|
+
pre {
|
|
2
|
+
margin: 0;
|
|
3
|
+
font-weight: 900;
|
|
4
|
+
font-size: 14px;
|
|
5
|
+
}
|
|
6
|
+
.string {
|
|
7
|
+
color: #3ab54a;
|
|
8
|
+
}
|
|
9
|
+
.number {
|
|
10
|
+
color: #25aae2;
|
|
11
|
+
}
|
|
12
|
+
.boolean {
|
|
13
|
+
color: #f98280;
|
|
14
|
+
}
|
|
15
|
+
.null {
|
|
16
|
+
color: #f1592a;
|
|
17
|
+
}
|
|
18
|
+
.width-10 {
|
|
19
|
+
width: 10px;
|
|
20
|
+
}
|
|
21
|
+
.key {
|
|
22
|
+
color: #92278f;
|
|
23
|
+
}
|
|
24
|
+
.open {
|
|
25
|
+
display: inline-block;
|
|
26
|
+
width: 12px;
|
|
27
|
+
height: 12px;
|
|
28
|
+
background: url('./icon/close.png') no-repeat;
|
|
29
|
+
background-size: 100% 100%;
|
|
30
|
+
vertical-align: middle;
|
|
31
|
+
cursor: pointer;
|
|
32
|
+
}
|
|
33
|
+
.close {
|
|
34
|
+
display: inline-block;
|
|
35
|
+
width: 12px;
|
|
36
|
+
height: 12px;
|
|
37
|
+
background: url('./icon/open.png') no-repeat;
|
|
38
|
+
background-size: 100% 100%;
|
|
39
|
+
vertical-align: middle;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import 'react-markdown-editor-lite/lib/index.css';
|
|
3
2
|
import { UploadFunc } from 'react-markdown-editor-lite/cjs/share/var';
|
|
4
3
|
import './index.less';
|
|
@@ -13,5 +12,5 @@ interface IMdEditProps {
|
|
|
13
12
|
text?: string;
|
|
14
13
|
}>;
|
|
15
14
|
}
|
|
16
|
-
declare const MdEdit: (props: IMdEditProps) =>
|
|
15
|
+
declare const MdEdit: (props: IMdEditProps) => JSX.Element;
|
|
17
16
|
export default MdEdit;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
.rc-md-editor.full {
|
|
2
|
-
width: 100% !important;
|
|
3
|
-
}
|
|
4
|
-
.rc-md-editor .rc-md-navigation .button-wrap {
|
|
5
|
-
align-items: center;
|
|
6
|
-
}
|
|
1
|
+
.rc-md-editor.full {
|
|
2
|
+
width: 100% !important;
|
|
3
|
+
}
|
|
4
|
+
.rc-md-editor .rc-md-navigation .button-wrap {
|
|
5
|
+
align-items: center;
|
|
6
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './index.less';
|
|
3
2
|
interface IMdEditProProps {
|
|
4
3
|
value: string;
|
|
@@ -7,5 +6,5 @@ interface IMdEditProProps {
|
|
|
7
6
|
default: string;
|
|
8
7
|
}>;
|
|
9
8
|
}
|
|
10
|
-
declare const MdEditPro: (props: IMdEditProProps) =>
|
|
9
|
+
declare const MdEditPro: (props: IMdEditProProps) => JSX.Element;
|
|
11
10
|
export default MdEditPro;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import './index.less';
|
|
3
2
|
interface IMdNavbarProps {
|
|
4
3
|
source: string;
|
|
@@ -10,5 +9,5 @@ interface IMdNavbarProps {
|
|
|
10
9
|
onNavItemClick?: (event: any, element: HTMLDivElement, hashValue: string) => void;
|
|
11
10
|
onHashChange?: (newHash: string, oldHash: string) => void;
|
|
12
11
|
}
|
|
13
|
-
declare const MdNavbar: (props: IMdNavbarProps) =>
|
|
12
|
+
declare const MdNavbar: (props: IMdNavbarProps) => JSX.Element;
|
|
14
13
|
export default MdNavbar;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
interface IMetaFieldsEditProps {
|
|
3
2
|
type?: string;
|
|
4
3
|
defaultValues?: any;
|
|
5
4
|
onChange?: (values: any) => void;
|
|
6
5
|
}
|
|
7
|
-
declare const MetaFieldsEdit: (props: IMetaFieldsEditProps) =>
|
|
6
|
+
declare const MetaFieldsEdit: (props: IMetaFieldsEditProps) => JSX.Element;
|
|
8
7
|
export default MetaFieldsEdit;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { FormInstance } from 'antd/lib/form';
|
|
3
2
|
interface IMetaPropsEditProps {
|
|
4
3
|
form: FormInstance;
|
|
@@ -10,5 +9,5 @@ interface IMetaPropsEditProps {
|
|
|
10
9
|
onAddFields?: (idx: number) => void;
|
|
11
10
|
onNewRefClick?: () => void;
|
|
12
11
|
}
|
|
13
|
-
declare const MetaPropsEdit: (props: IMetaPropsEditProps) =>
|
|
12
|
+
declare const MetaPropsEdit: (props: IMetaPropsEditProps) => JSX.Element;
|
|
14
13
|
export default MetaPropsEdit;
|
|
@@ -33,29 +33,39 @@ export var ARRAY_TYPES_OPTIONS = [{
|
|
|
33
33
|
export var OUTERMOST_TYPES_OPTIONS = [{
|
|
34
34
|
label: '对象',
|
|
35
35
|
value: 'object'
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
36
|
+
}
|
|
37
|
+
// {
|
|
38
|
+
// label: '数字',
|
|
39
|
+
// value: 'number',
|
|
40
|
+
// },
|
|
41
|
+
// {
|
|
42
|
+
// label: '文本',
|
|
43
|
+
// value: 'text',
|
|
44
|
+
// },
|
|
45
|
+
// {
|
|
46
|
+
// label: '布尔类型',
|
|
47
|
+
// value: 'bool',
|
|
48
|
+
// },
|
|
49
|
+
];
|
|
50
|
+
|
|
46
51
|
export var RULE_TYPES_OPTIONS = [{
|
|
47
52
|
label: '引用',
|
|
48
53
|
value: 'ref'
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
54
|
+
}
|
|
55
|
+
// {
|
|
56
|
+
// label: '数字',
|
|
57
|
+
// value: 'number',
|
|
58
|
+
// },
|
|
59
|
+
// {
|
|
60
|
+
// label: '文本',
|
|
61
|
+
// value: 'text',
|
|
62
|
+
// },
|
|
63
|
+
// {
|
|
64
|
+
// label: '布尔类型',
|
|
65
|
+
// value: 'bool',
|
|
66
|
+
// },
|
|
67
|
+
];
|
|
68
|
+
|
|
59
69
|
export var NUMBER_FORMAT_OPTIONS = [{
|
|
60
70
|
label: 'int',
|
|
61
71
|
value: 'int'
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FormInstance } from 'antd';
|
|
2
|
-
import React from 'react';
|
|
3
2
|
import './index.less';
|
|
4
3
|
interface IMetadataEditProps {
|
|
5
4
|
/**
|
|
@@ -27,5 +26,5 @@ interface IMetadataEditProps {
|
|
|
27
26
|
*/
|
|
28
27
|
getFormInstance?: (form: FormInstance) => void;
|
|
29
28
|
}
|
|
30
|
-
declare const MetadataEdit: (props: IMetadataEditProps) =>
|
|
29
|
+
declare const MetadataEdit: (props: IMetadataEditProps) => JSX.Element;
|
|
31
30
|
export default MetadataEdit;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
.metadata-edit {
|
|
2
|
-
height: 100%;
|
|
3
|
-
width: 100%;
|
|
4
|
-
.ant-row {
|
|
5
|
-
display: block;
|
|
6
|
-
}
|
|
7
|
-
.pr-10 {
|
|
8
|
-
padding-right: 10px;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
1
|
+
.metadata-edit {
|
|
2
|
+
height: 100%;
|
|
3
|
+
width: 100%;
|
|
4
|
+
.ant-row {
|
|
5
|
+
display: block;
|
|
6
|
+
}
|
|
7
|
+
.pr-10 {
|
|
8
|
+
padding-right: 10px;
|
|
9
|
+
}
|
|
10
|
+
}
|