@pisell/private-materials 3.4.76 → 3.4.77

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 (164) hide show
  1. package/build/lowcode/assets-daily.json +11 -11
  2. package/build/lowcode/assets-dev.json +2 -2
  3. package/build/lowcode/assets-prod.json +11 -11
  4. package/build/lowcode/index.js +1 -1
  5. package/build/lowcode/meta.js +2 -2
  6. package/build/lowcode/preview.js +7 -7
  7. package/build/lowcode/render/default/view.css +1 -1
  8. package/build/lowcode/render/default/view.js +9 -9
  9. package/build/lowcode/view.css +1 -1
  10. package/build/lowcode/view.js +10 -10
  11. package/es/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  12. package/es/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  13. package/es/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  14. package/es/components/booking/utils.d.ts +2 -2
  15. package/es/components/eftpos/hooks.d.ts +0 -1
  16. package/es/components/eftposPay/amount.d.ts +1 -1
  17. package/es/components/eftposPay/device.d.ts +1 -1
  18. package/es/components/eftposPay/hooks.d.ts +2 -2
  19. package/es/components/eftposPay/store/index.d.ts +5 -5
  20. package/es/components/eftposPay/tyro/hooks.d.ts +0 -1
  21. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  22. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  23. package/es/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  24. package/es/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  25. package/es/components/shoppingCart/components/Empty/index.d.ts +1 -0
  26. package/es/hooks/useTranslationOriginal.d.ts +1 -0
  27. package/es/hooks/useTranslationOriginal.js +10 -0
  28. package/es/index.d.ts +3 -0
  29. package/es/index.js +3 -0
  30. package/es/plus/clientCard/index.d.ts +7 -0
  31. package/es/plus/clientCard/index.js +462 -0
  32. package/es/plus/clientCard/index.less +515 -0
  33. package/es/plus/clientCard/line/index.d.ts +9 -0
  34. package/es/plus/clientCard/line/index.js +157 -0
  35. package/es/plus/clientCard/line/index.less +142 -0
  36. package/es/plus/clientCard/locales.d.ts +18 -0
  37. package/es/plus/clientCard/locales.js +17 -0
  38. package/es/plus/clientCard/types.d.ts +135 -0
  39. package/es/plus/clientCard/types.js +1 -0
  40. package/es/plus/clientCard/utils.d.ts +8 -0
  41. package/es/plus/clientCard/utils.js +59 -0
  42. package/es/plus/clinetSearch/Add/BirthdayField/index.d.ts +3 -0
  43. package/es/plus/clinetSearch/Add/BirthdayField/index.js +277 -0
  44. package/es/plus/clinetSearch/Add/GenderField/index.d.ts +3 -0
  45. package/es/plus/clinetSearch/Add/GenderField/index.js +18 -0
  46. package/es/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
  47. package/es/plus/clinetSearch/Add/PhoneField/index.js +52 -0
  48. package/es/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  49. package/es/plus/clinetSearch/Add/PhoneField/serve.js +166 -0
  50. package/es/plus/clinetSearch/Add/index.d.ts +18 -0
  51. package/es/plus/clinetSearch/Add/index.js +213 -0
  52. package/es/plus/clinetSearch/Add/index.less +30 -0
  53. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  54. package/es/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +265 -0
  55. package/es/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  56. package/es/plus/clinetSearch/InfiniteScroll/index.js +1 -0
  57. package/es/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  58. package/es/plus/clinetSearch/InfiniteScroll/types.js +1 -0
  59. package/es/plus/clinetSearch/index.d.ts +18 -0
  60. package/es/plus/clinetSearch/index.js +234 -0
  61. package/es/plus/clinetSearch/index.less +95 -0
  62. package/es/plus/clinetSearch/locales.d.ts +108 -0
  63. package/es/plus/clinetSearch/locales.js +107 -0
  64. package/es/plus/clinetSearch/serve.d.ts +1 -0
  65. package/es/plus/clinetSearch/serve.js +31 -0
  66. package/es/plus/clinetSearch/types.d.ts +70 -0
  67. package/es/plus/clinetSearch/types.js +1 -0
  68. package/es/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  69. package/es/plus/walletPassGallery/components/passDetail/index.d.ts +2 -0
  70. package/es/plus/walletPassGallery/components/passDetail/index.js +104 -39
  71. package/es/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -0
  72. package/es/plus/walletPassGallery/components/timelineSection/index.js +19 -2
  73. package/es/plus/walletPassGallery/index.d.ts +4 -0
  74. package/es/plus/walletPassGallery/index.js +121 -42
  75. package/es/plus/walletPassGallery/serve.d.ts +3 -1
  76. package/es/plus/walletPassGallery/serve.js +13 -13
  77. package/es/pro/Selector/Selector.d.ts +1 -1
  78. package/es/pro/pisellPhoneKeyboard/index.d.ts +13 -0
  79. package/es/pro/pisellPhoneKeyboard/index.js +210 -0
  80. package/es/pro/pisellPhoneKeyboard/index.less +157 -0
  81. package/es/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  82. package/es/pro/pisellPhoneKeyboard/locales.js +11 -0
  83. package/lib/components/booking/forms/sendModal/useSendModal.d.ts +1 -0
  84. package/lib/components/booking/info/clientVariant/hooks/useIsLowSpeedNetwork.d.ts +0 -1
  85. package/lib/components/booking/info/hooks/useInfoHolder.d.ts +1 -0
  86. package/lib/components/booking/utils.d.ts +2 -2
  87. package/lib/components/eftpos/hooks.d.ts +0 -1
  88. package/lib/components/eftposPay/amount.d.ts +1 -1
  89. package/lib/components/eftposPay/device.d.ts +1 -1
  90. package/lib/components/eftposPay/hooks.d.ts +2 -2
  91. package/lib/components/eftposPay/store/index.d.ts +5 -5
  92. package/lib/components/eftposPay/tyro/hooks.d.ts +0 -1
  93. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/CalenDateWeek/CallToBook/index.d.ts +1 -0
  94. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/DayItem/index.d.ts +0 -1
  95. package/lib/components/eventBooking/components/bookingAvailabilityCalendar/components/CalendarDate/Item/index.d.ts +0 -1
  96. package/lib/components/pay/toC/PaymentMethods/StripePay/Stripe/StripeSDK/index.d.ts +0 -1
  97. package/lib/components/shoppingCart/components/Empty/index.d.ts +1 -0
  98. package/lib/hooks/useTranslationOriginal.d.ts +1 -0
  99. package/lib/hooks/useTranslationOriginal.js +42 -0
  100. package/lib/index.d.ts +3 -0
  101. package/lib/index.js +9 -0
  102. package/lib/plus/clientCard/index.d.ts +7 -0
  103. package/lib/plus/clientCard/index.js +457 -0
  104. package/lib/plus/clientCard/index.less +515 -0
  105. package/lib/plus/clientCard/line/index.d.ts +9 -0
  106. package/lib/plus/clientCard/line/index.js +153 -0
  107. package/lib/plus/clientCard/line/index.less +142 -0
  108. package/lib/plus/clientCard/locales.d.ts +18 -0
  109. package/lib/plus/clientCard/locales.js +41 -0
  110. package/lib/plus/clientCard/types.d.ts +135 -0
  111. package/lib/plus/clientCard/types.js +17 -0
  112. package/lib/plus/clientCard/utils.d.ts +8 -0
  113. package/lib/plus/clientCard/utils.js +75 -0
  114. package/lib/plus/clinetSearch/Add/BirthdayField/index.d.ts +3 -0
  115. package/lib/plus/clinetSearch/Add/BirthdayField/index.js +256 -0
  116. package/lib/plus/clinetSearch/Add/GenderField/index.d.ts +3 -0
  117. package/lib/plus/clinetSearch/Add/GenderField/index.js +52 -0
  118. package/lib/plus/clinetSearch/Add/PhoneField/index.d.ts +3 -0
  119. package/lib/plus/clinetSearch/Add/PhoneField/index.js +78 -0
  120. package/lib/plus/clinetSearch/Add/PhoneField/serve.d.ts +2 -0
  121. package/lib/plus/clinetSearch/Add/PhoneField/serve.js +193 -0
  122. package/lib/plus/clinetSearch/Add/index.d.ts +18 -0
  123. package/lib/plus/clinetSearch/Add/index.js +244 -0
  124. package/lib/plus/clinetSearch/Add/index.less +30 -0
  125. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.d.ts +5 -0
  126. package/lib/plus/clinetSearch/InfiniteScroll/InfiniteScroll.js +235 -0
  127. package/lib/plus/clinetSearch/InfiniteScroll/index.d.ts +2 -0
  128. package/lib/plus/clinetSearch/InfiniteScroll/index.js +35 -0
  129. package/lib/plus/clinetSearch/InfiniteScroll/types.d.ts +46 -0
  130. package/lib/plus/clinetSearch/InfiniteScroll/types.js +17 -0
  131. package/lib/plus/clinetSearch/index.d.ts +18 -0
  132. package/lib/plus/clinetSearch/index.js +237 -0
  133. package/lib/plus/clinetSearch/index.less +95 -0
  134. package/lib/plus/clinetSearch/locales.d.ts +108 -0
  135. package/lib/plus/clinetSearch/locales.js +131 -0
  136. package/lib/plus/clinetSearch/serve.d.ts +1 -0
  137. package/lib/plus/clinetSearch/serve.js +33 -0
  138. package/lib/plus/clinetSearch/types.d.ts +70 -0
  139. package/lib/plus/clinetSearch/types.js +17 -0
  140. package/lib/plus/walletEditor/components/ImageUpload/index.d.ts +1 -1
  141. package/lib/plus/walletPassGallery/components/passDetail/index.d.ts +2 -0
  142. package/lib/plus/walletPassGallery/components/passDetail/index.js +57 -5
  143. package/lib/plus/walletPassGallery/components/timelineSection/index.d.ts +2 -0
  144. package/lib/plus/walletPassGallery/components/timelineSection/index.js +17 -2
  145. package/lib/plus/walletPassGallery/index.d.ts +4 -0
  146. package/lib/plus/walletPassGallery/index.js +141 -42
  147. package/lib/plus/walletPassGallery/serve.d.ts +3 -1
  148. package/lib/plus/walletPassGallery/serve.js +2 -2
  149. package/lib/pro/Selector/Selector.d.ts +1 -1
  150. package/lib/pro/pisellPhoneKeyboard/index.d.ts +13 -0
  151. package/lib/pro/pisellPhoneKeyboard/index.js +219 -0
  152. package/lib/pro/pisellPhoneKeyboard/index.less +157 -0
  153. package/lib/pro/pisellPhoneKeyboard/locales.d.ts +12 -0
  154. package/lib/pro/pisellPhoneKeyboard/locales.js +35 -0
  155. package/lowcode/client-card/fragments/cardStyle.ts +63 -0
  156. package/lowcode/client-card/fragments/nameStyle.ts +34 -0
  157. package/lowcode/client-card/fragments/pisellAvatar.ts +87 -0
  158. package/lowcode/client-card/fragments/tagConfig.ts +88 -0
  159. package/lowcode/client-card/meta.ts +343 -0
  160. package/lowcode/client-search/meta.ts +316 -0
  161. package/lowcode/eco-cup-list/meta.ts +1 -1
  162. package/lowcode/eco-customer-list/meta.ts +1 -1
  163. package/lowcode/wallet-pass-gallery/meta.ts +66 -1
  164. package/package.json +2 -2
@@ -0,0 +1,343 @@
1
+ import pisellAvatarProps from './fragments/pisellAvatar';
2
+ import cardStyleProps from './fragments/cardStyle';
3
+ import nameStyleProps from './fragments/nameStyle';
4
+ import tagProps from './fragments/tagConfig';
5
+ import { AntdIconSetter } from '../../../materials/lowcode/_setters';
6
+ const ClientCardMeta = {
7
+ componentName: 'ClientCard',
8
+ title: '客户卡片',
9
+ docUrl: '',
10
+ screenshot: '',
11
+ devMode: 'proCode',
12
+ npm: {
13
+ package: '@pisell/private-materials',
14
+ version: '1.0.0',
15
+ exportName: 'ClientCard',
16
+ main: 'src/index.ts',
17
+ destructuring: true,
18
+ subName: '',
19
+ },
20
+ configure: {
21
+ props: [
22
+ {
23
+ title: {
24
+ label: {
25
+ type: 'i18n',
26
+ 'en-US': 'dataSource',
27
+ 'zh-CN': '数据源',
28
+ },
29
+ },
30
+ name: 'dataSource',
31
+ setter: {
32
+ componentName: 'JsonSetter',
33
+ },
34
+ },
35
+ {
36
+ title: '展示信息',
37
+ name: 'type',
38
+ setter: {
39
+ componentName: 'RadioGroupSetter',
40
+ props: {
41
+ options: [
42
+ {
43
+ label: 'B1',
44
+ value: 'b1',
45
+ },
46
+ {
47
+ label: 'B2',
48
+ value: 'b2',
49
+ },
50
+ {
51
+ label: 'B5',
52
+ value: 'b5',
53
+ },
54
+ {
55
+ label: 'B9',
56
+ value: 'b9',
57
+ },
58
+ // {
59
+ // label: '自定义',
60
+ // value: 'b0',
61
+ // },
62
+ ],
63
+ },
64
+ initialValue: 'b2',
65
+ },
66
+ },
67
+ {
68
+ title: '展示方向',
69
+ name: 'direction',
70
+ condition: (target: any) => {
71
+ const level = target.getProps().getPropValue('type');
72
+ return ['b2', 'b5'].includes(level);
73
+ },
74
+ setter: {
75
+ componentName: 'RadioGroupSetter',
76
+ props: {
77
+ options: [
78
+ {
79
+ label: '水平',
80
+ value: 'horizontal',
81
+ },
82
+ {
83
+ label: '垂直',
84
+ value: 'vertical',
85
+ },
86
+ ],
87
+ },
88
+ initialValue: 'horizontal',
89
+ },
90
+ },
91
+ {
92
+ title: '卡片样式',
93
+ type: 'group',
94
+ extraProps: {
95
+ display: 'accordion',
96
+ defaultCollapsed: true,
97
+ },
98
+ items: cardStyleProps,
99
+ },
100
+ {
101
+ title: '头像',
102
+ type: 'group',
103
+ display: 'block',
104
+ items: [
105
+ {
106
+ title: '显示头像',
107
+ name: 'isShowAvatar',
108
+ setter: 'BoolSetter',
109
+ defaultValue: true,
110
+ },
111
+ {
112
+ type: 'group',
113
+ condition: (target: any) =>
114
+ target.getProps().getPropValue('isShowAvatar'),
115
+ items: [...pisellAvatarProps],
116
+ },
117
+ {
118
+ title: '头像状态',
119
+ name: 'isShowStatus',
120
+ condition: (target: any) =>
121
+ target.getProps().getPropValue('isShowAvatar'),
122
+ setter: 'BoolSetter',
123
+ defaultValue: false,
124
+ },
125
+ {
126
+ title: '状态颜色',
127
+ name: 'status.color',
128
+ condition: (target: any) =>
129
+ target.getProps().getPropValue('isShowAvatar') &&
130
+ target.getProps().getPropValue('isShowStatus'),
131
+ setter: 'ColorSetter',
132
+ defaultValue: '#17B26A',
133
+ },
134
+ ],
135
+ },
136
+ {
137
+ title: '姓名',
138
+ type: 'group',
139
+ display: 'block',
140
+ items: [
141
+ {
142
+ title: '显示姓名',
143
+ name: 'isShowName',
144
+ setter: 'BoolSetter',
145
+ defaultValue: true,
146
+ },
147
+ {
148
+ title: '姓名默认文案',
149
+ name: 'defaultName',
150
+ setter: 'StringSetter',
151
+ },
152
+ ...nameStyleProps,
153
+ ],
154
+ },
155
+ {
156
+ type: 'group',
157
+ display: 'block',
158
+ title: '标签',
159
+ items: [
160
+ {
161
+ title: '展示标签',
162
+ name: 'isShowTag',
163
+ setter: 'BoolSetter',
164
+ defaultValue: true,
165
+ },
166
+ tagProps,
167
+ ],
168
+ },
169
+ {
170
+ type: 'group',
171
+ display: 'block',
172
+ title: '字段展示',
173
+ items: [
174
+ {
175
+ title: '显示电话号',
176
+ name: 'isShowPhone',
177
+ setter: 'BoolSetter',
178
+ defaultValue: true,
179
+ },
180
+ {
181
+ title: '显示邮箱',
182
+ name: 'isShowEmail',
183
+ setter: 'BoolSetter',
184
+ defaultValue: true,
185
+ },
186
+ {
187
+ title: '显示生日',
188
+ name: 'isShowBirthday',
189
+ setter: 'BoolSetter',
190
+ defaultValue: true,
191
+ },
192
+ {
193
+ title: '显示地址',
194
+ name: 'isShowAddress',
195
+ setter: 'BoolSetter',
196
+ defaultValue: true,
197
+ },
198
+ ],
199
+ },
200
+ {
201
+ title: '显示空状态描述',
202
+ name: 'isShowEmptyDescription',
203
+ setter: 'BoolSetter',
204
+ defaultValue: true,
205
+ },
206
+ {
207
+ name: 'extraFields',
208
+ title: { label: '额外字段', tip: '传入类型为Array<string>' },
209
+ setter: {
210
+ componentName: 'ArraySetter',
211
+ props: {
212
+ itemSetter: {
213
+ componentName: 'ObjectSetter',
214
+ props: {
215
+ config: {
216
+ items: [
217
+ {
218
+ name: 'label',
219
+ title: '标题',
220
+ setter: 'PisellI18nSetter',
221
+ important: true,
222
+ },
223
+ {
224
+ name: 'value',
225
+ title: '值',
226
+ setter: 'PisellI18nSetter',
227
+ important: true,
228
+ },
229
+ {
230
+ name: 'isShowLabel',
231
+ title: '显示标题',
232
+ setter: 'BoolSetter',
233
+ },
234
+ {
235
+ name: 'isShowValue',
236
+ title: '显示值',
237
+ setter: 'BoolSetter',
238
+ },
239
+ {
240
+ name: 'icon',
241
+ title: 'icon选择',
242
+ setter: AntdIconSetter,
243
+ },
244
+ {
245
+ name: 'iconSize',
246
+ title: 'icon大小',
247
+ setter: ['NumberSetter'],
248
+ },
249
+ {
250
+ name: 'iconColor',
251
+ title: 'icon颜色',
252
+ setter: 'ColorSetter',
253
+ },
254
+ ],
255
+ columns: 2,
256
+ },
257
+ },
258
+ initialValue: {
259
+ isShowLabel: false,
260
+ isShowValue: true,
261
+ },
262
+ },
263
+ },
264
+ },
265
+ },
266
+ {
267
+ name: 'fieldNames',
268
+ title: { label: '字段映射', tip: '将非标准字段映射为标准字段' },
269
+ setter: 'JsonSetter',
270
+ },
271
+ {
272
+ type: 'group',
273
+ display: 'block',
274
+ title: '插槽',
275
+ items: [
276
+ {
277
+ title: '顶部插槽',
278
+ name: 'slots.top',
279
+ setter: {
280
+ componentName: 'SlotSetter',
281
+ },
282
+ },
283
+ {
284
+ title: '底部插槽',
285
+ name: 'slots.bottom',
286
+ setter: {
287
+ componentName: 'SlotSetter',
288
+ },
289
+ },
290
+ {
291
+ title: '左侧插槽',
292
+ name: 'slots.left',
293
+ setter: {
294
+ componentName: 'SlotSetter',
295
+ },
296
+ },
297
+ {
298
+ title: '右侧插槽',
299
+ name: 'slots.right',
300
+ setter: {
301
+ componentName: 'SlotSetter',
302
+ },
303
+ },
304
+ ],
305
+ },
306
+ ],
307
+ supports: {
308
+ events: [
309
+ {
310
+ name: 'onAddClient',
311
+ },
312
+ {
313
+ name: 'onChangeClient',
314
+ },
315
+ {
316
+ name: 'onRemoveClient',
317
+ },
318
+ {
319
+ name: 'onViewClient',
320
+ },
321
+ ],
322
+ style: true,
323
+ },
324
+ },
325
+ };
326
+
327
+ const snippets = [
328
+ {
329
+ title: '客户卡片',
330
+ screenshot: '',
331
+ schema: {
332
+ componentName: 'ClientCard',
333
+ props: {
334
+ type: 'b2',
335
+ },
336
+ },
337
+ },
338
+ ];
339
+
340
+ export default {
341
+ ...ClientCardMeta,
342
+ snippets,
343
+ };
@@ -0,0 +1,316 @@
1
+ const Meta = {
2
+ componentName: 'ClientSearch',
3
+ title: '客户搜索',
4
+ docUrl: '',
5
+ screenshot: '',
6
+ devMode: 'proCode',
7
+ npm: {
8
+ package: '@pisell/private-materials',
9
+ version: '1.0.0',
10
+ exportName: 'ClientSearch',
11
+ main: 'src/index.ts',
12
+ destructuring: true,
13
+ subName: '',
14
+ },
15
+ configure: {
16
+ props: [
17
+ {
18
+ title: { label: '容器配置' },
19
+ type: 'group',
20
+ display: 'block',
21
+ items: [
22
+ {
23
+ title: { label: '打开状态', tip: 'containerProps.open | 打开状态' },
24
+ name: 'containerProps.open',
25
+ setter: 'BoolSetter',
26
+ defaultValue: true,
27
+ },
28
+ {
29
+ title: { label: '关闭回调', tip: 'containerProps.onCancel | 关闭回调' },
30
+ name: 'containerProps.onCancel',
31
+ setter: 'FunctionSetter',
32
+ },
33
+ {
34
+ title: {
35
+ label: '关闭销毁',
36
+ tip: 'containerProps.destroyOnClose | 关闭销毁',
37
+ },
38
+ name: 'containerProps.destroyOnClose',
39
+ setter: 'BoolSetter',
40
+ defaultValue: true,
41
+ },
42
+ {
43
+ title: { label: '宽度', tip: 'containerProps.width | 宽度' },
44
+ name: 'containerProps.width',
45
+ setter: 'NumberSetter',
46
+ defaultValue: 680,
47
+ },
48
+ ],
49
+ },
50
+ {
51
+ title: { label: '数据与状态' },
52
+ type: 'group',
53
+ display: 'block',
54
+ items: [
55
+ {
56
+ title: { label: '数据源', tip: 'dataSource | 数据源' },
57
+ name: 'dataSource',
58
+ setter: ['JsonSetter'],
59
+ },
60
+ {
61
+ title: { label: '搜索关键字', tip: 'keyword | 搜索关键字' },
62
+ name: 'keyword',
63
+ setter: ['StringSetter'],
64
+ },
65
+ {
66
+ title: { label: '加载中', tip: 'loading | 加载状态' },
67
+ name: 'loading',
68
+ setter: 'BoolSetter',
69
+ },
70
+ {
71
+ title: { label: '外部状态', tip: 'state | 外部状态' },
72
+ name: 'state',
73
+ setter: ['JsonSetter'],
74
+ },
75
+ ],
76
+ },
77
+ {
78
+ title: { label: '新建按钮' },
79
+ type: 'group',
80
+ display: 'block',
81
+ items: [
82
+ {
83
+ title: {
84
+ label: '显示新建按钮',
85
+ tip: 'isShowNewButton | 显示新建按钮',
86
+ },
87
+ name: 'isShowNewButton',
88
+ setter: 'BoolSetter',
89
+ },
90
+ {
91
+ title: { label: '按钮对齐', tip: 'newButtonAlign | 按钮对齐' },
92
+ name: 'newButtonAlign',
93
+ setter: {
94
+ componentName: 'SelectSetter',
95
+ props: {
96
+ options: [
97
+ { title: '左对齐', value: 'left' },
98
+ { title: '居中', value: 'center' },
99
+ { title: '右对齐', value: 'right' },
100
+ ],
101
+ },
102
+ },
103
+ },
104
+ {
105
+ title: { label: '按钮文案', tip: 'newButtonText | 按钮文案' },
106
+ name: 'newButtonText',
107
+ setter: ['StringSetter'],
108
+ },
109
+ {
110
+ title: {
111
+ label: '新建弹窗数据',
112
+ tip: 'newDialogDataSource | 新建弹窗数据',
113
+ },
114
+ name: 'newDialogDataSource',
115
+ setter: ['JsonSetter'],
116
+ },
117
+ ],
118
+ },
119
+ {
120
+ title: { label: '搜索配置' },
121
+ type: 'group',
122
+ display: 'block',
123
+ items: [
124
+ {
125
+ title: { label: '显示搜索框', tip: 'isShowSearch | 显示搜索框' },
126
+ name: 'isShowSearch',
127
+ setter: 'BoolSetter',
128
+ },
129
+ {
130
+ title: {
131
+ label: '显示搜索相机',
132
+ tip: 'isShowSearchCamera | 显示搜索相机',
133
+ },
134
+ name: 'isShowSearchCamera',
135
+ setter: 'BoolSetter',
136
+ },
137
+ {
138
+ title: { label: '搜索图标', tip: 'searchIcon | 搜索图标' },
139
+ name: 'searchIcon',
140
+ setter: ['StringSetter'],
141
+ },
142
+ {
143
+ title: { label: '搜索占位', tip: 'placeholder | 搜索占位' },
144
+ name: 'placeholder',
145
+ setter: ['StringSetter'],
146
+ },
147
+ {
148
+ title: {
149
+ label: '显示搜索按钮',
150
+ tip: 'isShowSearchButton | 显示搜索按钮',
151
+ },
152
+ name: 'isShowSearchButton',
153
+ setter: 'BoolSetter',
154
+ },
155
+ ],
156
+ },
157
+ {
158
+ title: { label: '结果配置' },
159
+ type: 'group',
160
+ display: 'block',
161
+ items: [
162
+ {
163
+ title: { label: '排序方式', tip: 'resultSort | 排序方式' },
164
+ name: 'resultSort',
165
+ setter: {
166
+ componentName: 'RadioGroupSetter',
167
+ props: {
168
+ options: [
169
+ { title: '升序', value: 'asc' },
170
+ { title: '降序', value: 'desc' },
171
+ { title: '自定义', value: 'custom' },
172
+ ],
173
+ },
174
+ },
175
+ },
176
+ {
177
+ title: { label: '排序字段', tip: 'sortBy | 排序字段' },
178
+ name: 'sortBy',
179
+ setter: ['StringSetter'],
180
+ },
181
+ {
182
+ title: { label: '列表配置', tip: 'resultProps | 列表配置' },
183
+ name: 'resultProps',
184
+ setter: ['JsonSetter'],
185
+ },
186
+ ],
187
+ },
188
+ {
189
+ title: { label: '扩展能力' },
190
+ type: 'group',
191
+ display: 'block',
192
+ items: [
193
+ {
194
+ title: { label: '显示扫码枪', tip: 'isShowScanner | 显示扫码枪' },
195
+ name: 'isShowScanner',
196
+ setter: 'BoolSetter',
197
+ },
198
+ {
199
+ title: { label: '显示摄像头', tip: 'isShowCamera | 显示摄像头' },
200
+ name: 'isShowCamera',
201
+ setter: 'BoolSetter',
202
+ },
203
+ {
204
+ title: { label: '显示NFC', tip: 'isShowNFC | 显示NFC' },
205
+ name: 'isShowNFC',
206
+ setter: 'BoolSetter',
207
+ },
208
+ {
209
+ title: { label: '样式', tip: 'style | 样式' },
210
+ name: 'style',
211
+ setter: ['JsonSetter'],
212
+ },
213
+ ],
214
+ },
215
+ {
216
+ title: { label: '列表交互' },
217
+ type: 'group',
218
+ display: 'block',
219
+ items: [
220
+ {
221
+ title: { label: '点击行回调', tip: 'onRowClick | 点击行回调' },
222
+ name: 'onRowClick',
223
+ setter: 'FunctionSetter',
224
+ },
225
+ {
226
+ title: { label: '新增客户回调', tip: 'onAddClient | 新增客户回调' },
227
+ name: 'onAddClient',
228
+ setter: 'FunctionSetter',
229
+ },
230
+ {
231
+ title: { label: '触底加载', tip: 'onLoadMore | 触底加载回调' },
232
+ name: 'onLoadMore',
233
+ setter: 'FunctionSetter',
234
+ },
235
+ {
236
+ title: { label: '是否还有更多', tip: 'hasMore | 是否还有更多数据' },
237
+ name: 'hasMore',
238
+ setter: 'BoolSetter',
239
+ defaultValue: false,
240
+ },
241
+ ],
242
+ },
243
+ {
244
+ title: { label: '搜索事件' },
245
+ type: 'group',
246
+ display: 'block',
247
+ items: [
248
+ {
249
+ title: { label: '关键字变化', tip: 'onKeywordChange | 关键字变化' },
250
+ name: 'onKeywordChange',
251
+ setter: 'FunctionSetter',
252
+ },
253
+ {
254
+ title: { label: '搜索回调', tip: 'onSearch | 搜索回调' },
255
+ name: 'onSearch',
256
+ setter: 'FunctionSetter',
257
+ },
258
+ {
259
+ title: { label: '数据变化', tip: 'onDataChange | 数据变化' },
260
+ name: 'onDataChange',
261
+ setter: 'FunctionSetter',
262
+ },
263
+ ],
264
+ },
265
+ ],
266
+ component: {
267
+ isModal: true,
268
+ nestingRule: {
269
+ parentWhitelist: ['Page', 'Component'],
270
+ },
271
+ },
272
+ supports: {
273
+ events: [
274
+ {
275
+ name: 'onRowClick',
276
+ },
277
+ {
278
+ name: 'onAddClient',
279
+ },
280
+ {
281
+ name: 'onLoadMore',
282
+ },
283
+ {
284
+ name: 'onKeywordChange',
285
+ },
286
+ {
287
+ name: 'onSearch',
288
+ },
289
+ {
290
+ name: 'onDataChange',
291
+ },
292
+ ],
293
+ style: true,
294
+ },
295
+ },
296
+ };
297
+
298
+ const snippets = [
299
+ {
300
+ title: '客户搜索',
301
+ screenshot: '',
302
+ schema: {
303
+ componentName: 'ClientSearch',
304
+ props: {
305
+ isShowSearch: true,
306
+ isShowNewButton: true,
307
+ hasMore: false,
308
+ },
309
+ },
310
+ },
311
+ ];
312
+
313
+ export default {
314
+ snippets,
315
+ ...Meta,
316
+ };
@@ -9,7 +9,7 @@ const EcoCupListMeta: ComponentMetadata = {
9
9
  "devMode": "proCode",
10
10
  "npm": {
11
11
  "package": "@pisell/private-materials",
12
- "version": "3.4.75",
12
+ "version": "6.3.93",
13
13
  "exportName": "EcoCupList",
14
14
  "main": "src/index.ts",
15
15
  "destructuring": true,
@@ -9,7 +9,7 @@ const EcoCustomerListMeta: ComponentMetadata = {
9
9
  "devMode": "proCode",
10
10
  "npm": {
11
11
  "package": "@pisell/private-materials",
12
- "version": "3.4.75",
12
+ "version": "6.3.93",
13
13
  "exportName": "EcoCustomerList",
14
14
  "main": "src/index.ts",
15
15
  "destructuring": true,