antd-management-fast-framework 1.1.74 → 1.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/customComponents/AnimalBox/QueueBox/index.d.ts +0 -3
- package/es/customComponents/AnimalBox/QueueBox/index.js +9 -50
- package/es/customComponents/AnimalBox/QueueListBox/index.d.ts +14 -0
- package/es/customComponents/AnimalBox/QueueListBox/index.js +117 -0
- package/es/customComponents/AnimalBox/{QueueBox → QueueListBox}/index.less +0 -0
- package/es/customComponents/DataPreviewDrawer/index.js +6 -6
- package/es/customComponents/FunctionComponent/index.d.ts +14 -3
- package/es/customComponents/FunctionComponent/index.js +348 -310
- package/es/customComponents/StandardTableCustom/index.d.ts +0 -5
- package/es/customComponents/StandardTableCustom/index.js +4 -9
- package/es/framework/Common/index.d.ts +14 -7
- package/es/framework/Common/index.js +213 -187
- package/es/framework/DataDrawer/Base/index.d.ts +2 -2
- package/es/framework/DataDrawer/Base/index.js +20 -8
- package/es/framework/DataDrawer/BaseAddDrawer/index.js +1 -1
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +1 -1
- package/es/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +3 -3
- package/es/framework/DataDrawer/BaseSaveDrawer/index.js +1 -1
- package/es/framework/DataForm/BaseAddForm/index.d.ts +2 -2
- package/es/framework/DataForm/BaseAddForm/index.js +6 -6
- package/es/framework/DataListView/Base/index.d.ts +43 -34
- package/es/framework/DataListView/Base/index.js +371 -166
- package/es/framework/DataListView/Base/index.less +8 -1
- package/es/framework/DataListView/DensityAction/index.js +4 -4
- package/es/framework/DataMenuContainer/index.d.ts +1 -1
- package/es/framework/DataMenuContainer/index.js +1 -1
- package/es/framework/DataModal/Base/index.d.ts +3 -3
- package/es/framework/DataModal/Base/index.js +6 -6
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.d.ts +1 -1
- package/es/framework/DataModal/BaseNeedlessLoadModal/index.js +3 -3
- package/es/framework/DataModal/BaseUpdateTransferModal/index.js +2 -2
- package/es/framework/DataMultiPageView/MultiPage/index.d.ts +2 -2
- package/es/framework/DataMultiPageView/MultiPage/index.js +67 -164
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +2 -4
- package/es/framework/DataMultiPageView/MultiPageDrawer/index.js +30 -83
- package/es/framework/DataOperation/Base/index.d.ts +2 -2
- package/es/framework/DataOperation/Base/index.js +5 -5
- package/es/framework/DataOperation/BaseWindow/index.d.ts +1 -1
- package/es/framework/DataOperation/BaseWindow/index.js +2 -2
- package/es/framework/DataSinglePageView/SinglePage/index.d.ts +0 -2
- package/es/framework/DataSinglePageView/SinglePage/index.js +10 -105
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +2 -2
- package/es/framework/DataSinglePageView/SinglePageDrawer/index.js +25 -31
- package/es/framework/DataSingleView/DataCore/index.d.ts +4 -6
- package/es/framework/DataSingleView/DataCore/index.js +9 -17
- package/es/framework/DataSingleView/DataLoad/index.d.ts +1 -1
- package/es/framework/DataSingleView/DataLoad/index.js +2 -2
- package/es/framework/DataTabContainer/index.d.ts +13 -13
- package/es/framework/DataTabContainer/index.js +31 -31
- package/es/utils/constants.d.ts +60 -29
- package/es/utils/constants.js +336 -13
- package/es/utils/tools.js +2 -2
- package/lib/customComponents/AnimalBox/QueueBox/index.d.ts +0 -3
- package/lib/customComponents/AnimalBox/QueueBox/index.js +9 -50
- package/lib/customComponents/AnimalBox/QueueListBox/index.d.ts +14 -0
- package/lib/customComponents/AnimalBox/QueueListBox/index.js +117 -0
- package/lib/customComponents/AnimalBox/{QueueBox → QueueListBox}/index.less +0 -0
- package/lib/customComponents/DataPreviewDrawer/index.js +6 -6
- package/lib/customComponents/FunctionComponent/index.d.ts +14 -3
- package/lib/customComponents/FunctionComponent/index.js +348 -310
- package/lib/customComponents/StandardTableCustom/index.d.ts +0 -5
- package/lib/customComponents/StandardTableCustom/index.js +4 -9
- package/lib/framework/Common/index.d.ts +14 -7
- package/lib/framework/Common/index.js +213 -187
- package/lib/framework/DataDrawer/Base/index.d.ts +2 -2
- package/lib/framework/DataDrawer/Base/index.js +20 -8
- package/lib/framework/DataDrawer/BaseAddDrawer/index.js +1 -1
- package/lib/framework/DataDrawer/BaseNeedlessLoadDrawer/index.d.ts +1 -1
- package/lib/framework/DataDrawer/BaseNeedlessLoadDrawer/index.js +3 -3
- package/lib/framework/DataDrawer/BaseSaveDrawer/index.js +1 -1
- package/lib/framework/DataForm/BaseAddForm/index.d.ts +2 -2
- package/lib/framework/DataForm/BaseAddForm/index.js +6 -6
- package/lib/framework/DataListView/Base/index.d.ts +43 -34
- package/lib/framework/DataListView/Base/index.js +371 -166
- package/lib/framework/DataListView/Base/index.less +8 -1
- package/lib/framework/DataListView/DensityAction/index.js +4 -4
- package/lib/framework/DataMenuContainer/index.d.ts +1 -1
- package/lib/framework/DataMenuContainer/index.js +1 -1
- package/lib/framework/DataModal/Base/index.d.ts +3 -3
- package/lib/framework/DataModal/Base/index.js +6 -6
- package/lib/framework/DataModal/BaseNeedlessLoadModal/index.d.ts +1 -1
- package/lib/framework/DataModal/BaseNeedlessLoadModal/index.js +3 -3
- package/lib/framework/DataModal/BaseUpdateTransferModal/index.js +2 -2
- package/lib/framework/DataMultiPageView/MultiPage/index.d.ts +2 -2
- package/lib/framework/DataMultiPageView/MultiPage/index.js +67 -164
- package/lib/framework/DataMultiPageView/MultiPageDrawer/index.d.ts +2 -4
- package/lib/framework/DataMultiPageView/MultiPageDrawer/index.js +30 -83
- package/lib/framework/DataOperation/Base/index.d.ts +2 -2
- package/lib/framework/DataOperation/Base/index.js +5 -5
- package/lib/framework/DataOperation/BaseWindow/index.d.ts +1 -1
- package/lib/framework/DataOperation/BaseWindow/index.js +2 -2
- package/lib/framework/DataSinglePageView/SinglePage/index.d.ts +0 -2
- package/lib/framework/DataSinglePageView/SinglePage/index.js +10 -105
- package/lib/framework/DataSinglePageView/SinglePageDrawer/index.d.ts +2 -2
- package/lib/framework/DataSinglePageView/SinglePageDrawer/index.js +25 -31
- package/lib/framework/DataSingleView/DataCore/index.d.ts +4 -6
- package/lib/framework/DataSingleView/DataCore/index.js +9 -17
- package/lib/framework/DataSingleView/DataLoad/index.d.ts +1 -1
- package/lib/framework/DataSingleView/DataLoad/index.js +2 -2
- package/lib/framework/DataTabContainer/index.d.ts +13 -13
- package/lib/framework/DataTabContainer/index.js +31 -31
- package/lib/utils/constants.d.ts +60 -29
- package/lib/utils/constants.js +336 -13
- package/lib/utils/tools.js +2 -2
- package/package.json +1 -1
- package/es/framework/DataMultiPageView/MultiPage/index.less +0 -7
- package/lib/framework/DataMultiPageView/MultiPage/index.less +0 -7
|
@@ -73,6 +73,10 @@ var _IconInfo = _interopRequireDefault(require("../../customComponents/IconInfo"
|
|
|
73
73
|
|
|
74
74
|
var _FileBase64Upload = _interopRequireDefault(require("../../customComponents/FileBase64Upload"));
|
|
75
75
|
|
|
76
|
+
var _FadeBox = _interopRequireDefault(require("../../customComponents/AnimalBox/FadeBox"));
|
|
77
|
+
|
|
78
|
+
var _QueueBox = _interopRequireDefault(require("../../customComponents/AnimalBox/QueueBox"));
|
|
79
|
+
|
|
76
80
|
var _FunctionComponent = require("../../customComponents/FunctionComponent");
|
|
77
81
|
|
|
78
82
|
var _Whether = require("../../customComponents/FunctionSupplement/Whether");
|
|
@@ -985,7 +989,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
985
989
|
});
|
|
986
990
|
};
|
|
987
991
|
|
|
988
|
-
_this.
|
|
992
|
+
_this.buildFormAdditionalConfig = function () {
|
|
989
993
|
return {};
|
|
990
994
|
};
|
|
991
995
|
|
|
@@ -1058,12 +1062,12 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1058
1062
|
throw new Error(text);
|
|
1059
1063
|
};
|
|
1060
1064
|
|
|
1061
|
-
_this.
|
|
1065
|
+
_this.establishToolBarConfig = function () {
|
|
1062
1066
|
return null;
|
|
1063
1067
|
};
|
|
1064
1068
|
|
|
1065
1069
|
_this.buildToolBar = function () {
|
|
1066
|
-
var config = _this.
|
|
1070
|
+
var config = _this.establishToolBarConfig();
|
|
1067
1071
|
|
|
1068
1072
|
if ((config || null) == null) {
|
|
1069
1073
|
return null;
|
|
@@ -1144,18 +1148,18 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1144
1148
|
return toolBar;
|
|
1145
1149
|
};
|
|
1146
1150
|
|
|
1147
|
-
_this.
|
|
1151
|
+
_this.establishWrapperTypeConfig = function () {
|
|
1148
1152
|
return {
|
|
1149
1153
|
mode: _constants.contentConfig.wrapperType.page
|
|
1150
1154
|
};
|
|
1151
1155
|
};
|
|
1152
1156
|
|
|
1153
|
-
_this.
|
|
1157
|
+
_this.establishHelpConfig = function () {
|
|
1154
1158
|
return null;
|
|
1155
1159
|
};
|
|
1156
1160
|
|
|
1157
1161
|
_this.buildHelp = function () {
|
|
1158
|
-
var wrapperTypeConfig = _this.
|
|
1162
|
+
var wrapperTypeConfig = _this.establishWrapperTypeConfig() || {
|
|
1159
1163
|
mode: _constants.contentConfig.wrapperType.page
|
|
1160
1164
|
};
|
|
1161
1165
|
|
|
@@ -1165,7 +1169,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1165
1169
|
|
|
1166
1170
|
var mode = configData.mode;
|
|
1167
1171
|
|
|
1168
|
-
var config = _this.
|
|
1172
|
+
var config = _this.establishHelpConfig();
|
|
1169
1173
|
|
|
1170
1174
|
if ((config || null) == null) {
|
|
1171
1175
|
return null;
|
|
@@ -1201,13 +1205,6 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1201
1205
|
};
|
|
1202
1206
|
|
|
1203
1207
|
_this.buildHelpWrapper = function () {
|
|
1204
|
-
// const formContentWrapperTypeConfig = this.buildWrapperTypeConfig() || {
|
|
1205
|
-
// mode: contentConfig.wrapperType.page,
|
|
1206
|
-
// };
|
|
1207
|
-
// const configData = {
|
|
1208
|
-
// ...{ mode: contentConfig.wrapperType.page },
|
|
1209
|
-
// ...(formContentWrapperTypeConfig || {}),
|
|
1210
|
-
// };
|
|
1211
1208
|
var help = _this.buildHelp();
|
|
1212
1209
|
|
|
1213
1210
|
if ((help || null) == null) {
|
|
@@ -1217,13 +1214,13 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1217
1214
|
return help;
|
|
1218
1215
|
};
|
|
1219
1216
|
|
|
1220
|
-
_this.
|
|
1221
|
-
var formContentWrapperTypeConfig = _this.
|
|
1222
|
-
mode: _constants.
|
|
1217
|
+
_this.buildCardCollection = function (config) {
|
|
1218
|
+
var formContentWrapperTypeConfig = _this.establishWrapperTypeConfig() || {
|
|
1219
|
+
mode: _constants.cardConfig.wrapperType.page
|
|
1223
1220
|
};
|
|
1224
1221
|
|
|
1225
1222
|
var configData = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, {
|
|
1226
|
-
mode: _constants.
|
|
1223
|
+
mode: _constants.cardConfig.wrapperType.page,
|
|
1227
1224
|
justify: 'start',
|
|
1228
1225
|
align: 'top'
|
|
1229
1226
|
}), formContentWrapperTypeConfig || {}), {
|
|
@@ -1253,152 +1250,181 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1253
1250
|
direction: "vertical",
|
|
1254
1251
|
size: 24
|
|
1255
1252
|
}, _this.buildToolBarWrapper(), listData.map(function (item, index) {
|
|
1256
|
-
|
|
1253
|
+
return _this.buildCardCollectionItem({
|
|
1254
|
+
mode: mode,
|
|
1255
|
+
justify: justifyGeneral,
|
|
1256
|
+
align: alignGeneral,
|
|
1257
|
+
config: item,
|
|
1258
|
+
key: index
|
|
1259
|
+
});
|
|
1260
|
+
}), _this.buildHelpWrapper()));
|
|
1261
|
+
};
|
|
1257
1262
|
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1263
|
+
_this.buildCardCollectionItem = function (_ref4) {
|
|
1264
|
+
var cardItemConfig = _ref4.config,
|
|
1265
|
+
cardItemKey = _ref4.key,
|
|
1266
|
+
_ref4$mode = _ref4.mode,
|
|
1267
|
+
mode = _ref4$mode === void 0 ? _constants.cardConfig.wrapperType.page : _ref4$mode,
|
|
1268
|
+
_ref4$justify = _ref4.justify,
|
|
1269
|
+
justifyGeneral = _ref4$justify === void 0 ? 'start' : _ref4$justify,
|
|
1270
|
+
_ref4$align = _ref4.align,
|
|
1271
|
+
alignGeneral = _ref4$align === void 0 ? 'top' : _ref4$align;
|
|
1272
|
+
var key = "cardCollectionItem_key_".concat(cardItemKey);
|
|
1261
1273
|
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
hidden: false,
|
|
1266
|
-
cardType: _constants.formContentConfig.cardType.normal,
|
|
1267
|
-
cardBodyStyle: {},
|
|
1268
|
-
items: [],
|
|
1269
|
-
otherComponent: null,
|
|
1270
|
-
formItemLayout: null,
|
|
1271
|
-
instruction: null,
|
|
1272
|
-
justify: 'start',
|
|
1273
|
-
align: 'top'
|
|
1274
|
-
}), item || {}),
|
|
1275
|
-
title = _title$extra$hidden$c.title,
|
|
1276
|
-
extra = _title$extra$hidden$c.extra,
|
|
1277
|
-
hidden = _title$extra$hidden$c.hidden,
|
|
1278
|
-
cardType = _title$extra$hidden$c.cardType,
|
|
1279
|
-
cardBodyStyle = _title$extra$hidden$c.cardBodyStyle,
|
|
1280
|
-
spinning = _title$extra$hidden$c.spinning,
|
|
1281
|
-
contentItems = _title$extra$hidden$c.items,
|
|
1282
|
-
otherComponent = _title$extra$hidden$c.otherComponent,
|
|
1283
|
-
formItemLayout = _title$extra$hidden$c.formItemLayout,
|
|
1284
|
-
instruction = _title$extra$hidden$c.instruction,
|
|
1285
|
-
justifyRow = _title$extra$hidden$c.justify,
|
|
1286
|
-
alignRow = _title$extra$hidden$c.align;
|
|
1287
|
-
|
|
1288
|
-
if (hidden || false) {
|
|
1289
|
-
return null;
|
|
1290
|
-
}
|
|
1274
|
+
if ((cardItemConfig || null) == null) {
|
|
1275
|
+
return null;
|
|
1276
|
+
}
|
|
1291
1277
|
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1278
|
+
var _title$size$bordered$ = _objectSpread(_objectSpread({}, {
|
|
1279
|
+
title: '',
|
|
1280
|
+
size: 'default',
|
|
1281
|
+
bordered: false,
|
|
1282
|
+
useAnimal: false,
|
|
1283
|
+
animalType: _constants.cardConfig.animalType.none,
|
|
1284
|
+
extra: null,
|
|
1285
|
+
hidden: false,
|
|
1286
|
+
cardType: _constants.cardConfig.renderType.normal,
|
|
1287
|
+
cardBodyStyle: {},
|
|
1288
|
+
items: [],
|
|
1289
|
+
otherComponent: null,
|
|
1290
|
+
formItemLayout: null,
|
|
1291
|
+
instruction: null,
|
|
1292
|
+
justify: 'start',
|
|
1293
|
+
align: 'top'
|
|
1294
|
+
}), cardItemConfig || {}),
|
|
1295
|
+
title = _title$size$bordered$.title,
|
|
1296
|
+
size = _title$size$bordered$.size,
|
|
1297
|
+
bordered = _title$size$bordered$.bordered,
|
|
1298
|
+
useAnimal = _title$size$bordered$.useAnimal,
|
|
1299
|
+
animalType = _title$size$bordered$.animalType,
|
|
1300
|
+
extra = _title$size$bordered$.extra,
|
|
1301
|
+
hidden = _title$size$bordered$.hidden,
|
|
1302
|
+
cardType = _title$size$bordered$.cardType,
|
|
1303
|
+
cardBodyStyle = _title$size$bordered$.cardBodyStyle,
|
|
1304
|
+
spinning = _title$size$bordered$.spinning,
|
|
1305
|
+
contentItems = _title$size$bordered$.items,
|
|
1306
|
+
otherComponent = _title$size$bordered$.otherComponent,
|
|
1307
|
+
formItemLayout = _title$size$bordered$.formItemLayout,
|
|
1308
|
+
instruction = _title$size$bordered$.instruction,
|
|
1309
|
+
justifyRow = _title$size$bordered$.justify,
|
|
1310
|
+
alignRow = _title$size$bordered$.align;
|
|
1311
|
+
|
|
1312
|
+
if (hidden || false) {
|
|
1313
|
+
return null;
|
|
1314
|
+
}
|
|
1327
1315
|
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1316
|
+
var _icon$text$subText$ad = _objectSpread(_objectSpread({}, {
|
|
1317
|
+
icon: /*#__PURE__*/_react["default"].createElement(_icons.ContactsOutlined, null),
|
|
1318
|
+
text: '',
|
|
1319
|
+
subText: '',
|
|
1320
|
+
addonBefore: null,
|
|
1321
|
+
addonAfter: null
|
|
1322
|
+
}), title || {}),
|
|
1323
|
+
icon = _icon$text$subText$ad.icon,
|
|
1324
|
+
text = _icon$text$subText$ad.text,
|
|
1325
|
+
subText = _icon$text$subText$ad.subText,
|
|
1326
|
+
titleAddonBefore = _icon$text$subText$ad.addonBefore,
|
|
1327
|
+
titleAddonAfter = _icon$text$subText$ad.addonAfter;
|
|
1328
|
+
|
|
1329
|
+
var _affix$split$list = _objectSpread(_objectSpread({}, {
|
|
1330
|
+
affix: false,
|
|
1331
|
+
split: false,
|
|
1332
|
+
list: []
|
|
1333
|
+
}), extra || {}),
|
|
1334
|
+
affix = _affix$split$list.affix,
|
|
1335
|
+
split = _affix$split$list.split,
|
|
1336
|
+
extraItemList = _affix$split$list.list;
|
|
1337
|
+
|
|
1338
|
+
var extraListData = [];
|
|
1339
|
+
|
|
1340
|
+
if ((0, _tools.isArray)(extraItemList)) {
|
|
1341
|
+
extraItemList.forEach(function (eo, ei) {
|
|
1342
|
+
if ((eo || null) != null) {
|
|
1343
|
+
extraListData.push(eo);
|
|
1344
|
+
|
|
1345
|
+
if (ei !== extraItemList.length - 1) {
|
|
1346
|
+
extraListData.push('');
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1331
1349
|
});
|
|
1350
|
+
}
|
|
1332
1351
|
|
|
1333
|
-
|
|
1334
|
-
|
|
1352
|
+
var extraItems = _this.buildEveryCardActionList({
|
|
1353
|
+
keyPrefix: "formContent_key_".concat(cardItemKey, "_extra"),
|
|
1354
|
+
configList: extraListData
|
|
1355
|
+
});
|
|
1356
|
+
|
|
1357
|
+
var hasExtraItems = extraItems.length > 0;
|
|
1358
|
+
var cardTypeBodyStyle = {};
|
|
1359
|
+
|
|
1360
|
+
if (cardType === _constants.cardConfig.renderType.help) {
|
|
1361
|
+
cardTypeBodyStyle = {
|
|
1362
|
+
paddingTop: '12px',
|
|
1363
|
+
paddingBottom: '12px'
|
|
1364
|
+
};
|
|
1365
|
+
}
|
|
1335
1366
|
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
|
|
1367
|
+
var card = /*#__PURE__*/_react["default"].createElement(_card["default"], {
|
|
1368
|
+
title: cardItemKey === 0 && mode !== _constants.cardConfig.wrapperType.page ? null : (text || '') === '' && (subText || '') === '' ? null : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_FlexText["default"], {
|
|
1369
|
+
icon: icon || null,
|
|
1370
|
+
text: text || '',
|
|
1371
|
+
subText: subText || '',
|
|
1372
|
+
addonBefore: (titleAddonBefore || null) == null ? null : titleAddonBefore,
|
|
1373
|
+
addonAfter: (titleAddonAfter || null) == null ? null : titleAddonAfter
|
|
1374
|
+
})),
|
|
1375
|
+
size: size || 'default',
|
|
1376
|
+
bordered: bordered,
|
|
1377
|
+
extra: hasExtraItems ? mode === _constants.cardConfig.wrapperType.page && affix ? /*#__PURE__*/_react["default"].createElement(_affix["default"], {
|
|
1378
|
+
offsetTop: 20
|
|
1379
|
+
}, /*#__PURE__*/_react["default"].createElement(_space["default"], {
|
|
1380
|
+
split: (0, _tools.isBoolean)(split) ? split ? /*#__PURE__*/_react["default"].createElement(_divider["default"], {
|
|
1381
|
+
type: "vertical"
|
|
1382
|
+
}) : null : split
|
|
1383
|
+
}, extraItems)) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_space["default"], {
|
|
1384
|
+
split: (0, _tools.isBoolean)(split) ? split ? /*#__PURE__*/_react["default"].createElement(_divider["default"], {
|
|
1385
|
+
type: "vertical"
|
|
1386
|
+
}) : null : split
|
|
1387
|
+
}, extraItems)) : null,
|
|
1388
|
+
bodyStyle: mode === _constants.cardConfig.wrapperType.model ? _objectSpread(_objectSpread(_objectSpread({}, cardBodyStyle || {}), cardTypeBodyStyle || {}), {
|
|
1389
|
+
paddingBottom: 0
|
|
1390
|
+
}) : _objectSpread(_objectSpread({}, cardBodyStyle || {}), cardTypeBodyStyle || {})
|
|
1391
|
+
}, /*#__PURE__*/_react["default"].createElement(_spin["default"], {
|
|
1392
|
+
spinning: spinning || false
|
|
1393
|
+
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _this.buildCardCollectionItemContent({
|
|
1394
|
+
mode: mode,
|
|
1395
|
+
justify: justifyRow || justifyGeneral,
|
|
1396
|
+
align: alignRow || alignGeneral,
|
|
1397
|
+
items: (0, _tools.isArray)(contentItems) ? contentItems.map(function (o) {
|
|
1398
|
+
return _objectSpread(_objectSpread({}, o), {
|
|
1399
|
+
formItemLayout: formItemLayout || null
|
|
1400
|
+
});
|
|
1401
|
+
}) : [],
|
|
1402
|
+
index: cardItemKey
|
|
1403
|
+
}), otherComponent || null, (0, _tools.isObject)(instruction !== null && instruction !== void 0 ? instruction : false) || (0, _tools.isArray)(instruction !== null && instruction !== void 0 ? instruction : false) ? (0, _tools.isArray)(instruction !== null && instruction !== void 0 ? instruction : false) ? instruction.map(function (o, indexHelpBox) {
|
|
1404
|
+
if ((o !== null && o !== void 0 ? o : null) == null) {
|
|
1405
|
+
return null;
|
|
1341
1406
|
}
|
|
1342
1407
|
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
},
|
|
1347
|
-
|
|
1348
|
-
icon: icon || null,
|
|
1349
|
-
text: text || '',
|
|
1350
|
-
subText: subText || '',
|
|
1351
|
-
addonBefore: (titleAddonBefore || null) == null ? null : titleAddonBefore,
|
|
1352
|
-
addonAfter: (titleAddonAfter || null) == null ? null : titleAddonAfter
|
|
1353
|
-
})),
|
|
1354
|
-
bordered: false,
|
|
1355
|
-
extra: hasExtraItems ? mode === _constants.formContentConfig.wrapperType.page && affix ? /*#__PURE__*/_react["default"].createElement(_affix["default"], {
|
|
1356
|
-
offsetTop: 20
|
|
1357
|
-
}, /*#__PURE__*/_react["default"].createElement(_space["default"], {
|
|
1358
|
-
split: (0, _tools.isBoolean)(split) ? split ? /*#__PURE__*/_react["default"].createElement(_divider["default"], {
|
|
1359
|
-
type: "vertical"
|
|
1360
|
-
}) : null : split
|
|
1361
|
-
}, extraItems)) : /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_space["default"], {
|
|
1362
|
-
split: (0, _tools.isBoolean)(split) ? split ? /*#__PURE__*/_react["default"].createElement(_divider["default"], {
|
|
1363
|
-
type: "vertical"
|
|
1364
|
-
}) : null : split
|
|
1365
|
-
}, extraItems)) : null,
|
|
1366
|
-
bodyStyle: mode === _constants.formContentConfig.wrapperType.model ? _objectSpread(_objectSpread(_objectSpread({}, cardBodyStyle || {}), cardTypeBodyStyle || {}), {
|
|
1367
|
-
paddingBottom: 0
|
|
1368
|
-
}) : _objectSpread(_objectSpread({}, cardBodyStyle || {}), cardTypeBodyStyle || {})
|
|
1369
|
-
}, /*#__PURE__*/_react["default"].createElement(_spin["default"], {
|
|
1370
|
-
spinning: spinning || false
|
|
1371
|
-
}, /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, _this.buildFormContentItem({
|
|
1372
|
-
mode: mode,
|
|
1373
|
-
justify: justifyRow || justifyGeneral,
|
|
1374
|
-
align: alignRow || alignGeneral,
|
|
1375
|
-
items: (0, _tools.isArray)(contentItems) ? contentItems.map(function (o) {
|
|
1376
|
-
return _objectSpread(_objectSpread({}, o), {
|
|
1377
|
-
formItemLayout: formItemLayout || null
|
|
1378
|
-
});
|
|
1379
|
-
}) : [],
|
|
1380
|
-
index: index
|
|
1381
|
-
}), otherComponent || null, (0, _tools.isObject)(instruction !== null && instruction !== void 0 ? instruction : false) || (0, _tools.isArray)(instruction !== null && instruction !== void 0 ? instruction : false) ? (0, _tools.isArray)(instruction !== null && instruction !== void 0 ? instruction : false) ? instruction.map(function (o, indexHelpBox) {
|
|
1382
|
-
if ((o !== null && o !== void 0 ? o : null) == null) {
|
|
1383
|
-
return null;
|
|
1384
|
-
}
|
|
1408
|
+
var keyHelpBox = "".concat(key, "_HelpBox_$").concat(indexHelpBox);
|
|
1409
|
+
return /*#__PURE__*/_react["default"].createElement(_HelpBox["default"], _extends({
|
|
1410
|
+
key: keyHelpBox
|
|
1411
|
+
}, o));
|
|
1412
|
+
}) : /*#__PURE__*/_react["default"].createElement(_HelpBox["default"], instruction) : null)));
|
|
1385
1413
|
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
}) : /*#__PURE__*/_react["default"].createElement(_HelpBox["default"], instruction) : null))));
|
|
1391
|
-
}), _this.buildHelpWrapper()));
|
|
1414
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
1415
|
+
key: key,
|
|
1416
|
+
className: _index["default"].cardContainor
|
|
1417
|
+
}, (0, _tools.isBoolean)(useAnimal) && animalType === _constants.cardConfig.animalType.fade ? /*#__PURE__*/_react["default"].createElement(_FadeBox["default"], null, card) : null, (0, _tools.isBoolean)(useAnimal) && animalType === _constants.cardConfig.animalType.queue ? /*#__PURE__*/_react["default"].createElement(_QueueBox["default"], null, card) : null, !(0, _tools.isBoolean)(useAnimal) || (0, _tools.isBoolean)(useAnimal) && !(0, _tools.inCollection)([_constants.cardConfig.animalType.fade, _constants.cardConfig.animalType.queue], animalType) ? card : null);
|
|
1392
1418
|
};
|
|
1393
1419
|
|
|
1394
|
-
_this.
|
|
1395
|
-
var mode =
|
|
1396
|
-
justify =
|
|
1397
|
-
align =
|
|
1398
|
-
|
|
1399
|
-
gutter =
|
|
1400
|
-
contentItems =
|
|
1401
|
-
contentIndex =
|
|
1420
|
+
_this.buildCardCollectionItemContent = function (_ref5) {
|
|
1421
|
+
var mode = _ref5.mode,
|
|
1422
|
+
justify = _ref5.justify,
|
|
1423
|
+
align = _ref5.align,
|
|
1424
|
+
_ref5$gutter = _ref5.gutter,
|
|
1425
|
+
gutter = _ref5$gutter === void 0 ? 24 : _ref5$gutter,
|
|
1426
|
+
contentItems = _ref5.items,
|
|
1427
|
+
contentIndex = _ref5.index;
|
|
1402
1428
|
return /*#__PURE__*/_react["default"].createElement(_row["default"], {
|
|
1403
1429
|
justify: justify,
|
|
1404
1430
|
align: align,
|
|
@@ -1443,11 +1469,11 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1443
1469
|
helper: ''
|
|
1444
1470
|
}), fieldDataValue || {});
|
|
1445
1471
|
|
|
1446
|
-
var lg = (lgValue || 6) < 12 && mode !== _constants.
|
|
1447
|
-
lg = lg > 12 && mode !== _constants.
|
|
1472
|
+
var lg = (lgValue || 6) < 12 && mode !== _constants.cardConfig.wrapperType.page ? 12 : lgValue;
|
|
1473
|
+
lg = lg > 12 && mode !== _constants.cardConfig.wrapperType.page ? 24 : lg;
|
|
1448
1474
|
lg = lg > 24 ? 24 : lg;
|
|
1449
1475
|
|
|
1450
|
-
if (type === _constants.
|
|
1476
|
+
if (type === _constants.cardConfig.contentItemType.placeholder) {
|
|
1451
1477
|
return /*#__PURE__*/_react["default"].createElement(_col["default"], {
|
|
1452
1478
|
key: contentItemKey,
|
|
1453
1479
|
lg: lg,
|
|
@@ -1457,7 +1483,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1457
1483
|
});
|
|
1458
1484
|
}
|
|
1459
1485
|
|
|
1460
|
-
if (type === _constants.
|
|
1486
|
+
if (type === _constants.cardConfig.contentItemType.divider) {
|
|
1461
1487
|
return /*#__PURE__*/_react["default"].createElement(_col["default"], {
|
|
1462
1488
|
key: contentItemKey,
|
|
1463
1489
|
lg: lg,
|
|
@@ -1467,7 +1493,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1467
1493
|
}, /*#__PURE__*/_react["default"].createElement(_divider["default"], _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), (0, _tools.stringIsNullOrWhiteSpace)(contentItem.text || '') ? null : contentItem.text));
|
|
1468
1494
|
}
|
|
1469
1495
|
|
|
1470
|
-
if (type === _constants.
|
|
1496
|
+
if (type === _constants.cardConfig.contentItemType.imageUpload) {
|
|
1471
1497
|
var uploadProps = _objectSpread(_objectSpread({}, contentItem.uploadProps || {}), {
|
|
1472
1498
|
image: contentItem.image || '',
|
|
1473
1499
|
action: contentItem.action || '',
|
|
@@ -1492,7 +1518,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1492
1518
|
})));
|
|
1493
1519
|
}
|
|
1494
1520
|
|
|
1495
|
-
if (type === _constants.
|
|
1521
|
+
if (type === _constants.cardConfig.contentItemType.imageShow) {
|
|
1496
1522
|
var imageBoxProps = _objectSpread(_objectSpread({}, {
|
|
1497
1523
|
loadingEffect: true,
|
|
1498
1524
|
errorOverlayVisible: true,
|
|
@@ -1520,7 +1546,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1520
1546
|
}, imageBox));
|
|
1521
1547
|
}
|
|
1522
1548
|
|
|
1523
|
-
if (type === _constants.
|
|
1549
|
+
if (type === _constants.cardConfig.contentItemType.imageListShow) {
|
|
1524
1550
|
var imageBoxListContainorStyle = null;
|
|
1525
1551
|
|
|
1526
1552
|
var _imageBoxProps = _objectSpread(_objectSpread({}, {
|
|
@@ -1584,7 +1610,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1584
1610
|
}, imageListContainor));
|
|
1585
1611
|
}
|
|
1586
1612
|
|
|
1587
|
-
if (type === _constants.
|
|
1613
|
+
if (type === _constants.cardConfig.contentItemType.fileBase64Upload) {
|
|
1588
1614
|
var _uploadProps = _objectSpread(_objectSpread({}, contentItem.uploadProps || {}), {
|
|
1589
1615
|
fileBase64: contentItem.fileBase64 || '',
|
|
1590
1616
|
action: contentItem.action || '',
|
|
@@ -1607,7 +1633,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1607
1633
|
})), fieldData.helper, null, require));
|
|
1608
1634
|
}
|
|
1609
1635
|
|
|
1610
|
-
if (type === _constants.
|
|
1636
|
+
if (type === _constants.cardConfig.contentItemType.videoUpload) {
|
|
1611
1637
|
var _uploadProps2 = _objectSpread(_objectSpread({}, contentItem.uploadProps || {}), {
|
|
1612
1638
|
video: contentItem.video || '',
|
|
1613
1639
|
showPreview: contentItem.showPreview || false,
|
|
@@ -1637,25 +1663,25 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1637
1663
|
md: md,
|
|
1638
1664
|
sm: sm,
|
|
1639
1665
|
xs: xs
|
|
1640
|
-
}, type === _constants.
|
|
1666
|
+
}, type === _constants.cardConfig.contentItemType.text ? _this.renderFormText(fieldData.label, contentItem.value || '', fieldData.helper, formItemLayout) : null, type === _constants.cardConfig.contentItemType.input ? _this.renderFormInput(fieldData.label, fieldData.name, require, fieldData.helper, contentItem.icon || /*#__PURE__*/_react["default"].createElement(_icons.FormOutlined, null), _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), canOperate, formItemLayout) : null, type === _constants.cardConfig.contentItemType.password ? _this.renderFormPassword(fieldData.label, fieldData.name, require, fieldData.helper, contentItem.icon || /*#__PURE__*/_react["default"].createElement(_icons.FormOutlined, null), _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), canOperate, formItemLayout) : null, type === _constants.cardConfig.contentItemType.inputNumber ? _this.renderFormInputNumber(fieldData.label, fieldData.name, require, fieldData.helper, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), canOperate, formItemLayout) : null, type === _constants.cardConfig.contentItemType["switch"] ? _this.renderFormSwitch(fieldData.label, fieldData.name, require, fieldData.helper, _objectSpread(_objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), {
|
|
1641
1667
|
checked: contentItem.checked || false
|
|
1642
|
-
}), canOperate, formItemLayout) : null, type === _constants.
|
|
1668
|
+
}), canOperate, formItemLayout) : null, type === _constants.cardConfig.contentItemType.flexText ? /*#__PURE__*/_react["default"].createElement(_FlexText["default"], _objectSpread(_objectSpread({}, {
|
|
1643
1669
|
style: {
|
|
1644
1670
|
margin: '5px 0'
|
|
1645
1671
|
}
|
|
1646
|
-
}), contentItem.flexTextProps || {})) : null, type === _constants.
|
|
1672
|
+
}), contentItem.flexTextProps || {})) : null, type === _constants.cardConfig.contentItemType.onlyShowTextByFlexText ? /*#__PURE__*/_react["default"].createElement(_FlexText["default"], {
|
|
1647
1673
|
style: {
|
|
1648
1674
|
margin: '5px 0'
|
|
1649
1675
|
},
|
|
1650
1676
|
icon: null,
|
|
1651
1677
|
textPrefix: fieldData.label || '',
|
|
1652
1678
|
text: contentItem.value || ''
|
|
1653
|
-
}) : null, type === _constants.
|
|
1679
|
+
}) : null, type === _constants.cardConfig.contentItemType.datePicker ? _this.renderFormDatePicker(fieldData.label, fieldData.name, require, fieldData.helper, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), canOperate, formItemLayout) : null, type === _constants.cardConfig.contentItemType.textarea ? _this.renderFormTextArea(fieldData.label, fieldData.name, require, fieldData.helper, _objectSpread(_objectSpread({}, {
|
|
1654
1680
|
autoSize: {
|
|
1655
1681
|
minRows: 3,
|
|
1656
1682
|
maxRows: 5
|
|
1657
1683
|
}
|
|
1658
|
-
}), contentItem.otherProps || {}), canOperate, formItemLayout) : null, type === _constants.
|
|
1684
|
+
}), contentItem.otherProps || {}), canOperate, formItemLayout) : null, type === _constants.cardConfig.contentItemType.onlyShowTextarea ? _this.renderFormOnlyShowTextarea(fieldData.label, contentItem.value, fieldData.helper || '', _objectSpread(_objectSpread(_objectSpread({}, {
|
|
1659
1685
|
autoSize: {
|
|
1660
1686
|
minRows: 3,
|
|
1661
1687
|
maxRows: 5
|
|
@@ -1663,7 +1689,7 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1663
1689
|
}), contentItem.otherProps || {}), {
|
|
1664
1690
|
disabled: true,
|
|
1665
1691
|
placeholder: "\u6682\u65E0".concat(fieldData.label, "\u4FE1\u606F")
|
|
1666
|
-
}), formItemLayout) : null, type === _constants.
|
|
1692
|
+
}), formItemLayout) : null, type === _constants.cardConfig.contentItemType.onlyShowInput ? _this.renderFormOnlyShowInput(fieldData.label, contentItem.value, fieldData.helper || '', contentItem.icon || /*#__PURE__*/_react["default"].createElement(_icons.FormOutlined, null), _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), {
|
|
1667
1693
|
disabled: true,
|
|
1668
1694
|
placeholder: "\u6682\u65E0".concat(fieldData.label, "\u4FE1\u606F")
|
|
1669
1695
|
}), contentItem.canCopy || false ? {
|
|
@@ -1681,12 +1707,12 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1681
1707
|
(0, _tools.copyToClipboard)(contentItem.value || '');
|
|
1682
1708
|
}
|
|
1683
1709
|
})
|
|
1684
|
-
} : {}), formItemLayout) : null, type === _constants.
|
|
1710
|
+
} : {}), formItemLayout) : null, type === _constants.cardConfig.contentItemType.onlyShowInputDatetime ? _this.renderFormOnlyShowInput(fieldData.label, (0, _tools.formatDatetime)((0, _tools.toDatetime)(contentItem.value), _constants.datetimeFormat.yearMonthDayHourMinute), fieldData.helper || '', contentItem.icon || /*#__PURE__*/_react["default"].createElement(_icons.FormOutlined, null), _objectSpread(_objectSpread(_objectSpread({}, {}), contentItem.otherProps || {}), {
|
|
1685
1711
|
disabled: true,
|
|
1686
1712
|
placeholder: "\u6682\u65E0".concat(fieldData.label, "\u4FE1\u606F")
|
|
1687
|
-
}), formItemLayout) : null, type === _constants.
|
|
1713
|
+
}), formItemLayout) : null, type === _constants.cardConfig.contentItemType.select ? _this.renderFormSelect(fieldData.label, fieldData.name, function () {
|
|
1688
1714
|
return _this.renderFormOptionCore((0, _tools.refitCommonData)((0, _tools.isFunction)(contentItem.pretreatmentData) ? contentItem.pretreatmentData((0, _tools.isArray)(contentItem.listData) ? contentItem.listData : []) : (0, _tools.isArray)(contentItem.listData) ? contentItem.listData : []));
|
|
1689
|
-
}, fieldData.helper || '', (0, _tools.isFunction)(contentItem.onChangeCallback) ? contentItem.onChangeCallback : null, formItemLayout, true, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.
|
|
1715
|
+
}, fieldData.helper || '', (0, _tools.isFunction)(contentItem.onChangeCallback) ? contentItem.onChangeCallback : null, formItemLayout, true, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.cardConfig.contentItemType.whetherSelect ? (0, _Whether.renderFormWhetherSelect)({
|
|
1690
1716
|
label: fieldData.label,
|
|
1691
1717
|
name: fieldData.name,
|
|
1692
1718
|
helper: fieldData.helper,
|
|
@@ -1694,25 +1720,25 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1694
1720
|
formItemLayout: formItemLayout,
|
|
1695
1721
|
required: true,
|
|
1696
1722
|
otherProps: _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})
|
|
1697
|
-
}) : null, type === _constants.
|
|
1723
|
+
}) : null, type === _constants.cardConfig.contentItemType.customSelect ? contentItem.component : null, type === _constants.cardConfig.contentItemType.radio ? _this.renderFormSelect(fieldData.label, fieldData.name, function () {
|
|
1698
1724
|
return _this.renderFormRadioCore((0, _tools.refitCommonData)((0, _tools.isArray)(contentItem.listData) ? contentItem.listData : []));
|
|
1699
|
-
}, fieldData.helper || '', (0, _tools.isFunction)(contentItem.onChangeCallback) ? contentItem.onChangeCallback : null, formItemLayout, true, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.
|
|
1725
|
+
}, fieldData.helper || '', (0, _tools.isFunction)(contentItem.onChangeCallback) ? contentItem.onChangeCallback : null, formItemLayout, true, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.cardConfig.contentItemType.whetherRadio ? _this.renderFormWhetherRadio(fieldData.label, fieldData.name, fieldData.helper, contentItem.onChangeCallback, formItemLayout, true, _objectSpread(_objectSpread({}, {}), contentItem.otherProps || {})) : null, type === _constants.cardConfig.contentItemType.customRadio ? contentItem.component : null, type === _constants.cardConfig.contentItemType.onlyShowText ? _this.renderFormOnlyShowText(fieldData.label, contentItem.value, ((0, _tools.isUndefined)(contentItem.showHelper) ? false : contentItem.showHelper || false) ? fieldData.helper || '' : '', formItemLayout) : null, type === _constants.cardConfig.contentItemType.innerComponent ? _this.renderFormInnerComponent(fieldData.label, contentItem.component, fieldData.helper, formItemLayout, require) : null, type === _constants.cardConfig.contentItemType.save ? _this.renderFormActionItem(_this.renderSaveButton(contentItem.config || {}), formItemLayout) : null, type === _constants.cardConfig.contentItemType.button ? _this.renderFormButton(contentItem.config || {}, formItemLayout) : null, type === _constants.cardConfig.contentItemType.actionList ? /*#__PURE__*/_react["default"].createElement(_space["default"], {
|
|
1700
1726
|
split: (0, _tools.isBoolean)(contentItem.split || false) ? contentItem.split || false ? /*#__PURE__*/_react["default"].createElement(_divider["default"], {
|
|
1701
1727
|
type: "vertical"
|
|
1702
1728
|
}) : null : contentItem.split
|
|
1703
|
-
}, _this.
|
|
1729
|
+
}, _this.buildEveryCardActionList({
|
|
1704
1730
|
keyPrefix: "form_card_".concat(contentIndex, "_action_key"),
|
|
1705
1731
|
configList: contentItem.config || []
|
|
1706
|
-
})) : null, type === _constants.
|
|
1732
|
+
})) : null, type === _constants.cardConfig.contentItemType.component ? contentItem.component || null : null, type === _constants.cardConfig.contentItemType.jsonView ? _this.renderJsonView(contentItem.value) : null, type === _constants.cardConfig.contentItemType.nowTime ? _this.renderFormNowTimeField({
|
|
1707
1733
|
formItemLayout: formItemLayout
|
|
1708
1734
|
}) : null);
|
|
1709
1735
|
}) : null);
|
|
1710
1736
|
};
|
|
1711
1737
|
|
|
1712
|
-
_this.
|
|
1713
|
-
var
|
|
1714
|
-
keyPrefix =
|
|
1715
|
-
configList =
|
|
1738
|
+
_this.buildEveryCardActionList = function (_ref6) {
|
|
1739
|
+
var _ref6$keyPrefix = _ref6.keyPrefix,
|
|
1740
|
+
keyPrefix = _ref6$keyPrefix === void 0 ? '' : _ref6$keyPrefix,
|
|
1741
|
+
configList = _ref6.configList;
|
|
1716
1742
|
var list = [];
|
|
1717
1743
|
((0, _tools.isArray)(configList) ? configList : []).forEach(function (item, index) {
|
|
1718
1744
|
if ((item || null) != null) {
|
|
@@ -1734,42 +1760,42 @@ var Common = /*#__PURE__*/function (_Core) {
|
|
|
1734
1760
|
var itemAdjust = item;
|
|
1735
1761
|
|
|
1736
1762
|
switch (buildType) {
|
|
1737
|
-
case _constants.
|
|
1763
|
+
case _constants.cardConfig.extraBuildType.refresh:
|
|
1738
1764
|
itemAdjust = _this.renderRefreshButton();
|
|
1739
1765
|
break;
|
|
1740
1766
|
|
|
1741
|
-
case _constants.
|
|
1767
|
+
case _constants.cardConfig.extraBuildType.save:
|
|
1742
1768
|
itemAdjust = _this.renderSaveButton(item);
|
|
1743
1769
|
break;
|
|
1744
1770
|
|
|
1745
|
-
case _constants.
|
|
1771
|
+
case _constants.cardConfig.extraBuildType.generalButton:
|
|
1746
1772
|
itemAdjust = _this.renderGeneralButton(item);
|
|
1747
1773
|
break;
|
|
1748
1774
|
|
|
1749
|
-
case _constants.
|
|
1775
|
+
case _constants.cardConfig.extraBuildType.button:
|
|
1750
1776
|
itemAdjust = (0, _FunctionComponent.buildButton)(item);
|
|
1751
1777
|
break;
|
|
1752
1778
|
|
|
1753
|
-
case _constants.
|
|
1779
|
+
case _constants.cardConfig.extraBuildType.dropdown:
|
|
1754
1780
|
itemAdjust = (0, _FunctionComponent.buildDropdown)(item);
|
|
1755
1781
|
break;
|
|
1756
1782
|
|
|
1757
|
-
case _constants.
|
|
1783
|
+
case _constants.cardConfig.extraBuildType.dropdownButton:
|
|
1758
1784
|
itemAdjust = (0, _FunctionComponent.buildDropdownButton)(item);
|
|
1759
1785
|
break;
|
|
1760
1786
|
|
|
1761
|
-
case _constants.
|
|
1787
|
+
case _constants.cardConfig.extraBuildType.dropdownEllipsis:
|
|
1762
1788
|
itemAdjust = (0, _FunctionComponent.buildDropdownEllipsis)(item);
|
|
1763
1789
|
break;
|
|
1764
1790
|
|
|
1765
|
-
case _constants.
|
|
1791
|
+
case _constants.cardConfig.extraBuildType.iconInfo:
|
|
1766
1792
|
itemAdjust = /*#__PURE__*/_react["default"].createElement(_IconInfo["default"], {
|
|
1767
1793
|
icon: icon,
|
|
1768
1794
|
text: text
|
|
1769
1795
|
});
|
|
1770
1796
|
break;
|
|
1771
1797
|
|
|
1772
|
-
case _constants.
|
|
1798
|
+
case _constants.cardConfig.extraBuildType.component:
|
|
1773
1799
|
itemAdjust = componentSource || null;
|
|
1774
1800
|
break;
|
|
1775
1801
|
|