@fle-ui/plus-dynamic-form 1.1.4-alpha.0 → 1.1.5-alpha.0
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 +4 -3
- package/lib/index.js +4 -3
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -31,8 +31,8 @@ var searchFormTypeToDynamicFormType = {
|
|
|
31
31
|
};
|
|
32
32
|
var searchFormTypeToDynamicFormTypeRender = {
|
|
33
33
|
// 处理扩展字段复杂搜索
|
|
34
|
-
date: function date(text, record, key) {
|
|
35
|
-
return record[key];
|
|
34
|
+
date: function date(text, record, key, dateType) {
|
|
35
|
+
return record[key] ? dayjs(record[key]).format(dateType) : '-';
|
|
36
36
|
},
|
|
37
37
|
input: function input(text, record, key) {
|
|
38
38
|
return record[key];
|
|
@@ -192,7 +192,8 @@ function PlusDynamicForm(props, ref) {
|
|
|
192
192
|
}
|
|
193
193
|
}, props, {
|
|
194
194
|
form: form,
|
|
195
|
-
labelWrap: true
|
|
195
|
+
labelWrap: true,
|
|
196
|
+
autoFocusFirstInput: false
|
|
196
197
|
}), // 遍历系统字段
|
|
197
198
|
formData === null || formData === void 0 ? void 0 : formData.map(function (item) {
|
|
198
199
|
switch (item.fieldType) {
|
package/lib/index.js
CHANGED
|
@@ -39,8 +39,8 @@ var searchFormTypeToDynamicFormType = exports.searchFormTypeToDynamicFormType =
|
|
|
39
39
|
};
|
|
40
40
|
var searchFormTypeToDynamicFormTypeRender = exports.searchFormTypeToDynamicFormTypeRender = {
|
|
41
41
|
// 处理扩展字段复杂搜索
|
|
42
|
-
date: function date(text, record, key) {
|
|
43
|
-
return record[key];
|
|
42
|
+
date: function date(text, record, key, dateType) {
|
|
43
|
+
return record[key] ? (0, _dayjs.default)(record[key]).format(dateType) : '-';
|
|
44
44
|
},
|
|
45
45
|
input: function input(text, record, key) {
|
|
46
46
|
return record[key];
|
|
@@ -200,7 +200,8 @@ function PlusDynamicForm(props, ref) {
|
|
|
200
200
|
}
|
|
201
201
|
}, props, {
|
|
202
202
|
form: form,
|
|
203
|
-
labelWrap: true
|
|
203
|
+
labelWrap: true,
|
|
204
|
+
autoFocusFirstInput: false
|
|
204
205
|
}), // 遍历系统字段
|
|
205
206
|
formData === null || formData === void 0 ? void 0 : formData.map(function (item) {
|
|
206
207
|
switch (item.fieldType) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fle-ui/plus-dynamic-form",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5-alpha.0",
|
|
4
4
|
"description": "@fle-ui/plus-dynamic-form",
|
|
5
5
|
"author": "liqing19931031 <liqing@qq.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"publishConfig": {
|
|
28
28
|
"access": "public"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "3694dcefd08215abdfa4aa83072bc3c563f9121b",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"lodash": "^4.17.21"
|
|
33
33
|
}
|