@pisell/private-materials 3.0.28 → 3.0.30
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 +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +9 -9
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +8 -8
- package/es/components/booking/components/collapsibleList/index.js +1 -1
- package/es/components/booking/components/footer/utils.js +5 -1
- package/es/components/booking/deposit/ClientItem/index.d.ts +18 -0
- package/es/components/booking/deposit/ClientItem/index.js +43 -0
- package/es/components/booking/deposit/ClientItem/index.less +37 -0
- package/es/components/booking/deposit/DepositItem/index.d.ts +20 -0
- package/es/components/booking/deposit/DepositItem/index.js +105 -0
- package/es/components/booking/deposit/DepositItem/index.less +88 -0
- package/es/components/booking/deposit/EditDepositModal/index.d.ts +9 -0
- package/es/components/booking/deposit/EditDepositModal/index.js +126 -0
- package/es/components/booking/deposit/EditDepositModal/index.less +24 -0
- package/es/components/booking/deposit/index.d.ts +3 -0
- package/es/components/booking/deposit/index.js +164 -0
- package/es/components/booking/deposit/index.less +3 -0
- package/es/components/booking/deposit/serve.d.ts +8 -0
- package/es/components/booking/deposit/serve.js +27 -0
- package/es/components/booking/forms/index.js +2 -1
- package/es/components/booking/info/service/addService/index.js +2 -2
- package/es/components/booking/info/service/editService/index.js +50 -21
- package/es/components/booking/locales.d.ts +54 -0
- package/es/components/booking/locales.js +57 -3
- package/es/components/booking/utils.d.ts +37 -0
- package/es/components/booking/utils.js +71 -8
- package/es/index.d.ts +1 -0
- package/es/index.js +2 -1
- package/lib/components/booking/components/collapsibleList/index.js +1 -1
- package/lib/components/booking/components/footer/utils.js +4 -1
- package/lib/components/booking/deposit/ClientItem/index.d.ts +18 -0
- package/lib/components/booking/deposit/ClientItem/index.js +71 -0
- package/lib/components/booking/deposit/ClientItem/index.less +37 -0
- package/lib/components/booking/deposit/DepositItem/index.d.ts +20 -0
- package/lib/components/booking/deposit/DepositItem/index.js +112 -0
- package/lib/components/booking/deposit/DepositItem/index.less +88 -0
- package/lib/components/booking/deposit/EditDepositModal/index.d.ts +9 -0
- package/lib/components/booking/deposit/EditDepositModal/index.js +131 -0
- package/lib/components/booking/deposit/EditDepositModal/index.less +24 -0
- package/lib/components/booking/deposit/index.d.ts +3 -0
- package/lib/components/booking/deposit/index.js +186 -0
- package/lib/components/booking/deposit/index.less +3 -0
- package/lib/components/booking/deposit/serve.d.ts +8 -0
- package/lib/components/booking/deposit/serve.js +30 -0
- package/lib/components/booking/forms/index.js +1 -1
- package/lib/components/booking/info/service/addService/index.js +2 -2
- package/lib/components/booking/info/service/editService/index.js +33 -11
- package/lib/components/booking/locales.d.ts +54 -0
- package/lib/components/booking/locales.js +57 -3
- package/lib/components/booking/utils.d.ts +37 -0
- package/lib/components/booking/utils.js +33 -10
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lowcode/booking-deposit/meta.ts +93 -0
- package/package.json +3 -3
|
@@ -154,7 +154,25 @@ var locales_default = {
|
|
|
154
154
|
"pisell2.text.order.sales.channel.boxcocal": "Boxlocal",
|
|
155
155
|
"pisell2.text.order.sales.channel.tableorder": "Table Order",
|
|
156
156
|
"pisell2.text.order.sales.channel.reserve": "Google Reservation",
|
|
157
|
-
"pisell2.text.rebook": "Rebook"
|
|
157
|
+
"pisell2.text.rebook": "Rebook",
|
|
158
|
+
"pisell2.text.now": "Now",
|
|
159
|
+
"pisell2.text.deposit-list": "Deposit List",
|
|
160
|
+
"pisell2.text.deposit-item-status-paid": "Paid",
|
|
161
|
+
"pisell2.text.deposit-item-status-unpaid": "Unpaid",
|
|
162
|
+
"pisell2.text.deposit-order-total": "Order Total",
|
|
163
|
+
"pisell2.text.deposit-order-detail": "Order Details",
|
|
164
|
+
"pisell2.text.deposit-collect-deposit": "Collect Deposit",
|
|
165
|
+
"pisell2.text.deposit-order-no": "Order No",
|
|
166
|
+
"pisell2.text.deposit-amount": "Amount",
|
|
167
|
+
"pisell2.text.deposit-deposit-amount": "Deposit Amount",
|
|
168
|
+
"pisell2.text.deposit-generate-payment-link": "Generate Payment Link",
|
|
169
|
+
"pisell2.text.deposit-list-empty": "Please add a deposit",
|
|
170
|
+
"pisell2.text.deposit-amount-message": "Amount must be greater than 0",
|
|
171
|
+
"pisell2.text.deposit-amount-message2": "The deposit amount cannot be greater than the total order amount",
|
|
172
|
+
"pisell2.text.deposit-amount-message3": "Please enter the deposit amount",
|
|
173
|
+
"pisell2.text.deposit-delete": "Delete deposit",
|
|
174
|
+
"pisell2.text.deposit-delete-message-title": "Prompt",
|
|
175
|
+
"pisell2.text.deposit-delete-message": "It cannot be restored after deletion. Please confirm the operation."
|
|
158
176
|
},
|
|
159
177
|
"zh-CN": {
|
|
160
178
|
"pisell2.text.refunded-amount": "已退金额",
|
|
@@ -292,7 +310,25 @@ var locales_default = {
|
|
|
292
310
|
"pisell2.text.order.sales.channel.boxcocal": "Boxlocal",
|
|
293
311
|
"pisell2.text.order.sales.channel.tableorder": "扫码点餐",
|
|
294
312
|
"pisell2.text.order.sales.channel.reserve": "谷歌预约",
|
|
295
|
-
"pisell2.text.rebook": "再次预约"
|
|
313
|
+
"pisell2.text.rebook": "再次预约",
|
|
314
|
+
"pisell2.text.now": "现在",
|
|
315
|
+
"pisell2.text.deposit-list": "定金列表",
|
|
316
|
+
"pisell2.text.deposit-item-status-paid": "已支付",
|
|
317
|
+
"pisell2.text.deposit-item-status-unpaid": "未支付",
|
|
318
|
+
"pisell2.text.deposit-order-total": "订单总额",
|
|
319
|
+
"pisell2.text.deposit-order-detail": "订单详情",
|
|
320
|
+
"pisell2.text.deposit-collect-deposit": "收定金",
|
|
321
|
+
"pisell2.text.deposit-order-no": "订单编号",
|
|
322
|
+
"pisell2.text.deposit-amount": "金额",
|
|
323
|
+
"pisell2.text.deposit-deposit-amount": "定金金额",
|
|
324
|
+
"pisell2.text.deposit-generate-payment-link": "生成支付链接",
|
|
325
|
+
"pisell2.text.deposit-list-empty": "请添加定金",
|
|
326
|
+
"pisell2.text.deposit-amount-message": "金额必须大于0",
|
|
327
|
+
"pisell2.text.deposit-amount-message2": "定金金额不能大于订单总额",
|
|
328
|
+
"pisell2.text.deposit-amount-message3": "请输入定金金额",
|
|
329
|
+
"pisell2.text.deposit-delete": "删除定金",
|
|
330
|
+
"pisell2.text.deposit-delete-message-title": "提示",
|
|
331
|
+
"pisell2.text.deposit-delete-message": "删除后不可恢复,请确认操作"
|
|
296
332
|
},
|
|
297
333
|
"zh-HK": {
|
|
298
334
|
"pisell2.text.refunded-amount": "已退金額",
|
|
@@ -430,6 +466,24 @@ var locales_default = {
|
|
|
430
466
|
"pisell2.text.order.sales.channel.boxcocal": "Boxlocal",
|
|
431
467
|
"pisell2.text.order.sales.channel.tableorder": "掃碼點餐",
|
|
432
468
|
"pisell2.text.order.sales.channel.reserve": "谷歌預約",
|
|
433
|
-
"pisell2.text.rebook": "再次預約"
|
|
469
|
+
"pisell2.text.rebook": "再次預約",
|
|
470
|
+
"pisell2.text.now": "現在",
|
|
471
|
+
"pisell2.text.deposit-list": "定金列表",
|
|
472
|
+
"pisell2.text.deposit-item-status-paid": "已支付",
|
|
473
|
+
"pisell2.text.deposit-item-status-unpaid": "未支付",
|
|
474
|
+
"pisell2.text.deposit-order-total": "訂單總額",
|
|
475
|
+
"pisell2.text.deposit-order-detail": "訂單詳情",
|
|
476
|
+
"pisell2.text.deposit-collect-deposit": "收定金",
|
|
477
|
+
"pisell2.text.deposit-order-no": "訂單編號",
|
|
478
|
+
"pisell2.text.deposit-amount": "金額",
|
|
479
|
+
"pisell2.text.deposit-deposit-amount": "定金金額",
|
|
480
|
+
"pisell2.text.deposit-generate-payment-link": "生成支付鏈接",
|
|
481
|
+
"pisell2.text.deposit-list-empty": "請添加定金",
|
|
482
|
+
"pisell2.text.deposit-amount-message": "金額必須大於0",
|
|
483
|
+
"pisell2.text.deposit-amount-message2": "定金金額不能大於訂單總額",
|
|
484
|
+
"pisell2.text.deposit-amount-message3": "請輸入定金金額",
|
|
485
|
+
"pisell2.text.deposit-delete": "刪除定金",
|
|
486
|
+
"pisell2.text.deposit-delete-message-title": "提示",
|
|
487
|
+
"pisell2.text.deposit-delete-message": "刪除後不可恢復,請確認操作"
|
|
434
488
|
}
|
|
435
489
|
};
|
|
@@ -13,7 +13,24 @@ declare class Request {
|
|
|
13
13
|
};
|
|
14
14
|
}
|
|
15
15
|
export declare const request: Request;
|
|
16
|
+
/**
|
|
17
|
+
* @title: 格式化持续时长用于展示
|
|
18
|
+
* @description:
|
|
19
|
+
* @param {number} service_times
|
|
20
|
+
* @return {*}
|
|
21
|
+
* @Author: zhiwei.Wang
|
|
22
|
+
* @Date: 2024-04-26 14:00
|
|
23
|
+
*/
|
|
16
24
|
export declare const getDiscountTime: (service_times: number) => string;
|
|
25
|
+
/**
|
|
26
|
+
* @title: 时间切片
|
|
27
|
+
* @description:
|
|
28
|
+
* @param {any} config
|
|
29
|
+
* @param {string} locale
|
|
30
|
+
* @return {*}
|
|
31
|
+
* @Author: zhiwei.Wang
|
|
32
|
+
* @Date: 2024-04-26 13:59
|
|
33
|
+
*/
|
|
17
34
|
export declare const sliceDayIntoFiveMinutes: (config: any, locale: string) => {
|
|
18
35
|
timeSlices: {
|
|
19
36
|
label: string;
|
|
@@ -24,6 +41,26 @@ export declare const sliceDayIntoFiveMinutes: (config: any, locale: string) => {
|
|
|
24
41
|
value: number;
|
|
25
42
|
}[];
|
|
26
43
|
};
|
|
44
|
+
export declare const getNowTime: () => string;
|
|
45
|
+
export declare const isNowTime: (time: string) => boolean;
|
|
46
|
+
/**
|
|
47
|
+
* @title: 获取服务的开始时间, 如果是now 转换为当前的时间
|
|
48
|
+
* @description:
|
|
49
|
+
* @param {string} start_time
|
|
50
|
+
* @return {*}
|
|
51
|
+
* @Author: zhiwei.Wang
|
|
52
|
+
* @Date: 2024-04-26 14:03
|
|
53
|
+
*/
|
|
54
|
+
export declare const getServeStartTime: (start_time: string) => string;
|
|
55
|
+
/**
|
|
56
|
+
* @title: 格式化服务的 开始时间-结束时间-时长, 用于展示
|
|
57
|
+
* @description:
|
|
58
|
+
* @param {any} item
|
|
59
|
+
* @param {any} currentDate
|
|
60
|
+
* @return {*}
|
|
61
|
+
* @Author: zhiwei.Wang
|
|
62
|
+
* @Date: 2024-04-26 14:04
|
|
63
|
+
*/
|
|
27
64
|
export declare const getServiceTime: (item: any, currentDate: any) => string;
|
|
28
65
|
export declare const findNextSlice: ({ timeSlices, index, date }: {
|
|
29
66
|
timeSlices: any[];
|
|
@@ -41,11 +41,14 @@ __export(utils_exports, {
|
|
|
41
41
|
getEndDate: () => getEndDate,
|
|
42
42
|
getErrorList: () => getErrorList,
|
|
43
43
|
getLastServer: () => getLastServer,
|
|
44
|
+
getNowTime: () => getNowTime,
|
|
44
45
|
getProductTotalPrice: () => getProductTotalPrice,
|
|
46
|
+
getServeStartTime: () => getServeStartTime,
|
|
45
47
|
getServerItemExtend: () => getServerItemExtend,
|
|
46
48
|
getServiceTime: () => getServiceTime,
|
|
47
49
|
getServiceTimes: () => getServiceTimes,
|
|
48
50
|
getShopOpeningHours: () => getShopOpeningHours,
|
|
51
|
+
isNowTime: () => isNowTime,
|
|
49
52
|
isWalkIn: () => isWalkIn,
|
|
50
53
|
request: () => request,
|
|
51
54
|
sliceDayIntoFiveMinutes: () => sliceDayIntoFiveMinutes
|
|
@@ -90,8 +93,8 @@ var sliceDayIntoFiveMinutes = (config, locale) => {
|
|
|
90
93
|
const startTime = (0, import_dayjs.default)().startOf("day");
|
|
91
94
|
const endTime = (0, import_dayjs.default)().endOf("day");
|
|
92
95
|
const timeSlice = (config == null ? void 0 : config.value) || 5;
|
|
93
|
-
|
|
94
|
-
|
|
96
|
+
let timeSlices = [];
|
|
97
|
+
let durationSlicesBasedOnTime = [];
|
|
95
98
|
let currentTime = startTime;
|
|
96
99
|
while (currentTime.isBefore(endTime)) {
|
|
97
100
|
const timeLabel = currentTime.format("hh:mm A");
|
|
@@ -116,8 +119,20 @@ var sliceDayIntoFiveMinutes = (config, locale) => {
|
|
|
116
119
|
}
|
|
117
120
|
return { timeSlices, durationSlicesBasedOnTime };
|
|
118
121
|
};
|
|
122
|
+
var getNowTime = () => {
|
|
123
|
+
return (0, import_dayjs.default)().format("HH:mm");
|
|
124
|
+
};
|
|
125
|
+
var isNowTime = (time) => {
|
|
126
|
+
return time === "now";
|
|
127
|
+
};
|
|
128
|
+
var getServeStartTime = (start_time) => {
|
|
129
|
+
if (isNowTime(start_time)) {
|
|
130
|
+
return getNowTime();
|
|
131
|
+
}
|
|
132
|
+
return start_time;
|
|
133
|
+
};
|
|
119
134
|
var getServiceTime = (item, currentDate) => {
|
|
120
|
-
const startDate = (0, import_dayjs.default)(currentDate.format("YYYY-MM-DD") + " " + item._extend.start_time);
|
|
135
|
+
const startDate = (0, import_dayjs.default)(currentDate.format("YYYY-MM-DD") + " " + getServeStartTime(item._extend.start_time));
|
|
121
136
|
const startTime = startDate.format("HH:mm");
|
|
122
137
|
const endTime = startDate.add(flexibleObj.getValue(item._extend.duration), "minute").format("HH:mm");
|
|
123
138
|
const duration = getDiscountTime(flexibleObj.getValue(item._extend.duration));
|
|
@@ -130,8 +145,10 @@ var findNextSlice = ({
|
|
|
130
145
|
}) => {
|
|
131
146
|
const currentTimeValue = date || (0, import_dayjs.default)().format("HH:mm");
|
|
132
147
|
for (let i = 0; i < timeSlices.length; i++) {
|
|
133
|
-
if (timeSlices[i].value
|
|
134
|
-
|
|
148
|
+
if (timeSlices[i].value !== "now") {
|
|
149
|
+
if (timeSlices[i].value >= currentTimeValue) {
|
|
150
|
+
return timeSlices[i].value;
|
|
151
|
+
}
|
|
135
152
|
}
|
|
136
153
|
}
|
|
137
154
|
return timeSlices[index].value;
|
|
@@ -190,7 +207,7 @@ var formatProductListByCategory = (list, filterItem) => {
|
|
|
190
207
|
var formatTimes = (resourceItem, cacheItem) => {
|
|
191
208
|
let usableTimes = [];
|
|
192
209
|
let _resourceItem = { ...resourceItem };
|
|
193
|
-
const startDate = (0, import_dayjs.default)(cacheItem._extend.start_date.format("YYYY-MM-DD") + " " + cacheItem._extend.start_time);
|
|
210
|
+
const startDate = (0, import_dayjs.default)(cacheItem._extend.start_date.format("YYYY-MM-DD") + " " + getServeStartTime(cacheItem._extend.start_time));
|
|
194
211
|
const isFlexible = flexibleObj.isFlexible(cacheItem._extend.duration);
|
|
195
212
|
_resourceItem.times = _resourceItem.times.map((d) => {
|
|
196
213
|
let isMaxLimitRange = false;
|
|
@@ -311,7 +328,7 @@ var getEndDate = (startDate, duration, endDate) => {
|
|
|
311
328
|
return startDate.add(duration, "minute");
|
|
312
329
|
};
|
|
313
330
|
var getServiceTimes = (service) => {
|
|
314
|
-
const startDate = (0, import_dayjs.default)((0, import_dayjs.default)(service._extend.start_date).format("YYYY-MM-DD ") + service._extend.start_time);
|
|
331
|
+
const startDate = (0, import_dayjs.default)((0, import_dayjs.default)(service._extend.start_date).format("YYYY-MM-DD ") + getServeStartTime(service._extend.start_time));
|
|
315
332
|
const endDate = startDate.add(flexibleObj.getValue(service._extend.duration), "minute");
|
|
316
333
|
return {
|
|
317
334
|
startDate,
|
|
@@ -357,7 +374,6 @@ var getErrorList = (resource, cacheItem) => {
|
|
|
357
374
|
}
|
|
358
375
|
}
|
|
359
376
|
}
|
|
360
|
-
console.log(cacheItem, "cacheItem");
|
|
361
377
|
return list;
|
|
362
378
|
};
|
|
363
379
|
var formatResource = (resourceItem, cacheItem, formatLabel) => {
|
|
@@ -404,7 +420,6 @@ var getServerItemExtend = (state, cacheItem, timeObj) => {
|
|
|
404
420
|
_extend.start_time = lastServerEndDate.format("HH:mm");
|
|
405
421
|
}
|
|
406
422
|
} else {
|
|
407
|
-
_extend.resource = 0;
|
|
408
423
|
let findNextSliceProps = {
|
|
409
424
|
timeSlices: timeObj.timeSlices,
|
|
410
425
|
index: 0,
|
|
@@ -421,7 +436,12 @@ var getServerItemExtend = (state, cacheItem, timeObj) => {
|
|
|
421
436
|
_extend.resource = Number(resourceId);
|
|
422
437
|
}
|
|
423
438
|
}
|
|
424
|
-
_extend
|
|
439
|
+
console.log("_extend", findNextSliceProps);
|
|
440
|
+
if (findNextSliceProps.date && findNextSliceProps.date !== "00:00") {
|
|
441
|
+
_extend.start_time = findNextSlice(findNextSliceProps);
|
|
442
|
+
} else {
|
|
443
|
+
_extend.start_time = "now";
|
|
444
|
+
}
|
|
425
445
|
}
|
|
426
446
|
_extend = {
|
|
427
447
|
..._extend,
|
|
@@ -479,11 +499,14 @@ var isWalkIn = (customer_id) => {
|
|
|
479
499
|
getEndDate,
|
|
480
500
|
getErrorList,
|
|
481
501
|
getLastServer,
|
|
502
|
+
getNowTime,
|
|
482
503
|
getProductTotalPrice,
|
|
504
|
+
getServeStartTime,
|
|
483
505
|
getServerItemExtend,
|
|
484
506
|
getServiceTime,
|
|
485
507
|
getServiceTimes,
|
|
486
508
|
getShopOpeningHours,
|
|
509
|
+
isNowTime,
|
|
487
510
|
isWalkIn,
|
|
488
511
|
request,
|
|
489
512
|
sliceDayIntoFiveMinutes
|
package/lib/index.d.ts
CHANGED
|
@@ -12,3 +12,4 @@ export { default as BookingStartTime } from './components/booking/materiels/star
|
|
|
12
12
|
export { default as BookingDuration } from './components/booking/materiels/duration';
|
|
13
13
|
export { default as BookingContacts } from './components/booking/materiels/contacts';
|
|
14
14
|
export { default as ProductExtension } from './components/productExtension';
|
|
15
|
+
export { default as BookingDeposit } from './components/booking/deposit';
|
package/lib/index.js
CHANGED
|
@@ -32,6 +32,7 @@ __export(src_exports, {
|
|
|
32
32
|
Booking: () => import_booking.default,
|
|
33
33
|
BookingAddons: () => import_addons.default,
|
|
34
34
|
BookingContacts: () => import_contacts.default,
|
|
35
|
+
BookingDeposit: () => import_deposit.default,
|
|
35
36
|
BookingDuration: () => import_duration.default,
|
|
36
37
|
BookingForms: () => import_forms.default,
|
|
37
38
|
BookingInfo: () => import_info.default,
|
|
@@ -60,6 +61,7 @@ var import_startTime = __toESM(require("./components/booking/materiels/startTime
|
|
|
60
61
|
var import_duration = __toESM(require("./components/booking/materiels/duration"));
|
|
61
62
|
var import_contacts = __toESM(require("./components/booking/materiels/contacts"));
|
|
62
63
|
var import_productExtension = __toESM(require("./components/productExtension"));
|
|
64
|
+
var import_deposit = __toESM(require("./components/booking/deposit"));
|
|
63
65
|
import_dayjs.default.extend(import_weekday.default);
|
|
64
66
|
import_dayjs.default.extend(import_localeData.default);
|
|
65
67
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -67,6 +69,7 @@ import_dayjs.default.extend(import_localeData.default);
|
|
|
67
69
|
Booking,
|
|
68
70
|
BookingAddons,
|
|
69
71
|
BookingContacts,
|
|
72
|
+
BookingDeposit,
|
|
70
73
|
BookingDuration,
|
|
71
74
|
BookingForms,
|
|
72
75
|
BookingInfo,
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
|
|
2
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
3
|
+
|
|
4
|
+
const BookingDepositMeta: ComponentMetadata = {
|
|
5
|
+
"componentName": "BookingDeposit",
|
|
6
|
+
"title": "BookingDeposit",
|
|
7
|
+
"docUrl": "",
|
|
8
|
+
"screenshot": "",
|
|
9
|
+
"devMode": "proCode",
|
|
10
|
+
"npm": {
|
|
11
|
+
"package": "@pisell/private-materials",
|
|
12
|
+
"version": "1.0.4",
|
|
13
|
+
"exportName": "BookingDeposit",
|
|
14
|
+
"main": "src/index.ts",
|
|
15
|
+
"destructuring": true,
|
|
16
|
+
"subName": ""
|
|
17
|
+
},
|
|
18
|
+
"configure": {
|
|
19
|
+
"props": [
|
|
20
|
+
{
|
|
21
|
+
"title": {
|
|
22
|
+
"label": {
|
|
23
|
+
"type": "i18n",
|
|
24
|
+
"en-US": "style",
|
|
25
|
+
"zh-CN": "style"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"name": "style",
|
|
29
|
+
"setter": {
|
|
30
|
+
"componentName": "MixedSetter",
|
|
31
|
+
"isRequired": true,
|
|
32
|
+
"props": {}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"title": {
|
|
37
|
+
"label": {
|
|
38
|
+
"type": "i18n",
|
|
39
|
+
"en-US": "globalState",
|
|
40
|
+
"zh-CN": "globalState"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"name": "globalState",
|
|
44
|
+
"setter": ["JsonSetter", "VariableSetter"],
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"title": {
|
|
48
|
+
"label": {
|
|
49
|
+
"type": "i18n",
|
|
50
|
+
"en-US": "setGlobalState",
|
|
51
|
+
"zh-CN": "setGlobalState"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"name": "setGlobalState",
|
|
55
|
+
"setter": {
|
|
56
|
+
"componentName": "FunctionSetter",
|
|
57
|
+
"isRequired": true
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"title": {
|
|
62
|
+
"label": {
|
|
63
|
+
"type": "i18n",
|
|
64
|
+
"en-US": "setState",
|
|
65
|
+
"zh-CN": "setState"
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"name": "setState",
|
|
69
|
+
"setter": {
|
|
70
|
+
"componentName": "FunctionSetter",
|
|
71
|
+
"isRequired": true
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
"supports": {},
|
|
76
|
+
"component": {}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const snippets: Snippet[] = [
|
|
80
|
+
{
|
|
81
|
+
"title": "BookingDeposit",
|
|
82
|
+
"screenshot": "",
|
|
83
|
+
"schema": {
|
|
84
|
+
"componentName": "BookingDeposit",
|
|
85
|
+
"props": {}
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
];
|
|
89
|
+
|
|
90
|
+
export default {
|
|
91
|
+
...BookingDepositMeta,
|
|
92
|
+
snippets
|
|
93
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/private-materials",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.30",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"ahooks": "^3.7.6",
|
|
59
59
|
"react-infinite-scroll-component": "^6.1.0",
|
|
60
60
|
"rc-virtual-list": "^3.11.3",
|
|
61
|
-
"@pisell/
|
|
61
|
+
"@pisell/icon": "0.0.8",
|
|
62
62
|
"@pisell/utils": "1.0.23",
|
|
63
|
-
"@pisell/
|
|
63
|
+
"@pisell/date-picker": "1.0.68"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"react": "^18.0.0",
|