@pisell/private-materials 3.0.150-gray → 3.0.150

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.
Files changed (80) hide show
  1. package/build/lowcode/index.js +1 -1
  2. package/build/lowcode/meta.js +1 -1
  3. package/build/lowcode/preview.js +8 -8
  4. package/build/lowcode/render/default/view.css +1 -1
  5. package/build/lowcode/render/default/view.js +12 -12
  6. package/build/lowcode/view.css +1 -1
  7. package/build/lowcode/view.js +12 -12
  8. package/es/components/booking/addons/model.d.ts +1 -2
  9. package/es/components/booking/components/footer/index.js +3 -3
  10. package/es/components/booking/forms/forms.d.ts +0 -1
  11. package/es/components/booking/forms/forms.js +2 -4
  12. package/es/components/booking/forms/model.d.ts +1 -2
  13. package/es/components/booking/forms/single/index.d.ts +1 -1
  14. package/es/components/booking/forms/single/index.js +3 -4
  15. package/es/components/booking/info/index.js +1 -2
  16. package/es/components/booking/info/index.less +0 -9
  17. package/es/components/booking/info/pet/index.js +1 -1
  18. package/es/components/booking/info/service/addService/index.d.ts +2 -8
  19. package/es/components/booking/info/service/addService/index.js +36 -82
  20. package/es/components/booking/info/service/addService/index.less +1 -27
  21. package/es/components/booking/info/service/editService/index.js +9 -7
  22. package/es/components/booking/locales.d.ts +0 -48
  23. package/es/components/booking/locales.js +3 -51
  24. package/es/components/booking/model.d.ts +0 -2
  25. package/es/components/booking/notes/index.d.ts +1 -1
  26. package/es/components/booking/notes/model.d.ts +1 -2
  27. package/es/components/booking/payments/model.d.ts +1 -2
  28. package/es/components/booking/utils.d.ts +1 -1
  29. package/es/components/booking/utils.js +51 -54
  30. package/es/components/eftposPay/index.js +2 -0
  31. package/es/components/eftposPay/tyro/index.js +11 -8
  32. package/es/components/schedules/index.d.ts +1 -1
  33. package/es/components/schedules/model.d.ts +1 -2
  34. package/es/index.d.ts +0 -2
  35. package/es/index.js +1 -3
  36. package/lib/components/booking/addons/model.d.ts +1 -2
  37. package/lib/components/booking/components/footer/index.js +3 -3
  38. package/lib/components/booking/forms/forms.d.ts +0 -1
  39. package/lib/components/booking/forms/forms.js +2 -5
  40. package/lib/components/booking/forms/model.d.ts +1 -2
  41. package/lib/components/booking/forms/single/index.d.ts +1 -1
  42. package/lib/components/booking/forms/single/index.js +2 -4
  43. package/lib/components/booking/info/client/index.js +8 -1
  44. package/lib/components/booking/info/index.js +1 -4
  45. package/lib/components/booking/info/index.less +0 -9
  46. package/lib/components/booking/info/pet/index.js +1 -2
  47. package/lib/components/booking/info/service/addService/index.d.ts +2 -8
  48. package/lib/components/booking/info/service/addService/index.js +29 -67
  49. package/lib/components/booking/info/service/addService/index.less +1 -27
  50. package/lib/components/booking/info/service/editService/index.js +3 -6
  51. package/lib/components/booking/locales.d.ts +0 -48
  52. package/lib/components/booking/locales.js +3 -51
  53. package/lib/components/booking/model.d.ts +0 -2
  54. package/lib/components/booking/notes/index.d.ts +1 -1
  55. package/lib/components/booking/notes/model.d.ts +1 -2
  56. package/lib/components/booking/payments/model.d.ts +1 -2
  57. package/lib/components/booking/utils.d.ts +1 -1
  58. package/lib/components/booking/utils.js +22 -57
  59. package/lib/components/eftposPay/index.js +2 -0
  60. package/lib/components/eftposPay/tyro/index.js +7 -6
  61. package/lib/components/schedules/index.d.ts +1 -1
  62. package/lib/components/schedules/model.d.ts +1 -2
  63. package/lib/index.d.ts +0 -2
  64. package/lib/index.js +0 -6
  65. package/package.json +3 -3
  66. package/es/components/booking/dashboard/index.d.ts +0 -9
  67. package/es/components/booking/dashboard/index.js +0 -241
  68. package/es/components/booking/dashboard/serve.d.ts +0 -1
  69. package/es/components/booking/dashboard/serve.js +0 -27
  70. package/es/components/booking/info/addServiceVariant/index.d.ts +0 -7
  71. package/es/components/booking/info/addServiceVariant/index.js +0 -33
  72. package/lib/components/booking/dashboard/index.d.ts +0 -9
  73. package/lib/components/booking/dashboard/index.js +0 -224
  74. package/lib/components/booking/dashboard/serve.d.ts +0 -1
  75. package/lib/components/booking/dashboard/serve.js +0 -33
  76. package/lib/components/booking/info/addServiceVariant/index.d.ts +0 -7
  77. package/lib/components/booking/info/addServiceVariant/index.js +0 -58
  78. package/lowcode/booking-dashboard/meta.ts +0 -123
  79. package/lowcode/booking-vertical-add-service/meta.ts +0 -124
  80. package/lowcode/vertical-add-service/meta.ts +0 -71
@@ -1,224 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/components/booking/dashboard/index.tsx
30
- var dashboard_exports = {};
31
- __export(dashboard_exports, {
32
- default: () => dashboard_default
33
- });
34
- module.exports = __toCommonJS(dashboard_exports);
35
- var import_react = __toESM(require("react"));
36
- var import_materials = require("@pisell/materials");
37
- var import_utils = require("@pisell/utils");
38
- var import_dayjs = __toESM(require("dayjs"));
39
- var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext"));
40
- var import_utils2 = require("../utils");
41
- var import_serve = require("./serve");
42
- var import_locales = __toESM(require("../locales"));
43
- import_utils.locales.init(import_locales.default, localStorage.getItem("umi_locale") || "en");
44
- var BookingDashboard = (props) => {
45
- const {
46
- otherParams = {},
47
- backgroundColors,
48
- labelColor,
49
- valueColor,
50
- ...others
51
- } = props;
52
- const context = (0, import_useEngineContext.default)();
53
- import_utils2.request.setRequest(context.appHelper.utils.request);
54
- const [data, setData] = (0, import_react.useState)([
55
- // 当前在场团体
56
- {
57
- label: import_utils.locales.getText("pisell2.booking.dashboard.groups-on-site-now"),
58
- value: "-",
59
- tip: import_utils.locales.getText("pisell2.booking.dashboard.groups-on-site-now-tip")
60
- },
61
- // 当前在场人数
62
- {
63
- label: import_utils.locales.getText("pisell2.booking.dashboard.people-on-site-now"),
64
- value: "-",
65
- tip: import_utils.locales.getText("pisell2.booking.dashboard.people-on-site-now-tip")
66
- },
67
- // 今日游客总数
68
- {
69
- label: import_utils.locales.getText("pisell2.booking.dashboard.total-visitors-today"),
70
- value: "-",
71
- tip: import_utils.locales.getText("pisell2.booking.dashboard.total-visitors-today-tip")
72
- },
73
- // 正在进行中的游客
74
- {
75
- label: import_utils.locales.getText("pisell2.booking.dashboard.ongoing-visitors"),
76
- value: "-",
77
- tip: import_utils.locales.getText("pisell2.booking.dashboard.ongoing-visitors-tip")
78
- },
79
- // 即将到达的游客
80
- {
81
- label: import_utils.locales.getText("pisell2.booking.dashboard.upcoming-visitors"),
82
- value: "-",
83
- tip: import_utils.locales.getText("pisell2.booking.dashboard.upcoming-visitors-tip")
84
- },
85
- // 超时的游客
86
- {
87
- label: import_utils.locales.getText("pisell2.booking.dashboard.overdue-visitors"),
88
- value: "-",
89
- tip: import_utils.locales.getText("pisell2.booking.dashboard.overdue-visitors-tip")
90
- },
91
- // 已完成的游客
92
- {
93
- label: import_utils.locales.getText("pisell2.booking.dashboard.completed-visitors"),
94
- value: "-",
95
- tip: import_utils.locales.getText("pisell2.booking.dashboard.completed-visitors-tip")
96
- },
97
- // 已离场的游客
98
- {
99
- label: import_utils.locales.getText("pisell2.booking.dashboard.departed-visitors"),
100
- value: "-",
101
- tip: import_utils.locales.getText("pisell2.booking.dashboard.departed-visitors-tip")
102
- }
103
- ]);
104
- const [bookingData, setBookingData] = (0, import_react.useState)([]);
105
- const getData = async () => {
106
- const data2 = await (0, import_serve.getBookingList)({
107
- ...otherParams,
108
- item_type: "appointment_booking",
109
- parent_id: 0,
110
- with: ["children"],
111
- child_booking: 0,
112
- skip: 1,
113
- num: 1e3
114
- });
115
- setBookingData(data2.list);
116
- };
117
- const calcBookingDataCount = (data2) => {
118
- let groupsOnSiteNow = "-";
119
- let peopleOnSiteNow = "-";
120
- let totalVisitorsToday = 0;
121
- let ongoing = 0;
122
- let upcoming = 0;
123
- let overdue = "-";
124
- let completed = 0;
125
- let departed = "-";
126
- data2.forEach((item) => {
127
- if ((0, import_utils.isArr)(item.children)) {
128
- item.children.forEach((child) => {
129
- const start = (0, import_dayjs.default)(`${child.start_date} ${child.start_time}`);
130
- const end = (0, import_dayjs.default)(`${child.end_date} ${child.end_time}`);
131
- totalVisitorsToday += child.number;
132
- if (start < (0, import_dayjs.default)() && end > (0, import_dayjs.default)()) {
133
- ongoing += child.number || 1;
134
- }
135
- if ((0, import_dayjs.default)() < start) {
136
- upcoming += child.number || 1;
137
- }
138
- if ((0, import_dayjs.default)() > end) {
139
- completed += child.number || 1;
140
- }
141
- });
142
- }
143
- });
144
- setData([
145
- // 当前在场团体
146
- {
147
- label: import_utils.locales.getText("pisell2.booking.dashboard.groups-on-site-now"),
148
- tip: import_utils.locales.getText("pisell2.booking.dashboard.groups-on-site-now-tip"),
149
- value: `${groupsOnSiteNow}`
150
- },
151
- // 当前在场人数
152
- {
153
- label: import_utils.locales.getText("pisell2.booking.dashboard.people-on-site-now"),
154
- tip: import_utils.locales.getText("pisell2.booking.dashboard.people-on-site-now-tip"),
155
- value: `${peopleOnSiteNow}`
156
- },
157
- // 今日游客总数
158
- {
159
- label: import_utils.locales.getText("pisell2.booking.dashboard.total-visitors-today"),
160
- tip: import_utils.locales.getText("pisell2.booking.dashboard.total-visitors-today-tip"),
161
- value: `${totalVisitorsToday}`
162
- },
163
- // 正在进行中的游客
164
- {
165
- label: import_utils.locales.getText("pisell2.booking.dashboard.ongoing-visitors"),
166
- tip: import_utils.locales.getText("pisell2.booking.dashboard.ongoing-visitors-tip"),
167
- value: `${ongoing}`
168
- },
169
- // 即将到达的游客
170
- {
171
- label: import_utils.locales.getText("pisell2.booking.dashboard.upcoming-visitors"),
172
- tip: import_utils.locales.getText("pisell2.booking.dashboard.upcoming-visitors-tip"),
173
- value: `${upcoming}`
174
- },
175
- // 超时的游客
176
- {
177
- label: import_utils.locales.getText("pisell2.booking.dashboard.overdue-visitors"),
178
- tip: import_utils.locales.getText("pisell2.booking.dashboard.overdue-visitors-tip"),
179
- value: `${overdue}`
180
- },
181
- // 已完成的游客
182
- {
183
- label: import_utils.locales.getText("pisell2.booking.dashboard.completed-visitors"),
184
- tip: import_utils.locales.getText("pisell2.booking.dashboard.completed-visitors-tip"),
185
- value: `${completed}`
186
- },
187
- // 已离场的游客
188
- {
189
- label: import_utils.locales.getText("pisell2.booking.dashboard.departed-visitors"),
190
- tip: import_utils.locales.getText("pisell2.booking.dashboard.departed-visitors-tip"),
191
- value: `${departed}`
192
- }
193
- ]);
194
- };
195
- (0, import_react.useEffect)(() => {
196
- calcBookingDataCount(bookingData);
197
- const timer = setInterval(() => {
198
- calcBookingDataCount(bookingData);
199
- }, 60 * 1e3);
200
- return () => {
201
- clearInterval(timer);
202
- };
203
- }, [bookingData]);
204
- (0, import_react.useEffect)(() => {
205
- getData();
206
- const timer = setInterval(() => {
207
- getData();
208
- }, 10 * 60 * 1e3);
209
- return () => {
210
- clearInterval(timer);
211
- };
212
- }, [JSON.stringify(otherParams)]);
213
- return /* @__PURE__ */ import_react.default.createElement(
214
- import_materials.PisellStatisticList,
215
- {
216
- ...others,
217
- data,
218
- backgroundColors,
219
- labelColor,
220
- valueColor
221
- }
222
- );
223
- };
224
- var dashboard_default = BookingDashboard;
@@ -1 +0,0 @@
1
- export declare const getBookingList: (params: any) => Promise<any>;
@@ -1,33 +0,0 @@
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/booking/dashboard/serve.ts
20
- var serve_exports = {};
21
- __export(serve_exports, {
22
- getBookingList: () => getBookingList
23
- });
24
- module.exports = __toCommonJS(serve_exports);
25
- var import_utils = require("../utils");
26
- var getBookingList = async (params) => {
27
- let { data } = await import_utils.request.getRequest().get(`/shop/schedule/booking`, params);
28
- return data;
29
- };
30
- // Annotate the CommonJS export names for ESM import in node:
31
- 0 && (module.exports = {
32
- getBookingList
33
- });
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- interface AddServiceVariantProps {
3
- globalState: any;
4
- setGlobalState: any;
5
- }
6
- declare const AddServiceVariant: (props: AddServiceVariantProps) => React.JSX.Element;
7
- export default AddServiceVariant;
@@ -1,58 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
-
29
- // src/components/booking/info/addServiceVariant/index.tsx
30
- var addServiceVariant_exports = {};
31
- __export(addServiceVariant_exports, {
32
- default: () => addServiceVariant_default
33
- });
34
- module.exports = __toCommonJS(addServiceVariant_exports);
35
- var import_react = __toESM(require("react"));
36
- var import_addService = __toESM(require("../service/addService"));
37
- var AddServiceVariant = (props) => {
38
- const { globalState, setGlobalState } = props;
39
- const stateRef = (0, import_react.useRef)(globalState);
40
- stateRef.current = globalState;
41
- const dispatch = ({ type, payload }) => {
42
- if (type === "setService") {
43
- setGlobalState({
44
- service: { ...stateRef.current.service, ...payload }
45
- });
46
- }
47
- };
48
- return /* @__PURE__ */ import_react.default.createElement(
49
- import_addService.default,
50
- {
51
- renderMode: "current",
52
- dispatch,
53
- state: globalState,
54
- drawerProps: { open: true, getContainer: false }
55
- }
56
- );
57
- };
58
- var addServiceVariant_default = AddServiceVariant;
@@ -1,123 +0,0 @@
1
- import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
2
-
3
- const BookingDashboardMeta: ComponentMetadata = {
4
- componentName: 'BookingDashboard',
5
- title: 'BookingDashboard',
6
- docUrl: '',
7
- screenshot: '',
8
- devMode: 'proCode',
9
- npm: {
10
- package: '@pisell/private-materials',
11
- version: '1.0.4',
12
- exportName: 'BookingDashboard',
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': 'backgroundColors',
24
- 'zh-CN': 'backgroundColors',
25
- },
26
- },
27
- name: 'backgroundColors',
28
- setter: {
29
- componentName: 'MixedSetter',
30
- props: {
31
- setters: [
32
- {
33
- componentName: 'ArraySetter',
34
- props: {
35
- itemSetter: {
36
- componentName: 'StringSetter',
37
- isRequired: false,
38
- initialValue: '',
39
- },
40
- },
41
- initialValue: [],
42
- },
43
- ],
44
- },
45
- },
46
- },
47
- {
48
- title: {
49
- label: {
50
- type: 'i18n',
51
- 'en-US': 'labelColor',
52
- 'zh-CN': 'labelColor',
53
- },
54
- },
55
- name: 'labelColor',
56
- setter: {
57
- componentName: 'MixedSetter',
58
- props: {
59
- setters: [
60
- {
61
- componentName: 'StringSetter',
62
- isRequired: false,
63
- initialValue: '',
64
- },
65
- ],
66
- },
67
- },
68
- },
69
- {
70
- title: {
71
- label: {
72
- type: 'i18n',
73
- 'en-US': 'valueColor',
74
- 'zh-CN': 'valueColor',
75
- },
76
- },
77
- name: 'valueColor',
78
- setter: {
79
- componentName: 'MixedSetter',
80
- props: {
81
- setters: [
82
- {
83
- componentName: 'StringSetter',
84
- isRequired: false,
85
- initialValue: '',
86
- },
87
- ],
88
- },
89
- },
90
- },
91
- {
92
- title: {
93
- label: {
94
- type: 'i18n',
95
- 'en-US': 'otherParams',
96
- 'zh-CN': 'otherParams',
97
- },
98
- },
99
- name: 'otherParams',
100
- setter: ["JsonSetter","VariableSetter"],
101
- },
102
- ],
103
- supports: {
104
- style: true,
105
- },
106
- component: {},
107
- },
108
- };
109
- const snippets: Snippet[] = [
110
- {
111
- title: 'BookingDashboard',
112
- screenshot: '',
113
- schema: {
114
- componentName: 'BookingDashboard',
115
- props: {},
116
- },
117
- },
118
- ];
119
-
120
- export default {
121
- ...BookingDashboardMeta,
122
- snippets,
123
- };
@@ -1,124 +0,0 @@
1
-
2
- import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
3
-
4
- const VerticalAddServiceMeta: ComponentMetadata = {
5
- "componentName": "VerticalAddService",
6
- "title": "VerticalAddService",
7
- "docUrl": "",
8
- "screenshot": "",
9
- "devMode": "proCode",
10
- "npm": {
11
- "package": "@pisell/private-materials",
12
- "version": "1.0.4",
13
- "exportName": "VerticalAddService",
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": "setModalState",
51
- "zh-CN": "setModalState"
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
- "title": {
76
- "label": {
77
- "type": "i18n",
78
- "en-US": "callback",
79
- "zh-CN": "callback"
80
- }
81
- },
82
- "name": "callback",
83
- "setter": {
84
- "componentName": "FunctionSetter",
85
- "isRequired": true
86
- }
87
- },
88
- {
89
- "title": {
90
- "label": {
91
- "type": "i18n",
92
- "en-US": "插槽",
93
- "zh-CN": "插槽"
94
- }
95
- },
96
- "name": "slot",
97
- "propType": "node",
98
- "setter": {
99
- "componentName": "SlotSetter",
100
- "initialValue": {
101
- "type": "JSSlot",
102
- },
103
- },
104
- },
105
- ],
106
- "supports": {},
107
- "component": {}
108
- }
109
- };
110
- const snippets: Snippet[] = [
111
- {
112
- "title": "VerticalAddService",
113
- "screenshot": "",
114
- "schema": {
115
- "componentName": "VerticalAddService",
116
- "props": {}
117
- }
118
- }
119
- ];
120
-
121
- export default {
122
- ...VerticalAddServiceMeta,
123
- snippets
124
- };
@@ -1,71 +0,0 @@
1
-
2
- import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
3
-
4
- const VerticalAddServiceMeta: ComponentMetadata = {
5
- "componentName": "VerticalAddService",
6
- "title": "VerticalAddService",
7
- "docUrl": "",
8
- "screenshot": "",
9
- "devMode": "proCode",
10
- "npm": {
11
- "package": "@pisell/private-materials",
12
- "version": "3.0.141",
13
- "exportName": "VerticalAddService",
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": "globalState",
25
- "zh-CN": "globalState"
26
- }
27
- },
28
- "name": "globalState",
29
- "setter": {
30
- "componentName": "MixedSetter",
31
- "isRequired": true,
32
- "props": {}
33
- }
34
- },
35
- {
36
- "title": {
37
- "label": {
38
- "type": "i18n",
39
- "en-US": "setGlobalState",
40
- "zh-CN": "setGlobalState"
41
- }
42
- },
43
- "name": "setGlobalState",
44
- "setter": {
45
- "componentName": "MixedSetter",
46
- "isRequired": true,
47
- "props": {}
48
- }
49
- }
50
- ],
51
- "supports": {
52
- "style": true
53
- },
54
- "component": {}
55
- }
56
- };
57
- const snippets: Snippet[] = [
58
- {
59
- "title": "VerticalAddService",
60
- "screenshot": "",
61
- "schema": {
62
- "componentName": "VerticalAddService",
63
- "props": {}
64
- }
65
- }
66
- ];
67
-
68
- export default {
69
- ...VerticalAddServiceMeta,
70
- snippets
71
- };