@pisell/private-materials 3.3.73 → 3.3.75
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 +13 -13
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +5 -5
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/businessModel/SalesModel/Sales/index.js +37 -4
- package/es/components/Sales/Resource/index.js +2 -2
- package/es/components/Sales/Resource/serve.d.ts +7 -0
- package/es/components/Sales/Resource/serve.js +10 -0
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Header/index.js +8 -14
- package/es/components/appointmentBooking/components/Services/index.js +24 -15
- package/es/components/booking/components/TabProduct/tabs/index.js +1 -5
- package/es/components/booking/components/browserSelect/index.js +1 -1
- package/es/components/booking/forms/model.js +5 -5
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/info/service/addService/utils.d.ts +1 -1
- package/es/components/booking/info/service/like/index.js +1 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/es/components/booking/materiels/startTime/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/NoteItem/index.js +1 -1
- package/es/components/booking/notes/NoteBlock/index.js +11 -11
- package/es/components/booking/notes/model.js +5 -5
- package/es/components/booking/payments/model.js +5 -5
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/eftposPay/app.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +2 -2
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/eventBooking/components/Provider/Event/index.js +13 -4
- package/es/components/eventBooking/components/bookingDetailModal/index.js +19 -3
- package/es/components/eventBooking/index.js +21 -7
- package/es/components/eventBooking/locales.js +3 -3
- package/es/components/index.d.ts +2 -1
- package/es/components/index.js +2 -1
- package/es/components/listComponent/index.js +5 -5
- package/es/components/productExtension/card/index.js +3 -3
- package/es/components/productExtension/fields/Actor/CutOffTime/index.js +1 -1
- package/es/components/productExtension/fields/Forms/index.js +12 -12
- package/es/components/productExtension/fields/SelectProducts/ProductItemPreview/index.js +1 -1
- package/es/components/productExtension/fields/SelectProducts/server.js +2 -2
- package/es/components/productExtension/fields/SelectResourcesTable/server.js +2 -2
- package/es/components/productExtension/server.js +2 -2
- package/es/components/ruleSetting/ruleBorder/index.js +1 -1
- package/es/components/schedules/calendar/index.js +4 -4
- package/es/components/schedules/calendar/serve.js +2 -2
- package/es/components/schedules/components/CurrentDay/index.js +5 -5
- package/es/components/schedules/components/CurrentDay/serve.js +2 -2
- package/es/components/schedules/components/DropdownSort/index.js +1 -1
- package/es/components/schedules/components/ResourceList/index.js +1 -1
- package/es/components/schedules/components/Search/index.js +5 -5
- package/es/components/schedules/model.js +5 -5
- package/es/components/schedules/openHours/index.js +1 -1
- package/es/components/schedules/openHours/serve.js +2 -2
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/MaxParticipantsModule/index.js +1 -1
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/ResourcesModule/index.js +5 -5
- package/es/components/schedules/products/ProductDetailDrawer/ProductDetail/SchedulesModule/index.js +4 -4
- package/es/components/schedules/products/ProductDetailDrawer/index.js +3 -3
- package/es/components/schedules/products/serve.js +2 -2
- package/es/components/schedules/products/utils.js +5 -5
- package/es/components/schedules/resources/detail/detailContent.js +2 -2
- package/es/components/schedules/resources/detail/index.js +10 -10
- package/es/components/schedules/resources/list/index.js +2 -2
- package/es/components/schedules/resources/relationProduct/index.js +1 -1
- package/es/components/schedules/resources/serve.js +2 -2
- package/es/components/schedules/schedules/ScheduleDetailDrawer/index.js +9 -9
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/schedules/utils.js +4 -4
- package/es/components/selectModal/index.js +2 -2
- package/es/components/stepController/components/Content/index.d.ts +7 -0
- package/es/components/stepController/components/Content/index.js +9 -0
- package/es/components/stepController/components/Content/index.less +8 -0
- package/es/components/stepController/components/Footer/index.d.ts +8 -0
- package/es/components/stepController/components/Footer/index.js +15 -0
- package/es/components/stepController/components/Footer/index.less +39 -0
- package/es/components/stepController/components/Header/index.d.ts +20 -0
- package/es/components/stepController/components/Header/index.js +97 -0
- package/es/components/stepController/components/Header/index.less +21 -0
- package/es/components/stepController/index.d.ts +5 -0
- package/es/components/stepController/index.js +64 -0
- package/es/components/stepController/index.less +11 -0
- package/es/components/stepController/locales.d.ts +27 -0
- package/es/components/stepController/locales.js +32 -0
- package/es/components/stepController/types.d.ts +23 -0
- package/es/components/stepController/types.js +1 -0
- package/es/hooks/useComponents.js +1 -1
- package/es/hooks/useWindowSize.d.ts +5 -0
- package/es/hooks/useWindowSize.js +26 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/es/utils/index.d.ts +1 -1
- package/lib/businessModel/SalesModel/Sales/index.js +22 -8
- package/lib/components/Sales/Resource/index.js +1 -1
- package/lib/components/Sales/Resource/serve.d.ts +7 -0
- package/lib/components/Sales/Resource/serve.js +9 -2
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Header/index.js +2 -3
- package/lib/components/appointmentBooking/components/Services/index.js +16 -7
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/info/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/info2/service/addService/utils.d.ts +1 -1
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/eftposPay/app.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +2 -2
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/eventBooking/components/Provider/Event/index.js +10 -3
- package/lib/components/eventBooking/components/bookingDetailModal/index.js +9 -3
- package/lib/components/eventBooking/index.js +11 -7
- package/lib/components/eventBooking/locales.js +3 -3
- package/lib/components/index.d.ts +2 -1
- package/lib/components/index.js +3 -0
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/schedules/utils.js +1 -1
- package/lib/components/stepController/components/Content/index.d.ts +7 -0
- package/lib/components/stepController/components/Content/index.js +40 -0
- package/lib/components/stepController/components/Content/index.less +8 -0
- package/lib/components/stepController/components/Footer/index.d.ts +8 -0
- package/lib/components/stepController/components/Footer/index.js +49 -0
- package/lib/components/stepController/components/Footer/index.less +39 -0
- package/lib/components/stepController/components/Header/index.d.ts +20 -0
- package/lib/components/stepController/components/Header/index.js +104 -0
- package/lib/components/stepController/components/Header/index.less +21 -0
- package/lib/components/stepController/index.d.ts +5 -0
- package/lib/components/stepController/index.js +89 -0
- package/lib/components/stepController/index.less +11 -0
- package/lib/components/stepController/locales.d.ts +27 -0
- package/lib/components/stepController/locales.js +50 -0
- package/lib/components/stepController/types.d.ts +23 -0
- package/lib/components/stepController/types.js +17 -0
- package/lib/hooks/useWindowSize.d.ts +5 -0
- package/lib/hooks/useWindowSize.js +51 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/step-controller/meta.ts +88 -0
- package/package.json +3 -3
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
en: {
|
|
3
|
+
'pisell2.step.controller.step': (step: number) => string;
|
|
4
|
+
'pisell2.step.controller.sendEmail': string;
|
|
5
|
+
'pisell2.step.controller.copy': string;
|
|
6
|
+
'pisell2.step.controller.download': string;
|
|
7
|
+
'pisell2.step.controller.preview': string;
|
|
8
|
+
'pisell2.step.controller.continue': string;
|
|
9
|
+
};
|
|
10
|
+
'zh-CN': {
|
|
11
|
+
'pisell2.step.controller.step': (step: number) => string;
|
|
12
|
+
'pisell2.step.controller.sendEmail': string;
|
|
13
|
+
'pisell2.step.controller.copy': string;
|
|
14
|
+
'pisell2.step.controller.download': string;
|
|
15
|
+
'pisell2.step.controller.preview': string;
|
|
16
|
+
'pisell2.step.controller.continue': string;
|
|
17
|
+
};
|
|
18
|
+
'zh-HK': {
|
|
19
|
+
'pisell2.step.controller.step': (step: number) => string;
|
|
20
|
+
'pisell2.step.controller.sendEmail': string;
|
|
21
|
+
'pisell2.step.controller.copy': string;
|
|
22
|
+
'pisell2.step.controller.download': string;
|
|
23
|
+
'pisell2.step.controller.preview': string;
|
|
24
|
+
'pisell2.step.controller.continue': string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/components/stepController/locales.ts
|
|
20
|
+
var locales_exports = {};
|
|
21
|
+
__export(locales_exports, {
|
|
22
|
+
default: () => locales_default
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(locales_exports);
|
|
25
|
+
var locales_default = {
|
|
26
|
+
en: {
|
|
27
|
+
"pisell2.step.controller.step": (step) => `Step ${step || 1}`,
|
|
28
|
+
"pisell2.step.controller.sendEmail": "Send Email",
|
|
29
|
+
"pisell2.step.controller.copy": "Copy",
|
|
30
|
+
"pisell2.step.controller.download": "Download",
|
|
31
|
+
"pisell2.step.controller.preview": "Preview",
|
|
32
|
+
"pisell2.step.controller.continue": "Continue"
|
|
33
|
+
},
|
|
34
|
+
"zh-CN": {
|
|
35
|
+
"pisell2.step.controller.step": (step) => `步骤 ${step || 1}`,
|
|
36
|
+
"pisell2.step.controller.sendEmail": "发送邮件",
|
|
37
|
+
"pisell2.step.controller.copy": "复制",
|
|
38
|
+
"pisell2.step.controller.download": "下载",
|
|
39
|
+
"pisell2.step.controller.preview": "预览",
|
|
40
|
+
"pisell2.step.controller.continue": "继续"
|
|
41
|
+
},
|
|
42
|
+
"zh-HK": {
|
|
43
|
+
"pisell2.step.controller.step": (step) => `步驟 ${step || 1}`,
|
|
44
|
+
"pisell2.step.controller.sendEmail": "發送郵件",
|
|
45
|
+
"pisell2.step.controller.copy": "複製",
|
|
46
|
+
"pisell2.step.controller.download": "下載",
|
|
47
|
+
"pisell2.step.controller.preview": "預覽",
|
|
48
|
+
"pisell2.step.controller.continue": "繼續"
|
|
49
|
+
}
|
|
50
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface Step {
|
|
3
|
+
key: string;
|
|
4
|
+
description: string;
|
|
5
|
+
}
|
|
6
|
+
export interface StepControllerProps extends Step {
|
|
7
|
+
steps: Step[];
|
|
8
|
+
currentStep: string;
|
|
9
|
+
isLastStep?: boolean;
|
|
10
|
+
isMobile?: boolean;
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
onBack?: (key: string) => void;
|
|
13
|
+
onClose?: () => void;
|
|
14
|
+
confirmCloseProps?: {
|
|
15
|
+
isConfirmClose?: boolean;
|
|
16
|
+
title?: string;
|
|
17
|
+
content?: string;
|
|
18
|
+
okText?: string;
|
|
19
|
+
cancelText?: string;
|
|
20
|
+
};
|
|
21
|
+
showFooter?: boolean;
|
|
22
|
+
footerContent?: React.ReactNode;
|
|
23
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __copyProps = (to, from, except, desc) => {
|
|
6
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
7
|
+
for (let key of __getOwnPropNames(from))
|
|
8
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
9
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
10
|
+
}
|
|
11
|
+
return to;
|
|
12
|
+
};
|
|
13
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
14
|
+
|
|
15
|
+
// src/components/stepController/types.ts
|
|
16
|
+
var types_exports = {};
|
|
17
|
+
module.exports = __toCommonJS(types_exports);
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/hooks/useWindowSize.ts
|
|
20
|
+
var useWindowSize_exports = {};
|
|
21
|
+
__export(useWindowSize_exports, {
|
|
22
|
+
useWindowSize: () => useWindowSize
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(useWindowSize_exports);
|
|
25
|
+
var import_react = require("react");
|
|
26
|
+
var useWindowSize = (options = {}) => {
|
|
27
|
+
const {
|
|
28
|
+
debounceMs = 100
|
|
29
|
+
} = options;
|
|
30
|
+
(0, import_react.useEffect)(() => {
|
|
31
|
+
let timeoutId;
|
|
32
|
+
const setRealVH = () => {
|
|
33
|
+
const vh = window.innerHeight * 0.01;
|
|
34
|
+
document.documentElement.style.setProperty("--vh", `${vh}px`);
|
|
35
|
+
};
|
|
36
|
+
const debouncedHandleResize = () => {
|
|
37
|
+
clearTimeout(timeoutId);
|
|
38
|
+
timeoutId = setTimeout(setRealVH, debounceMs);
|
|
39
|
+
};
|
|
40
|
+
debouncedHandleResize();
|
|
41
|
+
window.addEventListener("resize", debouncedHandleResize);
|
|
42
|
+
return () => {
|
|
43
|
+
window.removeEventListener("resize", debouncedHandleResize);
|
|
44
|
+
clearTimeout(timeoutId);
|
|
45
|
+
};
|
|
46
|
+
}, [debounceMs]);
|
|
47
|
+
};
|
|
48
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
49
|
+
0 && (module.exports = {
|
|
50
|
+
useWindowSize
|
|
51
|
+
});
|
package/lib/index.d.ts
CHANGED
|
@@ -43,3 +43,4 @@ export { default as AppointmentBooking } from './components/appointmentBooking';
|
|
|
43
43
|
export { default as AppointmentDeposit } from './components/appointmentBooking/deposit';
|
|
44
44
|
export { default as TicketBooking } from './components/ticketBooking';
|
|
45
45
|
export { default as SubTotal } from './components/subTotal';
|
|
46
|
+
export { default as StepController } from './components/stepController';
|
package/lib/index.js
CHANGED
|
@@ -63,6 +63,7 @@ __export(src_exports, {
|
|
|
63
63
|
RuleSetting: () => import_ruleSetting.default,
|
|
64
64
|
Schedules: () => import_schedules.default,
|
|
65
65
|
ShoppingCart: () => import_shoppingCart.default,
|
|
66
|
+
StepController: () => import_stepController.default,
|
|
66
67
|
SubTotal: () => import_subTotal.default,
|
|
67
68
|
TaxSelect: () => import_taxSelect.default,
|
|
68
69
|
TicketBooking: () => import_ticketBooking.default,
|
|
@@ -122,6 +123,7 @@ var import_appointmentBooking = __toESM(require("./components/appointmentBooking
|
|
|
122
123
|
var import_deposit2 = __toESM(require("./components/appointmentBooking/deposit"));
|
|
123
124
|
var import_ticketBooking = __toESM(require("./components/ticketBooking"));
|
|
124
125
|
var import_subTotal = __toESM(require("./components/subTotal"));
|
|
126
|
+
var import_stepController = __toESM(require("./components/stepController"));
|
|
125
127
|
import_dayjs.default.extend(import_weekday.default);
|
|
126
128
|
import_dayjs.default.extend(import_localeData.default);
|
|
127
129
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -160,6 +162,7 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
160
162
|
RuleSetting,
|
|
161
163
|
Schedules,
|
|
162
164
|
ShoppingCart,
|
|
165
|
+
StepController,
|
|
163
166
|
SubTotal,
|
|
164
167
|
TaxSelect,
|
|
165
168
|
TicketBooking,
|
package/lib/utils/index.d.ts
CHANGED
|
@@ -18,6 +18,6 @@ declare let modal: Omit<ModalStaticFunctions, 'warn'>;
|
|
|
18
18
|
export declare const setModal: (m: Omit<ModalStaticFunctions, 'warn'>) => void;
|
|
19
19
|
export declare const saveConfirm: () => Promise<{
|
|
20
20
|
destroy: () => void;
|
|
21
|
-
update: (configUpdate: import("antd
|
|
21
|
+
update: (configUpdate: import("antd").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
|
22
22
|
}>;
|
|
23
23
|
export { modal };
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
3
|
+
|
|
4
|
+
const StepControllerMeta: ComponentMetadata = {
|
|
5
|
+
"componentName": "StepController",
|
|
6
|
+
"title": "StepController",
|
|
7
|
+
"docUrl": "",
|
|
8
|
+
"screenshot": "",
|
|
9
|
+
"devMode": "proCode",
|
|
10
|
+
"npm": {
|
|
11
|
+
"package": "@pisell/private-materials",
|
|
12
|
+
"version": "1.0.4",
|
|
13
|
+
"exportName": "StepController",
|
|
14
|
+
"main": "src/index.ts",
|
|
15
|
+
"destructuring": true,
|
|
16
|
+
"subName": ""
|
|
17
|
+
},
|
|
18
|
+
"configure": {
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
name: 'steps',
|
|
22
|
+
title: { label: '步骤列表', tip: 'steps | 步骤列表' },
|
|
23
|
+
setter: 'JsonSetter',
|
|
24
|
+
defaultValue: [],
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: 'currentStep',
|
|
28
|
+
title: { label: '当前步骤', tip: 'currentStep | 当前步骤' },
|
|
29
|
+
setter: 'StringSetter',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'children',
|
|
33
|
+
title: { label: '内容', tip: 'leftChildren | 内容' },
|
|
34
|
+
setter: 'SlotSetter',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
name: 'confirmCloseProps',
|
|
38
|
+
title: { label: '关闭流程确认弹窗内容', tip: 'confirmCloseProps | 关闭流程确认弹窗内容' },
|
|
39
|
+
setter: 'JsonSetter',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'showFooter',
|
|
43
|
+
title: { label: '是否显示底部', tip: 'showFooter | 是否显示底部' },
|
|
44
|
+
setter: 'BoolSetter',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'footerContent',
|
|
48
|
+
title: { label: '底部内容', tip: 'footerContent | 底部内容' },
|
|
49
|
+
setter: 'SlotSetter',
|
|
50
|
+
condition(target) {
|
|
51
|
+
return !!target.getProps().getPropValue("showFooter");
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
"supports": {
|
|
56
|
+
style: true,
|
|
57
|
+
events: [
|
|
58
|
+
{
|
|
59
|
+
name: "onBack",
|
|
60
|
+
template:
|
|
61
|
+
"onBack(key){\n//console.log('返回上一步',key);}",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
name: "onClose",
|
|
65
|
+
template:
|
|
66
|
+
"onClose(){\n//console.log('关闭流程');}",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
},
|
|
70
|
+
"component": {}
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const snippets: Snippet[] = [
|
|
74
|
+
{
|
|
75
|
+
"title": "StepController",
|
|
76
|
+
"screenshot": "",
|
|
77
|
+
"schema": {
|
|
78
|
+
"componentName": "StepController",
|
|
79
|
+
"props": {
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
];
|
|
84
|
+
|
|
85
|
+
export default {
|
|
86
|
+
...StepControllerMeta,
|
|
87
|
+
snippets
|
|
88
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.75",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
61
|
"decimal.js": "^10.4.3",
|
|
62
62
|
"@pisell/utils": "1.0.42",
|
|
63
|
-
"@pisell/materials": "3.3.29",
|
|
64
63
|
"@pisell/icon": "0.0.11",
|
|
65
|
-
"@pisell/date-picker": "3.0.2"
|
|
64
|
+
"@pisell/date-picker": "3.0.2",
|
|
65
|
+
"@pisell/materials": "3.3.29"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
68
|
"react": "^18.0.0",
|