@kmkf-fe-packages/services-components 0.7.5-alpha.6 → 0.7.5-alpha.8
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/dist/esm/components/ActualPayment/index.d.ts +1 -1
- package/dist/esm/components/ActualPayment/index.js +15 -9
- package/dist/esm/components/Ordinary/OrdinaryMoney.d.ts +1 -1
- package/dist/esm/components/Ordinary/OrdinaryMoney.js +15 -9
- package/dist/esm/components/Payment/PaymentAmount.d.ts +1 -1
- package/dist/esm/components/Payment/PaymentAmount.js +15 -9
- package/package.json +2 -2
|
@@ -24,7 +24,7 @@ declare class ActualPayment implements ComponentInterface {
|
|
|
24
24
|
name: string;
|
|
25
25
|
filterComponentType: "Rate";
|
|
26
26
|
rules: {
|
|
27
|
-
validator: (value: Array<number>) => Promise<undefined>;
|
|
27
|
+
validator: (_: any, value: Array<number>) => Promise<undefined>;
|
|
28
28
|
}[];
|
|
29
29
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
30
30
|
};
|
|
@@ -72,28 +72,34 @@ var ActualPayment = /*#__PURE__*/_createClass(function ActualPayment(options) {
|
|
|
72
72
|
filterComponentType: 'Rate',
|
|
73
73
|
rules: [{
|
|
74
74
|
validator: function () {
|
|
75
|
-
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(value) {
|
|
75
|
+
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
|
|
76
76
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
77
77
|
while (1) switch (_context.prev = _context.next) {
|
|
78
78
|
case 0:
|
|
79
|
-
if (!((value === null || value === void 0 ? void 0 : value.length)
|
|
80
|
-
_context.next =
|
|
79
|
+
if (!((value === null || value === void 0 ? void 0 : value.length) > 0)) {
|
|
80
|
+
_context.next = 5;
|
|
81
81
|
break;
|
|
82
82
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
_context.next =
|
|
83
|
+
if (!(value !== null && value !== void 0 && value.some(function (v) {
|
|
84
|
+
return isNull(v);
|
|
85
|
+
}))) {
|
|
86
|
+
_context.next = 3;
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
return _context.abrupt("return", Promise.reject(new Error('请输入正确的金额区间范围')));
|
|
90
|
+
case 3:
|
|
91
|
+
if (!(value[0] > value[1])) {
|
|
92
|
+
_context.next = 5;
|
|
87
93
|
break;
|
|
88
94
|
}
|
|
89
95
|
return _context.abrupt("return", Promise.reject(new Error('开始金额必须小于结束金额')));
|
|
90
|
-
case
|
|
96
|
+
case 5:
|
|
91
97
|
case "end":
|
|
92
98
|
return _context.stop();
|
|
93
99
|
}
|
|
94
100
|
}, _callee);
|
|
95
101
|
}));
|
|
96
|
-
function validator(_x) {
|
|
102
|
+
function validator(_x, _x2) {
|
|
97
103
|
return _validator.apply(this, arguments);
|
|
98
104
|
}
|
|
99
105
|
return validator;
|
|
@@ -27,7 +27,7 @@ declare class OrdinaryMoney implements ComponentInterface {
|
|
|
27
27
|
name: string;
|
|
28
28
|
filterComponentType: "Rate";
|
|
29
29
|
rules: {
|
|
30
|
-
validator: (value: Array<number>) => Promise<undefined>;
|
|
30
|
+
validator: (_: any, value: Array<number>) => Promise<undefined>;
|
|
31
31
|
}[];
|
|
32
32
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
33
33
|
};
|
|
@@ -69,28 +69,34 @@ var OrdinaryMoney = /*#__PURE__*/_createClass(function OrdinaryMoney(options) {
|
|
|
69
69
|
filterComponentType: 'Rate',
|
|
70
70
|
rules: [{
|
|
71
71
|
validator: function () {
|
|
72
|
-
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(value) {
|
|
72
|
+
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
|
|
73
73
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
74
74
|
while (1) switch (_context.prev = _context.next) {
|
|
75
75
|
case 0:
|
|
76
|
-
if (!((value === null || value === void 0 ? void 0 : value.length)
|
|
77
|
-
_context.next =
|
|
76
|
+
if (!((value === null || value === void 0 ? void 0 : value.length) > 0)) {
|
|
77
|
+
_context.next = 5;
|
|
78
78
|
break;
|
|
79
79
|
}
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
_context.next =
|
|
80
|
+
if (!(value !== null && value !== void 0 && value.some(function (v) {
|
|
81
|
+
return isNull(v);
|
|
82
|
+
}))) {
|
|
83
|
+
_context.next = 3;
|
|
84
|
+
break;
|
|
85
|
+
}
|
|
86
|
+
return _context.abrupt("return", Promise.reject(new Error('请输入正确的金额区间范围')));
|
|
87
|
+
case 3:
|
|
88
|
+
if (!(value[0] > value[1])) {
|
|
89
|
+
_context.next = 5;
|
|
84
90
|
break;
|
|
85
91
|
}
|
|
86
92
|
return _context.abrupt("return", Promise.reject(new Error('开始金额必须小于结束金额')));
|
|
87
|
-
case
|
|
93
|
+
case 5:
|
|
88
94
|
case "end":
|
|
89
95
|
return _context.stop();
|
|
90
96
|
}
|
|
91
97
|
}, _callee);
|
|
92
98
|
}));
|
|
93
|
-
function validator(_x) {
|
|
99
|
+
function validator(_x, _x2) {
|
|
94
100
|
return _validator.apply(this, arguments);
|
|
95
101
|
}
|
|
96
102
|
return validator;
|
|
@@ -26,7 +26,7 @@ declare class PaymentAmount implements ComponentInterface {
|
|
|
26
26
|
name: string;
|
|
27
27
|
filterComponentType: "Rate";
|
|
28
28
|
rules: {
|
|
29
|
-
validator: (value: Array<number>) => Promise<undefined>;
|
|
29
|
+
validator: (_: any, value: Array<number>) => Promise<undefined>;
|
|
30
30
|
}[];
|
|
31
31
|
filterFn: (value: string) => (i: Record) => boolean;
|
|
32
32
|
};
|
|
@@ -68,28 +68,34 @@ var PaymentAmount = /*#__PURE__*/_createClass(function PaymentAmount(options) {
|
|
|
68
68
|
filterComponentType: 'Rate',
|
|
69
69
|
rules: [{
|
|
70
70
|
validator: function () {
|
|
71
|
-
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(value) {
|
|
71
|
+
var _validator = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_, value) {
|
|
72
72
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
73
73
|
while (1) switch (_context.prev = _context.next) {
|
|
74
74
|
case 0:
|
|
75
|
-
if (!((value === null || value === void 0 ? void 0 : value.length)
|
|
76
|
-
_context.next =
|
|
75
|
+
if (!((value === null || value === void 0 ? void 0 : value.length) > 0)) {
|
|
76
|
+
_context.next = 5;
|
|
77
77
|
break;
|
|
78
78
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
_context.next =
|
|
79
|
+
if (!(value !== null && value !== void 0 && value.some(function (v) {
|
|
80
|
+
return isNull(v);
|
|
81
|
+
}))) {
|
|
82
|
+
_context.next = 3;
|
|
83
|
+
break;
|
|
84
|
+
}
|
|
85
|
+
return _context.abrupt("return", Promise.reject(new Error('请输入正确的金额区间范围')));
|
|
86
|
+
case 3:
|
|
87
|
+
if (!(value[0] > value[1])) {
|
|
88
|
+
_context.next = 5;
|
|
83
89
|
break;
|
|
84
90
|
}
|
|
85
91
|
return _context.abrupt("return", Promise.reject(new Error('开始金额必须小于结束金额')));
|
|
86
|
-
case
|
|
92
|
+
case 5:
|
|
87
93
|
case "end":
|
|
88
94
|
return _context.stop();
|
|
89
95
|
}
|
|
90
96
|
}, _callee);
|
|
91
97
|
}));
|
|
92
|
-
function validator(_x) {
|
|
98
|
+
function validator(_x, _x2) {
|
|
93
99
|
return _validator.apply(this, arguments);
|
|
94
100
|
}
|
|
95
101
|
return validator;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kmkf-fe-packages/services-components",
|
|
3
|
-
"version": "0.7.5-alpha.
|
|
3
|
+
"version": "0.7.5-alpha.8",
|
|
4
4
|
"module": "dist/esm/index.js",
|
|
5
5
|
"typings": "dist/esm/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"gitHooks": {
|
|
41
41
|
"pre-commit": "lint-staged"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "ab1f1d27ae23c0fd6cde520f4d44649c82680aad"
|
|
44
44
|
}
|