@pisell/private-materials 3.0.104 → 3.0.105
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/index.js +1 -1
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/preview.js +4 -4
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.js +7 -7
- package/es/components/booking/info/service/index.js +3 -3
- package/lib/components/booking/info/service/index.js +3 -3
- package/package.json +3 -3
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { useEffect, useContext, useMemo } from 'react';
|
|
2
2
|
import AddService from "./addService";
|
|
3
|
-
import { Context } from "
|
|
3
|
+
import { Context } from "../model";
|
|
4
4
|
import EditService from "./editService";
|
|
5
5
|
import "./index.less";
|
|
6
6
|
import ServiceList from "./serviceList";
|
|
@@ -20,12 +20,12 @@ var Service = function Service() {
|
|
|
20
20
|
}, [state === null || state === void 0 ? void 0 : (_state$bookingConfig2 = state.bookingConfig) === null || _state$bookingConfig2 === void 0 ? void 0 : (_state$bookingConfig3 = _state$bookingConfig2.config) === null || _state$bookingConfig3 === void 0 ? void 0 : _state$bookingConfig3.information_tab]);
|
|
21
21
|
var showAddTimeModal = useMemo(function () {
|
|
22
22
|
// event预约不需要
|
|
23
|
-
if (state.renderType === 'eventBooking') {
|
|
23
|
+
if ((state === null || state === void 0 ? void 0 : state.renderType) === 'eventBooking') {
|
|
24
24
|
return false;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
// 禁止编辑
|
|
28
|
-
if (state.disabledEdit) {
|
|
28
|
+
if (state !== null && state !== void 0 && state.disabledEdit) {
|
|
29
29
|
return false;
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -34,7 +34,7 @@ __export(service_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(service_exports);
|
|
35
35
|
var import_react = __toESM(require("react"));
|
|
36
36
|
var import_addService = __toESM(require("./addService"));
|
|
37
|
-
var import_model = require("
|
|
37
|
+
var import_model = require("../model");
|
|
38
38
|
var import_editService = __toESM(require("./editService"));
|
|
39
39
|
var import_index = require("./index.less");
|
|
40
40
|
var import_serviceList = __toESM(require("./serviceList"));
|
|
@@ -52,10 +52,10 @@ var Service = () => {
|
|
|
52
52
|
};
|
|
53
53
|
}, [(_b = (_a = state == null ? void 0 : state.bookingConfig) == null ? void 0 : _a.config) == null ? void 0 : _b.information_tab]);
|
|
54
54
|
const showAddTimeModal = (0, import_react.useMemo)(() => {
|
|
55
|
-
if (state.renderType === "eventBooking") {
|
|
55
|
+
if ((state == null ? void 0 : state.renderType) === "eventBooking") {
|
|
56
56
|
return false;
|
|
57
57
|
}
|
|
58
|
-
if (state.disabledEdit) {
|
|
58
|
+
if (state == null ? void 0 : state.disabledEdit) {
|
|
59
59
|
return false;
|
|
60
60
|
}
|
|
61
61
|
if (appointment_card.quick_time !== 1) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.105",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
62
|
"@pisell/icon": "0.0.11",
|
|
63
|
-
"@pisell/
|
|
64
|
-
"@pisell/
|
|
63
|
+
"@pisell/date-picker": "1.0.91",
|
|
64
|
+
"@pisell/utils": "1.0.27"
|
|
65
65
|
},
|
|
66
66
|
"peerDependencies": {
|
|
67
67
|
"react": "^18.0.0",
|