@fle-ui/plus-dynamic-form 1.1.1 → 1.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/index.js +3 -8
- package/lib/index.js +3 -8
- package/package.json +1 -1
package/es/index.js
CHANGED
|
@@ -170,9 +170,7 @@ function PlusDynamicForm(props, ref) {
|
|
|
170
170
|
useEffect(function () {
|
|
171
171
|
init();
|
|
172
172
|
}, []);
|
|
173
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
174
|
-
style: propsContainStyles || containStyles
|
|
175
|
-
}, "\u5907\u7528\u5B57\u6BB5"), (formData === null || formData === void 0 ? void 0 : formData.length) > 0 ? /*#__PURE__*/React.createElement(ProForm, _extends({
|
|
173
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, (formData === null || formData === void 0 ? void 0 : formData.length) > 0 ? /*#__PURE__*/React.createElement(ProForm, _extends({
|
|
176
174
|
submitter: false,
|
|
177
175
|
layout: "horizontal",
|
|
178
176
|
grid: true,
|
|
@@ -181,10 +179,6 @@ function PlusDynamicForm(props, ref) {
|
|
|
181
179
|
},
|
|
182
180
|
labelCol: {
|
|
183
181
|
flex: '110px'
|
|
184
|
-
},
|
|
185
|
-
colProps: {
|
|
186
|
-
xl: 8,
|
|
187
|
-
md: 12
|
|
188
182
|
}
|
|
189
183
|
}, props, {
|
|
190
184
|
form: form
|
|
@@ -213,7 +207,8 @@ function PlusDynamicForm(props, ref) {
|
|
|
213
207
|
label: item.title,
|
|
214
208
|
placeholder: "\u8BF7\u586B\u5165".concat(item.title),
|
|
215
209
|
fieldProps: {
|
|
216
|
-
maxLength: item.fieldLength
|
|
210
|
+
maxLength: item.fieldLength,
|
|
211
|
+
showCount: true
|
|
217
212
|
},
|
|
218
213
|
rules: [{
|
|
219
214
|
required: item.required,
|
package/lib/index.js
CHANGED
|
@@ -178,9 +178,7 @@ function PlusDynamicForm(props, ref) {
|
|
|
178
178
|
(0, _react.useEffect)(function () {
|
|
179
179
|
init();
|
|
180
180
|
}, []);
|
|
181
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(
|
|
182
|
-
style: propsContainStyles || containStyles
|
|
183
|
-
}, "\u5907\u7528\u5B57\u6BB5"), (formData === null || formData === void 0 ? void 0 : formData.length) > 0 ? /*#__PURE__*/_react.default.createElement(_proComponents.ProForm, _extends({
|
|
181
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (formData === null || formData === void 0 ? void 0 : formData.length) > 0 ? /*#__PURE__*/_react.default.createElement(_proComponents.ProForm, _extends({
|
|
184
182
|
submitter: false,
|
|
185
183
|
layout: "horizontal",
|
|
186
184
|
grid: true,
|
|
@@ -189,10 +187,6 @@ function PlusDynamicForm(props, ref) {
|
|
|
189
187
|
},
|
|
190
188
|
labelCol: {
|
|
191
189
|
flex: '110px'
|
|
192
|
-
},
|
|
193
|
-
colProps: {
|
|
194
|
-
xl: 8,
|
|
195
|
-
md: 12
|
|
196
190
|
}
|
|
197
191
|
}, props, {
|
|
198
192
|
form: form
|
|
@@ -221,7 +215,8 @@ function PlusDynamicForm(props, ref) {
|
|
|
221
215
|
label: item.title,
|
|
222
216
|
placeholder: "\u8BF7\u586B\u5165".concat(item.title),
|
|
223
217
|
fieldProps: {
|
|
224
|
-
maxLength: item.fieldLength
|
|
218
|
+
maxLength: item.fieldLength,
|
|
219
|
+
showCount: true
|
|
225
220
|
},
|
|
226
221
|
rules: [{
|
|
227
222
|
required: item.required,
|