ronds-metadata 1.3.54 → 1.3.56
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +25 -25
- package/es/api/index.js +8 -6
- package/es/comps/CodeEdit/index.d.ts +2 -1
- package/es/comps/DataMine/Line.d.ts +2 -1
- package/es/comps/DataMine/Line.js +0 -1
- package/es/comps/DataMine/index.d.ts +2 -1
- package/es/comps/DynamicPorts/comps/ContextMenu.less +8 -8
- package/es/comps/DynamicPorts/comps/DragNode.d.ts +1 -1
- package/es/comps/DynamicPorts/comps/GraphHandler/index.less +39 -39
- package/es/comps/DynamicPorts/comps/NodeElementForm.d.ts +2 -1
- package/es/comps/DynamicPorts/comps/NodeElementNormal.d.ts +2 -1
- package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.less +5 -5
- package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.less +40 -40
- package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.d.ts +2 -1
- package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.less +42 -42
- package/es/comps/DynamicPorts/comps/shape/edge.js +7 -7
- package/es/comps/DynamicPorts/comps/shape/edge.less +8 -8
- package/es/comps/DynamicPorts/comps/shape/node.js +8 -9
- package/es/comps/DynamicPorts/graph.js +5 -4
- package/es/comps/DynamicPorts/index.d.ts +2 -1
- package/es/comps/DynamicPorts/index.less +307 -307
- 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/DataCell/TreeSelect.d.ts +1 -1
- package/es/comps/Editable/comps/EditableAction.d.ts +2 -1
- package/es/comps/Editable/comps/Texty.d.ts +1 -1
- package/es/comps/Editable/comps/Texty.js +5 -4
- package/es/comps/Editable/comps/Texty.less +43 -43
- package/es/comps/Editable/comps/index.less +38 -38
- package/es/comps/Editable/index.d.ts +2 -1
- package/es/comps/Editable/index.less +97 -97
- package/es/comps/Editable/utils.d.ts +2 -1
- package/es/comps/FileView/index.d.ts +2 -1
- package/es/comps/FileView/index.js +2 -3
- package/es/comps/FormGenerator/comps/Canvas/Preview.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.d.ts +2 -1
- 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 +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.d.ts +2 -1
- 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 +2 -1
- 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 +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.d.ts +2 -1
- 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 +2 -1
- 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 +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Canvas/core/index.d.ts +1 -1
- package/es/comps/FormGenerator/comps/Canvas/core/index.less +23 -23
- package/es/comps/FormGenerator/comps/Canvas/index.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Settings/index.d.ts +2 -1
- package/es/comps/FormGenerator/comps/Settings/index.js +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 +2 -1
- package/es/comps/FormGenerator/comps/Sidebar/index.less +21 -21
- package/es/comps/FormGenerator/index.d.ts +2 -1
- package/es/comps/FormGenerator/index.less +20 -20
- package/es/comps/JsonEdit/index.d.ts +2 -1
- package/es/comps/JsonEdit/index.js +0 -1
- package/es/comps/JsonEdit/index.less +64 -64
- package/es/comps/JsonView/index.d.ts +2 -1
- package/es/comps/MdEdit/index.d.ts +2 -1
- package/es/comps/MdEditPro/index.d.ts +2 -1
- package/es/comps/MdEditPro/index.less +166 -166
- package/es/comps/MdEditPro/index2.d.ts +1 -1
- package/es/comps/MdNavbar/index.d.ts +2 -1
- package/es/comps/MdNavbar/index.less +77 -77
- package/es/comps/MdView/index.d.ts +1 -1
- package/es/comps/MdView/index.less +376 -376
- package/es/comps/MetadataEdit/components/MetaFieldsEdit.d.ts +2 -1
- package/es/comps/MetadataEdit/components/MetaPropsEdit.d.ts +2 -1
- package/es/comps/MetadataEdit/constant/index.js +0 -2
- package/es/comps/MetadataEdit/index.d.ts +2 -1
- 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/Input.js +15 -4
- 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/Select.js +21 -30
- package/es/comps/MetadataForm/DataCell/Switch.d.ts +1 -1
- package/es/comps/MetadataForm/DataCell/layout/TableArray.d.ts +2 -1
- package/es/comps/MetadataForm/DataCell/plugin/IconButton.d.ts +8 -0
- package/es/comps/MetadataForm/DataCell/plugin/IconButton.js +16 -0
- package/es/comps/MetadataForm/DataCell/plugin/MapTable.d.ts +12 -0
- package/es/comps/MetadataForm/DataCell/plugin/MapTable.js +116 -0
- package/es/comps/MetadataForm/DataCell/plugin/NumberRange.d.ts +2 -1
- package/es/comps/MetadataForm/DataCell/plugin/NumberRange.js +1 -2
- package/es/comps/MetadataForm/DataCell/plugin/RefreshSelect.d.ts +13 -0
- package/es/comps/MetadataForm/DataCell/plugin/RefreshSelect.js +65 -0
- package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.d.ts +11 -0
- package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.js +249 -0
- package/es/comps/MetadataForm/HOC/index.d.ts +2 -1
- package/es/comps/MetadataForm/index.d.ts +2 -1
- package/es/comps/MetadataForm/index.less +26 -26
- package/es/comps/MetadataForm/utils.d.ts +3 -2
- package/es/comps/Split/index.d.ts +1 -1
- package/es/comps/Split/index.less +29 -29
- package/es/framework/RxStore/demo/index.d.ts +2 -1
- package/es/framework/graph/index.less +15 -15
- package/es/framework/http/msgpack5/lib/helpers.js +0 -1
- package/es/framework/libs/iconfont/iconfont.css +323 -323
- package/es/framework/libs/iconfont/iconfont.json +548 -548
- package/es/framework/libs/jquery.min.js +4 -4
- package/es/framework/locale/dil8/di18n.js +5 -3
- package/es/framework/metadata/MetadataService.js +14 -14
- package/es/framework/metadata/index.js +14 -15
- package/es/framework/metadata/types.d.ts +103 -103
- package/es/theme.less +81 -81
- package/package.json +1 -1
@@ -0,0 +1,249 @@
|
|
1
|
+
import "antd/es/select/style";
|
2
|
+
import _Select from "antd/es/select";
|
3
|
+
import "antd/es/input/style";
|
4
|
+
import _Input from "antd/es/input";
|
5
|
+
import "antd/es/button/style";
|
6
|
+
import _Button from "antd/es/button";
|
7
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
8
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
9
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
10
|
+
import { tr } from '../../../../framework/locale';
|
11
|
+
import Search from "antd/es/input/Search";
|
12
|
+
import React from 'react';
|
13
|
+
import { InsertRowAboveOutlined, EyeOutlined, MinusCircleOutlined, PlusOutlined } from '@ant-design/icons';
|
14
|
+
import Split from '../../../Split';
|
15
|
+
import SqlEdit from '../../../JsonEdit';
|
16
|
+
var SparkSqlTable = function SparkSqlTable(props) {
|
17
|
+
var extraDico = props.extraDico,
|
18
|
+
initSql = props.initSql,
|
19
|
+
dataSource = props.dataSource,
|
20
|
+
onSearch = props.onSearch,
|
21
|
+
value = props.value,
|
22
|
+
onChange = props.onChange;
|
23
|
+
var _React$useState = React.useState(),
|
24
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
25
|
+
searchValue = _React$useState2[0],
|
26
|
+
setSearchValue = _React$useState2[1];
|
27
|
+
var _React$useState3 = React.useState(),
|
28
|
+
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
29
|
+
view = _React$useState4[0],
|
30
|
+
setView = _React$useState4[1];
|
31
|
+
var _React$useState5 = React.useState(),
|
32
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
33
|
+
selected = _React$useState6[0],
|
34
|
+
setSelected = _React$useState6[1];
|
35
|
+
var _React$useState7 = React.useState([]),
|
36
|
+
_React$useState8 = _slicedToArray(_React$useState7, 2),
|
37
|
+
list = _React$useState8[0],
|
38
|
+
setList = _React$useState8[1];
|
39
|
+
var handleAddItem = function handleAddItem() {
|
40
|
+
var _list = [].concat(_toConsumableArray(list), [{
|
41
|
+
alias: undefined,
|
42
|
+
outputView: undefined,
|
43
|
+
sqlEdit: undefined
|
44
|
+
}]);
|
45
|
+
setList(_list);
|
46
|
+
triggerChange({
|
47
|
+
list: _list
|
48
|
+
});
|
49
|
+
};
|
50
|
+
var handleRemoveItem = function handleRemoveItem(index) {
|
51
|
+
var _list = list.filter(function (_, idx) {
|
52
|
+
return idx !== index;
|
53
|
+
});
|
54
|
+
setList(_list);
|
55
|
+
triggerChange({
|
56
|
+
list: _list
|
57
|
+
});
|
58
|
+
};
|
59
|
+
var triggerChange = function triggerChange(changedValue) {
|
60
|
+
onChange && onChange(_objectSpread({
|
61
|
+
view: view,
|
62
|
+
selected: selected,
|
63
|
+
list: list
|
64
|
+
}, changedValue));
|
65
|
+
};
|
66
|
+
var onViewChange = function onViewChange(v) {
|
67
|
+
setView(v.target.value);
|
68
|
+
triggerChange({
|
69
|
+
view: v.target.value
|
70
|
+
});
|
71
|
+
};
|
72
|
+
var onSelectedChange = function onSelectedChange(v) {
|
73
|
+
setSelected(v.target.value);
|
74
|
+
triggerChange({
|
75
|
+
selected: v.target.value
|
76
|
+
});
|
77
|
+
};
|
78
|
+
var onListChange = function onListChange(v, index, key) {
|
79
|
+
var _list = _toConsumableArray(list);
|
80
|
+
_list[index][key] = typeof v === 'string' ? v : v.target.value;
|
81
|
+
setList(_list);
|
82
|
+
triggerChange({
|
83
|
+
list: _list
|
84
|
+
});
|
85
|
+
};
|
86
|
+
React.useEffect(function () {
|
87
|
+
if (value) {
|
88
|
+
if (value['view']) {
|
89
|
+
setView(value['view']);
|
90
|
+
}
|
91
|
+
if (value['selected']) {
|
92
|
+
setSelected(value['selected']);
|
93
|
+
}
|
94
|
+
if (value['list']) {
|
95
|
+
setList(value['list']);
|
96
|
+
}
|
97
|
+
}
|
98
|
+
}, [value]);
|
99
|
+
return /*#__PURE__*/React.createElement("div", {
|
100
|
+
style: {
|
101
|
+
border: '2px solid #bbbbbb',
|
102
|
+
height: '500px'
|
103
|
+
}
|
104
|
+
}, /*#__PURE__*/React.createElement(Split, {
|
105
|
+
gutterSize: 2,
|
106
|
+
sizes: [20, 80],
|
107
|
+
direction: "horizontal"
|
108
|
+
}, /*#__PURE__*/React.createElement("div", {
|
109
|
+
style: {
|
110
|
+
padding: '10px'
|
111
|
+
}
|
112
|
+
}, /*#__PURE__*/React.createElement(Search, {
|
113
|
+
placeholder: tr('根据库名, 表名搜索'),
|
114
|
+
value: searchValue,
|
115
|
+
onChange: function onChange(e) {
|
116
|
+
setSearchValue(e.target.value);
|
117
|
+
},
|
118
|
+
onSearch: onSearch
|
119
|
+
}), /*#__PURE__*/React.createElement("div", {
|
120
|
+
style: {
|
121
|
+
height: '100%',
|
122
|
+
overflowY: 'auto'
|
123
|
+
}
|
124
|
+
}, dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
|
125
|
+
return /*#__PURE__*/React.createElement("div", {
|
126
|
+
key: 1,
|
127
|
+
style: {
|
128
|
+
paddingTop: '8px'
|
129
|
+
}
|
130
|
+
}, /*#__PURE__*/React.createElement(InsertRowAboveOutlined, null), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement(_Button, {
|
131
|
+
type: "text",
|
132
|
+
onClick: function onClick() {}
|
133
|
+
}, item.name)));
|
134
|
+
}))), /*#__PURE__*/React.createElement(Split, {
|
135
|
+
gutterSize: 2,
|
136
|
+
sizes: [7, 93],
|
137
|
+
direction: "vertical"
|
138
|
+
}, /*#__PURE__*/React.createElement("div", {
|
139
|
+
style: {
|
140
|
+
display: 'flex',
|
141
|
+
marginTop: '10px ',
|
142
|
+
marginLeft: '10px',
|
143
|
+
marginRight: '10px',
|
144
|
+
marginBottom: '6px'
|
145
|
+
}
|
146
|
+
}, /*#__PURE__*/React.createElement("span", null, tr('视图'), " ", /*#__PURE__*/React.createElement(_Input, {
|
147
|
+
style: {
|
148
|
+
width: '160px',
|
149
|
+
marginLeft: '5px',
|
150
|
+
marginRight: '8px'
|
151
|
+
},
|
152
|
+
value: view,
|
153
|
+
onChange: onViewChange
|
154
|
+
})), /*#__PURE__*/React.createElement("span", null, tr('已选'), ' ', /*#__PURE__*/React.createElement(_Select, {
|
155
|
+
style: {
|
156
|
+
width: '160px',
|
157
|
+
marginLeft: '5px'
|
158
|
+
},
|
159
|
+
suffixIcon: /*#__PURE__*/React.createElement(EyeOutlined, null),
|
160
|
+
value: selected,
|
161
|
+
onChange: onSelectedChange
|
162
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
163
|
+
style: {
|
164
|
+
padding: '8px',
|
165
|
+
height: '100%',
|
166
|
+
overflowY: 'auto'
|
167
|
+
}
|
168
|
+
}, list.map(function (item, idx) {
|
169
|
+
return /*#__PURE__*/React.createElement("div", {
|
170
|
+
key: idx,
|
171
|
+
style: {
|
172
|
+
display: 'flex',
|
173
|
+
alignItems: 'center',
|
174
|
+
width: '100%',
|
175
|
+
marginBottom: '10px'
|
176
|
+
}
|
177
|
+
}, /*#__PURE__*/React.createElement("div", {
|
178
|
+
style: {
|
179
|
+
border: '1px solid #bbbbbb',
|
180
|
+
width: '900px'
|
181
|
+
}
|
182
|
+
}, /*#__PURE__*/React.createElement(Split, {
|
183
|
+
gutterSize: 1,
|
184
|
+
sizes: [20, 80],
|
185
|
+
direction: "vertical"
|
186
|
+
}, /*#__PURE__*/React.createElement("div", {
|
187
|
+
style: {
|
188
|
+
display: 'flex',
|
189
|
+
marginTop: '10px ',
|
190
|
+
marginLeft: '10px',
|
191
|
+
marginRight: '10px',
|
192
|
+
marginBottom: '6px'
|
193
|
+
}
|
194
|
+
}, /*#__PURE__*/React.createElement("span", null, tr('别名'), ' ', /*#__PURE__*/React.createElement(_Input, {
|
195
|
+
style: {
|
196
|
+
width: '160px',
|
197
|
+
marginLeft: '5px',
|
198
|
+
marginRight: '8px'
|
199
|
+
},
|
200
|
+
value: item.alias,
|
201
|
+
onChange: function onChange(val) {
|
202
|
+
return onListChange(val, idx, 'alias');
|
203
|
+
}
|
204
|
+
})), /*#__PURE__*/React.createElement("span", null, tr('输出视图'), ' ', /*#__PURE__*/React.createElement(_Input, {
|
205
|
+
style: {
|
206
|
+
width: '160px',
|
207
|
+
marginLeft: '5px'
|
208
|
+
},
|
209
|
+
placeholder: '请输入',
|
210
|
+
value: item.outputView,
|
211
|
+
onChange: function onChange(val) {
|
212
|
+
return onListChange(val, idx, 'outputView');
|
213
|
+
}
|
214
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
215
|
+
style: {
|
216
|
+
maxHeight: '80px',
|
217
|
+
overflowY: 'auto'
|
218
|
+
}
|
219
|
+
}, /*#__PURE__*/React.createElement(SqlEdit, {
|
220
|
+
value: initSql,
|
221
|
+
theme: 'neo',
|
222
|
+
isLineNumbers: false,
|
223
|
+
extraDico: extraDico,
|
224
|
+
onChange: function onChange(val) {
|
225
|
+
return onListChange(val, idx, 'sqlEdit');
|
226
|
+
},
|
227
|
+
onSelectChange: function onSelectChange() {}
|
228
|
+
})))), /*#__PURE__*/React.createElement(MinusCircleOutlined, {
|
229
|
+
style: {
|
230
|
+
marginLeft: 'auto'
|
231
|
+
},
|
232
|
+
onClick: function onClick() {
|
233
|
+
return handleRemoveItem(idx);
|
234
|
+
}
|
235
|
+
}));
|
236
|
+
}), /*#__PURE__*/React.createElement(_Button, {
|
237
|
+
type: "dashed",
|
238
|
+
onClick: function onClick() {
|
239
|
+
handleAddItem();
|
240
|
+
setList([].concat(_toConsumableArray(list), [{
|
241
|
+
alias: undefined,
|
242
|
+
outputView: undefined,
|
243
|
+
sqlEdit: undefined
|
244
|
+
}]));
|
245
|
+
},
|
246
|
+
icon: /*#__PURE__*/React.createElement(PlusOutlined, null)
|
247
|
+
}, tr('添加SQL语句'))))));
|
248
|
+
};
|
249
|
+
export default SparkSqlTable;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { FormInstance } from 'antd/lib/form/hooks/useForm';
|
2
|
+
import React from 'react';
|
2
3
|
import './index.less';
|
3
4
|
import { IMetaData } from '../../framework/metadata/types';
|
4
5
|
interface IMetadataFormProps {
|
@@ -71,5 +72,5 @@ interface IMetadataFormProps {
|
|
71
72
|
*/
|
72
73
|
onCellButtonClick?: (changedValues: any) => void;
|
73
74
|
}
|
74
|
-
declare const MetadataForm: (props: IMetadataFormProps) => JSX.Element;
|
75
|
+
declare const MetadataForm: (props: IMetadataFormProps) => React.JSX.Element;
|
75
76
|
export default MetadataForm;
|
@@ -1,26 +1,26 @@
|
|
1
|
-
.metadata-form {
|
2
|
-
// .ant-row {
|
3
|
-
// display: flex !important;
|
4
|
-
// }
|
5
|
-
.ant-form-item {
|
6
|
-
margin: 0 !important;
|
7
|
-
// flex-wrap: nowrap !important;
|
8
|
-
}
|
9
|
-
.ant-form-item-label > label .ant-form-item-tooltip {
|
10
|
-
margin-left: 5px;
|
11
|
-
}
|
12
|
-
.ant-form-item-label {
|
13
|
-
padding: 0 0 2px !important;
|
14
|
-
}
|
15
|
-
|
16
|
-
// .ant-select-selection-overflow {
|
17
|
-
// flex-wrap: nowrap;
|
18
|
-
// overflow: hidden !important;
|
19
|
-
// min-height: 26px;
|
20
|
-
// }
|
21
|
-
|
22
|
-
.ant-input-number,
|
23
|
-
.ant-picker {
|
24
|
-
width: 100%;
|
25
|
-
}
|
26
|
-
}
|
1
|
+
.metadata-form {
|
2
|
+
// .ant-row {
|
3
|
+
// display: flex !important;
|
4
|
+
// }
|
5
|
+
.ant-form-item {
|
6
|
+
margin: 0 !important;
|
7
|
+
// flex-wrap: nowrap !important;
|
8
|
+
}
|
9
|
+
.ant-form-item-label > label .ant-form-item-tooltip {
|
10
|
+
margin-left: 5px;
|
11
|
+
}
|
12
|
+
.ant-form-item-label {
|
13
|
+
padding: 0 0 2px !important;
|
14
|
+
}
|
15
|
+
|
16
|
+
// .ant-select-selection-overflow {
|
17
|
+
// flex-wrap: nowrap;
|
18
|
+
// overflow: hidden !important;
|
19
|
+
// min-height: 26px;
|
20
|
+
// }
|
21
|
+
|
22
|
+
.ant-input-number,
|
23
|
+
.ant-picker {
|
24
|
+
width: 100%;
|
25
|
+
}
|
26
|
+
}
|
@@ -1,5 +1,6 @@
|
|
1
|
+
import React from 'react';
|
1
2
|
import { IFormOptions } from './interface';
|
2
|
-
export declare function getDataCell(item: any, options: IFormOptions, colSpan: number): JSX.Element;
|
3
|
+
export declare function getDataCell(item: any, options: IFormOptions, colSpan: number): React.JSX.Element;
|
3
4
|
/**
|
4
5
|
* 渲染表单
|
5
6
|
* @param schemaRef 元数据的schema
|
@@ -11,7 +12,7 @@ export declare function getDataCell(item: any, options: IFormOptions, colSpan: n
|
|
11
12
|
* @param isObj 是否是个对象
|
12
13
|
* @returns
|
13
14
|
*/
|
14
|
-
export declare function renderForm(schemaRef: any[], options: IFormOptions, colSpan?: number): JSX.Element;
|
15
|
+
export declare function renderForm(schemaRef: any[], options: IFormOptions, colSpan?: number): React.JSX.Element;
|
15
16
|
export declare function getLabelByProps(data: any): any;
|
16
17
|
export declare function assign(pathArr: string[], val: any, obj: any): void;
|
17
18
|
export declare function assignReplace(pathArr: string[], val: any, obj: any): void;
|
@@ -1,29 +1,29 @@
|
|
1
|
-
.split-panel {
|
2
|
-
width: 100%;
|
3
|
-
height: 100%;
|
4
|
-
overflow: hidden;
|
5
|
-
|
6
|
-
.gutter {
|
7
|
-
width: 100%;
|
8
|
-
height: 100%;
|
9
|
-
|
10
|
-
background-color: #bebebe;
|
11
|
-
background-repeat: no-repeat;
|
12
|
-
background-position: 50%;
|
13
|
-
|
14
|
-
.gutter-vertical {
|
15
|
-
cursor: row-resize;
|
16
|
-
}
|
17
|
-
|
18
|
-
.gutter-horizontal {
|
19
|
-
cursor: col-resize;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
|
23
|
-
> * {
|
24
|
-
height: 100%;
|
25
|
-
width: 100%;
|
26
|
-
float: left;
|
27
|
-
position: relative;
|
28
|
-
}
|
29
|
-
}
|
1
|
+
.split-panel {
|
2
|
+
width: 100%;
|
3
|
+
height: 100%;
|
4
|
+
overflow: hidden;
|
5
|
+
|
6
|
+
.gutter {
|
7
|
+
width: 100%;
|
8
|
+
height: 100%;
|
9
|
+
|
10
|
+
background-color: #bebebe;
|
11
|
+
background-repeat: no-repeat;
|
12
|
+
background-position: 50%;
|
13
|
+
|
14
|
+
.gutter-vertical {
|
15
|
+
cursor: row-resize;
|
16
|
+
}
|
17
|
+
|
18
|
+
.gutter-horizontal {
|
19
|
+
cursor: col-resize;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
> * {
|
24
|
+
height: 100%;
|
25
|
+
width: 100%;
|
26
|
+
float: left;
|
27
|
+
position: relative;
|
28
|
+
}
|
29
|
+
}
|
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
import React from 'react';
|
2
|
+
export default function (): React.JSX.Element;
|
@@ -1,15 +1,15 @@
|
|
1
|
-
.ant-spin-container {
|
2
|
-
width: 100%;
|
3
|
-
height: 100%;
|
4
|
-
}
|
5
|
-
|
6
|
-
// .x6-widget-selection-inner {
|
7
|
-
// border: none !important;
|
8
|
-
// box-shadow: none !important;
|
9
|
-
// }
|
10
|
-
|
11
|
-
.x6-widget-selection-box {
|
12
|
-
border: none !important;
|
13
|
-
box-shadow: none !important;
|
14
|
-
position: static !important;
|
15
|
-
}
|
1
|
+
.ant-spin-container {
|
2
|
+
width: 100%;
|
3
|
+
height: 100%;
|
4
|
+
}
|
5
|
+
|
6
|
+
// .x6-widget-selection-inner {
|
7
|
+
// border: none !important;
|
8
|
+
// box-shadow: none !important;
|
9
|
+
// }
|
10
|
+
|
11
|
+
.x6-widget-selection-box {
|
12
|
+
border: none !important;
|
13
|
+
box-shadow: none !important;
|
14
|
+
position: static !important;
|
15
|
+
}
|
@@ -9,7 +9,6 @@ export function IncompleteBufferError(message) {
|
|
9
9
|
if (Error.captureStackTrace) {
|
10
10
|
Error.captureStackTrace(this, this.constructor); // super helper method to include stack trace in error object
|
11
11
|
}
|
12
|
-
|
13
12
|
this.name = this.constructor.name;
|
14
13
|
this.message = message || 'unable to decode';
|
15
14
|
}
|