@pisell/private-materials 6.5.10 → 6.5.12
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 +2 -2
- package/build/lowcode/preview.js +148 -164
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +3 -3
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +7 -7
- package/es/components/Sales/Summary/utils.d.ts +1 -1
- package/es/components/appointmentBooking/components/Services/index.js +36 -18
- package/es/components/appointmentBooking/hooks.js +6 -0
- package/es/components/booking/components/footer/index.js +24 -5
- package/es/components/booking/editBookingModal/index.js +8 -2
- package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/es/components/booking/info/service2/utils.d.ts +1 -1
- package/es/components/booking/locales.d.ts +6 -0
- package/es/components/booking/locales.js +12 -0
- package/es/components/booking/utils.d.ts +2 -2
- package/es/components/checkout/PaymentModal.js +145 -101
- package/es/components/checkout/components/AmountSummary/index.js +6 -4
- package/es/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
- package/es/components/checkout/components/CashPaymentModule/index.js +14 -10
- package/es/components/checkout/components/PaymentDetailModal/index.js +76 -27
- package/es/components/checkout/components/PaymentDetailModal/index.less +23 -2
- package/es/components/checkout/components/PaymentOptionsModule/index.js +4 -1
- package/es/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/es/components/checkout/hooks/useWalletPass.js +1 -0
- package/es/components/eftposPay/amount.d.ts +1 -1
- package/es/components/eftposPay/device.d.ts +1 -1
- package/es/components/eftposPay/hooks.d.ts +1 -1
- package/es/components/eftposPay/linkly/hooks/normal.js +3 -3
- package/es/components/eftposPay/linkly/hooks/useTimeQuery.js +60 -17
- package/es/components/eftposPay/payo/config.js +10 -10
- package/es/components/eftposPay/serve.js +1 -1
- package/es/components/eftposPay/store/index.d.ts +3 -3
- package/es/components/index.d.ts +3 -1
- package/es/components/index.js +3 -1
- package/es/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +6 -3
- package/es/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +2 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/index.js +112 -24
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +38 -2
- package/es/components/pay/toC/PaymentMethods/WalletPass/serve.js +78 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +6 -0
- package/es/components/pay/toC/PaymentMethods/WalletPass/utils.js +9 -0
- package/es/components/pay/toC/utils.js +1 -1
- package/es/components/pinModal/hooks.d.ts +7 -0
- package/es/components/pinModal/hooks.js +65 -0
- package/es/components/pinModal/index.d.ts +4 -0
- package/es/components/pinModal/index.js +98 -0
- package/es/components/pinModal/index.less +44 -0
- package/es/components/pinModal/locales.d.ts +27 -0
- package/es/components/pinModal/locales.js +26 -0
- package/es/components/pinModal/serve.d.ts +6 -0
- package/es/components/pinModal/serve.js +11 -0
- package/es/components/pinModal/types.d.ts +0 -0
- package/es/components/pinModal/types.js +0 -0
- package/es/components/pinVerifyModal/hooks.d.ts +7 -0
- package/es/components/pinVerifyModal/hooks.js +80 -0
- package/es/components/pinVerifyModal/index.d.ts +5 -0
- package/es/components/pinVerifyModal/index.js +218 -0
- package/es/components/pinVerifyModal/index.less +92 -0
- package/es/components/pinVerifyModal/locales.d.ts +24 -0
- package/es/components/pinVerifyModal/locales.js +23 -0
- package/es/components/pinVerifyModal/types.d.ts +33 -0
- package/es/components/pinVerifyModal/types.js +1 -0
- package/es/components/schedules/utils.d.ts +1 -1
- package/es/components/ticketBooking/components/ticketBooking/index.d.ts +7 -0
- package/es/components/ticketBooking/components/ticketBooking/index.js +56 -10
- package/es/components/ticketBooking/components/timeBar/index.js +2 -1
- package/es/components/ticketBooking/utils/index.d.ts +1 -1
- package/es/components/walletList/index.js +20 -2
- package/es/index.d.ts +2 -0
- package/es/index.js +3 -1
- package/es/utils/index.d.ts +1 -1
- package/lib/components/Sales/Summary/utils.d.ts +1 -1
- package/lib/components/appointmentBooking/components/Services/index.js +13 -3
- package/lib/components/appointmentBooking/hooks.js +6 -0
- package/lib/components/booking/components/footer/index.js +21 -3
- package/lib/components/booking/editBookingModal/index.js +6 -1
- package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -1
- package/lib/components/booking/info/service2/utils.d.ts +1 -1
- package/lib/components/booking/locales.d.ts +6 -0
- package/lib/components/booking/locales.js +6 -0
- package/lib/components/booking/utils.d.ts +2 -2
- package/lib/components/checkout/PaymentModal.js +37 -9
- package/lib/components/checkout/components/AmountSummary/index.js +4 -4
- package/lib/components/checkout/components/CashPaymentModule/index.d.ts +3 -1
- package/lib/components/checkout/components/CashPaymentModule/index.js +6 -3
- package/lib/components/checkout/components/PaymentDetailModal/index.js +47 -14
- package/lib/components/checkout/components/PaymentDetailModal/index.less +23 -2
- package/lib/components/checkout/components/PaymentOptionsModule/index.js +3 -1
- package/lib/components/checkout/hooks/useWalletPass.d.ts +1 -1
- package/lib/components/checkout/hooks/useWalletPass.js +1 -0
- package/lib/components/eftposPay/amount.d.ts +1 -1
- package/lib/components/eftposPay/device.d.ts +1 -1
- package/lib/components/eftposPay/hooks.d.ts +1 -1
- package/lib/components/eftposPay/linkly/hooks/normal.js +3 -3
- package/lib/components/eftposPay/linkly/hooks/useTimeQuery.js +59 -15
- package/lib/components/eftposPay/payo/config.js +9 -9
- package/lib/components/eftposPay/serve.js +1 -1
- package/lib/components/eftposPay/store/index.d.ts +3 -3
- package/lib/components/index.d.ts +3 -1
- package/lib/components/index.js +6 -0
- package/lib/components/pay/toC/PaymentMethods/MWCreditCard/tds2.js +2 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/List/index.d.ts +2 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/index.js +84 -36
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.d.ts +38 -2
- package/lib/components/pay/toC/PaymentMethods/WalletPass/serve.js +18 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.d.ts +6 -0
- package/lib/components/pay/toC/PaymentMethods/WalletPass/utils.js +7 -2
- package/lib/components/pay/toC/utils.js +1 -1
- package/lib/components/pinModal/hooks.d.ts +7 -0
- package/lib/components/pinModal/hooks.js +85 -0
- package/lib/components/pinModal/index.d.ts +4 -0
- package/lib/components/pinModal/index.js +88 -0
- package/lib/components/pinModal/index.less +44 -0
- package/lib/components/pinModal/locales.d.ts +27 -0
- package/lib/components/pinModal/locales.js +50 -0
- package/lib/components/pinModal/serve.d.ts +6 -0
- package/lib/components/pinModal/serve.js +37 -0
- package/lib/components/pinModal/types.d.ts +0 -0
- package/lib/components/pinModal/types.js +0 -0
- package/lib/components/pinVerifyModal/hooks.d.ts +7 -0
- package/lib/components/pinVerifyModal/hooks.js +93 -0
- package/lib/components/pinVerifyModal/index.d.ts +5 -0
- package/lib/components/pinVerifyModal/index.js +230 -0
- package/lib/components/pinVerifyModal/index.less +92 -0
- package/lib/components/pinVerifyModal/locales.d.ts +24 -0
- package/lib/components/pinVerifyModal/locales.js +47 -0
- package/lib/components/pinVerifyModal/types.d.ts +33 -0
- package/lib/components/pinVerifyModal/types.js +17 -0
- package/lib/components/schedules/utils.d.ts +1 -1
- package/lib/components/ticketBooking/components/ticketBooking/index.d.ts +7 -0
- package/lib/components/ticketBooking/components/ticketBooking/index.js +52 -5
- package/lib/components/ticketBooking/components/timeBar/index.js +2 -1
- package/lib/components/ticketBooking/utils/index.d.ts +1 -1
- package/lib/components/walletList/index.js +19 -2
- package/lib/index.d.ts +2 -0
- package/lib/index.js +6 -0
- package/lib/utils/index.d.ts +1 -1
- package/lowcode/pin-modal/meta.ts +37 -0
- package/lowcode/pin-verify-modal/meta.ts +80 -0
- package/package.json +1 -1
@@ -59,6 +59,7 @@ var import_utils4 = require("../bookingDataPanel/bookingList/utils");
|
|
59
59
|
var import_pisellos = require("../../hooks/pisellos");
|
60
60
|
var import_ahooks = require("ahooks");
|
61
61
|
var import_useScanManager = __toESM(require("../../hooks/pisellos/useScanManager"));
|
62
|
+
var import_ahooks2 = require("ahooks");
|
62
63
|
var _formatBookingDetail = (data, modalState) => {
|
63
64
|
var _a, _b, _c, _d;
|
64
65
|
let {
|
@@ -279,7 +280,9 @@ var TicketBooking = (props) => {
|
|
279
280
|
if (isTerminal()) {
|
280
281
|
const userAgent = navigator.userAgent;
|
281
282
|
if (userAgent.includes("terminal")) {
|
282
|
-
const terminalVersionMatch = userAgent.match(
|
283
|
+
const terminalVersionMatch = userAgent.match(
|
284
|
+
/terminal\/[\d.]+\((\d+)\)/i
|
285
|
+
);
|
283
286
|
if (terminalVersionMatch && terminalVersionMatch[1]) {
|
284
287
|
const buildNumberStr = terminalVersionMatch[1];
|
285
288
|
const buildNumber = parseInt(buildNumberStr, 10);
|
@@ -312,6 +315,47 @@ var TicketBooking = (props) => {
|
|
312
315
|
closeScan();
|
313
316
|
};
|
314
317
|
}, []);
|
318
|
+
const { run: clearAllCart } = (0, import_ahooks2.useDebounceFn)(
|
319
|
+
(type, orderId) => {
|
320
|
+
var _a2, _b2, _c2, _d2, _e2, _f, _g, _h;
|
321
|
+
try {
|
322
|
+
_initFn(() => {
|
323
|
+
});
|
324
|
+
setState({
|
325
|
+
createCount: state.createCount + 1
|
326
|
+
});
|
327
|
+
(0, import_utils.sendWarningLog)({
|
328
|
+
title: "清空购物车",
|
329
|
+
content: [
|
330
|
+
{
|
331
|
+
key: "店铺id",
|
332
|
+
value: (_d2 = (_c2 = (_b2 = (_a2 = store == null ? void 0 : store.getState) == null ? void 0 : _a2.call(store)) == null ? void 0 : _b2.global) == null ? void 0 : _c2.globalConfig) == null ? void 0 : _d2.id
|
333
|
+
},
|
334
|
+
{ key: "订单id", value: orderId },
|
335
|
+
{ key: "类型", value: type }
|
336
|
+
]
|
337
|
+
});
|
338
|
+
} catch (err) {
|
339
|
+
(0, import_utils.sendWarningLog)({
|
340
|
+
title: "清空购物车失败",
|
341
|
+
content: [
|
342
|
+
{
|
343
|
+
key: "店铺id",
|
344
|
+
value: (_h = (_g = (_f = (_e2 = store == null ? void 0 : store.getState) == null ? void 0 : _e2.call(store)) == null ? void 0 : _f.global) == null ? void 0 : _g.globalConfig) == null ? void 0 : _h.id
|
345
|
+
},
|
346
|
+
{ key: "订单id", value: orderId },
|
347
|
+
{ key: "类型", value: type },
|
348
|
+
{ key: "error", value: err == null ? void 0 : err.message }
|
349
|
+
]
|
350
|
+
});
|
351
|
+
}
|
352
|
+
},
|
353
|
+
{
|
354
|
+
wait: 500,
|
355
|
+
leading: true,
|
356
|
+
trailing: false
|
357
|
+
}
|
358
|
+
);
|
315
359
|
(0, import_react.useEffect)(() => {
|
316
360
|
var _a2, _b2, _c2, _d2, _e2;
|
317
361
|
localStorage.removeItem("bookingResourceList");
|
@@ -374,6 +418,7 @@ var TicketBooking = (props) => {
|
|
374
418
|
console.log("bookingTicket.clearAllCart");
|
375
419
|
_initFn(() => {
|
376
420
|
});
|
421
|
+
_setIntervalTime(true);
|
377
422
|
selectCustomer(null);
|
378
423
|
enableAllScanListeners();
|
379
424
|
setState({
|
@@ -619,7 +664,6 @@ var TicketBooking = (props) => {
|
|
619
664
|
num: 500,
|
620
665
|
extension_type: ["product_add_time"]
|
621
666
|
});
|
622
|
-
console.log("wwww", data);
|
623
667
|
setState({
|
624
668
|
addTimeProducts: (data == null ? void 0 : data.list) || []
|
625
669
|
});
|
@@ -917,7 +961,6 @@ var TicketBooking = (props) => {
|
|
917
961
|
isShowDeposit: state.isShowDeposit,
|
918
962
|
disableEventBookingEdit: state.disableEventBookingEdit,
|
919
963
|
list: state.list,
|
920
|
-
intervalSetTime: state.intervalSetTime,
|
921
964
|
createCount: state.createCount,
|
922
965
|
bookingFunctions: state.bookingFunctions,
|
923
966
|
isParallelResourcesBooking: state.isParallelResourcesBooking
|
@@ -1170,9 +1213,13 @@ var TicketBooking = (props) => {
|
|
1170
1213
|
{
|
1171
1214
|
open: showTerminalUpgradeModal,
|
1172
1215
|
title: import_utils.locales.getText("pisell2.ticket-booking.terminal-upgrade-title"),
|
1173
|
-
describe: import_utils.locales.getText(
|
1216
|
+
describe: import_utils.locales.getText(
|
1217
|
+
"pisell2.ticket-booking.terminal-upgrade-description"
|
1218
|
+
),
|
1174
1219
|
okText: import_utils.locales.getText("pisell2.ticket-booking.terminal-upgrade-ok"),
|
1175
|
-
cancelText: import_utils.locales.getText(
|
1220
|
+
cancelText: import_utils.locales.getText(
|
1221
|
+
"pisell2.ticket-booking.terminal-upgrade-cancel"
|
1222
|
+
),
|
1176
1223
|
closable: true,
|
1177
1224
|
onOk: () => setShowTerminalUpgradeModal(false),
|
1178
1225
|
onCancel: () => setShowTerminalUpgradeModal(false)
|
@@ -37,6 +37,7 @@ var import_icons = require("@ant-design/icons");
|
|
37
37
|
var import_materials = require("@pisell/materials");
|
38
38
|
var import_ahooks = require("ahooks");
|
39
39
|
var import_antd = require("antd");
|
40
|
+
var import_dayjs = __toESM(require("dayjs"));
|
40
41
|
var import_classnames = __toESM(require("classnames"));
|
41
42
|
var import_utils = require("@pisell/utils");
|
42
43
|
var import_index = require("./index.less");
|
@@ -74,7 +75,7 @@ var TimeBar = (props) => {
|
|
74
75
|
setGlobalState({
|
75
76
|
isTimeChange: true
|
76
77
|
});
|
77
|
-
(_d = props.setIntervalTime) == null ? void 0 : _d.call(props,
|
78
|
+
(_d = props.setIntervalTime) == null ? void 0 : _d.call(props, timeString === (0, import_dayjs.default)().format("HH:mm"));
|
78
79
|
});
|
79
80
|
return (0, import_react.useMemo)(() => {
|
80
81
|
var _a2, _b2, _c, _d;
|
@@ -41,7 +41,7 @@ declare type ScanData = {
|
|
41
41
|
};
|
42
42
|
};
|
43
43
|
export declare const formatScanCustomer: (data: ScanData) => {
|
44
|
-
searchType: "
|
44
|
+
searchType: "product" | "customer" | "wallet" | "walletPass" | "local_product";
|
45
45
|
data: any;
|
46
46
|
scanCode: string;
|
47
47
|
} | null;
|
@@ -45,6 +45,7 @@ var import_locales = __toESM(require("./locales"));
|
|
45
45
|
var import_index = require("./index.less");
|
46
46
|
var import_classnames = __toESM(require("classnames"));
|
47
47
|
var import_types = require("./types");
|
48
|
+
var import_pinModal = __toESM(require("../pinModal"));
|
48
49
|
var STORAGE_KEY = "pisell_wallet_list_data";
|
49
50
|
var STORAGE_KEY_BALANCE = "pisell_wallet_balance_data";
|
50
51
|
var safeLocalStorage = {
|
@@ -134,6 +135,7 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
134
135
|
const [walletShopList, setWalletShopList] = (0, import_react.useState)([]);
|
135
136
|
const requestIdRef = (0, import_react.useRef)("");
|
136
137
|
const pubsub = utils == null ? void 0 : utils.pubsub;
|
138
|
+
const pinModalRef = (0, import_react.useRef)(null);
|
137
139
|
const isUserLoggedIn = (0, import_react.useMemo)(() => {
|
138
140
|
var _a2, _b2;
|
139
141
|
return !!((_b2 = (_a2 = utils == null ? void 0 : utils.token) == null ? void 0 : _a2.get) == null ? void 0 : _b2.call(_a2)) || false;
|
@@ -370,6 +372,14 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
370
372
|
});
|
371
373
|
}
|
372
374
|
};
|
375
|
+
const onViewPinClick = (card) => {
|
376
|
+
var _a2;
|
377
|
+
if (card == null ? void 0 : card.id) {
|
378
|
+
(_a2 = pinModalRef.current) == null ? void 0 : _a2.open(card == null ? void 0 : card.id);
|
379
|
+
} else {
|
380
|
+
console.error("onViewPinClick方法需要传入wallet_detail_id");
|
381
|
+
}
|
382
|
+
};
|
373
383
|
const renderWalletCard = (item) => {
|
374
384
|
var _a2;
|
375
385
|
const { code, shop, wallet, id } = item;
|
@@ -423,7 +433,14 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
423
433
|
isLogin: isUserLoggedIn
|
424
434
|
// 添加登录状态
|
425
435
|
};
|
426
|
-
return /* @__PURE__ */ import_react.default.createElement(
|
436
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
437
|
+
import_materials.WalletCard,
|
438
|
+
{
|
439
|
+
key: id,
|
440
|
+
...cardProps,
|
441
|
+
onViewPinClick: () => onViewPinClick(item)
|
442
|
+
}
|
443
|
+
);
|
427
444
|
};
|
428
445
|
const carouselProps = {
|
429
446
|
className: (0, import_classnames.default)("pisell-lowcode__walletList"),
|
@@ -545,7 +562,7 @@ var WalletList = (0, import_model.Provider)((props) => {
|
|
545
562
|
}
|
546
563
|
}
|
547
564
|
)
|
548
|
-
)));
|
565
|
+
)), /* @__PURE__ */ import_react.default.createElement(import_pinModal.default, { ref: pinModalRef }));
|
549
566
|
};
|
550
567
|
return /* @__PURE__ */ import_react.default.createElement("div", { className: "wallet-list-wrapper" }, renderContent());
|
551
568
|
});
|
package/lib/index.d.ts
CHANGED
@@ -59,3 +59,5 @@ export { default as ProSkuDetailModal } from './pro/skuDetailModal';
|
|
59
59
|
export { default as SaasLogin } from './plus/saasLogin';
|
60
60
|
export { default as SaasRegister } from './plus/saasRegister';
|
61
61
|
export { default as SaasCreateOrganization } from './plus/saasCreateOrganization';
|
62
|
+
export { default as PinModal } from './components/pinModal';
|
63
|
+
export { default as PinVerifyModal } from './components/pinVerifyModal';
|
package/lib/index.js
CHANGED
@@ -63,6 +63,8 @@ __export(src_exports, {
|
|
63
63
|
EventTimeResourceSelector: () => import_timeResourceSelector.default,
|
64
64
|
Login: () => import_login.default,
|
65
65
|
NoteModal: () => import_noteModal.default,
|
66
|
+
PinModal: () => import_pinModal.default,
|
67
|
+
PinVerifyModal: () => import_pinVerifyModal.default,
|
66
68
|
PisellSelectCustomerModal: () => import_pisellSelectCustomerModal.default,
|
67
69
|
ProNumberKeyboard: () => import_numberKeyboard.default,
|
68
70
|
ProNumberSelector: () => import_pisellNumberSelector.default,
|
@@ -154,6 +156,8 @@ var import_skuDetailModal = __toESM(require("./pro/skuDetailModal"));
|
|
154
156
|
var import_saasLogin = __toESM(require("./plus/saasLogin"));
|
155
157
|
var import_saasRegister = __toESM(require("./plus/saasRegister"));
|
156
158
|
var import_saasCreateOrganization = __toESM(require("./plus/saasCreateOrganization"));
|
159
|
+
var import_pinModal = __toESM(require("./components/pinModal"));
|
160
|
+
var import_pinVerifyModal = __toESM(require("./components/pinVerifyModal"));
|
157
161
|
import_dayjs.default.extend(import_weekday.default);
|
158
162
|
import_dayjs.default.extend(import_localeData.default);
|
159
163
|
// Annotate the CommonJS export names for ESM import in node:
|
@@ -192,6 +196,8 @@ import_dayjs.default.extend(import_localeData.default);
|
|
192
196
|
EventTimeResourceSelector,
|
193
197
|
Login,
|
194
198
|
NoteModal,
|
199
|
+
PinModal,
|
200
|
+
PinVerifyModal,
|
195
201
|
PisellSelectCustomerModal,
|
196
202
|
ProNumberKeyboard,
|
197
203
|
ProNumberSelector,
|
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").ModalFuncProps | ((prevConfig: import("antd").ModalFuncProps) => import("antd").ModalFuncProps)) => void;
|
21
|
+
update: (configUpdate: import("antd/es/modal/interface").ModalFuncProps | ((prevConfig: import("antd/es/modal/interface").ModalFuncProps) => import("antd/es/modal/interface").ModalFuncProps)) => void;
|
22
22
|
}>;
|
23
23
|
export { modal };
|
@@ -0,0 +1,37 @@
|
|
1
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
2
|
+
|
3
|
+
const PinModalMeta: ComponentMetadata = {
|
4
|
+
componentName: 'PinModal',
|
5
|
+
title: 'PinModal',
|
6
|
+
docUrl: '',
|
7
|
+
screenshot: '',
|
8
|
+
devMode: 'proCode',
|
9
|
+
npm: {
|
10
|
+
package: '@pisell/private-materials',
|
11
|
+
version: '1.1.558',
|
12
|
+
exportName: 'PinModal',
|
13
|
+
main: 'src/index.ts',
|
14
|
+
destructuring: true,
|
15
|
+
subName: '',
|
16
|
+
},
|
17
|
+
configure: {
|
18
|
+
props: [],
|
19
|
+
supports: {},
|
20
|
+
component: {},
|
21
|
+
},
|
22
|
+
};
|
23
|
+
const snippets: Snippet[] = [
|
24
|
+
{
|
25
|
+
title: 'PinModal',
|
26
|
+
screenshot: '',
|
27
|
+
schema: {
|
28
|
+
componentName: 'PinModal',
|
29
|
+
props: {},
|
30
|
+
},
|
31
|
+
},
|
32
|
+
];
|
33
|
+
|
34
|
+
export default {
|
35
|
+
...PinModalMeta,
|
36
|
+
snippets,
|
37
|
+
};
|
@@ -0,0 +1,80 @@
|
|
1
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
2
|
+
|
3
|
+
const PinVerifyModalMeta: ComponentMetadata = {
|
4
|
+
componentName: 'PinVerifyModal',
|
5
|
+
title: 'PinVerifyModal',
|
6
|
+
docUrl: '',
|
7
|
+
screenshot: '',
|
8
|
+
devMode: 'proCode',
|
9
|
+
npm: {
|
10
|
+
package: '@pisell/private-materials',
|
11
|
+
version: '1.1.558',
|
12
|
+
exportName: 'PinVerifyModal',
|
13
|
+
main: 'src/index.ts',
|
14
|
+
destructuring: true,
|
15
|
+
subName: '',
|
16
|
+
},
|
17
|
+
configure: {
|
18
|
+
props: [
|
19
|
+
{
|
20
|
+
title: {
|
21
|
+
label: {
|
22
|
+
type: 'i18n',
|
23
|
+
'en-US': 'onOpen',
|
24
|
+
'zh-CN': 'onOpen',
|
25
|
+
},
|
26
|
+
},
|
27
|
+
name: 'onOpen',
|
28
|
+
setter: {
|
29
|
+
componentName: 'FunctionSetter',
|
30
|
+
isRequired: false,
|
31
|
+
},
|
32
|
+
},
|
33
|
+
{
|
34
|
+
title: {
|
35
|
+
label: {
|
36
|
+
type: 'i18n',
|
37
|
+
'en-US': 'onClose',
|
38
|
+
'zh-CN': 'onClose',
|
39
|
+
},
|
40
|
+
},
|
41
|
+
name: 'onClose',
|
42
|
+
setter: {
|
43
|
+
componentName: 'FunctionSetter',
|
44
|
+
isRequired: false,
|
45
|
+
},
|
46
|
+
},
|
47
|
+
{
|
48
|
+
title: {
|
49
|
+
label: {
|
50
|
+
type: 'i18n',
|
51
|
+
'en-US': 'onSuccess',
|
52
|
+
'zh-CN': 'onSuccess',
|
53
|
+
},
|
54
|
+
},
|
55
|
+
name: 'onSuccess',
|
56
|
+
setter: {
|
57
|
+
componentName: 'FunctionSetter',
|
58
|
+
isRequired: false,
|
59
|
+
},
|
60
|
+
},
|
61
|
+
],
|
62
|
+
supports: {},
|
63
|
+
component: {},
|
64
|
+
},
|
65
|
+
};
|
66
|
+
const snippets: Snippet[] = [
|
67
|
+
{
|
68
|
+
title: 'PinVerifyModal',
|
69
|
+
screenshot: '',
|
70
|
+
schema: {
|
71
|
+
componentName: 'PinVerifyModal',
|
72
|
+
props: {},
|
73
|
+
},
|
74
|
+
},
|
75
|
+
];
|
76
|
+
|
77
|
+
export default {
|
78
|
+
...PinVerifyModalMeta,
|
79
|
+
snippets,
|
80
|
+
};
|