mall-components 1.0.0

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 (122) hide show
  1. package/README.md +128 -0
  2. package/build/_components-raw.css +791 -0
  3. package/build/_shims/antd.js +1 -0
  4. package/build/_shims/icons.js +1 -0
  5. package/build/_shims/moment.js +1 -0
  6. package/build/_shims/react-dom.js +1 -0
  7. package/build/_shims/react.js +1 -0
  8. package/build/adapters/DataSourceAdapter.d.ts +46 -0
  9. package/build/components/AdminLayout/AdminLayout.d.ts +5 -0
  10. package/build/components/AdminLayout/Breadcrumb.d.ts +8 -0
  11. package/build/components/AdminLayout/MainContent.d.ts +17 -0
  12. package/build/components/AdminLayout/Navbar.d.ts +10 -0
  13. package/build/components/AdminLayout/Sidebar.d.ts +14 -0
  14. package/build/components/AdminLayout/TabBar.d.ts +13 -0
  15. package/build/components/AdminLayout/TabPane.d.ts +4 -0
  16. package/build/components/AdminLayout/index.d.ts +3 -0
  17. package/build/components/AdminLayout/types.d.ts +42 -0
  18. package/build/components/CouponCard/CouponCard.d.ts +20 -0
  19. package/build/components/CouponCard/index.d.ts +1 -0
  20. package/build/components/OrderForm/OrderForm.d.ts +18 -0
  21. package/build/components/OrderForm/index.d.ts +1 -0
  22. package/build/components/OrderList/OrderList.d.ts +29 -0
  23. package/build/components/OrderList/index.d.ts +1 -0
  24. package/build/components/ProductForm/ProductForm.d.ts +18 -0
  25. package/build/components/ProductForm/index.d.ts +3 -0
  26. package/build/components/ProductList/ProductList.d.ts +47 -0
  27. package/build/components/ProductList/index.d.ts +3 -0
  28. package/build/components/PromotionCard/PromotionCard.d.ts +22 -0
  29. package/build/components/PromotionCard/index.d.ts +1 -0
  30. package/build/components/RoleCard/RoleCard.d.ts +18 -0
  31. package/build/components/RoleCard/index.d.ts +1 -0
  32. package/build/components/UserCard/UserCard.d.ts +17 -0
  33. package/build/components/UserCard/index.d.ts +1 -0
  34. package/build/entry-meta.d.ts +603 -0
  35. package/build/index.css +1 -0
  36. package/build/index.js +1 -0
  37. package/build/mall-components-meta.js +2563 -0
  38. package/build/mall-components.cdn.umd.css +1 -0
  39. package/build/mall-components.cdn.umd.js +8 -0
  40. package/build/mall-components.codesandbox.combined.js +1094 -0
  41. package/build/mall-components.codesandbox.css +401 -0
  42. package/build/mall-components.codesandbox.js +1080 -0
  43. package/build/mall-components.umd.css +1 -0
  44. package/build/mall-components.umd.js +8 -0
  45. package/build/meta/adminLayoutMeta.d.ts +3 -0
  46. package/build/meta/couponCardMeta.d.ts +128 -0
  47. package/build/meta/icons.d.ts +10 -0
  48. package/build/meta/orderFormMeta.d.ts +111 -0
  49. package/build/meta/orderListMeta.d.ts +170 -0
  50. package/build/meta/productFormMeta.d.ts +3 -0
  51. package/build/meta/productListMeta.d.ts +200 -0
  52. package/build/meta/promotionCardMeta.d.ts +129 -0
  53. package/build/meta/roleCardMeta.d.ts +3 -0
  54. package/build/meta/tabPaneMeta.d.ts +3 -0
  55. package/build/meta/userCardMeta.d.ts +3 -0
  56. package/build/meta.d.ts +605 -0
  57. package/build/setters/RestApiTester.d.ts +11 -0
  58. package/build/types/common.d.ts +17 -0
  59. package/build/types/marketing.d.ts +128 -0
  60. package/build/types/order.d.ts +174 -0
  61. package/build/types/permission.d.ts +101 -0
  62. package/build/types/product.d.ts +47 -0
  63. package/package.json +1 -0
  64. package/src/adapters/DataSourceAdapter.ts +445 -0
  65. package/src/components/AdminLayout/AdminLayout.scss +447 -0
  66. package/src/components/AdminLayout/AdminLayout.tsx +681 -0
  67. package/src/components/AdminLayout/Breadcrumb.tsx +60 -0
  68. package/src/components/AdminLayout/MainContent.tsx +54 -0
  69. package/src/components/AdminLayout/Navbar.tsx +76 -0
  70. package/src/components/AdminLayout/Sidebar.tsx +256 -0
  71. package/src/components/AdminLayout/TabBar.tsx +177 -0
  72. package/src/components/AdminLayout/TabPane.tsx +29 -0
  73. package/src/components/AdminLayout/index.ts +3 -0
  74. package/src/components/AdminLayout/types.ts +46 -0
  75. package/src/components/CouponCard/CouponCard.scss +55 -0
  76. package/src/components/CouponCard/CouponCard.tsx +687 -0
  77. package/src/components/CouponCard/index.ts +1 -0
  78. package/src/components/OrderForm/OrderForm.scss +148 -0
  79. package/src/components/OrderForm/OrderForm.tsx +503 -0
  80. package/src/components/OrderForm/index.ts +1 -0
  81. package/src/components/OrderList/OrderList.scss +160 -0
  82. package/src/components/OrderList/OrderList.tsx +885 -0
  83. package/src/components/OrderList/index.ts +1 -0
  84. package/src/components/ProductForm/ProductForm.scss +23 -0
  85. package/src/components/ProductForm/ProductForm.tsx +442 -0
  86. package/src/components/ProductForm/index.ts +3 -0
  87. package/src/components/ProductList/ProductList.scss +293 -0
  88. package/src/components/ProductList/ProductList.tsx +454 -0
  89. package/src/components/ProductList/index.ts +3 -0
  90. package/src/components/PromotionCard/PromotionCard.scss +71 -0
  91. package/src/components/PromotionCard/PromotionCard.tsx +579 -0
  92. package/src/components/PromotionCard/index.ts +1 -0
  93. package/src/components/RoleCard/RoleCard.scss +77 -0
  94. package/src/components/RoleCard/RoleCard.tsx +463 -0
  95. package/src/components/RoleCard/index.ts +1 -0
  96. package/src/components/UserCard/UserCard.scss +51 -0
  97. package/src/components/UserCard/UserCard.tsx +432 -0
  98. package/src/components/UserCard/index.ts +1 -0
  99. package/src/entry-components.ts +39 -0
  100. package/src/entry-meta.ts +23 -0
  101. package/src/index.scss +4 -0
  102. package/src/index.ts +36 -0
  103. package/src/index.tsx +17 -0
  104. package/src/meta/adminLayoutMeta.ts +154 -0
  105. package/src/meta/couponCardMeta.ts +287 -0
  106. package/src/meta/icons.ts +41 -0
  107. package/src/meta/orderFormMeta.ts +279 -0
  108. package/src/meta/orderListMeta.ts +443 -0
  109. package/src/meta/productFormMeta.ts +253 -0
  110. package/src/meta/productListMeta.ts +434 -0
  111. package/src/meta/promotionCardMeta.ts +276 -0
  112. package/src/meta/roleCardMeta.ts +142 -0
  113. package/src/meta/tabPaneMeta.ts +69 -0
  114. package/src/meta/userCardMeta.ts +128 -0
  115. package/src/meta.ts +25 -0
  116. package/src/setters/RestApiTester.tsx +219 -0
  117. package/src/shims/require.js +8 -0
  118. package/src/types/common.ts +19 -0
  119. package/src/types/marketing.ts +124 -0
  120. package/src/types/order.ts +169 -0
  121. package/src/types/permission.ts +102 -0
  122. package/src/types/product.ts +49 -0
@@ -0,0 +1,2563 @@
1
+ (function(root, factory) {
2
+ if (typeof define === 'function' && define.amd) {
3
+ define([], factory);
4
+ } else if (typeof module === 'object' && module.exports) {
5
+ module.exports = factory();
6
+ } else {
7
+ root.MallComponentsMeta = factory();
8
+ }
9
+ }(typeof self !== 'undefined' ? self : this, function() {
10
+ var __META_RAW__ = (() => {
11
+ var __create = Object.create;
12
+ var __defProp = Object.defineProperty;
13
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
14
+ var __getOwnPropNames = Object.getOwnPropertyNames;
15
+ var __getProtoOf = Object.getPrototypeOf;
16
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
17
+ var __commonJS = (cb, mod) => function __require() {
18
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
19
+ };
20
+ var __export = (target, all) => {
21
+ for (var name in all)
22
+ __defProp(target, name, { get: all[name], enumerable: true });
23
+ };
24
+ var __copyProps = (to, from, except, desc) => {
25
+ if (from && typeof from === "object" || typeof from === "function") {
26
+ for (let key of __getOwnPropNames(from))
27
+ if (!__hasOwnProp.call(to, key) && key !== except)
28
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
29
+ }
30
+ return to;
31
+ };
32
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
33
+ // If the importer is in node compatibility mode or this is not an ESM
34
+ // file that has been converted to a CommonJS file using a Babel-
35
+ // compatible transform (i.e. "__esModule" has not been set), then set
36
+ // "default" to the CommonJS "module.exports" for node compatibility.
37
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
38
+ mod
39
+ ));
40
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
41
+
42
+ // external:react
43
+ var require_react = __commonJS({
44
+ "external:react"(exports, module) {
45
+ module.exports = Object.assign(window.React, { jsx: window.React.createElement, jsxs: window.React.createElement, Fragment: window.React.Fragment });
46
+ }
47
+ });
48
+
49
+ // src/meta.ts
50
+ var meta_exports = {};
51
+ __export(meta_exports, {
52
+ default: () => meta_default
53
+ });
54
+
55
+ // src/meta/icons.ts
56
+ var import_react = __toESM(require_react());
57
+ var getIconComponent = (iconName) => {
58
+ const icons = window.icons;
59
+ if (!icons || !icons[iconName]) {
60
+ console.warn(`[MallComponents] Icon "${iconName}" not found in window.icons`);
61
+ return null;
62
+ }
63
+ return icons[iconName];
64
+ };
65
+ var Icons = {
66
+ get list() {
67
+ const Icon = getIconComponent("BarsOutlined");
68
+ return Icon ? import_react.default.createElement(Icon) : null;
69
+ },
70
+ get form() {
71
+ const Icon = getIconComponent("FormOutlined");
72
+ return Icon ? import_react.default.createElement(Icon) : null;
73
+ },
74
+ get gift() {
75
+ const Icon = getIconComponent("GiftOutlined");
76
+ return Icon ? import_react.default.createElement(Icon) : null;
77
+ },
78
+ get star() {
79
+ const Icon = getIconComponent("StarOutlined");
80
+ return Icon ? import_react.default.createElement(Icon) : null;
81
+ },
82
+ get user() {
83
+ const Icon = getIconComponent("UserOutlined");
84
+ return Icon ? import_react.default.createElement(Icon) : null;
85
+ },
86
+ get team() {
87
+ const Icon = getIconComponent("TeamOutlined");
88
+ return Icon ? import_react.default.createElement(Icon) : null;
89
+ },
90
+ get file() {
91
+ const Icon = getIconComponent("FileOutlined");
92
+ return Icon ? import_react.default.createElement(Icon) : null;
93
+ }
94
+ };
95
+
96
+ // src/meta/productListMeta.ts
97
+ var defaultMockData = {
98
+ code: 200,
99
+ message: "success",
100
+ data: {
101
+ pageNum: 1,
102
+ pageSize: 10,
103
+ total: 50,
104
+ list: [
105
+ {
106
+ id: 1,
107
+ name: "\u65F6\u5C1A\u8FD0\u52A8\u978B",
108
+ productSn: "PRODUCT001",
109
+ price: 299,
110
+ stock: 100,
111
+ sale: 120,
112
+ brandName: "\u65F6\u5C1A\u8FD0\u52A8",
113
+ productCategoryName: "\u978B\u5B50",
114
+ pic: "https://img.yzcdn.cn/vant/cat.jpeg",
115
+ publishStatus: 1,
116
+ newStatus: 1,
117
+ recommandStatus: 1,
118
+ verifyStatus: 1
119
+ },
120
+ {
121
+ id: 2,
122
+ name: "\u4F11\u95F2T\u6064",
123
+ productSn: "PRODUCT002",
124
+ price: 99,
125
+ stock: 200,
126
+ sale: 350,
127
+ brandName: "\u4F11\u95F2\u670D\u9970",
128
+ productCategoryName: "\u8863\u670D",
129
+ pic: "https://img.yzcdn.cn/vant/cat.jpeg",
130
+ publishStatus: 1,
131
+ newStatus: 1,
132
+ recommandStatus: 0,
133
+ verifyStatus: 1
134
+ },
135
+ {
136
+ id: 3,
137
+ name: "\u53CC\u80A9\u80CC\u5305",
138
+ productSn: "PRODUCT003",
139
+ price: 189,
140
+ stock: 80,
141
+ sale: 80,
142
+ brandName: "\u65C5\u884C\u7BB1\u5305",
143
+ productCategoryName: "\u914D\u9970",
144
+ pic: "https://img.yzcdn.cn/vant/cat.jpeg",
145
+ publishStatus: 1,
146
+ newStatus: 0,
147
+ recommandStatus: 1,
148
+ verifyStatus: 1
149
+ },
150
+ {
151
+ id: 4,
152
+ name: "\u8FD0\u52A8\u624B\u8868",
153
+ productSn: "PRODUCT004",
154
+ price: 499,
155
+ stock: 50,
156
+ sale: 60,
157
+ brandName: "\u667A\u80FD\u6570\u7801",
158
+ productCategoryName: "\u6570\u7801",
159
+ pic: "https://img.yzcdn.cn/vant/cat.jpeg",
160
+ publishStatus: 1,
161
+ newStatus: 1,
162
+ recommandStatus: 1,
163
+ verifyStatus: 1
164
+ },
165
+ {
166
+ id: 5,
167
+ name: "\u725B\u4ED4\u88E4",
168
+ productSn: "PRODUCT005",
169
+ price: 199,
170
+ stock: 150,
171
+ sale: 280,
172
+ brandName: "\u65F6\u5C1A\u725B\u4ED4",
173
+ productCategoryName: "\u8863\u670D",
174
+ pic: "https://img.yzcdn.cn/vant/cat.jpeg",
175
+ publishStatus: 1,
176
+ newStatus: 0,
177
+ recommandStatus: 0,
178
+ verifyStatus: 1
179
+ }
180
+ ]
181
+ }
182
+ };
183
+ var productListMeta_default = {
184
+ componentName: "ProductList",
185
+ title: "\u5546\u54C1\u5217\u8868",
186
+ docUrl: "https://github.com/alibaba/lowcode-engine",
187
+ screenshot: "",
188
+ npm: {
189
+ package: "mall-components",
190
+ version: "1.0.0",
191
+ exportName: "ProductList",
192
+ destructuring: true
193
+ },
194
+ props: [
195
+ {
196
+ name: "dataSourceType",
197
+ propType: "string",
198
+ description: "\u6570\u636E\u6E90\u7C7B\u578B",
199
+ defaultValue: "mock"
200
+ },
201
+ {
202
+ name: "api",
203
+ propType: "string",
204
+ description: "API \u5730\u5740"
205
+ },
206
+ {
207
+ name: "method",
208
+ propType: "string",
209
+ description: "\u8BF7\u6C42\u65B9\u6CD5",
210
+ defaultValue: "GET"
211
+ },
212
+ {
213
+ name: "mockData",
214
+ propType: "string",
215
+ description: "Mock \u6570\u636E",
216
+ defaultValue: JSON.stringify(defaultMockData)
217
+ },
218
+ {
219
+ name: "variableName",
220
+ propType: "string",
221
+ description: "\u53D8\u91CF\u540D\u79F0"
222
+ },
223
+ {
224
+ name: "showFilter",
225
+ propType: "bool",
226
+ description: "\u662F\u5426\u663E\u793A\u7B5B\u9009\u641C\u7D22\u533A\u57DF",
227
+ defaultValue: true
228
+ },
229
+ {
230
+ name: "showAction",
231
+ propType: "bool",
232
+ description: "\u662F\u5426\u663E\u793A\u64CD\u4F5C\u533A\u57DF",
233
+ defaultValue: true
234
+ },
235
+ {
236
+ name: "showSelection",
237
+ propType: "bool",
238
+ description: "\u662F\u5426\u663E\u793A\u9009\u62E9\u5217",
239
+ defaultValue: true
240
+ },
241
+ {
242
+ name: "showOperation",
243
+ propType: "bool",
244
+ description: "\u662F\u5426\u663E\u793A\u64CD\u4F5C\u5217",
245
+ defaultValue: true
246
+ },
247
+ {
248
+ name: "showStatus",
249
+ propType: "bool",
250
+ description: "\u662F\u5426\u663E\u793A\u72B6\u6001\u5217",
251
+ defaultValue: true
252
+ },
253
+ {
254
+ name: "showPagination",
255
+ propType: "bool",
256
+ description: "\u662F\u5426\u663E\u793A\u5206\u9875\u533A\u57DF",
257
+ defaultValue: true
258
+ },
259
+ {
260
+ name: "actionButtons",
261
+ propType: "array",
262
+ description: "\u64CD\u4F5C\u6309\u94AE\u914D\u7F6E"
263
+ },
264
+ {
265
+ name: "batchOperations",
266
+ propType: "array",
267
+ description: "\u6279\u91CF\u64CD\u4F5C\u914D\u7F6E"
268
+ }
269
+ ],
270
+ configure: {
271
+ supports: {
272
+ style: true,
273
+ events: [
274
+ { name: "onRowClick", description: "\u884C\u70B9\u51FB" },
275
+ { name: "onSearch", description: "\u641C\u7D22" },
276
+ { name: "onPageChange", description: "\u5206\u9875\u53D8\u5316" },
277
+ { name: "onActionClick", description: "\u64CD\u4F5C\u6309\u94AE\u70B9\u51FB" },
278
+ { name: "onBatchOperation", description: "\u6279\u91CF\u64CD\u4F5C" }
279
+ ]
280
+ },
281
+ props: [
282
+ {
283
+ type: "group",
284
+ title: "\u6570\u636E\u6E90\u914D\u7F6E",
285
+ display: "accordion",
286
+ items: [
287
+ {
288
+ name: "dataSourceType",
289
+ title: "\u6570\u636E\u6E90\u7C7B\u578B",
290
+ setter: {
291
+ componentName: "SelectSetter",
292
+ props: {
293
+ options: [
294
+ { label: "Mock \u6570\u636E", value: "mock" },
295
+ { label: "\u6570\u636E\u6E90\u7ED1\u5B9A", value: "variable" }
296
+ ]
297
+ }
298
+ },
299
+ extraProps: {
300
+ display: "block"
301
+ }
302
+ },
303
+ {
304
+ name: "mockData",
305
+ title: "Mock \u6570\u636E",
306
+ setter: {
307
+ componentName: "TextAreaSetter",
308
+ props: {
309
+ rows: 10,
310
+ placeholder: "\u8BF7\u8F93\u5165 JSON \u683C\u5F0F\u7684 Mock \u6570\u636E"
311
+ }
312
+ },
313
+ extraProps: {
314
+ display: "block"
315
+ },
316
+ condition: (target) => {
317
+ return target.getProps().getPropValue("dataSourceType") === "mock";
318
+ }
319
+ },
320
+ {
321
+ name: "dataSource",
322
+ title: "\u7ED1\u5B9A\u6570\u636E\u6E90",
323
+ setter: {
324
+ componentName: "MixedSetter",
325
+ props: {
326
+ setters: [
327
+ "JsonSetter",
328
+ "VariableSetter"
329
+ ]
330
+ }
331
+ },
332
+ extraProps: {
333
+ display: "block"
334
+ },
335
+ condition: (target) => {
336
+ return target.getProps().getPropValue("dataSourceType") === "variable";
337
+ }
338
+ }
339
+ ]
340
+ },
341
+ {
342
+ type: "group",
343
+ title: "\u533A\u57DF\u663E\u793A\u63A7\u5236",
344
+ display: "accordion",
345
+ items: [
346
+ { name: "showFilter", title: "\u663E\u793A\u7B5B\u9009\u533A\u57DF", setter: "BoolSetter", extraProps: { display: "block" } },
347
+ { name: "showAction", title: "\u663E\u793A\u64CD\u4F5C\u533A\u57DF", setter: "BoolSetter", extraProps: { display: "block" } },
348
+ { name: "showSelection", title: "\u663E\u793A\u9009\u62E9\u5217", setter: "BoolSetter", extraProps: { display: "block" } },
349
+ { name: "showOperation", title: "\u663E\u793A\u64CD\u4F5C\u5217", setter: "BoolSetter", extraProps: { display: "block" } },
350
+ { name: "showStatus", title: "\u663E\u793A\u72B6\u6001\u5217", setter: "BoolSetter", extraProps: { display: "block" } },
351
+ { name: "showPagination", title: "\u663E\u793A\u5206\u9875", setter: "BoolSetter", extraProps: { display: "block" } }
352
+ ]
353
+ },
354
+ {
355
+ type: "group",
356
+ title: "\u64CD\u4F5C\u914D\u7F6E",
357
+ display: "accordion",
358
+ items: [
359
+ {
360
+ name: "actionButtons",
361
+ title: "\u64CD\u4F5C\u6309\u94AE",
362
+ setter: {
363
+ componentName: "ArraySetter",
364
+ props: {
365
+ item: {
366
+ setters: [
367
+ {
368
+ componentName: "ObjectSetter",
369
+ props: {
370
+ config: {
371
+ items: [
372
+ { name: "text", description: "\u6309\u94AE\u6587\u672C", setter: "StringSetter" },
373
+ {
374
+ name: "icon",
375
+ description: "\u56FE\u6807",
376
+ setter: {
377
+ componentName: "SelectSetter",
378
+ props: {
379
+ options: [
380
+ { label: "\u52A0\u53F7", value: "plus" },
381
+ { label: "\u4E0B\u8F7D", value: "download" },
382
+ { label: "\u4E0A\u4F20", value: "upload" }
383
+ ]
384
+ }
385
+ }
386
+ },
387
+ {
388
+ name: "type",
389
+ description: "\u6309\u94AE\u7C7B\u578B",
390
+ setter: {
391
+ componentName: "SelectSetter",
392
+ props: {
393
+ options: [
394
+ { label: "\u4E3B\u8981\u6309\u94AE", value: "primary" },
395
+ { label: "\u9ED8\u8BA4\u6309\u94AE", value: "default" },
396
+ { label: "\u865A\u7EBF\u6309\u94AE", value: "dashed" },
397
+ { label: "\u94FE\u63A5\u6309\u94AE", value: "link" },
398
+ { label: "\u6587\u672C\u6309\u94AE", value: "text" }
399
+ ]
400
+ }
401
+ }
402
+ },
403
+ { name: "onClick", description: "\u70B9\u51FB\u4E8B\u4EF6", setter: "StringSetter" }
404
+ ]
405
+ }
406
+ }
407
+ }
408
+ ]
409
+ }
410
+ }
411
+ },
412
+ extraProps: {
413
+ display: "block"
414
+ }
415
+ },
416
+ {
417
+ name: "batchOperations",
418
+ title: "\u6279\u91CF\u64CD\u4F5C",
419
+ setter: {
420
+ componentName: "ArraySetter",
421
+ props: {
422
+ item: {
423
+ setters: [
424
+ {
425
+ componentName: "ObjectSetter",
426
+ props: {
427
+ config: {
428
+ items: [
429
+ { name: "text", description: "\u64CD\u4F5C\u540D\u79F0", setter: "StringSetter" },
430
+ { name: "value", description: "\u64CD\u4F5C\u503C", setter: "StringSetter" },
431
+ { name: "action", description: "\u64CD\u4F5C\u52A8\u4F5C", setter: "StringSetter" }
432
+ ]
433
+ }
434
+ }
435
+ }
436
+ ]
437
+ }
438
+ }
439
+ },
440
+ extraProps: {
441
+ display: "block"
442
+ }
443
+ }
444
+ ]
445
+ }
446
+ ]
447
+ },
448
+ icon: Icons.list,
449
+ category: "\u7535\u5546\u4E1A\u52A1",
450
+ group: "\u5546\u54C1\u7BA1\u7406",
451
+ snippets: [
452
+ {
453
+ title: "\u5B8C\u6574\u5546\u54C1\u5217\u8868",
454
+ schema: {
455
+ componentName: "ProductList",
456
+ props: {
457
+ dataSourceType: "mock",
458
+ mockData: JSON.stringify(defaultMockData),
459
+ showFilter: true,
460
+ showAction: true,
461
+ showSelection: true,
462
+ showOperation: true,
463
+ showStatus: true,
464
+ showPagination: true,
465
+ actionButtons: [
466
+ { text: "\u6DFB\u52A0\u5546\u54C1", icon: "plus", type: "primary", onClick: "addProduct" },
467
+ { text: "\u5BFC\u51FA", icon: "download", type: "default" }
468
+ ],
469
+ batchOperations: [
470
+ { text: "\u6279\u91CF\u4E0A\u67B6", value: "publishOn" },
471
+ { text: "\u6279\u91CF\u4E0B\u67B6", value: "publishOff" },
472
+ { text: "\u6279\u91CF\u5220\u9664", value: "delete" }
473
+ ]
474
+ }
475
+ }
476
+ },
477
+ {
478
+ title: "\u7B80\u6D01\u5546\u54C1\u5217\u8868",
479
+ schema: {
480
+ componentName: "ProductList",
481
+ props: {
482
+ dataSourceType: "mock",
483
+ mockData: JSON.stringify(defaultMockData),
484
+ showFilter: false,
485
+ showAction: false,
486
+ showSelection: false,
487
+ showOperation: false,
488
+ showStatus: false,
489
+ showPagination: true
490
+ }
491
+ }
492
+ },
493
+ {
494
+ title: "\u53EA\u8BFB\u5546\u54C1\u5217\u8868",
495
+ schema: {
496
+ componentName: "ProductList",
497
+ props: {
498
+ dataSourceType: "mock",
499
+ mockData: JSON.stringify(defaultMockData),
500
+ showFilter: true,
501
+ showAction: false,
502
+ showSelection: false,
503
+ showOperation: false,
504
+ showStatus: true,
505
+ showPagination: true
506
+ }
507
+ }
508
+ },
509
+ {
510
+ title: "\u7EAF\u641C\u7D22\u5546\u54C1\u5217\u8868",
511
+ schema: {
512
+ componentName: "ProductList",
513
+ props: {
514
+ dataSourceType: "mock",
515
+ mockData: JSON.stringify(defaultMockData),
516
+ showFilter: true,
517
+ showAction: false,
518
+ showSelection: false,
519
+ showOperation: false,
520
+ showStatus: false,
521
+ showPagination: true
522
+ }
523
+ }
524
+ }
525
+ ]
526
+ };
527
+
528
+ // src/meta/productFormMeta.ts
529
+ var ProductFormMeta = {
530
+ componentName: "ProductForm",
531
+ title: "\u5546\u54C1\u8868\u5355",
532
+ docUrl: "https://github.com/alibaba/lowcode-engine",
533
+ screenshot: "",
534
+ npm: {
535
+ package: "mall-components",
536
+ version: "1.0.0",
537
+ exportName: "ProductForm",
538
+ destructuring: true
539
+ },
540
+ props: [
541
+ {
542
+ name: "initialValues",
543
+ propType: "string",
544
+ description: "\u8868\u5355\u521D\u59CB\u503C\uFF08JSON \u683C\u5F0F\uFF09",
545
+ defaultValue: "{}"
546
+ },
547
+ {
548
+ name: "mode",
549
+ propType: "string",
550
+ description: "\u8868\u5355\u6A21\u5F0F",
551
+ defaultValue: "create",
552
+ setter: {
553
+ componentName: "SelectSetter",
554
+ props: {
555
+ options: [
556
+ { label: "\u521B\u5EFA\u6A21\u5F0F", value: "create" },
557
+ { label: "\u7F16\u8F91\u6A21\u5F0F", value: "edit" },
558
+ { label: "\u67E5\u770B\u6A21\u5F0F", value: "view" }
559
+ ]
560
+ }
561
+ }
562
+ },
563
+ {
564
+ name: "showBasicInfo",
565
+ propType: "bool",
566
+ description: "\u662F\u5426\u663E\u793A\u57FA\u672C\u4FE1\u606F",
567
+ defaultValue: true,
568
+ setter: "BoolSetter"
569
+ },
570
+ {
571
+ name: "showPriceInfo",
572
+ propType: "bool",
573
+ description: "\u662F\u5426\u663E\u793A\u4EF7\u683C\u4FE1\u606F",
574
+ defaultValue: true,
575
+ setter: "BoolSetter"
576
+ },
577
+ {
578
+ name: "showStockInfo",
579
+ propType: "bool",
580
+ description: "\u662F\u5426\u663E\u793A\u5E93\u5B58\u4FE1\u606F",
581
+ defaultValue: true,
582
+ setter: "BoolSetter"
583
+ },
584
+ {
585
+ name: "showStatusInfo",
586
+ propType: "bool",
587
+ description: "\u662F\u5426\u663E\u793A\u72B6\u6001\u4FE1\u606F",
588
+ defaultValue: true,
589
+ setter: "BoolSetter"
590
+ },
591
+ {
592
+ name: "showDescription",
593
+ propType: "bool",
594
+ description: "\u662F\u5426\u663E\u793A\u63CF\u8FF0\u4FE1\u606F",
595
+ defaultValue: true,
596
+ setter: "BoolSetter"
597
+ }
598
+ ],
599
+ configure: {
600
+ supports: {
601
+ style: true,
602
+ events: [
603
+ { name: "onSubmit", description: "\u63D0\u4EA4" },
604
+ { name: "onCancel", description: "\u53D6\u6D88" }
605
+ ]
606
+ },
607
+ props: [
608
+ {
609
+ type: "group",
610
+ title: "\u8868\u5355\u914D\u7F6E",
611
+ display: "accordion",
612
+ items: [
613
+ {
614
+ name: "mode",
615
+ title: "\u8868\u5355\u6A21\u5F0F",
616
+ setter: {
617
+ componentName: "SelectSetter",
618
+ props: {
619
+ options: [
620
+ { label: "\u521B\u5EFA\u6A21\u5F0F", value: "create" },
621
+ { label: "\u7F16\u8F91\u6A21\u5F0F", value: "edit" },
622
+ { label: "\u67E5\u770B\u6A21\u5F0F", value: "view" }
623
+ ]
624
+ }
625
+ }
626
+ },
627
+ {
628
+ name: "initialValues",
629
+ title: "\u8868\u5355\u521D\u59CB\u503C",
630
+ setter: {
631
+ componentName: "TextAreaSetter",
632
+ props: {
633
+ rows: 10,
634
+ placeholder: "\u8BF7\u8F93\u5165 JSON \u683C\u5F0F\u7684\u8868\u5355\u521D\u59CB\u503C"
635
+ }
636
+ },
637
+ extraProps: {
638
+ display: "block"
639
+ }
640
+ }
641
+ ]
642
+ },
643
+ {
644
+ type: "group",
645
+ title: "\u6807\u7B7E\u9875\u663E\u793A\u63A7\u5236",
646
+ display: "accordion",
647
+ items: [
648
+ { name: "showBasicInfo", title: "\u663E\u793A\u57FA\u672C\u4FE1\u606F", setter: "BoolSetter" },
649
+ { name: "showPriceInfo", title: "\u663E\u793A\u4EF7\u683C\u4FE1\u606F", setter: "BoolSetter" },
650
+ { name: "showStockInfo", title: "\u663E\u793A\u5E93\u5B58\u4FE1\u606F", setter: "BoolSetter" },
651
+ { name: "showStatusInfo", title: "\u663E\u793A\u72B6\u6001\u4FE1\u606F", setter: "BoolSetter" },
652
+ { name: "showDescription", title: "\u663E\u793A\u63CF\u8FF0\u4FE1\u606F", setter: "BoolSetter" }
653
+ ]
654
+ }
655
+ ]
656
+ },
657
+ icon: Icons.form,
658
+ category: "\u7535\u5546\u4E1A\u52A1",
659
+ group: "\u5546\u54C1\u7BA1\u7406",
660
+ snippets: [
661
+ {
662
+ title: "\u521B\u5EFA\u5546\u54C1\u8868\u5355",
663
+ schema: {
664
+ componentName: "ProductForm",
665
+ props: {
666
+ mode: "create",
667
+ initialValues: "{}",
668
+ showBasicInfo: true,
669
+ showPriceInfo: true,
670
+ showStockInfo: true,
671
+ showStatusInfo: true,
672
+ showDescription: true
673
+ }
674
+ }
675
+ },
676
+ {
677
+ title: "\u7F16\u8F91\u5546\u54C1\u8868\u5355",
678
+ schema: {
679
+ componentName: "ProductForm",
680
+ props: {
681
+ mode: "edit",
682
+ initialValues: JSON.stringify({
683
+ id: 1,
684
+ name: "\u65F6\u5C1A\u8FD0\u52A8\u978B",
685
+ productSn: "PRODUCT001",
686
+ price: 269,
687
+ stock: 100,
688
+ brandName: "\u65F6\u5C1A\u8FD0\u52A8",
689
+ productCategoryName: "\u978B\u5B50",
690
+ publishStatus: 1,
691
+ newStatus: 1,
692
+ recommandStatus: 1
693
+ }, null, 2),
694
+ showBasicInfo: true,
695
+ showPriceInfo: true,
696
+ showStockInfo: true,
697
+ showStatusInfo: true,
698
+ showDescription: true
699
+ }
700
+ }
701
+ },
702
+ {
703
+ title: "\u67E5\u770B\u5546\u54C1\u8868\u5355",
704
+ schema: {
705
+ componentName: "ProductForm",
706
+ props: {
707
+ mode: "view",
708
+ initialValues: JSON.stringify({
709
+ id: 1,
710
+ name: "\u65F6\u5C1A\u8FD0\u52A8\u978B",
711
+ productSn: "PRODUCT001",
712
+ price: 269,
713
+ stock: 100,
714
+ brandName: "\u65F6\u5C1A\u8FD0\u52A8",
715
+ productCategoryName: "\u978B\u5B50",
716
+ publishStatus: 1,
717
+ newStatus: 1,
718
+ recommandStatus: 1,
719
+ description: "\u8FD9\u662F\u4E00\u6B3E\u65F6\u5C1A\u7684\u8FD0\u52A8\u978B\uFF0C\u9002\u5408\u65E5\u5E38\u7A7F\u7740\u3002"
720
+ }, null, 2),
721
+ showBasicInfo: true,
722
+ showPriceInfo: true,
723
+ showStockInfo: true,
724
+ showStatusInfo: true,
725
+ showDescription: true
726
+ }
727
+ }
728
+ },
729
+ {
730
+ title: "\u53EA\u8BFB\u5546\u54C1\u8868\u5355",
731
+ schema: {
732
+ componentName: "ProductForm",
733
+ props: {
734
+ mode: "view",
735
+ initialValues: JSON.stringify({
736
+ id: 1,
737
+ name: "\u65F6\u5C1A\u8FD0\u52A8\u978B",
738
+ productSn: "PRODUCT001",
739
+ price: 269,
740
+ stock: 100,
741
+ sale: 120,
742
+ brandName: "\u65F6\u5C1A\u8FD0\u52A8",
743
+ productCategoryName: "\u978B\u5B50",
744
+ pic: "https://img.yzcdn.cn/vant/cat.jpeg",
745
+ publishStatus: 1,
746
+ newStatus: 1,
747
+ recommandStatus: 1,
748
+ verifyStatus: 1,
749
+ description: "\u8FD9\u662F\u4E00\u6B3E\u65F6\u5C1A\u7684\u8FD0\u52A8\u978B\uFF0C\u9002\u5408\u65E5\u5E38\u7A7F\u7740\u3002",
750
+ note: "\u70ED\u9500\u5546\u54C1"
751
+ }, null, 2),
752
+ showBasicInfo: true,
753
+ showPriceInfo: true,
754
+ showStockInfo: true,
755
+ showStatusInfo: true,
756
+ showDescription: true
757
+ }
758
+ }
759
+ },
760
+ {
761
+ title: "\u7B80\u6D01\u5546\u54C1\u8868\u5355",
762
+ schema: {
763
+ componentName: "ProductForm",
764
+ props: {
765
+ mode: "create",
766
+ initialValues: "{}",
767
+ showBasicInfo: true,
768
+ showPriceInfo: true,
769
+ showStockInfo: false,
770
+ showStatusInfo: false,
771
+ showDescription: false
772
+ }
773
+ }
774
+ }
775
+ ]
776
+ };
777
+ var productFormMeta_default = ProductFormMeta;
778
+
779
+ // src/meta/orderListMeta.ts
780
+ var defaultMockData2 = {
781
+ code: 200,
782
+ message: "success",
783
+ data: {
784
+ pageNum: 1,
785
+ pageSize: 10,
786
+ total: 50,
787
+ list: [
788
+ {
789
+ id: 1,
790
+ orderSn: "202401010001",
791
+ memberUsername: "user001",
792
+ totalAmount: 599,
793
+ payAmount: 569,
794
+ freightAmount: 0,
795
+ discountAmount: 30,
796
+ payType: 1,
797
+ sourceType: 0,
798
+ status: 1,
799
+ orderType: 0,
800
+ receiverName: "\u5F20\u4E09",
801
+ receiverPhone: "13800138000",
802
+ receiverProvince: "\u5317\u4EAC\u5E02",
803
+ receiverCity: "\u5317\u4EAC\u5E02",
804
+ receiverRegion: "\u671D\u9633\u533A",
805
+ receiverDetailAddress: "\u67D0\u67D0\u8857\u9053\u67D0\u67D0\u5C0F\u533A1\u53F7\u697C",
806
+ createTime: "2024-01-01 10:00:00",
807
+ paymentTime: "2024-01-01 10:05:00",
808
+ deliveryTime: "",
809
+ receiveTime: "",
810
+ commentTime: "",
811
+ promotionInfo: "\u6EE1\u51CF\u4F18\u60E0"
812
+ },
813
+ {
814
+ id: 2,
815
+ orderSn: "202401010002",
816
+ memberUsername: "user002",
817
+ totalAmount: 1299,
818
+ payAmount: 1299,
819
+ freightAmount: 0,
820
+ discountAmount: 0,
821
+ payType: 2,
822
+ sourceType: 1,
823
+ status: 2,
824
+ orderType: 0,
825
+ receiverName: "\u674E\u56DB",
826
+ receiverPhone: "13900139000",
827
+ receiverProvince: "\u4E0A\u6D77\u5E02",
828
+ receiverCity: "\u4E0A\u6D77\u5E02",
829
+ receiverRegion: "\u6D66\u4E1C\u65B0\u533A",
830
+ receiverDetailAddress: "\u67D0\u67D0\u8DEF\u67D0\u67D0\u53F7",
831
+ createTime: "2024-01-01 11:00:00",
832
+ paymentTime: "2024-01-01 11:10:00",
833
+ deliveryTime: "2024-01-02 09:00:00",
834
+ receiveTime: "",
835
+ commentTime: "",
836
+ promotionInfo: ""
837
+ },
838
+ {
839
+ id: 3,
840
+ orderSn: "202401010003",
841
+ memberUsername: "user003",
842
+ totalAmount: 299,
843
+ payAmount: 299,
844
+ freightAmount: 10,
845
+ discountAmount: 0,
846
+ payType: 1,
847
+ sourceType: 0,
848
+ status: 3,
849
+ orderType: 0,
850
+ receiverName: "\u738B\u4E94",
851
+ receiverPhone: "13700137000",
852
+ receiverProvince: "\u5E7F\u4E1C\u7701",
853
+ receiverCity: "\u6DF1\u5733\u5E02",
854
+ receiverRegion: "\u5357\u5C71\u533A",
855
+ receiverDetailAddress: "\u67D0\u67D0\u5927\u53A6A\u5EA7",
856
+ createTime: "2024-01-01 12:00:00",
857
+ paymentTime: "2024-01-01 12:05:00",
858
+ deliveryTime: "2024-01-02 10:00:00",
859
+ receiveTime: "2024-01-05 15:00:00",
860
+ commentTime: "",
861
+ promotionInfo: ""
862
+ },
863
+ {
864
+ id: 4,
865
+ orderSn: "202401010004",
866
+ memberUsername: "user004",
867
+ totalAmount: 899,
868
+ payAmount: 0,
869
+ freightAmount: 0,
870
+ discountAmount: 0,
871
+ payType: 0,
872
+ sourceType: 1,
873
+ status: 0,
874
+ orderType: 1,
875
+ receiverName: "\u8D75\u516D",
876
+ receiverPhone: "13600136000",
877
+ receiverProvince: "\u6D59\u6C5F\u7701",
878
+ receiverCity: "\u676D\u5DDE\u5E02",
879
+ receiverRegion: "\u897F\u6E56\u533A",
880
+ receiverDetailAddress: "\u67D0\u67D0\u82B1\u56ED\u5C0F\u533A",
881
+ createTime: "2024-01-01 13:00:00",
882
+ paymentTime: "",
883
+ deliveryTime: "",
884
+ receiveTime: "",
885
+ commentTime: "",
886
+ promotionInfo: "\u79D2\u6740\u6D3B\u52A8"
887
+ },
888
+ {
889
+ id: 5,
890
+ orderSn: "202401010005",
891
+ memberUsername: "user005",
892
+ totalAmount: 4599,
893
+ payAmount: 4599,
894
+ freightAmount: 0,
895
+ discountAmount: 0,
896
+ payType: 2,
897
+ sourceType: 0,
898
+ status: 4,
899
+ orderType: 0,
900
+ receiverName: "\u5B59\u4E03",
901
+ receiverPhone: "13500135000",
902
+ receiverProvince: "\u6C5F\u82CF\u7701",
903
+ receiverCity: "\u5357\u4EAC\u5E02",
904
+ receiverRegion: "\u9F13\u697C\u533A",
905
+ receiverDetailAddress: "\u67D0\u67D0\u5E7F\u573AB\u5EA7",
906
+ createTime: "2024-01-01 14:00:00",
907
+ paymentTime: "2024-01-01 14:10:00",
908
+ deliveryTime: "",
909
+ receiveTime: "",
910
+ commentTime: "",
911
+ promotionInfo: ""
912
+ }
913
+ ]
914
+ }
915
+ };
916
+ var orderListMeta = {
917
+ componentName: "OrderList",
918
+ title: "\u8BA2\u5355\u5217\u8868",
919
+ docUrl: "https://github.com/alibaba/lowcode-engine",
920
+ screenshot: "",
921
+ npm: {
922
+ package: "mall-components",
923
+ version: "1.0.0",
924
+ exportName: "OrderList",
925
+ destructuring: true
926
+ },
927
+ props: [
928
+ {
929
+ name: "dataSourceType",
930
+ propType: "string",
931
+ description: "\u6570\u636E\u6E90\u7C7B\u578B",
932
+ defaultValue: "mock"
933
+ },
934
+ {
935
+ name: "api",
936
+ propType: "string",
937
+ description: "API \u5730\u5740"
938
+ },
939
+ {
940
+ name: "method",
941
+ propType: "string",
942
+ description: "\u8BF7\u6C42\u65B9\u6CD5",
943
+ defaultValue: "GET"
944
+ },
945
+ {
946
+ name: "mockData",
947
+ propType: "string",
948
+ description: "Mock \u6570\u636E",
949
+ defaultValue: JSON.stringify(defaultMockData2)
950
+ },
951
+ {
952
+ name: "variableName",
953
+ propType: "string",
954
+ description: "\u53D8\u91CF\u540D\u79F0"
955
+ },
956
+ {
957
+ name: "showFilter",
958
+ propType: "bool",
959
+ description: "\u662F\u5426\u663E\u793A\u7B5B\u9009\u641C\u7D22\u533A\u57DF",
960
+ defaultValue: true
961
+ },
962
+ {
963
+ name: "showStatusFilter",
964
+ propType: "bool",
965
+ description: "\u662F\u5426\u663E\u793A\u72B6\u6001\u7B5B\u9009",
966
+ defaultValue: true
967
+ },
968
+ {
969
+ name: "showSearch",
970
+ propType: "bool",
971
+ description: "\u662F\u5426\u663E\u793A\u641C\u7D22\u6846",
972
+ defaultValue: true
973
+ },
974
+ {
975
+ name: "showDatePicker",
976
+ propType: "bool",
977
+ description: "\u662F\u5426\u663E\u793A\u65E5\u671F\u9009\u62E9\u5668",
978
+ defaultValue: true
979
+ },
980
+ {
981
+ name: "showActions",
982
+ propType: "bool",
983
+ description: "\u662F\u5426\u663E\u793A\u64CD\u4F5C\u6309\u94AE",
984
+ defaultValue: true
985
+ },
986
+ {
987
+ name: "showBatchOperations",
988
+ propType: "bool",
989
+ description: "\u662F\u5426\u663E\u793A\u6279\u91CF\u64CD\u4F5C",
990
+ defaultValue: true
991
+ },
992
+ {
993
+ name: "showExport",
994
+ propType: "bool",
995
+ description: "\u662F\u5426\u663E\u793A\u5BFC\u51FA\u6309\u94AE",
996
+ defaultValue: true
997
+ },
998
+ {
999
+ name: "showPagination",
1000
+ propType: "bool",
1001
+ description: "\u662F\u5426\u663E\u793A\u5206\u9875\u533A\u57DF",
1002
+ defaultValue: true
1003
+ },
1004
+ {
1005
+ name: "defaultPageSize",
1006
+ propType: "number",
1007
+ description: "\u9ED8\u8BA4\u6BCF\u9875\u6761\u6570",
1008
+ defaultValue: 10
1009
+ }
1010
+ ],
1011
+ configure: {
1012
+ supports: {
1013
+ style: true,
1014
+ events: [
1015
+ { name: "onRowClick", description: "\u884C\u70B9\u51FB" },
1016
+ { name: "onSearch", description: "\u641C\u7D22" },
1017
+ { name: "onPageChange", description: "\u5206\u9875\u53D8\u5316" },
1018
+ { name: "onActionClick", description: "\u64CD\u4F5C\u6309\u94AE\u70B9\u51FB" },
1019
+ { name: "onBatchOperation", description: "\u6279\u91CF\u64CD\u4F5C" }
1020
+ ]
1021
+ },
1022
+ props: [
1023
+ {
1024
+ type: "group",
1025
+ title: "\u6570\u636E\u6E90\u914D\u7F6E",
1026
+ display: "accordion",
1027
+ items: [
1028
+ {
1029
+ name: "dataSourceType",
1030
+ title: "\u6570\u636E\u6E90\u7C7B\u578B",
1031
+ setter: {
1032
+ componentName: "SelectSetter",
1033
+ props: {
1034
+ options: [
1035
+ { label: "Mock \u6570\u636E", value: "mock" },
1036
+ { label: "\u6570\u636E\u6E90\u7ED1\u5B9A", value: "variable" }
1037
+ ]
1038
+ }
1039
+ },
1040
+ extraProps: {
1041
+ display: "block"
1042
+ }
1043
+ },
1044
+ {
1045
+ name: "mockData",
1046
+ title: "Mock \u6570\u636E",
1047
+ setter: {
1048
+ componentName: "TextAreaSetter",
1049
+ props: {
1050
+ rows: 10,
1051
+ placeholder: "\u8BF7\u8F93\u5165 JSON \u683C\u5F0F\u7684 Mock \u6570\u636E"
1052
+ }
1053
+ },
1054
+ extraProps: {
1055
+ display: "block"
1056
+ },
1057
+ condition: (target) => {
1058
+ return target.getProps().getPropValue("dataSourceType") === "mock";
1059
+ }
1060
+ },
1061
+ {
1062
+ name: "dataSource",
1063
+ title: "\u7ED1\u5B9A\u6570\u636E\u6E90",
1064
+ setter: {
1065
+ componentName: "MixedSetter",
1066
+ props: {
1067
+ setters: [
1068
+ "JsonSetter",
1069
+ "VariableSetter"
1070
+ ]
1071
+ }
1072
+ },
1073
+ extraProps: {
1074
+ display: "block"
1075
+ },
1076
+ condition: (target) => {
1077
+ return target.getProps().getPropValue("dataSourceType") === "variable";
1078
+ }
1079
+ }
1080
+ ]
1081
+ },
1082
+ {
1083
+ type: "group",
1084
+ title: "\u533A\u57DF\u663E\u793A\u63A7\u5236",
1085
+ display: "accordion",
1086
+ items: [
1087
+ { name: "showFilter", title: "\u663E\u793A\u7B5B\u9009\u533A\u57DF", setter: "BoolSetter", extraProps: { display: "block" } },
1088
+ { name: "showStatusFilter", title: "\u663E\u793A\u72B6\u6001\u7B5B\u9009", setter: "BoolSetter", extraProps: { display: "block" } },
1089
+ { name: "showSearch", title: "\u663E\u793A\u641C\u7D22\u6846", setter: "BoolSetter", extraProps: { display: "block" } },
1090
+ { name: "showDatePicker", title: "\u663E\u793A\u65E5\u671F\u9009\u62E9", setter: "BoolSetter", extraProps: { display: "block" } },
1091
+ { name: "showActions", title: "\u663E\u793A\u64CD\u4F5C\u6309\u94AE", setter: "BoolSetter", extraProps: { display: "block" } },
1092
+ { name: "showBatchOperations", title: "\u663E\u793A\u6279\u91CF\u64CD\u4F5C", setter: "BoolSetter", extraProps: { display: "block" } },
1093
+ { name: "showExport", title: "\u663E\u793A\u5BFC\u51FA\u6309\u94AE", setter: "BoolSetter", extraProps: { display: "block" } },
1094
+ { name: "showPagination", title: "\u663E\u793A\u5206\u9875", setter: "BoolSetter", extraProps: { display: "block" } }
1095
+ ]
1096
+ },
1097
+ {
1098
+ type: "group",
1099
+ title: "\u5206\u9875\u914D\u7F6E",
1100
+ display: "accordion",
1101
+ items: [
1102
+ {
1103
+ name: "defaultPageSize",
1104
+ title: "\u9ED8\u8BA4\u6BCF\u9875\u6761\u6570",
1105
+ setter: {
1106
+ componentName: "NumberSetter",
1107
+ props: {
1108
+ min: 1,
1109
+ max: 100
1110
+ }
1111
+ },
1112
+ extraProps: {
1113
+ display: "block"
1114
+ }
1115
+ }
1116
+ ]
1117
+ }
1118
+ ]
1119
+ },
1120
+ icon: Icons.file,
1121
+ category: "\u7535\u5546\u4E1A\u52A1",
1122
+ group: "\u8BA2\u5355\u7BA1\u7406",
1123
+ snippets: [
1124
+ {
1125
+ title: "\u5B8C\u6574\u8BA2\u5355\u5217\u8868",
1126
+ schema: {
1127
+ componentName: "OrderList",
1128
+ props: {
1129
+ dataSourceType: "mock",
1130
+ mockData: JSON.stringify(defaultMockData2),
1131
+ showFilter: true,
1132
+ showStatusFilter: true,
1133
+ showSearch: true,
1134
+ showDatePicker: true,
1135
+ showActions: true,
1136
+ showBatchOperations: true,
1137
+ showExport: true,
1138
+ showPagination: true,
1139
+ defaultPageSize: 10
1140
+ }
1141
+ }
1142
+ },
1143
+ {
1144
+ title: "\u7B80\u6D01\u8BA2\u5355\u5217\u8868",
1145
+ schema: {
1146
+ componentName: "OrderList",
1147
+ props: {
1148
+ dataSourceType: "mock",
1149
+ mockData: JSON.stringify(defaultMockData2),
1150
+ showFilter: false,
1151
+ showActions: false,
1152
+ showBatchOperations: false,
1153
+ showExport: false,
1154
+ showPagination: true,
1155
+ defaultPageSize: 10
1156
+ }
1157
+ }
1158
+ },
1159
+ {
1160
+ title: "\u53EA\u8BFB\u8BA2\u5355\u5217\u8868",
1161
+ schema: {
1162
+ componentName: "OrderList",
1163
+ props: {
1164
+ dataSourceType: "mock",
1165
+ mockData: JSON.stringify(defaultMockData2),
1166
+ showFilter: true,
1167
+ showStatusFilter: true,
1168
+ showSearch: true,
1169
+ showDatePicker: true,
1170
+ showActions: false,
1171
+ showBatchOperations: false,
1172
+ showExport: false,
1173
+ showPagination: true,
1174
+ defaultPageSize: 10
1175
+ }
1176
+ }
1177
+ },
1178
+ {
1179
+ title: "\u7EAF\u641C\u7D22\u8BA2\u5355\u5217\u8868",
1180
+ schema: {
1181
+ componentName: "OrderList",
1182
+ props: {
1183
+ dataSourceType: "mock",
1184
+ mockData: JSON.stringify(defaultMockData2),
1185
+ showFilter: true,
1186
+ showStatusFilter: false,
1187
+ showSearch: true,
1188
+ showDatePicker: false,
1189
+ showActions: false,
1190
+ showBatchOperations: false,
1191
+ showExport: false,
1192
+ showPagination: true,
1193
+ defaultPageSize: 10
1194
+ }
1195
+ }
1196
+ },
1197
+ {
1198
+ title: "\u5F85\u53D1\u8D27\u8BA2\u5355\u5217\u8868",
1199
+ schema: {
1200
+ componentName: "OrderList",
1201
+ props: {
1202
+ dataSourceType: "mock",
1203
+ mockData: JSON.stringify(defaultMockData2),
1204
+ showFilter: true,
1205
+ showStatusFilter: true,
1206
+ showSearch: true,
1207
+ showDatePicker: true,
1208
+ showActions: true,
1209
+ showBatchOperations: true,
1210
+ showExport: false,
1211
+ showPagination: true,
1212
+ defaultPageSize: 10
1213
+ }
1214
+ }
1215
+ }
1216
+ ]
1217
+ };
1218
+ var orderListMeta_default = orderListMeta;
1219
+
1220
+ // src/meta/orderFormMeta.ts
1221
+ var defaultInitialValues = {
1222
+ id: 1,
1223
+ orderSn: "202401010001",
1224
+ memberUsername: "user001",
1225
+ totalAmount: 599,
1226
+ payAmount: 569,
1227
+ freightAmount: 0,
1228
+ discountAmount: 30,
1229
+ payType: 1,
1230
+ sourceType: 0,
1231
+ status: 1,
1232
+ orderType: 0,
1233
+ receiverName: "\u5F20\u4E09",
1234
+ receiverPhone: "13800138000",
1235
+ receiverProvince: "\u5317\u4EAC\u5E02",
1236
+ receiverCity: "\u5317\u4EAC\u5E02",
1237
+ receiverRegion: "\u671D\u9633\u533A",
1238
+ receiverDetailAddress: "\u67D0\u67D0\u8857\u9053\u67D0\u67D0\u5C0F\u533A1\u53F7\u697C",
1239
+ note: "\u8BF7\u5C3D\u5FEB\u53D1\u8D27"
1240
+ };
1241
+ var orderFormMeta = {
1242
+ componentName: "OrderForm",
1243
+ title: "\u8BA2\u5355\u8868\u5355",
1244
+ docUrl: "https://github.com/alibaba/lowcode-engine",
1245
+ screenshot: "",
1246
+ npm: {
1247
+ package: "mall-components",
1248
+ version: "1.0.0",
1249
+ exportName: "OrderForm",
1250
+ destructuring: true
1251
+ },
1252
+ props: [
1253
+ {
1254
+ name: "initialValues",
1255
+ propType: "string",
1256
+ description: "\u8868\u5355\u521D\u59CB\u503C\uFF08JSON \u683C\u5F0F\uFF09",
1257
+ defaultValue: "{}"
1258
+ },
1259
+ {
1260
+ name: "mode",
1261
+ propType: "string",
1262
+ description: "\u8868\u5355\u6A21\u5F0F",
1263
+ defaultValue: "create",
1264
+ setter: {
1265
+ componentName: "SelectSetter",
1266
+ props: {
1267
+ options: [
1268
+ { label: "\u521B\u5EFA\u6A21\u5F0F", value: "create" },
1269
+ { label: "\u7F16\u8F91\u6A21\u5F0F", value: "edit" },
1270
+ { label: "\u67E5\u770B\u6A21\u5F0F", value: "view" }
1271
+ ]
1272
+ }
1273
+ }
1274
+ },
1275
+ {
1276
+ name: "showBasicInfo",
1277
+ propType: "bool",
1278
+ description: "\u662F\u5426\u663E\u793A\u57FA\u672C\u4FE1\u606F",
1279
+ defaultValue: true,
1280
+ setter: "BoolSetter"
1281
+ },
1282
+ {
1283
+ name: "showReceiverInfo",
1284
+ propType: "bool",
1285
+ description: "\u662F\u5426\u663E\u793A\u6536\u8D27\u4FE1\u606F",
1286
+ defaultValue: true,
1287
+ setter: "BoolSetter"
1288
+ },
1289
+ {
1290
+ name: "showMoneyInfo",
1291
+ propType: "bool",
1292
+ description: "\u662F\u5426\u663E\u793A\u8D39\u7528\u4FE1\u606F",
1293
+ defaultValue: true,
1294
+ setter: "BoolSetter"
1295
+ },
1296
+ {
1297
+ name: "showOrderItems",
1298
+ propType: "bool",
1299
+ description: "\u662F\u5426\u663E\u793A\u5546\u54C1\u4FE1\u606F",
1300
+ defaultValue: true,
1301
+ setter: "BoolSetter"
1302
+ },
1303
+ {
1304
+ name: "showStatusInfo",
1305
+ propType: "bool",
1306
+ description: "\u662F\u5426\u663E\u793A\u72B6\u6001\u4FE1\u606F",
1307
+ defaultValue: true,
1308
+ setter: "BoolSetter"
1309
+ }
1310
+ ],
1311
+ configure: {
1312
+ supports: {
1313
+ style: true,
1314
+ events: [
1315
+ { name: "onSubmit", description: "\u63D0\u4EA4" },
1316
+ { name: "onCancel", description: "\u53D6\u6D88" }
1317
+ ]
1318
+ },
1319
+ props: [
1320
+ {
1321
+ type: "group",
1322
+ title: "\u8868\u5355\u914D\u7F6E",
1323
+ display: "accordion",
1324
+ items: [
1325
+ {
1326
+ name: "mode",
1327
+ title: "\u8868\u5355\u6A21\u5F0F",
1328
+ setter: {
1329
+ componentName: "SelectSetter",
1330
+ props: {
1331
+ options: [
1332
+ { label: "\u521B\u5EFA\u6A21\u5F0F", value: "create" },
1333
+ { label: "\u7F16\u8F91\u6A21\u5F0F", value: "edit" },
1334
+ { label: "\u67E5\u770B\u6A21\u5F0F", value: "view" }
1335
+ ]
1336
+ }
1337
+ }
1338
+ },
1339
+ {
1340
+ name: "initialValues",
1341
+ title: "\u8868\u5355\u521D\u59CB\u503C",
1342
+ setter: {
1343
+ componentName: "TextAreaSetter",
1344
+ props: {
1345
+ rows: 10,
1346
+ placeholder: "\u8BF7\u8F93\u5165 JSON \u683C\u5F0F\u7684\u8868\u5355\u521D\u59CB\u503C"
1347
+ }
1348
+ },
1349
+ extraProps: {
1350
+ display: "block"
1351
+ }
1352
+ }
1353
+ ]
1354
+ },
1355
+ {
1356
+ type: "group",
1357
+ title: "\u6807\u7B7E\u9875\u663E\u793A\u63A7\u5236",
1358
+ display: "accordion",
1359
+ items: [
1360
+ { name: "showBasicInfo", title: "\u663E\u793A\u57FA\u672C\u4FE1\u606F", setter: "BoolSetter" },
1361
+ { name: "showReceiverInfo", title: "\u663E\u793A\u6536\u8D27\u4FE1\u606F", setter: "BoolSetter" },
1362
+ { name: "showMoneyInfo", title: "\u663E\u793A\u8D39\u7528\u4FE1\u606F", setter: "BoolSetter" },
1363
+ { name: "showOrderItems", title: "\u663E\u793A\u5546\u54C1\u4FE1\u606F", setter: "BoolSetter" },
1364
+ { name: "showStatusInfo", title: "\u663E\u793A\u72B6\u6001\u4FE1\u606F", setter: "BoolSetter" }
1365
+ ]
1366
+ }
1367
+ ]
1368
+ },
1369
+ icon: Icons.form,
1370
+ category: "\u7535\u5546\u4E1A\u52A1",
1371
+ group: "\u8BA2\u5355\u7BA1\u7406",
1372
+ snippets: [
1373
+ {
1374
+ title: "\u521B\u5EFA\u8BA2\u5355\u8868\u5355",
1375
+ schema: {
1376
+ componentName: "OrderForm",
1377
+ props: {
1378
+ mode: "create",
1379
+ initialValues: "{}",
1380
+ showBasicInfo: true,
1381
+ showReceiverInfo: true,
1382
+ showMoneyInfo: true,
1383
+ showOrderItems: true,
1384
+ showStatusInfo: true
1385
+ }
1386
+ }
1387
+ },
1388
+ {
1389
+ title: "\u7F16\u8F91\u8BA2\u5355\u8868\u5355",
1390
+ schema: {
1391
+ componentName: "OrderForm",
1392
+ props: {
1393
+ mode: "edit",
1394
+ initialValues: JSON.stringify(defaultInitialValues, null, 2),
1395
+ showBasicInfo: true,
1396
+ showReceiverInfo: true,
1397
+ showMoneyInfo: true,
1398
+ showOrderItems: true,
1399
+ showStatusInfo: true
1400
+ }
1401
+ }
1402
+ },
1403
+ {
1404
+ title: "\u67E5\u770B\u8BA2\u5355\u8868\u5355",
1405
+ schema: {
1406
+ componentName: "OrderForm",
1407
+ props: {
1408
+ mode: "view",
1409
+ initialValues: JSON.stringify(
1410
+ {
1411
+ ...defaultInitialValues,
1412
+ orderItemList: [
1413
+ {
1414
+ id: 1,
1415
+ productName: "\u65F6\u5C1A\u8FD0\u52A8\u978B",
1416
+ productSn: "PRODUCT001",
1417
+ productBrand: "\u65F6\u5C1A\u8FD0\u52A8",
1418
+ productPrice: 299,
1419
+ productQuantity: 2,
1420
+ productPic: "https://img.yzcdn.cn/vant/cat.jpeg"
1421
+ }
1422
+ ]
1423
+ },
1424
+ null,
1425
+ 2
1426
+ ),
1427
+ showBasicInfo: true,
1428
+ showReceiverInfo: true,
1429
+ showMoneyInfo: true,
1430
+ showOrderItems: true,
1431
+ showStatusInfo: true
1432
+ }
1433
+ }
1434
+ },
1435
+ {
1436
+ title: "\u53EA\u8BFB\u8BA2\u5355\u8868\u5355",
1437
+ schema: {
1438
+ componentName: "OrderForm",
1439
+ props: {
1440
+ mode: "view",
1441
+ initialValues: JSON.stringify(
1442
+ {
1443
+ ...defaultInitialValues,
1444
+ status: 2,
1445
+ deliveryTime: "2024-01-02 09:00:00",
1446
+ orderItemList: [
1447
+ {
1448
+ id: 1,
1449
+ productName: "\u65F6\u5C1A\u8FD0\u52A8\u978B",
1450
+ productSn: "PRODUCT001",
1451
+ productBrand: "\u65F6\u5C1A\u8FD0\u52A8",
1452
+ productPrice: 299,
1453
+ productQuantity: 2,
1454
+ productPic: "https://img.yzcdn.cn/vant/cat.jpeg"
1455
+ },
1456
+ {
1457
+ id: 2,
1458
+ productName: "\u4F11\u95F2T\u6064",
1459
+ productSn: "PRODUCT002",
1460
+ productBrand: "\u4F11\u95F2\u670D\u9970",
1461
+ productPrice: 99,
1462
+ productQuantity: 1,
1463
+ productPic: "https://img.yzcdn.cn/vant/cat.jpeg"
1464
+ }
1465
+ ]
1466
+ },
1467
+ null,
1468
+ 2
1469
+ ),
1470
+ showBasicInfo: true,
1471
+ showReceiverInfo: true,
1472
+ showMoneyInfo: true,
1473
+ showOrderItems: true,
1474
+ showStatusInfo: true
1475
+ }
1476
+ }
1477
+ },
1478
+ {
1479
+ title: "\u7B80\u6D01\u8BA2\u5355\u8868\u5355",
1480
+ schema: {
1481
+ componentName: "OrderForm",
1482
+ props: {
1483
+ mode: "create",
1484
+ initialValues: "{}",
1485
+ showBasicInfo: true,
1486
+ showReceiverInfo: true,
1487
+ showMoneyInfo: false,
1488
+ showOrderItems: false,
1489
+ showStatusInfo: false
1490
+ }
1491
+ }
1492
+ }
1493
+ ]
1494
+ };
1495
+ var orderFormMeta_default = orderFormMeta;
1496
+
1497
+ // src/meta/couponCardMeta.ts
1498
+ var defaultCouponMockData = {
1499
+ code: 200,
1500
+ message: "success",
1501
+ data: {
1502
+ pageNum: 1,
1503
+ pageSize: 10,
1504
+ total: 3,
1505
+ list: [
1506
+ {
1507
+ id: 1,
1508
+ name: "\u65B0\u7528\u6237\u4E13\u4EAB\u5238",
1509
+ type: 0,
1510
+ platform: 0,
1511
+ count: 1e3,
1512
+ amount: 50,
1513
+ perLimit: 1,
1514
+ minPoint: 200,
1515
+ startTime: "2024-01-01",
1516
+ endTime: "2024-12-31",
1517
+ useType: 0,
1518
+ note: "\u65B0\u7528\u6237\u9996\u5355\u6EE1200\u51CF50",
1519
+ publishCount: 500,
1520
+ useCount: 320,
1521
+ receiveCount: 450,
1522
+ enableTime: "7",
1523
+ code: "NEWUSER50",
1524
+ memberLevel: 0
1525
+ },
1526
+ {
1527
+ id: 2,
1528
+ name: "\u9650\u65F6\u6298\u6263\u5238",
1529
+ type: 1,
1530
+ platform: 3,
1531
+ count: 500,
1532
+ amount: 8,
1533
+ perLimit: 2,
1534
+ minPoint: 100,
1535
+ startTime: "2024-01-15",
1536
+ endTime: "2024-02-15",
1537
+ useType: 1,
1538
+ note: "APP\u4E13\u4EAB8\u6298\u5238",
1539
+ publishCount: 300,
1540
+ useCount: 180,
1541
+ receiveCount: 280,
1542
+ enableTime: "3",
1543
+ code: "APPDISCOUNT",
1544
+ memberLevel: 1
1545
+ },
1546
+ {
1547
+ id: 3,
1548
+ name: "\u4F1A\u5458\u4E13\u4EAB\u5238",
1549
+ type: 0,
1550
+ platform: 0,
1551
+ count: 200,
1552
+ amount: 100,
1553
+ perLimit: 1,
1554
+ minPoint: 500,
1555
+ startTime: "2024-01-01",
1556
+ endTime: "2024-06-30",
1557
+ useType: 2,
1558
+ note: "\u4F1A\u5458\u4E13\u4EAB\u6EE1500\u51CF100",
1559
+ publishCount: 150,
1560
+ useCount: 80,
1561
+ receiveCount: 120,
1562
+ enableTime: "15",
1563
+ code: "VIP100",
1564
+ memberLevel: 2
1565
+ }
1566
+ ]
1567
+ }
1568
+ };
1569
+ var couponCardMeta = {
1570
+ componentName: "CouponCard",
1571
+ title: "\u4F18\u60E0\u5238\u7BA1\u7406",
1572
+ docUrl: "",
1573
+ screenshot: "",
1574
+ devMode: "proCode",
1575
+ npm: {
1576
+ package: "mall-components",
1577
+ version: "1.0.0",
1578
+ exportName: "CouponCard",
1579
+ main: "lib/index.js",
1580
+ destructuring: true,
1581
+ subName: ""
1582
+ },
1583
+ category: "\u7535\u5546\u4E1A\u52A1",
1584
+ group: "\u8425\u9500\u7BA1\u7406",
1585
+ icon: Icons.gift,
1586
+ props: [
1587
+ {
1588
+ name: "dataSourceType",
1589
+ propType: "string",
1590
+ description: "\u6570\u636E\u6E90\u7C7B\u578B",
1591
+ defaultValue: "mock"
1592
+ },
1593
+ {
1594
+ name: "api",
1595
+ propType: "string",
1596
+ description: "API \u5730\u5740"
1597
+ },
1598
+ {
1599
+ name: "method",
1600
+ propType: "string",
1601
+ description: "\u8BF7\u6C42\u65B9\u6CD5",
1602
+ defaultValue: "GET"
1603
+ },
1604
+ {
1605
+ name: "mockData",
1606
+ propType: "string",
1607
+ description: "Mock \u6570\u636E",
1608
+ defaultValue: JSON.stringify(defaultCouponMockData)
1609
+ },
1610
+ {
1611
+ name: "variableName",
1612
+ propType: "string",
1613
+ description: "\u53D8\u91CF\u540D\u79F0"
1614
+ },
1615
+ {
1616
+ name: "showCreateButton",
1617
+ propType: "bool",
1618
+ description: "\u662F\u5426\u663E\u793A\u521B\u5EFA\u6309\u94AE",
1619
+ defaultValue: true
1620
+ },
1621
+ {
1622
+ name: "showFilter",
1623
+ propType: "bool",
1624
+ description: "\u662F\u5426\u663E\u793A\u7B5B\u9009\u533A\u57DF",
1625
+ defaultValue: true
1626
+ },
1627
+ {
1628
+ name: "showStatistics",
1629
+ propType: "bool",
1630
+ description: "\u662F\u5426\u663E\u793A\u7EDF\u8BA1\u4FE1\u606F",
1631
+ defaultValue: true
1632
+ },
1633
+ {
1634
+ name: "style",
1635
+ propType: "object",
1636
+ description: "\u81EA\u5B9A\u4E49\u6837\u5F0F"
1637
+ },
1638
+ {
1639
+ name: "className",
1640
+ propType: "string",
1641
+ description: "\u81EA\u5B9A\u4E49\u7C7B\u540D"
1642
+ }
1643
+ ],
1644
+ configure: {
1645
+ supports: {
1646
+ style: true,
1647
+ className: true,
1648
+ events: [
1649
+ { name: "onCreateCoupon", description: "\u521B\u5EFA\u4F18\u60E0\u5238" },
1650
+ { name: "onEditCoupon", description: "\u7F16\u8F91\u4F18\u60E0\u5238" },
1651
+ { name: "onDeleteCoupon", description: "\u5220\u9664\u4F18\u60E0\u5238" },
1652
+ { name: "onSearch", description: "\u641C\u7D22" }
1653
+ ]
1654
+ },
1655
+ props: [
1656
+ {
1657
+ type: "group",
1658
+ title: "\u6570\u636E\u6E90\u914D\u7F6E",
1659
+ display: "accordion",
1660
+ items: [
1661
+ {
1662
+ name: "dataSourceType",
1663
+ title: "\u6570\u636E\u6E90\u7C7B\u578B",
1664
+ setter: {
1665
+ componentName: "SelectSetter",
1666
+ props: {
1667
+ options: [
1668
+ { label: "Mock \u6570\u636E", value: "mock" },
1669
+ { label: "\u6570\u636E\u6E90\u7ED1\u5B9A", value: "variable" }
1670
+ ]
1671
+ }
1672
+ },
1673
+ extraProps: {
1674
+ display: "block"
1675
+ }
1676
+ },
1677
+ {
1678
+ name: "mockData",
1679
+ title: "Mock \u6570\u636E (JSON)",
1680
+ setter: {
1681
+ componentName: "TextAreaSetter",
1682
+ props: {
1683
+ rows: 10,
1684
+ placeholder: "\u8BF7\u8F93\u5165 JSON \u683C\u5F0F\u7684 Mock \u6570\u636E"
1685
+ }
1686
+ },
1687
+ extraProps: {
1688
+ display: "block"
1689
+ },
1690
+ condition: (target) => {
1691
+ return target.getProps().getPropValue("dataSourceType") === "mock";
1692
+ }
1693
+ },
1694
+ {
1695
+ name: "dataSource",
1696
+ title: "\u7ED1\u5B9A\u6570\u636E\u6E90",
1697
+ setter: {
1698
+ componentName: "MixedSetter",
1699
+ props: {
1700
+ setters: [
1701
+ "JsonSetter",
1702
+ "VariableSetter"
1703
+ ]
1704
+ }
1705
+ },
1706
+ extraProps: {
1707
+ display: "block"
1708
+ },
1709
+ condition: (target) => {
1710
+ return target.getProps().getPropValue("dataSourceType") === "variable";
1711
+ }
1712
+ }
1713
+ ]
1714
+ },
1715
+ {
1716
+ type: "group",
1717
+ title: "\u663E\u793A\u63A7\u5236",
1718
+ display: "accordion",
1719
+ items: [
1720
+ {
1721
+ name: "showCreateButton",
1722
+ title: "\u663E\u793A\u521B\u5EFA\u6309\u94AE",
1723
+ setter: "BoolSetter",
1724
+ extraProps: {
1725
+ display: "block"
1726
+ }
1727
+ },
1728
+ {
1729
+ name: "showFilter",
1730
+ title: "\u663E\u793A\u7B5B\u9009\u533A\u57DF",
1731
+ setter: "BoolSetter",
1732
+ extraProps: {
1733
+ display: "block"
1734
+ }
1735
+ },
1736
+ {
1737
+ name: "showStatistics",
1738
+ title: "\u663E\u793A\u7EDF\u8BA1\u4FE1\u606F",
1739
+ setter: "BoolSetter",
1740
+ extraProps: {
1741
+ display: "block"
1742
+ }
1743
+ }
1744
+ ]
1745
+ }
1746
+ ]
1747
+ },
1748
+ snippets: [
1749
+ {
1750
+ title: "\u4F18\u60E0\u5238\u7BA1\u7406",
1751
+ screenshot: "",
1752
+ schema: {
1753
+ componentName: "CouponCard",
1754
+ props: {
1755
+ dataSourceType: "mock",
1756
+ mockData: JSON.stringify(defaultCouponMockData),
1757
+ showCreateButton: true,
1758
+ showFilter: true,
1759
+ showStatistics: true
1760
+ }
1761
+ }
1762
+ },
1763
+ {
1764
+ title: "\u4F18\u60E0\u5238\u7BA1\u7406\uFF08\u7B80\u6D01\u6A21\u5F0F\uFF09",
1765
+ screenshot: "",
1766
+ schema: {
1767
+ componentName: "CouponCard",
1768
+ props: {
1769
+ dataSourceType: "mock",
1770
+ mockData: JSON.stringify(defaultCouponMockData),
1771
+ showCreateButton: false,
1772
+ showFilter: false,
1773
+ showStatistics: false
1774
+ }
1775
+ }
1776
+ }
1777
+ ]
1778
+ };
1779
+ var couponCardMeta_default = couponCardMeta;
1780
+
1781
+ // src/meta/promotionCardMeta.ts
1782
+ var defaultPromotionMockData = {
1783
+ code: 200,
1784
+ message: "success",
1785
+ data: {
1786
+ pageNum: 1,
1787
+ pageSize: 10,
1788
+ total: 4,
1789
+ list: [
1790
+ {
1791
+ id: 1,
1792
+ title: "\u53CC\u5341\u4E00\u5927\u4FC3",
1793
+ startDate: "2024-11-01",
1794
+ endDate: "2024-11-11",
1795
+ status: 1,
1796
+ createTime: "2024-10-15 10:00:00"
1797
+ },
1798
+ {
1799
+ id: 2,
1800
+ title: "618\u5E74\u4E2D\u5927\u4FC3",
1801
+ startDate: "2024-06-01",
1802
+ endDate: "2024-06-18",
1803
+ status: 1,
1804
+ createTime: "2024-05-20 09:00:00"
1805
+ },
1806
+ {
1807
+ id: 3,
1808
+ title: "\u65B0\u6625\u5B63\u4FC3\u9500",
1809
+ startDate: "2024-01-20",
1810
+ endDate: "2024-02-10",
1811
+ status: 0,
1812
+ createTime: "2024-01-10 08:00:00"
1813
+ },
1814
+ {
1815
+ id: 4,
1816
+ title: "\u4F1A\u5458\u65E5\u7279\u60E0",
1817
+ startDate: "2024-03-15",
1818
+ endDate: "2024-03-17",
1819
+ status: 1,
1820
+ createTime: "2024-03-01 10:00:00"
1821
+ }
1822
+ ]
1823
+ }
1824
+ };
1825
+ var promotionCardMeta = {
1826
+ componentName: "PromotionCard",
1827
+ title: "\u4FC3\u9500\u6D3B\u52A8\u7BA1\u7406",
1828
+ docUrl: "",
1829
+ screenshot: "",
1830
+ devMode: "proCode",
1831
+ npm: {
1832
+ package: "mall-components",
1833
+ version: "1.0.0",
1834
+ exportName: "PromotionCard",
1835
+ main: "lib/index.js",
1836
+ destructuring: true,
1837
+ subName: ""
1838
+ },
1839
+ category: "\u7535\u5546\u4E1A\u52A1",
1840
+ group: "\u8425\u9500\u7BA1\u7406",
1841
+ icon: Icons.star,
1842
+ props: [
1843
+ {
1844
+ name: "dataSourceType",
1845
+ propType: "string",
1846
+ description: "\u6570\u636E\u6E90\u7C7B\u578B",
1847
+ defaultValue: "mock"
1848
+ },
1849
+ {
1850
+ name: "api",
1851
+ propType: "string",
1852
+ description: "API \u5730\u5740"
1853
+ },
1854
+ {
1855
+ name: "method",
1856
+ propType: "string",
1857
+ description: "\u8BF7\u6C42\u65B9\u6CD5",
1858
+ defaultValue: "GET"
1859
+ },
1860
+ {
1861
+ name: "mockData",
1862
+ propType: "string",
1863
+ description: "Mock \u6570\u636E",
1864
+ defaultValue: JSON.stringify(defaultPromotionMockData)
1865
+ },
1866
+ {
1867
+ name: "variableName",
1868
+ propType: "string",
1869
+ description: "\u53D8\u91CF\u540D\u79F0"
1870
+ },
1871
+ {
1872
+ name: "showCreateButton",
1873
+ propType: "bool",
1874
+ description: "\u662F\u5426\u663E\u793A\u521B\u5EFA\u6309\u94AE",
1875
+ defaultValue: true
1876
+ },
1877
+ {
1878
+ name: "showFilter",
1879
+ propType: "bool",
1880
+ description: "\u662F\u5426\u663E\u793A\u7B5B\u9009\u533A\u57DF",
1881
+ defaultValue: true
1882
+ },
1883
+ {
1884
+ name: "showStatistics",
1885
+ propType: "bool",
1886
+ description: "\u662F\u5426\u663E\u793A\u7EDF\u8BA1\u4FE1\u606F",
1887
+ defaultValue: true
1888
+ },
1889
+ {
1890
+ name: "showTimeline",
1891
+ propType: "bool",
1892
+ description: "\u662F\u5426\u663E\u793A\u65F6\u95F4\u7EBF",
1893
+ defaultValue: true
1894
+ },
1895
+ {
1896
+ name: "style",
1897
+ propType: "object",
1898
+ description: "\u81EA\u5B9A\u4E49\u6837\u5F0F"
1899
+ },
1900
+ {
1901
+ name: "className",
1902
+ propType: "string",
1903
+ description: "\u81EA\u5B9A\u4E49\u7C7B\u540D"
1904
+ }
1905
+ ],
1906
+ configure: {
1907
+ supports: {
1908
+ style: true,
1909
+ className: true,
1910
+ events: [
1911
+ { name: "onCreatePromotion", description: "\u521B\u5EFA\u4FC3\u9500\u6D3B\u52A8" },
1912
+ { name: "onEditPromotion", description: "\u7F16\u8F91\u4FC3\u9500\u6D3B\u52A8" },
1913
+ { name: "onDeletePromotion", description: "\u5220\u9664\u4FC3\u9500\u6D3B\u52A8" },
1914
+ { name: "onToggleStatus", description: "\u5207\u6362\u72B6\u6001" },
1915
+ { name: "onSearch", description: "\u641C\u7D22" }
1916
+ ]
1917
+ },
1918
+ props: [
1919
+ {
1920
+ type: "group",
1921
+ title: "\u6570\u636E\u6E90\u914D\u7F6E",
1922
+ display: "accordion",
1923
+ items: [
1924
+ {
1925
+ name: "dataSourceType",
1926
+ title: "\u6570\u636E\u6E90\u7C7B\u578B",
1927
+ setter: {
1928
+ componentName: "SelectSetter",
1929
+ props: {
1930
+ options: [
1931
+ { label: "Mock \u6570\u636E", value: "mock" },
1932
+ { label: "\u6570\u636E\u6E90\u7ED1\u5B9A", value: "variable" }
1933
+ ]
1934
+ }
1935
+ },
1936
+ extraProps: {
1937
+ display: "block"
1938
+ }
1939
+ },
1940
+ {
1941
+ name: "mockData",
1942
+ title: "Mock \u6570\u636E (JSON)",
1943
+ setter: {
1944
+ componentName: "TextAreaSetter",
1945
+ props: {
1946
+ rows: 10,
1947
+ placeholder: "\u8BF7\u8F93\u5165 JSON \u683C\u5F0F\u7684 Mock \u6570\u636E"
1948
+ }
1949
+ },
1950
+ extraProps: {
1951
+ display: "block"
1952
+ },
1953
+ condition: (target) => {
1954
+ return target.getProps().getPropValue("dataSourceType") === "mock";
1955
+ }
1956
+ },
1957
+ {
1958
+ name: "dataSource",
1959
+ title: "\u7ED1\u5B9A\u6570\u636E\u6E90",
1960
+ setter: {
1961
+ componentName: "MixedSetter",
1962
+ props: {
1963
+ setters: [
1964
+ "JsonSetter",
1965
+ "VariableSetter"
1966
+ ]
1967
+ }
1968
+ },
1969
+ extraProps: {
1970
+ display: "block"
1971
+ },
1972
+ condition: (target) => {
1973
+ return target.getProps().getPropValue("dataSourceType") === "variable";
1974
+ }
1975
+ }
1976
+ ]
1977
+ },
1978
+ {
1979
+ type: "group",
1980
+ title: "\u663E\u793A\u63A7\u5236",
1981
+ display: "accordion",
1982
+ items: [
1983
+ {
1984
+ name: "showCreateButton",
1985
+ title: "\u663E\u793A\u521B\u5EFA\u6309\u94AE",
1986
+ setter: "BoolSetter",
1987
+ extraProps: {
1988
+ display: "block"
1989
+ }
1990
+ },
1991
+ {
1992
+ name: "showFilter",
1993
+ title: "\u663E\u793A\u7B5B\u9009\u533A\u57DF",
1994
+ setter: "BoolSetter",
1995
+ extraProps: {
1996
+ display: "block"
1997
+ }
1998
+ },
1999
+ {
2000
+ name: "showStatistics",
2001
+ title: "\u663E\u793A\u7EDF\u8BA1\u4FE1\u606F",
2002
+ setter: "BoolSetter",
2003
+ extraProps: {
2004
+ display: "block"
2005
+ }
2006
+ },
2007
+ {
2008
+ name: "showTimeline",
2009
+ title: "\u663E\u793A\u65F6\u95F4\u7EBF",
2010
+ setter: "BoolSetter",
2011
+ extraProps: {
2012
+ display: "block"
2013
+ }
2014
+ }
2015
+ ]
2016
+ }
2017
+ ]
2018
+ },
2019
+ snippets: [
2020
+ {
2021
+ title: "\u4FC3\u9500\u6D3B\u52A8\u7BA1\u7406",
2022
+ screenshot: "",
2023
+ schema: {
2024
+ componentName: "PromotionCard",
2025
+ props: {
2026
+ dataSourceType: "mock",
2027
+ mockData: JSON.stringify(defaultPromotionMockData),
2028
+ showCreateButton: true,
2029
+ showFilter: true,
2030
+ showStatistics: true,
2031
+ showTimeline: true
2032
+ }
2033
+ }
2034
+ },
2035
+ {
2036
+ title: "\u4FC3\u9500\u6D3B\u52A8\u7BA1\u7406\uFF08\u7B80\u6D01\u6A21\u5F0F\uFF09",
2037
+ screenshot: "",
2038
+ schema: {
2039
+ componentName: "PromotionCard",
2040
+ props: {
2041
+ dataSourceType: "mock",
2042
+ mockData: JSON.stringify(defaultPromotionMockData),
2043
+ showCreateButton: false,
2044
+ showFilter: false,
2045
+ showStatistics: false,
2046
+ showTimeline: false
2047
+ }
2048
+ }
2049
+ }
2050
+ ]
2051
+ };
2052
+ var promotionCardMeta_default = promotionCardMeta;
2053
+
2054
+ // src/meta/userCardMeta.ts
2055
+ var userCardMeta = {
2056
+ componentName: "UserCard",
2057
+ title: "\u7528\u6237\u7BA1\u7406",
2058
+ docUrl: "",
2059
+ screenshot: "",
2060
+ devMode: "proCode",
2061
+ npm: {
2062
+ package: "mall-components",
2063
+ version: "1.0.0",
2064
+ exportName: "UserCard",
2065
+ main: "lib/index.js",
2066
+ destructuring: true,
2067
+ subName: ""
2068
+ },
2069
+ category: "\u7535\u5546\u4E1A\u52A1",
2070
+ group: "\u6743\u9650\u7BA1\u7406",
2071
+ icon: Icons.user,
2072
+ props: [
2073
+ {
2074
+ name: "dataSource",
2075
+ propType: "string",
2076
+ description: "\u6570\u636E\u6E90\u914D\u7F6E"
2077
+ },
2078
+ {
2079
+ name: "showCreateButton",
2080
+ propType: "bool",
2081
+ description: "\u662F\u5426\u663E\u793A\u521B\u5EFA\u6309\u94AE",
2082
+ defaultValue: true
2083
+ },
2084
+ {
2085
+ name: "showFilter",
2086
+ propType: "bool",
2087
+ description: "\u662F\u5426\u663E\u793A\u7B5B\u9009\u533A\u57DF",
2088
+ defaultValue: true
2089
+ },
2090
+ {
2091
+ name: "showStatistics",
2092
+ propType: "bool",
2093
+ description: "\u662F\u5426\u663E\u793A\u7EDF\u8BA1\u4FE1\u606F",
2094
+ defaultValue: true
2095
+ },
2096
+ {
2097
+ name: "style",
2098
+ propType: "object",
2099
+ description: "\u81EA\u5B9A\u4E49\u6837\u5F0F"
2100
+ },
2101
+ {
2102
+ name: "className",
2103
+ propType: "string",
2104
+ description: "\u81EA\u5B9A\u4E49\u7C7B\u540D"
2105
+ }
2106
+ ],
2107
+ configure: {
2108
+ props: {
2109
+ isExtends: true,
2110
+ override: [
2111
+ {
2112
+ name: "dataSource",
2113
+ setter: {
2114
+ componentName: "StringSetter"
2115
+ }
2116
+ },
2117
+ {
2118
+ name: "showCreateButton",
2119
+ setter: {
2120
+ componentName: "BoolSetter"
2121
+ }
2122
+ },
2123
+ {
2124
+ name: "showFilter",
2125
+ setter: {
2126
+ componentName: "BoolSetter"
2127
+ }
2128
+ },
2129
+ {
2130
+ name: "showStatistics",
2131
+ setter: {
2132
+ componentName: "BoolSetter"
2133
+ }
2134
+ }
2135
+ ]
2136
+ },
2137
+ component: {
2138
+ isContainer: false,
2139
+ isModal: false,
2140
+ rootSelector: ".mall-user-card",
2141
+ nestingRule: {
2142
+ parentWhitelist: "",
2143
+ childWhitelist: ""
2144
+ }
2145
+ },
2146
+ supports: {
2147
+ style: true,
2148
+ className: true
2149
+ }
2150
+ },
2151
+ snippets: [
2152
+ {
2153
+ title: "\u7528\u6237\u7BA1\u7406",
2154
+ screenshot: "",
2155
+ schema: {
2156
+ componentName: "UserCard",
2157
+ props: {
2158
+ showCreateButton: true,
2159
+ showFilter: true,
2160
+ showStatistics: true
2161
+ }
2162
+ }
2163
+ },
2164
+ {
2165
+ title: "\u7528\u6237\u7BA1\u7406\uFF08\u7B80\u6D01\u6A21\u5F0F\uFF09",
2166
+ screenshot: "",
2167
+ schema: {
2168
+ componentName: "UserCard",
2169
+ props: {
2170
+ showCreateButton: false,
2171
+ showFilter: false,
2172
+ showStatistics: false
2173
+ }
2174
+ }
2175
+ }
2176
+ ]
2177
+ };
2178
+ var userCardMeta_default = userCardMeta;
2179
+
2180
+ // src/meta/roleCardMeta.ts
2181
+ var roleCardMeta = {
2182
+ componentName: "RoleCard",
2183
+ title: "\u89D2\u8272\u7BA1\u7406",
2184
+ docUrl: "",
2185
+ screenshot: "",
2186
+ devMode: "proCode",
2187
+ npm: {
2188
+ package: "mall-components",
2189
+ version: "1.0.0",
2190
+ exportName: "RoleCard",
2191
+ main: "lib/index.js",
2192
+ destructuring: true,
2193
+ subName: ""
2194
+ },
2195
+ category: "\u7535\u5546\u4E1A\u52A1",
2196
+ group: "\u6743\u9650\u7BA1\u7406",
2197
+ icon: Icons.team,
2198
+ props: [
2199
+ {
2200
+ name: "dataSource",
2201
+ propType: "string",
2202
+ description: "\u6570\u636E\u6E90\u914D\u7F6E"
2203
+ },
2204
+ {
2205
+ name: "showCreateButton",
2206
+ propType: "bool",
2207
+ description: "\u662F\u5426\u663E\u793A\u521B\u5EFA\u6309\u94AE",
2208
+ defaultValue: true
2209
+ },
2210
+ {
2211
+ name: "showFilter",
2212
+ propType: "bool",
2213
+ description: "\u662F\u5426\u663E\u793A\u7B5B\u9009\u533A\u57DF",
2214
+ defaultValue: true
2215
+ },
2216
+ {
2217
+ name: "showStatistics",
2218
+ propType: "bool",
2219
+ description: "\u662F\u5426\u663E\u793A\u7EDF\u8BA1\u4FE1\u606F",
2220
+ defaultValue: true
2221
+ },
2222
+ {
2223
+ name: "showPermissionTree",
2224
+ propType: "bool",
2225
+ description: "\u662F\u5426\u663E\u793A\u6743\u9650\u6811",
2226
+ defaultValue: true
2227
+ },
2228
+ {
2229
+ name: "style",
2230
+ propType: "object",
2231
+ description: "\u81EA\u5B9A\u4E49\u6837\u5F0F"
2232
+ },
2233
+ {
2234
+ name: "className",
2235
+ propType: "string",
2236
+ description: "\u81EA\u5B9A\u4E49\u7C7B\u540D"
2237
+ }
2238
+ ],
2239
+ configure: {
2240
+ props: {
2241
+ isExtends: true,
2242
+ override: [
2243
+ {
2244
+ name: "dataSource",
2245
+ setter: {
2246
+ componentName: "StringSetter"
2247
+ }
2248
+ },
2249
+ {
2250
+ name: "showCreateButton",
2251
+ setter: {
2252
+ componentName: "BoolSetter"
2253
+ }
2254
+ },
2255
+ {
2256
+ name: "showFilter",
2257
+ setter: {
2258
+ componentName: "BoolSetter"
2259
+ }
2260
+ },
2261
+ {
2262
+ name: "showStatistics",
2263
+ setter: {
2264
+ componentName: "BoolSetter"
2265
+ }
2266
+ },
2267
+ {
2268
+ name: "showPermissionTree",
2269
+ setter: {
2270
+ componentName: "BoolSetter"
2271
+ }
2272
+ }
2273
+ ]
2274
+ },
2275
+ component: {
2276
+ isContainer: false,
2277
+ isModal: false,
2278
+ rootSelector: ".mall-role-card",
2279
+ nestingRule: {
2280
+ parentWhitelist: "",
2281
+ childWhitelist: ""
2282
+ }
2283
+ },
2284
+ supports: {
2285
+ style: true,
2286
+ className: true
2287
+ }
2288
+ },
2289
+ snippets: [
2290
+ {
2291
+ title: "\u89D2\u8272\u7BA1\u7406",
2292
+ screenshot: "",
2293
+ schema: {
2294
+ componentName: "RoleCard",
2295
+ props: {
2296
+ showCreateButton: true,
2297
+ showFilter: true,
2298
+ showStatistics: true,
2299
+ showPermissionTree: true
2300
+ }
2301
+ }
2302
+ },
2303
+ {
2304
+ title: "\u89D2\u8272\u7BA1\u7406\uFF08\u7B80\u6D01\u6A21\u5F0F\uFF09",
2305
+ screenshot: "",
2306
+ schema: {
2307
+ componentName: "RoleCard",
2308
+ props: {
2309
+ showCreateButton: false,
2310
+ showFilter: false,
2311
+ showStatistics: false,
2312
+ showPermissionTree: false
2313
+ }
2314
+ }
2315
+ }
2316
+ ]
2317
+ };
2318
+ var roleCardMeta_default = roleCardMeta;
2319
+
2320
+ // src/meta/adminLayoutMeta.ts
2321
+ var AdminLayoutMeta = {
2322
+ componentName: "AdminLayout",
2323
+ title: "\u7BA1\u7406\u540E\u53F0\u5E03\u5C40",
2324
+ docUrl: "https://github.com/alibaba/lowcode-engine",
2325
+ screenshot: "",
2326
+ npm: {
2327
+ package: "mall-components",
2328
+ version: "1.0.0",
2329
+ exportName: "AdminLayout",
2330
+ destructuring: true
2331
+ },
2332
+ props: [
2333
+ {
2334
+ name: "defaultSelectedKey",
2335
+ propType: "string",
2336
+ description: "\u9ED8\u8BA4\u9009\u4E2D\u7684\u83DC\u5355\u9879",
2337
+ defaultValue: "dashboard"
2338
+ },
2339
+ {
2340
+ name: "collapsible",
2341
+ propType: "bool",
2342
+ description: "\u5141\u8BB8\u6298\u53E0\u4FA7\u8FB9\u680F",
2343
+ defaultValue: true,
2344
+ setter: "BoolSetter"
2345
+ },
2346
+ {
2347
+ name: "enableTabs",
2348
+ propType: "bool",
2349
+ description: "\u542F\u7528\u591A\u6807\u7B7E\u9875\u529F\u80FD",
2350
+ defaultValue: true,
2351
+ setter: "BoolSetter"
2352
+ },
2353
+ {
2354
+ name: "maxTabs",
2355
+ propType: "number",
2356
+ description: "\u6700\u5927\u6807\u7B7E\u9875\u6570\u91CF",
2357
+ defaultValue: 10,
2358
+ setter: "NumberSetter"
2359
+ },
2360
+ {
2361
+ name: "closableTabs",
2362
+ propType: "bool",
2363
+ description: "\u6807\u7B7E\u9875\u53EF\u5173\u95ED",
2364
+ defaultValue: true,
2365
+ setter: "BoolSetter"
2366
+ },
2367
+ {
2368
+ name: "logoText",
2369
+ propType: "string",
2370
+ description: "Logo \u6587\u5B57",
2371
+ defaultValue: "Mall Admin@"
2372
+ }
2373
+ ],
2374
+ configure: {
2375
+ supports: {
2376
+ style: true,
2377
+ events: [],
2378
+ loop: false
2379
+ },
2380
+ props: [
2381
+ {
2382
+ type: "group",
2383
+ title: "\u5E03\u5C40\u914D\u7F6E",
2384
+ display: "accordion",
2385
+ items: [
2386
+ {
2387
+ name: "defaultSelectedKey",
2388
+ title: "\u9ED8\u8BA4\u9009\u4E2D\u83DC\u5355",
2389
+ setter: "InputSetter",
2390
+ extraProps: { display: "block", placeholder: "\u4F8B\u5982\uFF1Adashboard" }
2391
+ },
2392
+ {
2393
+ name: "collapsible",
2394
+ title: "\u5141\u8BB8\u6298\u53E0\u4FA7\u8FB9\u680F",
2395
+ setter: "BoolSetter",
2396
+ extraProps: { display: "block" }
2397
+ },
2398
+ {
2399
+ name: "logoText",
2400
+ title: "Logo \u6587\u5B57",
2401
+ setter: "InputSetter",
2402
+ extraProps: { display: "block" }
2403
+ }
2404
+ ]
2405
+ },
2406
+ {
2407
+ type: "group",
2408
+ title: "\u6807\u7B7E\u9875\u914D\u7F6E",
2409
+ display: "accordion",
2410
+ items: [
2411
+ {
2412
+ name: "enableTabs",
2413
+ title: "\u542F\u7528\u591A\u6807\u7B7E\u9875",
2414
+ setter: "BoolSetter",
2415
+ extraProps: { display: "block" }
2416
+ },
2417
+ {
2418
+ name: "maxTabs",
2419
+ title: "\u6700\u5927\u6807\u7B7E\u6570",
2420
+ setter: "NumberSetter",
2421
+ extraProps: { display: "block", min: 1, max: 20, step: 1 }
2422
+ },
2423
+ {
2424
+ name: "closableTabs",
2425
+ title: "\u6807\u7B7E\u53EF\u5173\u95ED",
2426
+ setter: "BoolSetter",
2427
+ extraProps: { display: "block" }
2428
+ }
2429
+ ]
2430
+ }
2431
+ ],
2432
+ component: {
2433
+ isContainer: true,
2434
+ nestingRule: {
2435
+ childWhitelist: ["TabPane"]
2436
+ }
2437
+ }
2438
+ },
2439
+ icon: "https://img.alicdn.com/tfs/TB1p9Nqy.T1gK0jSZFrXXcNCXXa-200-200.png",
2440
+ category: "\u7535\u5546\u4E1A\u52A1\u7EC4\u4EF6",
2441
+ group: "\u5E03\u5C40\u5BB9\u5668",
2442
+ snippets: [
2443
+ {
2444
+ title: "\u7BA1\u7406\u540E\u53F0\u5E03\u5C40\uFF08\u5E26 Tab\uFF09",
2445
+ schema: {
2446
+ componentName: "AdminLayout",
2447
+ props: {
2448
+ defaultSelectedKey: "dashboard",
2449
+ collapsible: true,
2450
+ enableTabs: true,
2451
+ maxTabs: 10,
2452
+ closableTabs: true,
2453
+ logoText: "Mall Admin@"
2454
+ }
2455
+ }
2456
+ },
2457
+ {
2458
+ title: "\u7BA1\u7406\u540E\u53F0\u5E03\u5C40\uFF08\u65E0 Tab\uFF09",
2459
+ schema: {
2460
+ componentName: "AdminLayout",
2461
+ props: {
2462
+ defaultSelectedKey: "dashboard",
2463
+ collapsible: true,
2464
+ enableTabs: false,
2465
+ logoText: "Mall Admin@"
2466
+ }
2467
+ }
2468
+ }
2469
+ ]
2470
+ };
2471
+ var adminLayoutMeta_default = AdminLayoutMeta;
2472
+
2473
+ // src/meta/tabPaneMeta.ts
2474
+ var TabPaneMeta = {
2475
+ componentName: "TabPane",
2476
+ title: "\u9009\u9879\u5361\u9762\u677F",
2477
+ docUrl: "https://github.com/alibaba/lowcode-engine",
2478
+ screenshot: "",
2479
+ npm: {
2480
+ package: "mall-components",
2481
+ version: "1.0.0",
2482
+ exportName: "TabPane",
2483
+ destructuring: true
2484
+ },
2485
+ props: [
2486
+ {
2487
+ name: "tab",
2488
+ propType: "string",
2489
+ description: "\u9009\u9879\u5361\u6807\u9898",
2490
+ defaultValue: "\u65B0\u9009\u9879\u5361"
2491
+ },
2492
+ {
2493
+ name: "tabKey",
2494
+ propType: "string",
2495
+ description: "\u9009\u9879\u5361\u552F\u4E00\u6807\u8BC6",
2496
+ defaultValue: "tab1"
2497
+ }
2498
+ ],
2499
+ configure: {
2500
+ supports: {
2501
+ style: true,
2502
+ events: [],
2503
+ loop: false
2504
+ },
2505
+ props: [
2506
+ {
2507
+ type: "group",
2508
+ title: "\u57FA\u7840\u914D\u7F6E",
2509
+ display: "accordion",
2510
+ items: [
2511
+ {
2512
+ name: "tab",
2513
+ title: "\u9009\u9879\u5361\u6807\u9898",
2514
+ setter: "InputSetter",
2515
+ extraProps: { display: "block", placeholder: "\u4F8B\u5982\uFF1A\u5546\u54C1\u5217\u8868" }
2516
+ },
2517
+ {
2518
+ name: "tabKey",
2519
+ title: "\u9009\u9879\u5361\u6807\u8BC6",
2520
+ setter: "InputSetter",
2521
+ extraProps: { display: "block", placeholder: "\u4F8B\u5982\uFF1Aproduct" }
2522
+ }
2523
+ ]
2524
+ }
2525
+ ],
2526
+ component: {
2527
+ isContainer: true,
2528
+ nestingRule: {
2529
+ parentWhitelist: ["AdminLayout"]
2530
+ },
2531
+ disableBehaviors: ["remove"]
2532
+ }
2533
+ },
2534
+ icon: "",
2535
+ category: "\u9690\u85CF\u7EC4\u4EF6",
2536
+ group: "\u5E03\u5C40\u5BB9\u5668",
2537
+ snippets: []
2538
+ };
2539
+ var tabPaneMeta_default = TabPaneMeta;
2540
+
2541
+ // src/meta.ts
2542
+ var meta_default = {
2543
+ components: [
2544
+ productListMeta_default,
2545
+ productFormMeta_default,
2546
+ orderListMeta_default,
2547
+ orderFormMeta_default,
2548
+ couponCardMeta_default,
2549
+ promotionCardMeta_default,
2550
+ userCardMeta_default,
2551
+ roleCardMeta_default,
2552
+ adminLayoutMeta_default,
2553
+ tabPaneMeta_default
2554
+ ]
2555
+ };
2556
+ return __toCommonJS(meta_exports);
2557
+ })();
2558
+
2559
+ var result = __META_RAW__;
2560
+ if (result && result.default) result = result.default;
2561
+ if (result && result.components) return result;
2562
+ return { components: [] };
2563
+ }));