antd-management-fast-framework 1.1.66 → 1.1.67
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/customComponents/FunctionComponent/index.d.ts +8 -0
- package/es/customComponents/FunctionComponent/index.js +106 -77
- package/es/framework/Common/index.d.ts +14 -1
- package/es/framework/Common/index.js +143 -85
- package/es/framework/DataForm/BaseUpdateFormContent/index.d.ts +4 -0
- package/es/framework/DataForm/BaseUpdateFormContent/index.js +62 -0
- package/es/framework/DataForm/BaseUpdateFormTab/index.d.ts +2 -2
- package/es/framework/DataForm/BaseUpdateFormTab/index.js +4 -21
- package/es/framework/DataMenuContainer/index.js +4 -6
- package/es/framework/DataMenuContainer/index.less +15 -14
- package/es/utils/constants.d.ts +5 -0
- package/es/utils/constants.js +3 -0
- package/es/utils/tools.d.ts +12 -0
- package/es/utils/tools.js +72 -2
- package/lib/customComponents/FunctionComponent/index.d.ts +8 -0
- package/lib/customComponents/FunctionComponent/index.js +106 -77
- package/lib/framework/Common/index.d.ts +14 -1
- package/lib/framework/Common/index.js +143 -85
- package/lib/framework/DataForm/BaseUpdateFormContent/index.d.ts +4 -0
- package/lib/framework/DataForm/BaseUpdateFormContent/index.js +62 -0
- package/lib/framework/DataForm/BaseUpdateFormTab/index.d.ts +2 -2
- package/lib/framework/DataForm/BaseUpdateFormTab/index.js +4 -21
- package/lib/framework/DataMenuContainer/index.js +4 -6
- package/lib/framework/DataMenuContainer/index.less +15 -14
- package/lib/utils/constants.d.ts +5 -0
- package/lib/utils/constants.js +3 -0
- package/lib/utils/tools.d.ts +12 -0
- package/lib/utils/tools.js +72 -2
- package/package.json +1 -1
- package/es/framework/DataForm/BaseUpdateForm/index.less +0 -3
- package/es/framework/DataForm/BaseUpdateFormTab/index.less +0 -3
- package/lib/framework/DataForm/BaseUpdateForm/index.less +0 -3
- package/lib/framework/DataForm/BaseUpdateFormTab/index.less +0 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export default BaseUpdateFormTab;
|
|
2
|
-
declare class BaseUpdateFormTab extends
|
|
2
|
+
declare class BaseUpdateFormTab extends BaseUpdateFormContent {
|
|
3
3
|
}
|
|
4
|
-
import
|
|
4
|
+
import BaseUpdateFormContent from "../BaseUpdateFormContent";
|
|
@@ -7,22 +7,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports["default"] = void 0;
|
|
9
9
|
|
|
10
|
-
require("
|
|
11
|
-
|
|
12
|
-
var _backTop = _interopRequireDefault(require("antd/es/back-top"));
|
|
13
|
-
|
|
14
|
-
var _react = _interopRequireDefault(require("react"));
|
|
15
|
-
|
|
16
|
-
var _BaseUpdateForm2 = _interopRequireDefault(require("../BaseUpdateForm"));
|
|
10
|
+
var _BaseUpdateFormContent = _interopRequireDefault(require("../BaseUpdateFormContent"));
|
|
17
11
|
|
|
18
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
13
|
|
|
20
14
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
15
|
|
|
22
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
23
|
-
|
|
24
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
25
|
-
|
|
26
16
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
17
|
|
|
28
18
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
@@ -37,8 +27,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
37
27
|
|
|
38
28
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
39
29
|
|
|
40
|
-
var BaseUpdateFormTab = /*#__PURE__*/function (
|
|
41
|
-
_inherits(BaseUpdateFormTab,
|
|
30
|
+
var BaseUpdateFormTab = /*#__PURE__*/function (_BaseUpdateFormConten) {
|
|
31
|
+
_inherits(BaseUpdateFormTab, _BaseUpdateFormConten);
|
|
42
32
|
|
|
43
33
|
var _super = _createSuper(BaseUpdateFormTab);
|
|
44
34
|
|
|
@@ -48,15 +38,8 @@ var BaseUpdateFormTab = /*#__PURE__*/function (_BaseUpdateForm) {
|
|
|
48
38
|
return _super.apply(this, arguments);
|
|
49
39
|
}
|
|
50
40
|
|
|
51
|
-
_createClass(BaseUpdateFormTab, [{
|
|
52
|
-
key: "render",
|
|
53
|
-
value: function render() {
|
|
54
|
-
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, this.renderFormWrapper(), this.renderOther(), /*#__PURE__*/_react["default"].createElement(_backTop["default"], null));
|
|
55
|
-
}
|
|
56
|
-
}]);
|
|
57
|
-
|
|
58
41
|
return BaseUpdateFormTab;
|
|
59
|
-
}(
|
|
42
|
+
}(_BaseUpdateFormContent["default"]);
|
|
60
43
|
|
|
61
44
|
var _default = BaseUpdateFormTab;
|
|
62
45
|
exports["default"] = _default;
|
|
@@ -262,10 +262,10 @@ var DataMenuContainer = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
262
262
|
|
|
263
263
|
var currentKey = _this.getMenuActiveKeyCore('');
|
|
264
264
|
|
|
265
|
-
if ((0, _tools.
|
|
266
|
-
path = currentKey + '/' + key;
|
|
265
|
+
if ((0, _tools.endsWith)(match.url, '/' + currentKey)) {
|
|
266
|
+
path = (0, _tools.removeEndMatch)(match.url, '/' + currentKey) + '/' + key;
|
|
267
267
|
} else {
|
|
268
|
-
path = match.url
|
|
268
|
+
path = match.url + '/' + key;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
271
|
_this.goToPath(path);
|
|
@@ -330,9 +330,7 @@ var DataMenuContainer = /*#__PURE__*/function (_AuthorizationWrapper) {
|
|
|
330
330
|
onClick: this.selectKey
|
|
331
331
|
}, this.buildMenu())), /*#__PURE__*/_react["default"].createElement("div", {
|
|
332
332
|
className: _index["default"].right
|
|
333
|
-
},
|
|
334
|
-
className: _index["default"].title
|
|
335
|
-
}, this.renderRightTitle()), children)));
|
|
333
|
+
}, children)));
|
|
336
334
|
}
|
|
337
335
|
}]);
|
|
338
336
|
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
display: flex;
|
|
5
5
|
width: 100%;
|
|
6
6
|
height: 100%;
|
|
7
|
-
padding-top: 16px;
|
|
8
|
-
padding-bottom: 16px;
|
|
9
7
|
overflow: auto;
|
|
10
8
|
background-color: @body-background;
|
|
11
9
|
|
|
12
10
|
.leftMenu {
|
|
13
11
|
width: 224px;
|
|
12
|
+
margin-top: 16px;
|
|
13
|
+
margin-bottom: 16px;
|
|
14
14
|
border-right: @border-width-base @border-style-base @border-color-split;
|
|
15
15
|
|
|
16
16
|
:global {
|
|
@@ -25,18 +25,19 @@
|
|
|
25
25
|
}
|
|
26
26
|
.right {
|
|
27
27
|
flex: 1;
|
|
28
|
-
|
|
29
|
-
padding-
|
|
30
|
-
padding-
|
|
31
|
-
padding-
|
|
28
|
+
background-color: #f0f2f5;
|
|
29
|
+
padding-top: 0;
|
|
30
|
+
padding-right: 00;
|
|
31
|
+
padding-bottom: 0;
|
|
32
|
+
padding-left: 20px;
|
|
32
33
|
|
|
33
|
-
.title {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
34
|
+
// .title {
|
|
35
|
+
// margin-bottom: 12px;
|
|
36
|
+
// color: @heading-color;
|
|
37
|
+
// font-weight: 500;
|
|
38
|
+
// font-size: 20px;
|
|
39
|
+
// line-height: 28px;
|
|
40
|
+
// }
|
|
40
41
|
}
|
|
41
42
|
:global {
|
|
42
43
|
.ant-list-split .ant-list-item:last-child {
|
|
@@ -100,7 +101,7 @@
|
|
|
100
101
|
border: none;
|
|
101
102
|
}
|
|
102
103
|
.right {
|
|
103
|
-
padding:
|
|
104
|
+
padding: 0;
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
107
|
}
|
package/es/utils/constants.d.ts
CHANGED
|
@@ -193,6 +193,11 @@ export namespace formContentConfig {
|
|
|
193
193
|
export const fileBase64Upload: string;
|
|
194
194
|
export const videoUpload: string;
|
|
195
195
|
export const innerComponent: string;
|
|
196
|
+
const save_2: string;
|
|
197
|
+
export { save_2 as save };
|
|
198
|
+
const button_2: string;
|
|
199
|
+
export { button_2 as button };
|
|
200
|
+
export const actionList: string;
|
|
196
201
|
const component_1: string;
|
|
197
202
|
export { component_1 as component };
|
|
198
203
|
export const nowTime: string;
|
package/es/utils/constants.js
CHANGED
|
@@ -235,6 +235,9 @@ var formContentConfig = _objectSpread(_objectSpread({}, contentConfig), {}, {
|
|
|
235
235
|
fileBase64Upload: 'fileBase64Upload',
|
|
236
236
|
videoUpload: 'videoUpload',
|
|
237
237
|
innerComponent: 'innerComponent',
|
|
238
|
+
save: 'save',
|
|
239
|
+
button: 'button',
|
|
240
|
+
actionList: 'actionList',
|
|
238
241
|
component: 'component',
|
|
239
242
|
nowTime: 'nowTime',
|
|
240
243
|
datePicker: 'datePicker',
|
package/es/utils/tools.d.ts
CHANGED
|
@@ -407,6 +407,18 @@ export function formatDecimal(numberSource: any, placesSource?: number, thousand
|
|
|
407
407
|
*/
|
|
408
408
|
export function formatMoney(numberSource: any, symbolSource?: string, format?: string): string;
|
|
409
409
|
export function toPercentage(val: any, format?: string): string;
|
|
410
|
+
/**
|
|
411
|
+
* 检查字符串string是否以给定的target字符串结尾
|
|
412
|
+
*/
|
|
413
|
+
export function endsWith(source: any, target: any, position: any): boolean;
|
|
414
|
+
/**
|
|
415
|
+
* 如果字符串末尾匹配目标字符串,则从源字符串末尾移除匹配项
|
|
416
|
+
*/
|
|
417
|
+
export function removeEndMatch(source: any, target: any): any;
|
|
418
|
+
/**
|
|
419
|
+
* 从源字符串移除最后一个匹配项
|
|
420
|
+
*/
|
|
421
|
+
export function removeLastMatch(source: any, target: any): any;
|
|
410
422
|
/**
|
|
411
423
|
* 转换金额为人民币大写
|
|
412
424
|
*
|
package/es/utils/tools.js
CHANGED
|
@@ -52,6 +52,9 @@ exports.getPathValue = getPathValue;
|
|
|
52
52
|
exports.formatDecimal = formatDecimal;
|
|
53
53
|
exports.formatMoney = formatMoney;
|
|
54
54
|
exports.toPercentage = toPercentage;
|
|
55
|
+
exports.endsWith = endsWith;
|
|
56
|
+
exports.removeEndMatch = removeEndMatch;
|
|
57
|
+
exports.removeLastMatch = removeLastMatch;
|
|
55
58
|
exports.formatMoneyToChinese = formatMoneyToChinese;
|
|
56
59
|
exports.getRandomColor = getRandomColor;
|
|
57
60
|
exports.getBrowserInfo = getBrowserInfo;
|
|
@@ -1068,8 +1071,75 @@ function formatMoney(numberSource) {
|
|
|
1068
1071
|
|
|
1069
1072
|
function toPercentage(val) {
|
|
1070
1073
|
var format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0,0.00';
|
|
1071
|
-
(0, _numeral["default"])(val);
|
|
1072
|
-
|
|
1074
|
+
return "".concat((0, _numeral["default"])(toNumber((0, _numeral["default"])(val) * 1000) / 10).format(format), "%");
|
|
1075
|
+
}
|
|
1076
|
+
/**
|
|
1077
|
+
* 检查字符串string是否以给定的target字符串结尾
|
|
1078
|
+
*/
|
|
1079
|
+
|
|
1080
|
+
|
|
1081
|
+
function endsWith(source, target, position) {
|
|
1082
|
+
return (0, _lodash.endsWith)(source, target, position);
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* 如果字符串末尾匹配目标字符串,则从源字符串末尾移除匹配项
|
|
1086
|
+
*/
|
|
1087
|
+
|
|
1088
|
+
|
|
1089
|
+
function removeEndMatch(source, target) {
|
|
1090
|
+
if (!isString(source)) {
|
|
1091
|
+
throw new Error('removeEndMatch only use for string source');
|
|
1092
|
+
}
|
|
1093
|
+
|
|
1094
|
+
if (!isString(target)) {
|
|
1095
|
+
throw new Error('removeEndMatch only use for string target');
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
if (stringIsNullOrWhiteSpace(source)) {
|
|
1099
|
+
return source;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1102
|
+
if (stringIsNullOrWhiteSpace(target)) {
|
|
1103
|
+
return source;
|
|
1104
|
+
}
|
|
1105
|
+
|
|
1106
|
+
var lastIndex = source.lastIndexOf(target);
|
|
1107
|
+
|
|
1108
|
+
if (lastIndex >= 0 && source.length === lastIndex + target.length) {
|
|
1109
|
+
return source.substr(lastIndex, target.length);
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
return source;
|
|
1113
|
+
}
|
|
1114
|
+
/**
|
|
1115
|
+
* 从源字符串移除最后一个匹配项
|
|
1116
|
+
*/
|
|
1117
|
+
|
|
1118
|
+
|
|
1119
|
+
function removeLastMatch(source, target) {
|
|
1120
|
+
if (!isString(source)) {
|
|
1121
|
+
throw new Error('removeEndMatch only use for string source');
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
if (!isString(target)) {
|
|
1125
|
+
throw new Error('removeEndMatch only use for string target');
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
if (stringIsNullOrWhiteSpace(source)) {
|
|
1129
|
+
return source;
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
if (stringIsNullOrWhiteSpace(target)) {
|
|
1133
|
+
return source;
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
var lastIndex = source.lastIndexOf(target);
|
|
1137
|
+
|
|
1138
|
+
if (lastIndex >= 0) {
|
|
1139
|
+
return source.substr(lastIndex, target.length);
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
return source;
|
|
1073
1143
|
}
|
|
1074
1144
|
/**
|
|
1075
1145
|
* 转换金额为人民币大写
|
|
@@ -276,6 +276,14 @@ export function buildFormInnerComponent({ label, innerComponent, helper, formIte
|
|
|
276
276
|
formItemLayout?: {} | undefined;
|
|
277
277
|
requiredForShow?: boolean | undefined;
|
|
278
278
|
}): JSX.Element;
|
|
279
|
+
export function buildFormActionItem({ component, formItemLayout }: {
|
|
280
|
+
component: any;
|
|
281
|
+
formItemLayout?: {} | undefined;
|
|
282
|
+
}): JSX.Element | null;
|
|
283
|
+
export function buildFormButton({ config, formItemLayout }: {
|
|
284
|
+
config: any;
|
|
285
|
+
formItemLayout?: {} | undefined;
|
|
286
|
+
}): JSX.Element;
|
|
279
287
|
export function buildFormOnlyShowSyntaxHighlighter({ language, label, value, helper, formItemLayout, requiredForShow, }: {
|
|
280
288
|
language: any;
|
|
281
289
|
label: any;
|
|
@@ -41,6 +41,8 @@ exports.buildFormOnlyShowText = buildFormOnlyShowText;
|
|
|
41
41
|
exports.buildSyntaxHighlighter = buildSyntaxHighlighter;
|
|
42
42
|
exports.buildJsonView = buildJsonView;
|
|
43
43
|
exports.buildFormInnerComponent = buildFormInnerComponent;
|
|
44
|
+
exports.buildFormActionItem = buildFormActionItem;
|
|
45
|
+
exports.buildFormButton = buildFormButton;
|
|
44
46
|
exports.buildFormOnlyShowSyntaxHighlighter = buildFormOnlyShowSyntaxHighlighter;
|
|
45
47
|
exports.buildFormOnlyShowTextarea = buildFormOnlyShowTextarea;
|
|
46
48
|
exports.buildFormText = buildFormText;
|
|
@@ -2136,16 +2138,43 @@ function buildFormInnerComponent(_ref36) {
|
|
|
2136
2138
|
}), innerComponent);
|
|
2137
2139
|
}
|
|
2138
2140
|
|
|
2139
|
-
function
|
|
2140
|
-
var
|
|
2141
|
-
label = _ref37.label,
|
|
2142
|
-
value = _ref37.value,
|
|
2143
|
-
_ref37$helper = _ref37.helper,
|
|
2144
|
-
helper = _ref37$helper === void 0 ? null : _ref37$helper,
|
|
2141
|
+
function buildFormActionItem(_ref37) {
|
|
2142
|
+
var component = _ref37.component,
|
|
2145
2143
|
_ref37$formItemLayout = _ref37.formItemLayout,
|
|
2146
|
-
formItemLayout = _ref37$formItemLayout === void 0 ? {} : _ref37$formItemLayout
|
|
2147
|
-
|
|
2148
|
-
|
|
2144
|
+
formItemLayout = _ref37$formItemLayout === void 0 ? {} : _ref37$formItemLayout;
|
|
2145
|
+
|
|
2146
|
+
if ((component || null) == null) {
|
|
2147
|
+
return null;
|
|
2148
|
+
}
|
|
2149
|
+
|
|
2150
|
+
return /*#__PURE__*/_react["default"].createElement(FormItem, _extends({}, _objectSpread(_objectSpread({}, formItemLayout || {}), {
|
|
2151
|
+
colon: false
|
|
2152
|
+
}), {
|
|
2153
|
+
label: /*#__PURE__*/_react["default"].createElement("div", null)
|
|
2154
|
+
}), component);
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
function buildFormButton(_ref38) {
|
|
2158
|
+
var config = _ref38.config,
|
|
2159
|
+
_ref38$formItemLayout = _ref38.formItemLayout,
|
|
2160
|
+
formItemLayout = _ref38$formItemLayout === void 0 ? {} : _ref38$formItemLayout;
|
|
2161
|
+
return /*#__PURE__*/_react["default"].createElement(FormItem, _extends({}, _objectSpread(_objectSpread({}, formItemLayout || {}), {
|
|
2162
|
+
colon: false
|
|
2163
|
+
}), {
|
|
2164
|
+
label: /*#__PURE__*/_react["default"].createElement("div", null)
|
|
2165
|
+
}), buildButton(config));
|
|
2166
|
+
}
|
|
2167
|
+
|
|
2168
|
+
function buildFormOnlyShowSyntaxHighlighter(_ref39) {
|
|
2169
|
+
var language = _ref39.language,
|
|
2170
|
+
label = _ref39.label,
|
|
2171
|
+
value = _ref39.value,
|
|
2172
|
+
_ref39$helper = _ref39.helper,
|
|
2173
|
+
helper = _ref39$helper === void 0 ? null : _ref39$helper,
|
|
2174
|
+
_ref39$formItemLayout = _ref39.formItemLayout,
|
|
2175
|
+
formItemLayout = _ref39$formItemLayout === void 0 ? {} : _ref39$formItemLayout,
|
|
2176
|
+
_ref39$requiredForSho = _ref39.requiredForShow,
|
|
2177
|
+
requiredForShow = _ref39$requiredForSho === void 0 ? false : _ref39$requiredForSho;
|
|
2149
2178
|
return buildFormInnerComponent({
|
|
2150
2179
|
label: label,
|
|
2151
2180
|
innerComponent: buildSyntaxHighlighter({
|
|
@@ -2158,17 +2187,17 @@ function buildFormOnlyShowSyntaxHighlighter(_ref37) {
|
|
|
2158
2187
|
});
|
|
2159
2188
|
}
|
|
2160
2189
|
|
|
2161
|
-
function buildFormOnlyShowTextarea(
|
|
2162
|
-
var label =
|
|
2163
|
-
value =
|
|
2164
|
-
|
|
2165
|
-
helper =
|
|
2166
|
-
|
|
2167
|
-
textAreaProps =
|
|
2190
|
+
function buildFormOnlyShowTextarea(_ref40) {
|
|
2191
|
+
var label = _ref40.label,
|
|
2192
|
+
value = _ref40.value,
|
|
2193
|
+
_ref40$helper = _ref40.helper,
|
|
2194
|
+
helper = _ref40$helper === void 0 ? null : _ref40$helper,
|
|
2195
|
+
_ref40$textAreaProps = _ref40.textAreaProps,
|
|
2196
|
+
textAreaProps = _ref40$textAreaProps === void 0 ? {
|
|
2168
2197
|
disabled: true
|
|
2169
|
-
} :
|
|
2170
|
-
|
|
2171
|
-
formItemLayout =
|
|
2198
|
+
} : _ref40$textAreaProps,
|
|
2199
|
+
_ref40$formItemLayout = _ref40.formItemLayout,
|
|
2200
|
+
formItemLayout = _ref40$formItemLayout === void 0 ? {} : _ref40$formItemLayout;
|
|
2172
2201
|
var title = label;
|
|
2173
2202
|
|
|
2174
2203
|
var otherTextAreaProps = _objectSpread(_objectSpread({}, {
|
|
@@ -2191,13 +2220,13 @@ function buildFormOnlyShowTextarea(_ref38) {
|
|
|
2191
2220
|
}), /*#__PURE__*/_react["default"].createElement(TextArea, otherTextAreaProps));
|
|
2192
2221
|
}
|
|
2193
2222
|
|
|
2194
|
-
function buildFormText(
|
|
2195
|
-
var label =
|
|
2196
|
-
value =
|
|
2197
|
-
|
|
2198
|
-
helper =
|
|
2199
|
-
|
|
2200
|
-
formItemLayout =
|
|
2223
|
+
function buildFormText(_ref41) {
|
|
2224
|
+
var label = _ref41.label,
|
|
2225
|
+
value = _ref41.value,
|
|
2226
|
+
_ref41$helper = _ref41.helper,
|
|
2227
|
+
helper = _ref41$helper === void 0 ? null : _ref41$helper,
|
|
2228
|
+
_ref41$formItemLayout = _ref41.formItemLayout,
|
|
2229
|
+
formItemLayout = _ref41$formItemLayout === void 0 ? {} : _ref41$formItemLayout;
|
|
2201
2230
|
var title = label;
|
|
2202
2231
|
var resultCheck = (0, _tools.checkFromConfig)({
|
|
2203
2232
|
label: title,
|
|
@@ -2214,19 +2243,19 @@ function buildFormText(_ref39) {
|
|
|
2214
2243
|
}), value);
|
|
2215
2244
|
}
|
|
2216
2245
|
|
|
2217
|
-
function buildFormOnlyShowInput(
|
|
2218
|
-
var label =
|
|
2219
|
-
value =
|
|
2220
|
-
|
|
2221
|
-
helper =
|
|
2222
|
-
|
|
2223
|
-
icon =
|
|
2224
|
-
|
|
2225
|
-
inputProps =
|
|
2246
|
+
function buildFormOnlyShowInput(_ref42) {
|
|
2247
|
+
var label = _ref42.label,
|
|
2248
|
+
value = _ref42.value,
|
|
2249
|
+
_ref42$helper = _ref42.helper,
|
|
2250
|
+
helper = _ref42$helper === void 0 ? null : _ref42$helper,
|
|
2251
|
+
_ref42$icon = _ref42.icon,
|
|
2252
|
+
icon = _ref42$icon === void 0 ? /*#__PURE__*/_react["default"].createElement(_icons.FormOutlined, null) : _ref42$icon,
|
|
2253
|
+
_ref42$inputProps = _ref42.inputProps,
|
|
2254
|
+
inputProps = _ref42$inputProps === void 0 ? {
|
|
2226
2255
|
disabled: true
|
|
2227
|
-
} :
|
|
2228
|
-
|
|
2229
|
-
formItemLayout =
|
|
2256
|
+
} : _ref42$inputProps,
|
|
2257
|
+
_ref42$formItemLayout = _ref42.formItemLayout,
|
|
2258
|
+
formItemLayout = _ref42$formItemLayout === void 0 ? {} : _ref42$formItemLayout;
|
|
2230
2259
|
var title = label;
|
|
2231
2260
|
|
|
2232
2261
|
var otherInputProps = _objectSpread(_objectSpread({}, {
|
|
@@ -2250,19 +2279,19 @@ function buildFormOnlyShowInput(_ref40) {
|
|
|
2250
2279
|
}), /*#__PURE__*/_react["default"].createElement(_input["default"], otherInputProps));
|
|
2251
2280
|
}
|
|
2252
2281
|
|
|
2253
|
-
function buildFormInputNumber(
|
|
2254
|
-
var label =
|
|
2255
|
-
name =
|
|
2256
|
-
|
|
2257
|
-
required =
|
|
2258
|
-
|
|
2259
|
-
helper =
|
|
2260
|
-
|
|
2261
|
-
inputNumberProps =
|
|
2262
|
-
|
|
2263
|
-
canOperate =
|
|
2264
|
-
|
|
2265
|
-
formItemLayout =
|
|
2282
|
+
function buildFormInputNumber(_ref43) {
|
|
2283
|
+
var label = _ref43.label,
|
|
2284
|
+
name = _ref43.name,
|
|
2285
|
+
_ref43$required = _ref43.required,
|
|
2286
|
+
required = _ref43$required === void 0 ? false : _ref43$required,
|
|
2287
|
+
_ref43$helper = _ref43.helper,
|
|
2288
|
+
helper = _ref43$helper === void 0 ? null : _ref43$helper,
|
|
2289
|
+
_ref43$inputNumberPro = _ref43.inputNumberProps,
|
|
2290
|
+
inputNumberProps = _ref43$inputNumberPro === void 0 ? {} : _ref43$inputNumberPro,
|
|
2291
|
+
_ref43$canOperate = _ref43.canOperate,
|
|
2292
|
+
canOperate = _ref43$canOperate === void 0 ? true : _ref43$canOperate,
|
|
2293
|
+
_ref43$formItemLayout = _ref43.formItemLayout,
|
|
2294
|
+
formItemLayout = _ref43$formItemLayout === void 0 ? {} : _ref43$formItemLayout;
|
|
2266
2295
|
var title = label;
|
|
2267
2296
|
|
|
2268
2297
|
var otherInputNumberProps = _objectSpread(_objectSpread({}, {
|
|
@@ -2303,19 +2332,19 @@ function buildFormInputNumber(_ref41) {
|
|
|
2303
2332
|
}), /*#__PURE__*/_react["default"].createElement(_inputNumber["default"], otherInputNumberProps));
|
|
2304
2333
|
}
|
|
2305
2334
|
|
|
2306
|
-
function buildFormTextArea(
|
|
2307
|
-
var label =
|
|
2308
|
-
name =
|
|
2309
|
-
|
|
2310
|
-
required =
|
|
2311
|
-
|
|
2312
|
-
helper =
|
|
2313
|
-
|
|
2314
|
-
textAreaProps =
|
|
2315
|
-
|
|
2316
|
-
canOperate =
|
|
2317
|
-
|
|
2318
|
-
formItemLayout =
|
|
2335
|
+
function buildFormTextArea(_ref44) {
|
|
2336
|
+
var label = _ref44.label,
|
|
2337
|
+
name = _ref44.name,
|
|
2338
|
+
_ref44$required = _ref44.required,
|
|
2339
|
+
required = _ref44$required === void 0 ? false : _ref44$required,
|
|
2340
|
+
_ref44$helper = _ref44.helper,
|
|
2341
|
+
helper = _ref44$helper === void 0 ? null : _ref44$helper,
|
|
2342
|
+
_ref44$textAreaProps = _ref44.textAreaProps,
|
|
2343
|
+
textAreaProps = _ref44$textAreaProps === void 0 ? {} : _ref44$textAreaProps,
|
|
2344
|
+
_ref44$canOperate = _ref44.canOperate,
|
|
2345
|
+
canOperate = _ref44$canOperate === void 0 ? true : _ref44$canOperate,
|
|
2346
|
+
_ref44$formItemLayout = _ref44.formItemLayout,
|
|
2347
|
+
formItemLayout = _ref44$formItemLayout === void 0 ? {} : _ref44$formItemLayout;
|
|
2319
2348
|
var title = label;
|
|
2320
2349
|
|
|
2321
2350
|
var otherTextAreaProps = _objectSpread(_objectSpread({}, {
|
|
@@ -2352,19 +2381,19 @@ function buildFormTextArea(_ref42) {
|
|
|
2352
2381
|
}), /*#__PURE__*/_react["default"].createElement(TextArea, otherTextAreaProps));
|
|
2353
2382
|
}
|
|
2354
2383
|
|
|
2355
|
-
function buildFormDatePicker(
|
|
2356
|
-
var label =
|
|
2357
|
-
name =
|
|
2358
|
-
|
|
2359
|
-
required =
|
|
2360
|
-
|
|
2361
|
-
helper =
|
|
2362
|
-
|
|
2363
|
-
datePickerProps =
|
|
2364
|
-
|
|
2365
|
-
canOperate =
|
|
2366
|
-
|
|
2367
|
-
formItemLayout =
|
|
2384
|
+
function buildFormDatePicker(_ref45) {
|
|
2385
|
+
var label = _ref45.label,
|
|
2386
|
+
name = _ref45.name,
|
|
2387
|
+
_ref45$required = _ref45.required,
|
|
2388
|
+
required = _ref45$required === void 0 ? false : _ref45$required,
|
|
2389
|
+
_ref45$helper = _ref45.helper,
|
|
2390
|
+
helper = _ref45$helper === void 0 ? null : _ref45$helper,
|
|
2391
|
+
_ref45$datePickerProp = _ref45.datePickerProps,
|
|
2392
|
+
datePickerProps = _ref45$datePickerProp === void 0 ? {} : _ref45$datePickerProp,
|
|
2393
|
+
_ref45$canOperate = _ref45.canOperate,
|
|
2394
|
+
canOperate = _ref45$canOperate === void 0 ? true : _ref45$canOperate,
|
|
2395
|
+
_ref45$formItemLayout = _ref45.formItemLayout,
|
|
2396
|
+
formItemLayout = _ref45$formItemLayout === void 0 ? {} : _ref45$formItemLayout;
|
|
2368
2397
|
var title = label;
|
|
2369
2398
|
|
|
2370
2399
|
var otherDatePickerProps = _objectSpread(_objectSpread({}, {
|
|
@@ -71,6 +71,8 @@ declare class Common extends Core {
|
|
|
71
71
|
renderSyntaxHighlighter: (language: any, value: any) => JSX.Element;
|
|
72
72
|
renderJsonView: (value: any, theme?: string) => JSX.Element;
|
|
73
73
|
renderFormInnerComponent: (label: any, innerComponent: any, helper?: null, formItemLayout?: {}, requiredForShow?: boolean) => JSX.Element;
|
|
74
|
+
renderFormButton: (config: any, formItemLayout?: {}) => JSX.Element;
|
|
75
|
+
renderFormActionItem: (component: any, formItemLayout?: {}) => JSX.Element | null;
|
|
74
76
|
renderFormOnlyShowSyntaxHighlighter: (language: any, label: any, value: any, helper?: null, formItemLayout?: {}, requiredForShow?: boolean) => JSX.Element;
|
|
75
77
|
renderFormOnlyShowTextarea: (label: any, value: any, helper?: null, textAreaProps?: {
|
|
76
78
|
disabled: boolean;
|
|
@@ -133,6 +135,17 @@ declare class Common extends Core {
|
|
|
133
135
|
buildHelp: () => JSX.Element | null;
|
|
134
136
|
buildHelpWrapper: () => JSX.Element | null;
|
|
135
137
|
buildFormContent: (config: any) => JSX.Element;
|
|
136
|
-
buildFormContentItem: (mode
|
|
138
|
+
buildFormContentItem: ({ mode, justify, align, gutter, items: contentItems, index: contentIndex, }: {
|
|
139
|
+
mode: any;
|
|
140
|
+
justify: any;
|
|
141
|
+
align: any;
|
|
142
|
+
gutter?: number | undefined;
|
|
143
|
+
items: any;
|
|
144
|
+
index: any;
|
|
145
|
+
}) => JSX.Element;
|
|
146
|
+
buildFormActionList: ({ keyPrefix, configList }: {
|
|
147
|
+
keyPrefix?: string | undefined;
|
|
148
|
+
configList: any;
|
|
149
|
+
}) => any[];
|
|
137
150
|
}
|
|
138
151
|
import Core from "../Core";
|