@teamix/pro 1.1.4 → 1.1.8
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 +97 -0
- package/dist/212.js +2 -2
- package/dist/pro.css +1 -1
- package/dist/pro.js +3147 -1872
- package/dist/pro.min.css +1 -1
- package/dist/pro.min.js +1 -1
- package/dist/pro.min.js.LICENSE.txt +1 -1
- package/es/actions/dialog-form.d.ts +3 -3
- package/es/actions/dialog-table.d.ts +6 -1
- package/es/actions/dialog-table.js +10 -1
- package/es/actions/drawer-table.d.ts +4 -0
- package/es/actions/drawer-table.js +7 -1
- package/es/actions/index.d.ts +6 -11
- package/es/actions/index.js +41 -21
- package/es/actions/index.scss +1 -1
- package/es/card/index.d.ts +17 -0
- package/es/form/Components/ProField/index.d.ts +8 -0
- package/es/form/ProForm/index.d.ts +2 -2
- package/es/form/ProForm/index.js +9 -2
- package/es/form/ProForm/index.scss +40 -7
- package/es/form/SchemaForm/adapterType.js +3 -3
- package/es/form/SchemaForm/index.d.ts +2 -2
- package/es/form/SchemaForm/index.js +9 -5
- package/es/form/SchemaForm/initializeArrayCards.js +10 -55
- package/es/form/SchemaForm/initializeArrayCollapse.js +10 -64
- package/es/form/SchemaForm/initializeArrayIcon.js +19 -7
- package/es/form/SchemaForm/initializeArrayItems.js +16 -75
- package/es/form/SchemaForm/initializeArrayTable.js +23 -33
- package/es/form/SchemaForm/initializeFormButton.js +35 -38
- package/es/form/SchemaForm/initializeFormGroup.d.ts +2 -2
- package/es/form/SchemaForm/initializeFormStep.d.ts +4 -2
- package/es/form/SchemaForm/initializeFormStep.js +21 -7
- package/es/form/SchemaForm/initializeFormTab.d.ts +2 -2
- package/es/form/SchemaForm/initializeProField.js +3 -3
- package/es/form/SchemaForm/reactions.d.ts +1 -1
- package/es/form/SchemaForm/reactions.js +2 -2
- package/es/form/index.d.ts +17 -9
- package/es/form/index.js +21 -9
- package/es/form/typing.d.ts +13 -22
- package/es/form/warning.js +2 -6
- package/es/index.d.ts +4 -3
- package/es/index.js +4 -3
- package/es/info/components/FormItem/index.js +4 -4
- package/es/info/components/FormItem/index.scss +11 -0
- package/es/info/components/InfoGroup/index.js +37 -6
- package/es/info/components/InfoGroup/index.scss +6 -0
- package/es/info/components/InfoValueItem/index.js +14 -2
- package/es/info/components/baseInfo/index.js +10 -9
- package/es/info/components/headerInfo/index.js +10 -9
- package/es/info/components/tableInfo/index.js +7 -4
- package/es/info/components/tableInfo/index.scss +1 -1
- package/es/info/index.d.ts +1 -0
- package/es/info/index.js +9 -7
- package/es/info/index.scss +4 -0
- package/es/info/typing.d.ts +17 -3
- package/es/info/utils/index.d.ts +11 -2
- package/es/info/utils/index.js +21 -0
- package/es/nocode/configurators/PageHeader.js +49 -43
- package/es/nocode/configurators/ProTable.js +12 -9
- package/es/nocode/configurators/common.d.ts +117 -105
- package/es/nocode/configurators/common.js +38 -34
- package/es/nocode/index.scss +1 -4
- package/es/page-header/index.d.ts +3 -0
- package/es/page-header/index.js +40 -13
- package/es/page-header/index.scss +6 -4
- package/es/table/components/Filter/index.js +8 -16
- package/es/table/components/Layout/index.js +2 -1
- package/es/table/components/Layout/index.scss +1 -1
- package/es/table/components/ToolBar/FilterColumnIcon.js +77 -17
- package/es/table/components/ToolBar/index.scss +10 -0
- package/es/table/index.d.ts +0 -1
- package/es/table/index.js +75 -56
- package/es/table/index.scss +0 -1
- package/es/table/typing.d.ts +3 -1
- package/lib/actions/dialog-form.d.ts +3 -3
- package/lib/actions/dialog-table.d.ts +6 -1
- package/lib/actions/dialog-table.js +20 -1
- package/lib/actions/drawer-table.d.ts +4 -0
- package/lib/actions/drawer-table.js +14 -1
- package/lib/actions/index.d.ts +6 -11
- package/lib/actions/index.js +44 -20
- package/lib/actions/index.scss +1 -1
- package/lib/card/index.d.ts +17 -0
- package/lib/form/Components/ProField/index.d.ts +8 -0
- package/lib/form/ProForm/index.d.ts +2 -2
- package/lib/form/ProForm/index.js +10 -2
- package/lib/form/ProForm/index.scss +40 -7
- package/lib/form/SchemaForm/adapterType.js +3 -3
- package/lib/form/SchemaForm/index.d.ts +2 -2
- package/lib/form/SchemaForm/index.js +10 -5
- package/lib/form/SchemaForm/initializeArrayCards.js +10 -54
- package/lib/form/SchemaForm/initializeArrayCollapse.js +10 -63
- package/lib/form/SchemaForm/initializeArrayIcon.js +19 -7
- package/lib/form/SchemaForm/initializeArrayItems.js +16 -74
- package/lib/form/SchemaForm/initializeArrayTable.js +23 -33
- package/lib/form/SchemaForm/initializeFormButton.js +35 -38
- package/lib/form/SchemaForm/initializeFormGroup.d.ts +2 -2
- package/lib/form/SchemaForm/initializeFormStep.d.ts +4 -2
- package/lib/form/SchemaForm/initializeFormStep.js +21 -7
- package/lib/form/SchemaForm/initializeFormTab.d.ts +2 -2
- package/lib/form/SchemaForm/initializeProField.js +3 -3
- package/lib/form/SchemaForm/reactions.d.ts +1 -1
- package/lib/form/SchemaForm/reactions.js +2 -2
- package/lib/form/index.d.ts +17 -9
- package/lib/form/index.js +81 -56
- package/lib/form/typing.d.ts +13 -22
- package/lib/form/warning.js +2 -6
- package/lib/index.d.ts +4 -3
- package/lib/index.js +16 -4
- package/lib/info/components/FormItem/index.js +4 -4
- package/lib/info/components/FormItem/index.scss +11 -0
- package/lib/info/components/InfoGroup/index.js +46 -6
- package/lib/info/components/InfoGroup/index.scss +6 -0
- package/lib/info/components/InfoValueItem/index.js +15 -3
- package/lib/info/components/baseInfo/index.js +10 -9
- package/lib/info/components/headerInfo/index.js +11 -10
- package/lib/info/components/tableInfo/index.js +7 -3
- package/lib/info/components/tableInfo/index.scss +1 -1
- package/lib/info/index.d.ts +1 -0
- package/lib/info/index.js +8 -6
- package/lib/info/index.scss +4 -0
- package/lib/info/typing.d.ts +17 -3
- package/lib/info/utils/index.d.ts +11 -2
- package/lib/info/utils/index.js +31 -0
- package/lib/nocode/configurators/PageHeader.js +49 -43
- package/lib/nocode/configurators/ProTable.js +12 -9
- package/lib/nocode/configurators/common.d.ts +117 -105
- package/lib/nocode/configurators/common.js +38 -34
- package/lib/nocode/index.scss +1 -4
- package/lib/page-header/index.d.ts +3 -0
- package/lib/page-header/index.js +42 -13
- package/lib/page-header/index.scss +6 -4
- package/lib/table/components/Filter/index.js +7 -15
- package/lib/table/components/Layout/index.js +2 -1
- package/lib/table/components/Layout/index.scss +1 -1
- package/lib/table/components/ToolBar/FilterColumnIcon.js +75 -16
- package/lib/table/components/ToolBar/index.scss +10 -0
- package/lib/table/index.d.ts +0 -1
- package/lib/table/index.js +76 -65
- package/lib/table/index.scss +0 -1
- package/lib/table/typing.d.ts +3 -1
- package/package.json +5 -5
@@ -21,6 +21,8 @@ var _InfoValueItem = _interopRequireDefault(require("../InfoValueItem"));
|
|
21
21
|
|
22
22
|
var _2 = require("../../..");
|
23
23
|
|
24
|
+
var _utils2 = require("../../utils");
|
25
|
+
|
24
26
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
25
27
|
|
26
28
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
@@ -49,7 +51,8 @@ var ProTableInfo = function ProTableInfo(props) {
|
|
49
51
|
var header = props.header,
|
50
52
|
columns = props.columns,
|
51
53
|
dataSource = props.dataSource,
|
52
|
-
layout = props.layout,
|
54
|
+
_props$layout = props.layout,
|
55
|
+
layout = _props$layout === void 0 ? {} : _props$layout,
|
53
56
|
loading = props.loading,
|
54
57
|
result = props.result,
|
55
58
|
actionRef = props.actionRef;
|
@@ -108,7 +111,7 @@ var ProTableInfo = function ProTableInfo(props) {
|
|
108
111
|
}
|
109
112
|
|
110
113
|
var itemData = filterColumns.map(function (item, index) {
|
111
|
-
var _item$title, _item$valueType,
|
114
|
+
var _item$title, _item$valueType, _data;
|
112
115
|
|
113
116
|
var data = (_data = {}, _defineProperty(_data, "label_".concat(index), /*#__PURE__*/_react.default.createElement(_utils.LabelIconTip, {
|
114
117
|
label: (_item$title = item === null || item === void 0 ? void 0 : item.title) !== null && _item$title !== void 0 ? _item$title : '',
|
@@ -116,7 +119,7 @@ var ProTableInfo = function ProTableInfo(props) {
|
|
116
119
|
icon: item.tooltipIcon
|
117
120
|
})), _defineProperty(_data, "value_".concat(index), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, loading && /*#__PURE__*/_react.default.createElement(_2.BaseSkeleton.Info, null), !loading && /*#__PURE__*/_react.default.createElement(_InfoValueItem.default, {
|
118
121
|
type: (_item$valueType = item === null || item === void 0 ? void 0 : item.valueType) !== null && _item$valueType !== void 0 ? _item$valueType : 'text',
|
119
|
-
value: (0,
|
122
|
+
value: (0, _utils2.getDataIndexValue)(item.dataIndex, dataSource !== null && dataSource !== void 0 ? dataSource : result),
|
120
123
|
render: item.render,
|
121
124
|
dataSource: item.dataSource,
|
122
125
|
infoItem: item,
|
@@ -177,6 +180,7 @@ var ProTableInfo = function ProTableInfo(props) {
|
|
177
180
|
};
|
178
181
|
|
179
182
|
return /*#__PURE__*/_react.default.createElement(_card.default, _objectSpread({
|
183
|
+
compacted: true,
|
180
184
|
hoveredShadow: false,
|
181
185
|
bordered: false
|
182
186
|
}, header), /*#__PURE__*/_react.default.createElement(_components.Table.StickyLock, {
|
package/lib/info/index.d.ts
CHANGED
@@ -4,6 +4,7 @@ import { ProInfoProps } from './typing';
|
|
4
4
|
export * from './typing';
|
5
5
|
declare const ProInfo: {
|
6
6
|
(props: ProInfoProps): JSX.Element;
|
7
|
+
Group: React.FC<import("./typing").InfoGroupProps>;
|
7
8
|
ProInfoGroup: React.FC<import("./typing").InfoGroupProps>;
|
8
9
|
};
|
9
10
|
export default ProInfo;
|
package/lib/info/index.js
CHANGED
@@ -20,7 +20,7 @@ var _InfoGroup = _interopRequireDefault(require("./components/InfoGroup"));
|
|
20
20
|
|
21
21
|
require("./index.scss");
|
22
22
|
|
23
|
-
var
|
23
|
+
var _useInfoRequest = _interopRequireDefault(require("./utils/useInfoRequest"));
|
24
24
|
|
25
25
|
var _utils = require("./utils");
|
26
26
|
|
@@ -64,18 +64,19 @@ var ProInfo = function ProInfo(props) {
|
|
64
64
|
propsActionRef = props.actionRef,
|
65
65
|
_props$header = props.header,
|
66
66
|
header = _props$header === void 0 ? {} : _props$header,
|
67
|
-
others = _objectWithoutProperties(props, _excluded);
|
67
|
+
others = _objectWithoutProperties(props, _excluded);
|
68
68
|
|
69
|
+
var context = (0, _react.useContext)(_utils.ProInfoGroupContext); // 请求数据
|
69
70
|
|
70
|
-
var
|
71
|
+
var _ref = context.visible ? context : (0, _useInfoRequest.default)({
|
71
72
|
url: url,
|
72
73
|
method: method,
|
73
74
|
params: params,
|
74
75
|
formatResult: formatResult
|
75
76
|
}),
|
76
|
-
loading =
|
77
|
-
result =
|
78
|
-
_refresh =
|
77
|
+
loading = _ref.loading,
|
78
|
+
result = _ref.result,
|
79
|
+
_refresh = _ref.refresh;
|
79
80
|
|
80
81
|
var actionRef = (0, _react.useRef)(); // 将 Actions 绑定到传入的 propsActionRef 中
|
81
82
|
|
@@ -116,6 +117,7 @@ var ProInfo = function ProInfo(props) {
|
|
116
117
|
}));
|
117
118
|
};
|
118
119
|
|
120
|
+
ProInfo.Group = _InfoGroup.default;
|
119
121
|
ProInfo.ProInfoGroup = _InfoGroup.default;
|
120
122
|
var _default = ProInfo;
|
121
123
|
exports.default = _default;
|
package/lib/info/index.scss
CHANGED
package/lib/info/typing.d.ts
CHANGED
@@ -3,6 +3,7 @@ import { ActionGroupProps, IActionButton } from '../actions';
|
|
3
3
|
import { Method } from 'axios';
|
4
4
|
import React from 'react';
|
5
5
|
import { CardProps } from '../card';
|
6
|
+
import { IUseInfoRequestResult } from './utils/useInfoRequest';
|
6
7
|
/** ProInfoBaseProps info 基础定义 */
|
7
8
|
export declare type ProInfoBaseProps = {
|
8
9
|
/** ProColums 定义,取代 Table 的 columns */
|
@@ -57,7 +58,7 @@ export interface ProInfoItemProps {
|
|
57
58
|
/** 操作组配置 */
|
58
59
|
actionSchema?: ActionGroupProps;
|
59
60
|
/** 指定列对应的字段,支持`a.b`形式的快速取值 和 数组取值 */
|
60
|
-
dataIndex?: string;
|
61
|
+
dataIndex?: string | string[];
|
61
62
|
/** 合并行 */
|
62
63
|
colSpan?: number;
|
63
64
|
/** 是否可被编辑 */
|
@@ -130,8 +131,8 @@ export declare type HeaderInfoLayoutProps = {
|
|
130
131
|
};
|
131
132
|
/** infoGroup */
|
132
133
|
export declare type InfoGroupProps = {
|
133
|
-
children?: React.ReactNode[];
|
134
|
-
}
|
134
|
+
children?: React.ReactNode[] | React.ReactNode;
|
135
|
+
} & Pick<ProInfoBaseProps, 'params' | 'method' | 'url' | 'onSuccess' | 'onError' | 'formatResult'>;
|
135
136
|
export declare type TableInfoLayoutProps = {} & HeaderInfoLayoutProps;
|
136
137
|
export declare type InfoValueItemProps = {
|
137
138
|
infoItem: ProInfoItemProps;
|
@@ -141,3 +142,16 @@ export declare type InfoValueItemProps = {
|
|
141
142
|
export declare type ProInfoHeaderProps = {
|
142
143
|
extra?: CardProps['extra'] | IActionButton[];
|
143
144
|
} & Omit<CardProps, 'extra'>;
|
145
|
+
/** ProInfoGroupContextProps */
|
146
|
+
export declare type ProInfoGroupContextProps = {
|
147
|
+
/** 因为其他数据都为异步。visible 只用作标识 */
|
148
|
+
visible?: boolean;
|
149
|
+
result?: any;
|
150
|
+
layout?: ProInfoBaseProps['layout'];
|
151
|
+
loading?: IUseInfoRequestResult['loading'];
|
152
|
+
refresh?: IUseInfoRequestResult['refresh'];
|
153
|
+
size?: {
|
154
|
+
width?: number;
|
155
|
+
height?: number;
|
156
|
+
};
|
157
|
+
};
|
@@ -1,3 +1,12 @@
|
|
1
|
-
|
2
|
-
import { ProInfoActionType } from '../typing';
|
1
|
+
import React from 'react';
|
2
|
+
import { ProInfoActionType, ProInfoGroupContextProps, ProInfoItemProps } from '../typing';
|
3
3
|
export declare function useActionType<T>(ref: React.MutableRefObject<ProInfoActionType | undefined>, action: ProInfoActionType): void;
|
4
|
+
/** ProInfoGroupContext */
|
5
|
+
export declare const ProInfoGroupContext: React.Context<ProInfoGroupContextProps>;
|
6
|
+
/**
|
7
|
+
* 获取 dataIndex 值
|
8
|
+
* @param dataIndex
|
9
|
+
* @param dataSource
|
10
|
+
* @returns
|
11
|
+
*/
|
12
|
+
export declare function getDataIndexValue(dataIndex: ProInfoItemProps['dataIndex'], dataSource: object): any;
|
package/lib/info/utils/index.js
CHANGED
@@ -3,8 +3,16 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
+
exports.ProInfoGroupContext = void 0;
|
7
|
+
exports.getDataIndexValue = getDataIndexValue;
|
6
8
|
exports.useActionType = useActionType;
|
7
9
|
|
10
|
+
var _utils = require("@teamix/utils");
|
11
|
+
|
12
|
+
var _react = _interopRequireDefault(require("react"));
|
13
|
+
|
14
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
15
|
+
|
8
16
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
9
17
|
|
10
18
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
@@ -16,4 +24,27 @@ function useActionType(ref, action) {
|
|
16
24
|
var userAction = _objectSpread({}, action);
|
17
25
|
|
18
26
|
ref.current = userAction;
|
27
|
+
}
|
28
|
+
/** ProInfoGroupContext */
|
29
|
+
|
30
|
+
|
31
|
+
var ProInfoGroupContext = /*#__PURE__*/_react.default.createContext({});
|
32
|
+
/**
|
33
|
+
* 获取 dataIndex 值
|
34
|
+
* @param dataIndex
|
35
|
+
* @param dataSource
|
36
|
+
* @returns
|
37
|
+
*/
|
38
|
+
|
39
|
+
|
40
|
+
exports.ProInfoGroupContext = ProInfoGroupContext;
|
41
|
+
|
42
|
+
function getDataIndexValue(dataIndex, dataSource) {
|
43
|
+
if (Array.isArray(dataIndex)) {
|
44
|
+
return dataIndex.map(function (item) {
|
45
|
+
return (0, _utils.getDeepValue)(item !== null && item !== void 0 ? item : '', dataSource);
|
46
|
+
});
|
47
|
+
}
|
48
|
+
|
49
|
+
return (0, _utils.getDeepValue)(dataIndex !== null && dataIndex !== void 0 ? dataIndex : '', dataSource);
|
19
50
|
}
|
@@ -111,34 +111,37 @@ var schema = [{
|
|
111
111
|
children: [{
|
112
112
|
name: 'tags',
|
113
113
|
component: 'ArrayTable',
|
114
|
-
items:
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
114
|
+
items: {
|
115
|
+
type: 'object',
|
116
|
+
children: [{
|
117
|
+
name: 'text',
|
118
|
+
title: '名称',
|
119
|
+
component: 'Input'
|
120
|
+
}, {
|
121
|
+
name: 'type',
|
122
|
+
title: '类型',
|
123
|
+
component: 'Select',
|
124
|
+
dataSource: [{
|
125
|
+
label: '普通',
|
126
|
+
value: 'normal'
|
127
|
+
}, {
|
128
|
+
label: '主要',
|
129
|
+
value: 'primary'
|
130
|
+
}]
|
131
|
+
}, {
|
132
|
+
name: 'color',
|
133
|
+
title: '颜色',
|
134
|
+
component: 'Input'
|
125
135
|
}, {
|
126
|
-
|
127
|
-
|
136
|
+
title: '操作',
|
137
|
+
component: 'ArrayTable.Remove',
|
138
|
+
decoratorProps: {
|
139
|
+
fixed: 'right',
|
140
|
+
width: 40
|
141
|
+
},
|
142
|
+
formItem: null
|
128
143
|
}]
|
129
|
-
},
|
130
|
-
name: 'color',
|
131
|
-
title: '颜色',
|
132
|
-
component: 'Input'
|
133
|
-
}, {
|
134
|
-
title: '操作',
|
135
|
-
component: 'ArrayTable.Remove',
|
136
|
-
decoratorProps: {
|
137
|
-
fixed: 'right',
|
138
|
-
width: 40
|
139
|
-
},
|
140
|
-
formItem: null
|
141
|
-
}],
|
144
|
+
},
|
142
145
|
children: [{
|
143
146
|
title: '添加标签'
|
144
147
|
}]
|
@@ -154,23 +157,26 @@ var schema = [{
|
|
154
157
|
children: [{
|
155
158
|
name: 'breadcrumb',
|
156
159
|
component: 'ArrayTable',
|
157
|
-
items:
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
160
|
+
items: {
|
161
|
+
type: 'object',
|
162
|
+
children: [{
|
163
|
+
name: 'text',
|
164
|
+
title: '名称',
|
165
|
+
component: 'Input'
|
166
|
+
}, {
|
167
|
+
name: 'link',
|
168
|
+
title: '链接',
|
169
|
+
component: 'Input'
|
170
|
+
}, {
|
171
|
+
title: '操作',
|
172
|
+
component: 'ArrayTable.Remove',
|
173
|
+
decoratorProps: {
|
174
|
+
fixed: 'right',
|
175
|
+
width: 40
|
176
|
+
},
|
177
|
+
formItem: null
|
178
|
+
}]
|
179
|
+
},
|
174
180
|
children: [{
|
175
181
|
title: '添加面包屑'
|
176
182
|
}]
|
@@ -141,16 +141,19 @@ var schema = [{
|
|
141
141
|
name: 'pageSizeList',
|
142
142
|
title: '分页大小列表',
|
143
143
|
component: 'ArrayItems',
|
144
|
-
|
145
|
-
|
144
|
+
items: {
|
145
|
+
component: 'FormFlex',
|
146
|
+
children: [{
|
147
|
+
component: 'ArrayItems.SortHandle'
|
148
|
+
}, {
|
149
|
+
component: 'NumberPicker',
|
150
|
+
decoratorProps: {
|
151
|
+
feedbackLayout: 'none'
|
152
|
+
}
|
153
|
+
}, {
|
154
|
+
component: 'ArrayItems.Remove'
|
155
|
+
}]
|
146
156
|
},
|
147
|
-
items: [{
|
148
|
-
component: 'ArrayItems.SortHandle'
|
149
|
-
}, {
|
150
|
-
component: 'NumberPicker'
|
151
|
-
}, {
|
152
|
-
component: 'ArrayItems.Remove'
|
153
|
-
}],
|
154
157
|
children: [{
|
155
158
|
title: '添加一条'
|
156
159
|
}],
|
@@ -4,53 +4,57 @@ export declare function array(title: string, name: string, fields: any[], main?:
|
|
4
4
|
name: string;
|
5
5
|
title: string | undefined;
|
6
6
|
component: string;
|
7
|
-
|
8
|
-
itemType: string;
|
9
|
-
};
|
10
|
-
items: ({
|
11
|
-
component: string;
|
12
|
-
children: {
|
13
|
-
component: string;
|
14
|
-
}[];
|
15
|
-
name?: undefined;
|
16
|
-
type?: undefined;
|
17
|
-
title?: undefined;
|
18
|
-
reactions?: undefined;
|
19
|
-
} | {
|
20
|
-
name: string;
|
21
|
-
component: string;
|
7
|
+
items: {
|
22
8
|
type: string;
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
9
|
+
decorator: string;
|
10
|
+
children: ({
|
11
|
+
component: string;
|
12
|
+
children: {
|
13
|
+
component: string;
|
14
|
+
}[];
|
15
|
+
name?: undefined;
|
16
|
+
type?: undefined;
|
17
|
+
title?: undefined;
|
18
|
+
reactions?: undefined;
|
19
|
+
} | {
|
33
20
|
name: string;
|
34
21
|
component: string;
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
22
|
+
type: string;
|
23
|
+
title: string;
|
24
|
+
reactions: {
|
25
|
+
dependencies: string[];
|
26
|
+
fulfill: {
|
27
|
+
schema: {
|
28
|
+
title: string;
|
29
|
+
};
|
30
|
+
};
|
41
31
|
};
|
42
|
-
children:
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
32
|
+
children: {
|
33
|
+
name: string;
|
34
|
+
component: string;
|
35
|
+
props: {
|
36
|
+
layout: string;
|
37
|
+
labelAlign: string;
|
38
|
+
colon: boolean;
|
39
|
+
labelCol: number;
|
40
|
+
wrapperCol: number;
|
41
|
+
};
|
42
|
+
children: any[];
|
43
|
+
}[];
|
44
|
+
} | {
|
45
|
+
component: string;
|
46
|
+
children?: undefined;
|
47
|
+
name?: undefined;
|
48
|
+
type?: undefined;
|
49
|
+
title?: undefined;
|
50
|
+
reactions?: undefined;
|
51
|
+
})[];
|
52
|
+
};
|
52
53
|
children: {
|
53
|
-
|
54
|
+
component: string;
|
55
|
+
props: {
|
56
|
+
title: string;
|
57
|
+
};
|
54
58
|
}[];
|
55
59
|
}[];
|
56
60
|
};
|
@@ -64,69 +68,10 @@ export declare function actions(props?: {
|
|
64
68
|
name: string;
|
65
69
|
title: string | undefined;
|
66
70
|
component: string;
|
67
|
-
|
68
|
-
itemType: string;
|
69
|
-
};
|
70
|
-
items: ({
|
71
|
-
component: string;
|
72
|
-
children: {
|
73
|
-
component: string;
|
74
|
-
}[];
|
75
|
-
name?: undefined;
|
76
|
-
type?: undefined;
|
77
|
-
title?: undefined;
|
78
|
-
reactions?: undefined;
|
79
|
-
} | {
|
80
|
-
name: string;
|
81
|
-
component: string;
|
71
|
+
items: {
|
82
72
|
type: string;
|
83
|
-
|
84
|
-
|
85
|
-
dependencies: string[];
|
86
|
-
fulfill: {
|
87
|
-
schema: {
|
88
|
-
title: string;
|
89
|
-
};
|
90
|
-
};
|
91
|
-
};
|
92
|
-
children: {
|
93
|
-
name: string;
|
94
|
-
component: string;
|
95
|
-
props: {
|
96
|
-
layout: string;
|
97
|
-
labelAlign: string;
|
98
|
-
colon: boolean;
|
99
|
-
labelCol: number;
|
100
|
-
wrapperCol: number;
|
101
|
-
};
|
102
|
-
children: any[];
|
103
|
-
}[];
|
104
|
-
} | {
|
105
|
-
component: string;
|
106
|
-
children?: undefined;
|
107
|
-
name?: undefined;
|
108
|
-
type?: undefined;
|
109
|
-
title?: undefined;
|
110
|
-
reactions?: undefined;
|
111
|
-
})[];
|
112
|
-
children: {
|
113
|
-
title: string;
|
114
|
-
}[];
|
115
|
-
}[];
|
116
|
-
};
|
117
|
-
export declare function filter(name: string): {
|
118
|
-
name: string;
|
119
|
-
type: string;
|
120
|
-
children: {
|
121
|
-
title: string;
|
122
|
-
children: {
|
123
|
-
name: string;
|
124
|
-
title: string | undefined;
|
125
|
-
component: string;
|
126
|
-
props: {
|
127
|
-
itemType: string;
|
128
|
-
};
|
129
|
-
items: ({
|
73
|
+
decorator: string;
|
74
|
+
children: ({
|
130
75
|
component: string;
|
131
76
|
children: {
|
132
77
|
component: string;
|
@@ -168,8 +113,75 @@ export declare function filter(name: string): {
|
|
168
113
|
title?: undefined;
|
169
114
|
reactions?: undefined;
|
170
115
|
})[];
|
171
|
-
|
116
|
+
};
|
117
|
+
children: {
|
118
|
+
component: string;
|
119
|
+
props: {
|
172
120
|
title: string;
|
121
|
+
};
|
122
|
+
}[];
|
123
|
+
}[];
|
124
|
+
};
|
125
|
+
export declare function filter(name: string): {
|
126
|
+
name: string;
|
127
|
+
type: string;
|
128
|
+
children: {
|
129
|
+
title: string;
|
130
|
+
children: {
|
131
|
+
name: string;
|
132
|
+
title: string | undefined;
|
133
|
+
component: string;
|
134
|
+
items: {
|
135
|
+
type: string;
|
136
|
+
decorator: string;
|
137
|
+
children: ({
|
138
|
+
component: string;
|
139
|
+
children: {
|
140
|
+
component: string;
|
141
|
+
}[];
|
142
|
+
name?: undefined;
|
143
|
+
type?: undefined;
|
144
|
+
title?: undefined;
|
145
|
+
reactions?: undefined;
|
146
|
+
} | {
|
147
|
+
name: string;
|
148
|
+
component: string;
|
149
|
+
type: string;
|
150
|
+
title: string;
|
151
|
+
reactions: {
|
152
|
+
dependencies: string[];
|
153
|
+
fulfill: {
|
154
|
+
schema: {
|
155
|
+
title: string;
|
156
|
+
};
|
157
|
+
};
|
158
|
+
};
|
159
|
+
children: {
|
160
|
+
name: string;
|
161
|
+
component: string;
|
162
|
+
props: {
|
163
|
+
layout: string;
|
164
|
+
labelAlign: string;
|
165
|
+
colon: boolean;
|
166
|
+
labelCol: number;
|
167
|
+
wrapperCol: number;
|
168
|
+
};
|
169
|
+
children: any[];
|
170
|
+
}[];
|
171
|
+
} | {
|
172
|
+
component: string;
|
173
|
+
children?: undefined;
|
174
|
+
name?: undefined;
|
175
|
+
type?: undefined;
|
176
|
+
title?: undefined;
|
177
|
+
reactions?: undefined;
|
178
|
+
})[];
|
179
|
+
};
|
180
|
+
children: {
|
181
|
+
component: string;
|
182
|
+
props: {
|
183
|
+
title: string;
|
184
|
+
};
|
173
185
|
}[];
|
174
186
|
}[];
|
175
187
|
}[];
|