@pisell/private-materials 3.3.17 → 3.3.18
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/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/appointmentBooking/components/Date/index.js +7 -9
- package/lib/components/appointmentBooking/components/Date/index.js +0 -4
- package/package.json +2 -2
|
@@ -55,7 +55,7 @@ var Date = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
55
55
|
return {
|
|
56
56
|
next: function () {
|
|
57
57
|
var _next2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
58
|
-
var data
|
|
58
|
+
var data;
|
|
59
59
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
60
60
|
while (1) switch (_context.prev = _context.next) {
|
|
61
61
|
case 0:
|
|
@@ -70,15 +70,13 @@ var Date = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
70
70
|
return _context.abrupt("return", Toast(locales.getText('pisell2.appointment.unselect.date')));
|
|
71
71
|
case 5:
|
|
72
72
|
// 判断选定的日期是否存在可用的预约
|
|
73
|
-
result = appointmentBooking.checkResourceListForDate();
|
|
74
|
-
if (result) {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
return _context.abrupt("return", Toast(locales.getText('pisell2.appointment.unuse.date')));
|
|
79
|
-
case 8:
|
|
73
|
+
// const result = appointmentBooking.checkResourceListForDate();
|
|
74
|
+
// if (!result) {
|
|
75
|
+
// return Toast(locales.getText('pisell2.appointment.unuse.date'));
|
|
76
|
+
// }
|
|
77
|
+
|
|
80
78
|
appointmentBooking.next();
|
|
81
|
-
case
|
|
79
|
+
case 6:
|
|
82
80
|
case "end":
|
|
83
81
|
return _context.stop();
|
|
84
82
|
}
|
|
@@ -57,10 +57,6 @@ var Date = (0, import_react.forwardRef)((props, ref) => {
|
|
|
57
57
|
if (!(data == null ? void 0 : data.length)) {
|
|
58
58
|
return (0, import_utils2.Toast)(import_utils.locales.getText("pisell2.appointment.unselect.date"));
|
|
59
59
|
}
|
|
60
|
-
const result = appointmentBooking.checkResourceListForDate();
|
|
61
|
-
if (!result) {
|
|
62
|
-
return (0, import_utils2.Toast)(import_utils.locales.getText("pisell2.appointment.unuse.date"));
|
|
63
|
-
}
|
|
64
60
|
appointmentBooking.next();
|
|
65
61
|
}
|
|
66
62
|
}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.18",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -59,8 +59,8 @@
|
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
|
-
"@pisell/materials": "3.3.7",
|
|
63
62
|
"@pisell/utils": "1.0.42",
|
|
63
|
+
"@pisell/materials": "3.3.7",
|
|
64
64
|
"@pisell/date-picker": "3.0.2",
|
|
65
65
|
"@pisell/icon": "0.0.11"
|
|
66
66
|
},
|