@luck-design-biz/luckda 1.0.1-2 → 1.0.1-3
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/components/LdFormList/index.js +4 -2
- package/es/components/LdGridForm/index.js +34 -24
- package/es/locales/zh-CN.js +3 -3
- package/es/lowcode/painter/components/field-setting/SettingUI.js +8 -4
- package/es/lowcode/view/lc-components/Form/index.js +2 -1
- package/lib/components/LdFormList/index.js +4 -2
- package/lib/components/LdGridForm/index.js +34 -24
- package/lib/locales/zh-CN.js +3 -3
- package/lib/lowcode/painter/components/field-setting/SettingUI.js +8 -4
- package/lib/lowcode/view/lc-components/Form/index.js +2 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
|
6
6
|
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
7
7
|
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
8
8
|
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
9
|
-
var _excluded = ["namespace", "formState", "formMode", "formOperates", "loading", "apiRef", "wrapperRef", "readOnly", "mainFormLdId", "renderFormList", "renderAffixLeft", "renderAffixRight", "beforeSubmit", "showSaveBtn", "saveBtnTitle", "affixLayout", "getContainer", "onValueChange", "afterSubmit", "renderFormExtra", "bpmButtonProps", "setVerifyRules", "afterSubmitLoading"],
|
|
9
|
+
var _excluded = ["namespace", "formState", "formMode", "formOperates", "loading", "apiRef", "wrapperRef", "readOnly", "mainFormLdId", "renderFormList", "renderAffixLeft", "renderAffixRight", "beforeSubmit", "showSaveBtn", "saveBtnTitle", "affixLayout", "getContainer", "onValueChange", "afterSubmit", "renderFormExtra", "bpmButtonProps", "setVerifyRules", "afterSubmitLoading", "showConfigBtn"],
|
|
10
10
|
_excluded2 = ["dataSets", "doAction", "resources"],
|
|
11
11
|
_excluded3 = ["id", "header", "title", "readOnly", "extraConfig", "renderTopLeft", "serial"],
|
|
12
12
|
_excluded4 = ["ldId", "initData", "overModel"];
|
|
@@ -59,6 +59,8 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
59
59
|
bpmButtonProps = _ref$bpmButtonProps === void 0 ? {} : _ref$bpmButtonProps,
|
|
60
60
|
setVerifyRules = _ref.setVerifyRules,
|
|
61
61
|
afterSubmitLoading = _ref.afterSubmitLoading,
|
|
62
|
+
_ref$showConfigBtn = _ref.showConfigBtn,
|
|
63
|
+
showConfigBtn = _ref$showConfigBtn === void 0 ? true : _ref$showConfigBtn,
|
|
62
64
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
63
65
|
var PRIMARY = window.appConfig.constraintKeys.PRIMARY;
|
|
64
66
|
var currentValueRef = useRef(null);
|
|
@@ -121,7 +123,7 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
121
123
|
return /*#__PURE__*/React.createElement(FormBtn, _extends({
|
|
122
124
|
type: type,
|
|
123
125
|
formId: formId,
|
|
124
|
-
showConfigBtn:
|
|
126
|
+
showConfigBtn: showConfigBtn
|
|
125
127
|
}, extraConfig));
|
|
126
128
|
});
|
|
127
129
|
|
|
@@ -70,33 +70,43 @@ var buildLdGridForm = function buildLdGridForm(_ref) {
|
|
|
70
70
|
var keys = isEmpty(fields) ? Object.keys(columnsObj) : Object.keys(fieldsObj);
|
|
71
71
|
var _defaultValues = {};
|
|
72
72
|
var _nodes = reduce(keys, function (result, key) {
|
|
73
|
+
var _customColumn;
|
|
73
74
|
var setting = fieldsObj[key];
|
|
74
75
|
var col = columnsObj[key];
|
|
75
|
-
if (col !== null && col !== void 0 && col.isShowInForm) {
|
|
76
|
-
|
|
77
|
-
var customColumn = columnsRewrite.find(function (column) {
|
|
78
|
-
return column.field === col.aliaName;
|
|
79
|
-
}) || {};
|
|
80
|
-
if (col.isReadOnly) customColumn = _objectSpread(_objectSpread({}, customColumn), {}, {
|
|
81
|
-
editable: false,
|
|
82
|
-
mode: 'grid'
|
|
83
|
-
});
|
|
84
|
-
_defaultValues = _objectSpread(_objectSpread({}, _defaultValues), {}, _defineProperty(_defineProperty({}, col.aliaName, col['optDefaultValue']), "".concat(col.aliaName, "_virtual"), col['optDefaultValueCvt']));
|
|
85
|
-
var newCol = _objectSpread(_objectSpread({}, col), {}, {
|
|
86
|
-
setVerifyRules: setVerifyRules,
|
|
87
|
-
fieldName: (setting === null || setting === void 0 ? void 0 : setting.fieldAliasName) || col.fieldName
|
|
88
|
-
});
|
|
89
|
-
var defaultSet = ['width', 'align', 'headerAlign', 'pinned', 'tip'];
|
|
90
|
-
result.push(getFormColumn(type, newCol, _objectSpread(_objectSpread(_objectSpread({}, pick(setting, defaultSet)), customColumn), {}, {
|
|
91
|
-
formItemRewrite: _objectSpread(_objectSpread({}, (_customColumn = customColumn) === null || _customColumn === void 0 ? void 0 : _customColumn.formItemRewrite), {}, {
|
|
92
|
-
moduleCode: moduleCode,
|
|
93
|
-
formRef: formRef,
|
|
94
|
-
formMode: formMode,
|
|
95
|
-
render: setting === null || setting === void 0 ? void 0 : setting.render,
|
|
96
|
-
setting: omit(setting, [].concat(defaultSet, ['uid', 'field', 'render']))
|
|
97
|
-
})
|
|
98
|
-
})));
|
|
76
|
+
if (!(col !== null && col !== void 0 && col.isShowInForm) && !(col !== null && col !== void 0 && col.isShowInGrid)) {
|
|
77
|
+
return result;
|
|
99
78
|
}
|
|
79
|
+
var customColumn = columnsRewrite.find(function (column) {
|
|
80
|
+
return column.field === col.aliaName;
|
|
81
|
+
}) || {};
|
|
82
|
+
if (col !== null && col !== void 0 && col.isShowInForm && !(col !== null && col !== void 0 && col.isShowInGrid)) {
|
|
83
|
+
customColumn.mode = 'form';
|
|
84
|
+
} else if (!(col !== null && col !== void 0 && col.isShowInForm) && col !== null && col !== void 0 && col.isShowInGrid) {
|
|
85
|
+
customColumn.mode = 'grid';
|
|
86
|
+
}
|
|
87
|
+
if (col.isReadOnly) customColumn = _objectSpread(_objectSpread({}, customColumn), {}, {
|
|
88
|
+
editable: false,
|
|
89
|
+
formItemProps: function formItemProps() {
|
|
90
|
+
return {
|
|
91
|
+
readOnly: true
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
_defaultValues = _objectSpread(_objectSpread({}, _defaultValues), {}, _defineProperty(_defineProperty({}, col.aliaName, col['optDefaultValue']), "".concat(col.aliaName, "_virtual"), col['optDefaultValueCvt']));
|
|
96
|
+
var newCol = _objectSpread(_objectSpread({}, col), {}, {
|
|
97
|
+
setVerifyRules: setVerifyRules,
|
|
98
|
+
fieldName: (setting === null || setting === void 0 ? void 0 : setting.fieldAliasName) || col.fieldName
|
|
99
|
+
});
|
|
100
|
+
var defaultSet = ['width', 'align', 'headerAlign', 'pinned', 'tip', 'formMode'];
|
|
101
|
+
result.push(getFormColumn(type, newCol, _objectSpread(_objectSpread(_objectSpread({}, pick(setting, defaultSet)), customColumn), {}, {
|
|
102
|
+
formItemRewrite: _objectSpread(_objectSpread({}, (_customColumn = customColumn) === null || _customColumn === void 0 ? void 0 : _customColumn.formItemRewrite), {}, {
|
|
103
|
+
moduleCode: moduleCode,
|
|
104
|
+
formRef: formRef,
|
|
105
|
+
formMode: formMode,
|
|
106
|
+
render: setting === null || setting === void 0 ? void 0 : setting.render,
|
|
107
|
+
setting: omit(setting, [].concat(defaultSet, ['uid', 'field', 'render']))
|
|
108
|
+
})
|
|
109
|
+
})));
|
|
100
110
|
return result;
|
|
101
111
|
}, []);
|
|
102
112
|
defaultValues.current = _defaultValues;
|
package/es/locales/zh-CN.js
CHANGED
|
@@ -227,15 +227,15 @@ export default {
|
|
|
227
227
|
"luckda.lowcode.painter.panel-section.fieldsSetting.fixed.none": "不固定",
|
|
228
228
|
"luckda.lowcode.painter.panel-section.fieldsSetting.fixed.left": "左",
|
|
229
229
|
"luckda.lowcode.painter.panel-section.fieldsSetting.fixed.right": "右",
|
|
230
|
-
"luckda.lowcode.painter.panel-section.fieldsSetting.formMode.single": "
|
|
231
|
-
"luckda.lowcode.painter.panel-section.fieldsSetting.formMode.bulk": "
|
|
230
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.formMode.single": "单行",
|
|
231
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.formMode.bulk": "批量",
|
|
232
232
|
"luckda.lowcode.painter.delete.tip": "确定删除吗?",
|
|
233
233
|
"luckda.lowcode.painter.panel-section.fieldsSetting.width": "列宽",
|
|
234
234
|
"luckda.lowcode.painter.panel-section.fieldsSetting.align": "内容对齐",
|
|
235
235
|
"luckda.lowcode.painter.panel-section.fieldsSetting.headerAlign": "表头对齐",
|
|
236
236
|
"luckda.lowcode.painter.panel-section.fieldsSetting.pinned": "固定列",
|
|
237
237
|
"luckda.lowcode.painter.panel-section.fieldsSetting.tip": "过长提示",
|
|
238
|
-
"luckda.lowcode.painter.panel-section.fieldsSetting.formMode": "
|
|
238
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.formMode": "修改方式",
|
|
239
239
|
"luckda.lowcode.painter.panel-section.fieldsSetting.fieldColumn": "占列数",
|
|
240
240
|
"luckda.lowcode.painter.panel-section.fieldsSetting.isEqual": "唯一校验",
|
|
241
241
|
"luckda.lowcode.painter.panel-section.fieldsSetting.required": "是否必填",
|
|
@@ -61,13 +61,13 @@ var _PINNED_OPTIONS_ = [{
|
|
|
61
61
|
var _FORM_MODE_OPTIONS_ = [{
|
|
62
62
|
label: formatMessage({
|
|
63
63
|
id: "".concat(_I18N_PREFIX_, ".formMode.single"),
|
|
64
|
-
label: '
|
|
64
|
+
label: '单行'
|
|
65
65
|
}),
|
|
66
66
|
value: 'single'
|
|
67
67
|
}, {
|
|
68
68
|
label: formatMessage({
|
|
69
69
|
id: "".concat(_I18N_PREFIX_, ".formMode.bulk"),
|
|
70
|
-
label: '
|
|
70
|
+
label: '批量'
|
|
71
71
|
}),
|
|
72
72
|
value: 'bulk'
|
|
73
73
|
}];
|
|
@@ -84,6 +84,10 @@ var StyledRadio = styled(Radio.Group).withConfig({
|
|
|
84
84
|
displayName: "StyledRadio",
|
|
85
85
|
componentId: "luckda-6530__sc-1n41f3z-2"
|
|
86
86
|
})(["span.ant-radio + *{padding-left:4px;padding-right:4px;}"]);
|
|
87
|
+
var StyledCheckbox = styled(Checkbox.Group).withConfig({
|
|
88
|
+
displayName: "StyledCheckbox",
|
|
89
|
+
componentId: "luckda-6530__sc-1n41f3z-3"
|
|
90
|
+
})([".ant-checkbox-wrapper{font-size:12px;}"]);
|
|
87
91
|
var _DEFAULT_RENDER_CODE = "function render(value, data, rowIndex, params) { \n return value;\n}";
|
|
88
92
|
var SettingUI = function SettingUI(_ref) {
|
|
89
93
|
var loading = _ref.loading,
|
|
@@ -333,9 +337,9 @@ var SettingUI = function SettingUI(_ref) {
|
|
|
333
337
|
}))), component === 'tableForm' && /*#__PURE__*/React.createElement(PanelItem, {
|
|
334
338
|
label: formatMessage({
|
|
335
339
|
id: "".concat(_I18N_PREFIX_, ".formMode"),
|
|
336
|
-
label: '
|
|
340
|
+
label: '修改方式'
|
|
337
341
|
})
|
|
338
|
-
}, /*#__PURE__*/React.createElement(
|
|
342
|
+
}, /*#__PURE__*/React.createElement(StyledCheckbox, {
|
|
339
343
|
options: _FORM_MODE_OPTIONS_,
|
|
340
344
|
defaultValue: fieldData.formMode ? [fieldData.formMode] : ['single', 'bulk'],
|
|
341
345
|
onChange: function onChange(val) {
|
|
@@ -593,7 +593,8 @@ var LCForm = /*#__PURE__*/forwardRef(function (_ref3, ref) {
|
|
|
593
593
|
return (_promiseRef$current = promiseRef.current) === null || _promiseRef$current === void 0 ? void 0 : _promiseRef$current.call.apply(_promiseRef$current, [promiseRef].concat(rest));
|
|
594
594
|
},
|
|
595
595
|
afterInit: afterInit,
|
|
596
|
-
validateErrorCallback: (_promiseRef$current2 = promiseRef.current) === null || _promiseRef$current2 === void 0 ? void 0 : _promiseRef$current2.call(promiseRef)
|
|
596
|
+
validateErrorCallback: (_promiseRef$current2 = promiseRef.current) === null || _promiseRef$current2 === void 0 ? void 0 : _promiseRef$current2.call(promiseRef),
|
|
597
|
+
showConfigBtn: false
|
|
597
598
|
}));
|
|
598
599
|
});
|
|
599
600
|
LCForm.defaultProps = omitBadProps(defaultMeta);
|
|
@@ -31,7 +31,7 @@ var _LdPop = require("../LdPop");
|
|
|
31
31
|
var _model = _interopRequireDefault(require("./model"));
|
|
32
32
|
var _action = require("../../helper/action");
|
|
33
33
|
var _utils2 = require("../../lowcode/engine/provider/ContextProvider/utils");
|
|
34
|
-
var _excluded = ["namespace", "formState", "formMode", "formOperates", "loading", "apiRef", "wrapperRef", "readOnly", "mainFormLdId", "renderFormList", "renderAffixLeft", "renderAffixRight", "beforeSubmit", "showSaveBtn", "saveBtnTitle", "affixLayout", "getContainer", "onValueChange", "afterSubmit", "renderFormExtra", "bpmButtonProps", "setVerifyRules", "afterSubmitLoading"],
|
|
34
|
+
var _excluded = ["namespace", "formState", "formMode", "formOperates", "loading", "apiRef", "wrapperRef", "readOnly", "mainFormLdId", "renderFormList", "renderAffixLeft", "renderAffixRight", "beforeSubmit", "showSaveBtn", "saveBtnTitle", "affixLayout", "getContainer", "onValueChange", "afterSubmit", "renderFormExtra", "bpmButtonProps", "setVerifyRules", "afterSubmitLoading", "showConfigBtn"],
|
|
35
35
|
_excluded2 = ["dataSets", "doAction", "resources"],
|
|
36
36
|
_excluded3 = ["id", "header", "title", "readOnly", "extraConfig", "renderTopLeft", "serial"],
|
|
37
37
|
_excluded4 = ["ldId", "initData", "overModel"];
|
|
@@ -66,6 +66,8 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
66
66
|
bpmButtonProps = _ref$bpmButtonProps === void 0 ? {} : _ref$bpmButtonProps,
|
|
67
67
|
setVerifyRules = _ref.setVerifyRules,
|
|
68
68
|
afterSubmitLoading = _ref.afterSubmitLoading,
|
|
69
|
+
_ref$showConfigBtn = _ref.showConfigBtn,
|
|
70
|
+
showConfigBtn = _ref$showConfigBtn === void 0 ? true : _ref$showConfigBtn,
|
|
69
71
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
70
72
|
var PRIMARY = window.appConfig.constraintKeys.PRIMARY;
|
|
71
73
|
var currentValueRef = (0, _react.useRef)(null);
|
|
@@ -128,7 +130,7 @@ var LdFormList = function LdFormList(_ref) {
|
|
|
128
130
|
return /*#__PURE__*/_react.default.createElement(_FormList.FormBtn, (0, _extends2.default)({
|
|
129
131
|
type: type,
|
|
130
132
|
formId: formId,
|
|
131
|
-
showConfigBtn:
|
|
133
|
+
showConfigBtn: showConfigBtn
|
|
132
134
|
}, extraConfig));
|
|
133
135
|
});
|
|
134
136
|
|
|
@@ -78,33 +78,43 @@ var buildLdGridForm = function buildLdGridForm(_ref) {
|
|
|
78
78
|
var keys = (0, _lodash.isEmpty)(fields) ? Object.keys(columnsObj) : Object.keys(fieldsObj);
|
|
79
79
|
var _defaultValues = {};
|
|
80
80
|
var _nodes = (0, _lodash.reduce)(keys, function (result, key) {
|
|
81
|
+
var _customColumn;
|
|
81
82
|
var setting = fieldsObj[key];
|
|
82
83
|
var col = columnsObj[key];
|
|
83
|
-
if (col !== null && col !== void 0 && col.isShowInForm) {
|
|
84
|
-
|
|
85
|
-
var customColumn = columnsRewrite.find(function (column) {
|
|
86
|
-
return column.field === col.aliaName;
|
|
87
|
-
}) || {};
|
|
88
|
-
if (col.isReadOnly) customColumn = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, customColumn), {}, {
|
|
89
|
-
editable: false,
|
|
90
|
-
mode: 'grid'
|
|
91
|
-
});
|
|
92
|
-
_defaultValues = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, _defaultValues), {}, (0, _defineProperty2.default)((0, _defineProperty2.default)({}, col.aliaName, col['optDefaultValue']), "".concat(col.aliaName, "_virtual"), col['optDefaultValueCvt']));
|
|
93
|
-
var newCol = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, col), {}, {
|
|
94
|
-
setVerifyRules: setVerifyRules,
|
|
95
|
-
fieldName: (setting === null || setting === void 0 ? void 0 : setting.fieldAliasName) || col.fieldName
|
|
96
|
-
});
|
|
97
|
-
var defaultSet = ['width', 'align', 'headerAlign', 'pinned', 'tip'];
|
|
98
|
-
result.push((0, _utils.getFormColumn)(type, newCol, (0, _objectSpread4.default)((0, _objectSpread4.default)((0, _objectSpread4.default)({}, (0, _lodash.pick)(setting, defaultSet)), customColumn), {}, {
|
|
99
|
-
formItemRewrite: (0, _objectSpread4.default)((0, _objectSpread4.default)({}, (_customColumn = customColumn) === null || _customColumn === void 0 ? void 0 : _customColumn.formItemRewrite), {}, {
|
|
100
|
-
moduleCode: moduleCode,
|
|
101
|
-
formRef: formRef,
|
|
102
|
-
formMode: formMode,
|
|
103
|
-
render: setting === null || setting === void 0 ? void 0 : setting.render,
|
|
104
|
-
setting: (0, _lodash.omit)(setting, [].concat(defaultSet, ['uid', 'field', 'render']))
|
|
105
|
-
})
|
|
106
|
-
})));
|
|
84
|
+
if (!(col !== null && col !== void 0 && col.isShowInForm) && !(col !== null && col !== void 0 && col.isShowInGrid)) {
|
|
85
|
+
return result;
|
|
107
86
|
}
|
|
87
|
+
var customColumn = columnsRewrite.find(function (column) {
|
|
88
|
+
return column.field === col.aliaName;
|
|
89
|
+
}) || {};
|
|
90
|
+
if (col !== null && col !== void 0 && col.isShowInForm && !(col !== null && col !== void 0 && col.isShowInGrid)) {
|
|
91
|
+
customColumn.mode = 'form';
|
|
92
|
+
} else if (!(col !== null && col !== void 0 && col.isShowInForm) && col !== null && col !== void 0 && col.isShowInGrid) {
|
|
93
|
+
customColumn.mode = 'grid';
|
|
94
|
+
}
|
|
95
|
+
if (col.isReadOnly) customColumn = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, customColumn), {}, {
|
|
96
|
+
editable: false,
|
|
97
|
+
formItemProps: function formItemProps() {
|
|
98
|
+
return {
|
|
99
|
+
readOnly: true
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
});
|
|
103
|
+
_defaultValues = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, _defaultValues), {}, (0, _defineProperty2.default)((0, _defineProperty2.default)({}, col.aliaName, col['optDefaultValue']), "".concat(col.aliaName, "_virtual"), col['optDefaultValueCvt']));
|
|
104
|
+
var newCol = (0, _objectSpread4.default)((0, _objectSpread4.default)({}, col), {}, {
|
|
105
|
+
setVerifyRules: setVerifyRules,
|
|
106
|
+
fieldName: (setting === null || setting === void 0 ? void 0 : setting.fieldAliasName) || col.fieldName
|
|
107
|
+
});
|
|
108
|
+
var defaultSet = ['width', 'align', 'headerAlign', 'pinned', 'tip', 'formMode'];
|
|
109
|
+
result.push((0, _utils.getFormColumn)(type, newCol, (0, _objectSpread4.default)((0, _objectSpread4.default)((0, _objectSpread4.default)({}, (0, _lodash.pick)(setting, defaultSet)), customColumn), {}, {
|
|
110
|
+
formItemRewrite: (0, _objectSpread4.default)((0, _objectSpread4.default)({}, (_customColumn = customColumn) === null || _customColumn === void 0 ? void 0 : _customColumn.formItemRewrite), {}, {
|
|
111
|
+
moduleCode: moduleCode,
|
|
112
|
+
formRef: formRef,
|
|
113
|
+
formMode: formMode,
|
|
114
|
+
render: setting === null || setting === void 0 ? void 0 : setting.render,
|
|
115
|
+
setting: (0, _lodash.omit)(setting, [].concat(defaultSet, ['uid', 'field', 'render']))
|
|
116
|
+
})
|
|
117
|
+
})));
|
|
108
118
|
return result;
|
|
109
119
|
}, []);
|
|
110
120
|
defaultValues.current = _defaultValues;
|
package/lib/locales/zh-CN.js
CHANGED
|
@@ -233,15 +233,15 @@ var _default = exports.default = {
|
|
|
233
233
|
"luckda.lowcode.painter.panel-section.fieldsSetting.fixed.none": "不固定",
|
|
234
234
|
"luckda.lowcode.painter.panel-section.fieldsSetting.fixed.left": "左",
|
|
235
235
|
"luckda.lowcode.painter.panel-section.fieldsSetting.fixed.right": "右",
|
|
236
|
-
"luckda.lowcode.painter.panel-section.fieldsSetting.formMode.single": "
|
|
237
|
-
"luckda.lowcode.painter.panel-section.fieldsSetting.formMode.bulk": "
|
|
236
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.formMode.single": "单行",
|
|
237
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.formMode.bulk": "批量",
|
|
238
238
|
"luckda.lowcode.painter.delete.tip": "确定删除吗?",
|
|
239
239
|
"luckda.lowcode.painter.panel-section.fieldsSetting.width": "列宽",
|
|
240
240
|
"luckda.lowcode.painter.panel-section.fieldsSetting.align": "内容对齐",
|
|
241
241
|
"luckda.lowcode.painter.panel-section.fieldsSetting.headerAlign": "表头对齐",
|
|
242
242
|
"luckda.lowcode.painter.panel-section.fieldsSetting.pinned": "固定列",
|
|
243
243
|
"luckda.lowcode.painter.panel-section.fieldsSetting.tip": "过长提示",
|
|
244
|
-
"luckda.lowcode.painter.panel-section.fieldsSetting.formMode": "
|
|
244
|
+
"luckda.lowcode.painter.panel-section.fieldsSetting.formMode": "修改方式",
|
|
245
245
|
"luckda.lowcode.painter.panel-section.fieldsSetting.fieldColumn": "占列数",
|
|
246
246
|
"luckda.lowcode.painter.panel-section.fieldsSetting.isEqual": "唯一校验",
|
|
247
247
|
"luckda.lowcode.painter.panel-section.fieldsSetting.required": "是否必填",
|
|
@@ -69,13 +69,13 @@ var _PINNED_OPTIONS_ = [{
|
|
|
69
69
|
var _FORM_MODE_OPTIONS_ = [{
|
|
70
70
|
label: (0, _utils.formatMessage)({
|
|
71
71
|
id: "".concat(_I18N_PREFIX_, ".formMode.single"),
|
|
72
|
-
label: '
|
|
72
|
+
label: '单行'
|
|
73
73
|
}),
|
|
74
74
|
value: 'single'
|
|
75
75
|
}, {
|
|
76
76
|
label: (0, _utils.formatMessage)({
|
|
77
77
|
id: "".concat(_I18N_PREFIX_, ".formMode.bulk"),
|
|
78
|
-
label: '
|
|
78
|
+
label: '批量'
|
|
79
79
|
}),
|
|
80
80
|
value: 'bulk'
|
|
81
81
|
}];
|
|
@@ -92,6 +92,10 @@ var StyledRadio = (0, _styledComponents.default)(_antd.Radio.Group).withConfig({
|
|
|
92
92
|
displayName: "StyledRadio",
|
|
93
93
|
componentId: "luckda-6530__sc-1n41f3z-2"
|
|
94
94
|
})(["span.ant-radio + *{padding-left:4px;padding-right:4px;}"]);
|
|
95
|
+
var StyledCheckbox = (0, _styledComponents.default)(_antd.Checkbox.Group).withConfig({
|
|
96
|
+
displayName: "StyledCheckbox",
|
|
97
|
+
componentId: "luckda-6530__sc-1n41f3z-3"
|
|
98
|
+
})([".ant-checkbox-wrapper{font-size:12px;}"]);
|
|
95
99
|
var _DEFAULT_RENDER_CODE = "function render(value, data, rowIndex, params) { \n return value;\n}";
|
|
96
100
|
var SettingUI = function SettingUI(_ref) {
|
|
97
101
|
var loading = _ref.loading,
|
|
@@ -341,9 +345,9 @@ var SettingUI = function SettingUI(_ref) {
|
|
|
341
345
|
}))), component === 'tableForm' && /*#__PURE__*/_react.default.createElement(_PanelItem.default, {
|
|
342
346
|
label: (0, _utils.formatMessage)({
|
|
343
347
|
id: "".concat(_I18N_PREFIX_, ".formMode"),
|
|
344
|
-
label: '
|
|
348
|
+
label: '修改方式'
|
|
345
349
|
})
|
|
346
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
350
|
+
}, /*#__PURE__*/_react.default.createElement(StyledCheckbox, {
|
|
347
351
|
options: _FORM_MODE_OPTIONS_,
|
|
348
352
|
defaultValue: fieldData.formMode ? [fieldData.formMode] : ['single', 'bulk'],
|
|
349
353
|
onChange: function onChange(val) {
|
|
@@ -601,7 +601,8 @@ var LCForm = /*#__PURE__*/(0, _react.forwardRef)(function (_ref3, ref) {
|
|
|
601
601
|
return (_promiseRef$current = promiseRef.current) === null || _promiseRef$current === void 0 ? void 0 : _promiseRef$current.call.apply(_promiseRef$current, [promiseRef].concat(rest));
|
|
602
602
|
},
|
|
603
603
|
afterInit: afterInit,
|
|
604
|
-
validateErrorCallback: (_promiseRef$current2 = promiseRef.current) === null || _promiseRef$current2 === void 0 ? void 0 : _promiseRef$current2.call(promiseRef)
|
|
604
|
+
validateErrorCallback: (_promiseRef$current2 = promiseRef.current) === null || _promiseRef$current2 === void 0 ? void 0 : _promiseRef$current2.call(promiseRef),
|
|
605
|
+
showConfigBtn: false
|
|
605
606
|
}));
|
|
606
607
|
});
|
|
607
608
|
LCForm.defaultProps = (0, _helper.omitBadProps)(_formPropsDefault.default);
|