@fle-ui/plus-dynamic-form 1.1.5-beta.5 → 1.1.6-beta.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 +3 -3
- package/lib/index.js +3 -3
- package/package.json +2 -2
package/es/index.js
CHANGED
|
@@ -53,7 +53,7 @@ var searchFormTypeToDynamicFormTypeSearch = {
|
|
|
53
53
|
return _defineProperty({}, key, +text);
|
|
54
54
|
},
|
|
55
55
|
date: function date(text, record, key) {
|
|
56
|
-
return _defineProperty({}, key, [dayjs(text[0]).format('YYYY-MM-DD HH:mm:ss'), dayjs(text[1]).format('YYYY-MM-DD
|
|
56
|
+
return _defineProperty({}, key, [dayjs(text[0]).format('YYYY-MM-DD HH:mm:ss'), dayjs(text[1]).format('YYYY-MM-DD') + ' 23:59:59']);
|
|
57
57
|
}
|
|
58
58
|
};
|
|
59
59
|
function PlusDynamicForm(props, ref) {
|
|
@@ -76,7 +76,7 @@ function PlusDynamicForm(props, ref) {
|
|
|
76
76
|
return {
|
|
77
77
|
submit: function () {
|
|
78
78
|
var _submit = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
79
|
-
var res, key, _key;
|
|
79
|
+
var res, key, _res$key$format, _res$key, _key;
|
|
80
80
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
81
81
|
while (1) switch (_context.prev = _context.next) {
|
|
82
82
|
case 0:
|
|
@@ -91,7 +91,7 @@ function PlusDynamicForm(props, ref) {
|
|
|
91
91
|
for (key in res) {
|
|
92
92
|
if (res[key] instanceof dayjs) {
|
|
93
93
|
// 时间类型需要做特殊格式处理
|
|
94
|
-
res[key] = res[key].format('YYYY-MM-DD HH:mm:ss');
|
|
94
|
+
res[key] = (_res$key$format = (_res$key = res[key]).format) === null || _res$key$format === void 0 ? void 0 : _res$key$format.call(_res$key, 'YYYY-MM-DD HH:mm:ss');
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
// 补全 undefined
|
package/lib/index.js
CHANGED
|
@@ -61,7 +61,7 @@ var searchFormTypeToDynamicFormTypeSearch = exports.searchFormTypeToDynamicFormT
|
|
|
61
61
|
return _defineProperty({}, key, +text);
|
|
62
62
|
},
|
|
63
63
|
date: function date(text, record, key) {
|
|
64
|
-
return _defineProperty({}, key, [(0, _dayjs.default)(text[0]).format('YYYY-MM-DD HH:mm:ss'), (0, _dayjs.default)(text[1]).format('YYYY-MM-DD
|
|
64
|
+
return _defineProperty({}, key, [(0, _dayjs.default)(text[0]).format('YYYY-MM-DD HH:mm:ss'), (0, _dayjs.default)(text[1]).format('YYYY-MM-DD') + ' 23:59:59']);
|
|
65
65
|
}
|
|
66
66
|
};
|
|
67
67
|
function PlusDynamicForm(props, ref) {
|
|
@@ -84,7 +84,7 @@ function PlusDynamicForm(props, ref) {
|
|
|
84
84
|
return {
|
|
85
85
|
submit: function () {
|
|
86
86
|
var _submit = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
87
|
-
var res, key, _key;
|
|
87
|
+
var res, key, _res$key$format, _res$key, _key;
|
|
88
88
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
89
89
|
while (1) switch (_context.prev = _context.next) {
|
|
90
90
|
case 0:
|
|
@@ -99,7 +99,7 @@ function PlusDynamicForm(props, ref) {
|
|
|
99
99
|
for (key in res) {
|
|
100
100
|
if (res[key] instanceof _dayjs.default) {
|
|
101
101
|
// 时间类型需要做特殊格式处理
|
|
102
|
-
res[key] = res[key].format('YYYY-MM-DD HH:mm:ss');
|
|
102
|
+
res[key] = (_res$key$format = (_res$key = res[key]).format) === null || _res$key$format === void 0 ? void 0 : _res$key$format.call(_res$key, 'YYYY-MM-DD HH:mm:ss');
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
// 补全 undefined
|
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.6-beta.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": "c8b2c2660ddd9d063f44506f1c27d407ca0504fe",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"lodash": "^4.17.21"
|
|
33
33
|
}
|