@pisell/materials 1.0.140 → 1.0.141

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.
@@ -100,11 +100,11 @@ export default {
100
100
  title: {
101
101
  label: '弹出位置',
102
102
  tip:
103
- '菜单弹出位置:`bottomLeft` `bottomCenter` `bottomRight` `topLeft` `topCenter` `topRight`',
103
+ '菜单弹出位置:`bottomLeft` `bottom` `bottomRight` `topLeft` `top` `topRight`',
104
104
  },
105
105
  propType: {
106
106
  type: 'oneOf',
107
- value: ['bottomLeft', 'bottomCenter', 'bottomRight', 'topLeft', 'topCenter', 'topRight'],
107
+ value: ['bottomLeft', 'bottom', 'bottomRight', 'topLeft', 'top', 'topRight'],
108
108
  },
109
109
  },
110
110
  {
@@ -1,33 +1,33 @@
1
1
  export default [
2
2
  {
3
- title: '下拉菜单',
4
- screenshot: 'https://alifd.alicdn.com/fusion-cool/icons/icon-antd/dropdown-1.png',
3
+ title: "下拉菜单",
4
+ screenshot:
5
+ "https://alifd.alicdn.com/fusion-cool/icons/icon-antd/dropdown-1.png",
5
6
  schema: {
6
- componentName: 'Dropdown',
7
+ componentName: "Dropdown",
7
8
  props: {
8
9
  overlay: {
9
- type: 'JSSlot',
10
+ type: "JSSlot",
10
11
  value: [
11
12
  {
12
- componentName: 'Menu',
13
+ componentName: "Menu",
13
14
  props: {
14
15
  items: [
15
16
  {
16
- key: 'timeLinei5wd',
17
- category: 'Item',
18
- title: '菜单名',
17
+ key: "timeLinei5wd",
18
+ category: "Item",
19
+ title: "菜单名",
19
20
  },
20
21
  ],
21
22
  },
22
23
  children: [
23
24
  {
24
- componentName: 'Menu.Item',
25
- id: 'node_ocky01yzdq3',
25
+ componentName: "Menu.Item",
26
26
  props: {
27
- key: 'timeLinei5wd',
28
- category: 'Item',
29
- title: '菜单名',
30
- children: '菜单名',
27
+ key: "timeLinei5wd",
28
+ category: "Item",
29
+ title: "菜单名",
30
+ children: "菜单名",
31
31
  },
32
32
  },
33
33
  ],
@@ -37,29 +37,29 @@ export default [
37
37
  },
38
38
  children: [
39
39
  {
40
- componentName: 'Button',
40
+ componentName: "Button",
41
41
  props: {
42
- type: 'link',
42
+ type: "link",
43
43
  children: {
44
- type: 'JSSlot',
44
+ type: "JSSlot",
45
45
  value: [
46
46
  {
47
- componentName: 'Typography.Text',
47
+ componentName: "Typography.Text",
48
48
  props: {
49
- children: 'Hover me',
49
+ children: "Hover me",
50
50
  style: {
51
- color: 'inherit',
51
+ color: "inherit",
52
52
  },
53
53
  },
54
54
  },
55
55
  {
56
- componentName: 'Icon',
56
+ componentName: "Icon",
57
57
  props: {
58
- type: 'DownOutlined',
58
+ type: "DownOutlined",
59
59
  size: 15,
60
60
  style: {
61
61
  marginLeft: 4,
62
- verticalAlign: 'middle',
62
+ verticalAlign: "middle",
63
63
  },
64
64
  },
65
65
  },
@@ -70,4 +70,306 @@ export default [
70
70
  ],
71
71
  },
72
72
  },
73
+ {
74
+ title: "筛选下拉",
75
+ screenshot:
76
+ "https://alifd.alicdn.com/fusion-cool/icons/icon-antd/dropdown-1.png",
77
+ schema: {
78
+ componentName: "Dropdown",
79
+ props: {
80
+ overlay: {
81
+ type: "JSSlot",
82
+ value: [
83
+ {
84
+ componentName: "ClassicLayout",
85
+ props: {
86
+ header: "",
87
+ content: {
88
+ type: "JSSlot",
89
+ value: [
90
+ {
91
+ componentName: "FDCol",
92
+ props: {
93
+ width: "",
94
+ gap: 12,
95
+ style: {},
96
+ },
97
+ title: "列容器",
98
+ children: [
99
+ {
100
+ componentName: "FDCell",
101
+ props: {
102
+ align: "left",
103
+ verAlign: "top",
104
+ width: "",
105
+ },
106
+ title: "",
107
+
108
+ children: [
109
+ {
110
+ componentName: "FDP",
111
+ props: {
112
+ spacing: "small",
113
+ style: {
114
+ display: "flex",
115
+ flexDirection: "column",
116
+ justifyContent: "flex-start",
117
+ alignItems: "flex-start",
118
+ gap: "4px",
119
+ },
120
+ },
121
+ title: "段落",
122
+
123
+ children: [
124
+ {
125
+ componentName: "Typography.Text",
126
+ props: {
127
+ children: "状态筛选",
128
+ code: false,
129
+ delete: false,
130
+ disabled: false,
131
+ mark: false,
132
+ keyboard: false,
133
+ underline: false,
134
+ strong: false,
135
+ },
136
+ title: "",
137
+ },
138
+ {
139
+ componentName: "Select",
140
+ props: {
141
+ style: {
142
+ width: 200,
143
+ },
144
+ options: [
145
+ {
146
+ label: "A",
147
+ value: "A",
148
+ },
149
+ {
150
+ label: "B",
151
+ value: "B",
152
+ },
153
+ {
154
+ label: "C",
155
+ value: "C",
156
+ },
157
+ ],
158
+ allowClear: false,
159
+ autoFocus: false,
160
+ defaultActiveFirstOption: true,
161
+ disabled: false,
162
+ labelInValue: false,
163
+ showSearch: false,
164
+ loading: false,
165
+ bordered: true,
166
+ optionFilterProp: "value",
167
+ tokenSeparators: [],
168
+ isShowDropdown: false,
169
+ maxTagCount: 0,
170
+ maxTagTextLength: 0,
171
+ selectAll: false,
172
+ },
173
+ title: "",
174
+ },
175
+ ],
176
+ },
177
+ ],
178
+ },
179
+ {
180
+ componentName: "FDCell",
181
+ props: {
182
+ align: "left",
183
+ verAlign: "top",
184
+ width: "",
185
+ },
186
+ title: "容器",
187
+
188
+ children: [
189
+ {
190
+ componentName: "FDP",
191
+ props: {
192
+ style: {
193
+ display: "flex",
194
+ flexDirection: "column",
195
+ justifyContent: "flex-start",
196
+ alignItems: "flex-start",
197
+ gap: "4px",
198
+ },
199
+ },
200
+ title: "段落",
201
+
202
+ children: [
203
+ {
204
+ componentName: "Typography.Text",
205
+ props: {
206
+ children: "日期区间",
207
+ code: false,
208
+ delete: false,
209
+ disabled: false,
210
+ mark: false,
211
+ keyboard: false,
212
+ underline: false,
213
+ strong: false,
214
+ },
215
+
216
+ title: "",
217
+ },
218
+ {
219
+ componentName: "DatePicker",
220
+ props: {
221
+ format: "YYYY-MM-DD",
222
+ allowClear: true,
223
+ bordered: true,
224
+ showToday: true,
225
+ autoFocus: false,
226
+ disabled: false,
227
+ inputReadOnly: false,
228
+ showTime: false,
229
+ style: {
230
+ width: "100%",
231
+ },
232
+ },
233
+ title: "",
234
+ },
235
+ ],
236
+ },
237
+ ],
238
+ },
239
+ {
240
+ componentName: "FDCell",
241
+ props: {
242
+ align: "left",
243
+ verAlign: "top",
244
+ },
245
+ title: "容器",
246
+
247
+ children: [
248
+ {
249
+ componentName: "FDP",
250
+ props: {
251
+ style: {
252
+ display: "flex",
253
+ flexDirection: "column",
254
+ justifyContent: "flex-start",
255
+ alignItems: "flex-start",
256
+ gap: "4px",
257
+ },
258
+ },
259
+ title: "段落",
260
+
261
+ children: [
262
+ {
263
+ componentName: "Typography.Text",
264
+ props: {
265
+ children: "场次",
266
+ code: false,
267
+ delete: false,
268
+ disabled: false,
269
+ mark: false,
270
+ keyboard: false,
271
+ underline: false,
272
+ strong: false,
273
+ },
274
+
275
+ title: "",
276
+ },
277
+ {
278
+ componentName: "Input",
279
+ props: {
280
+ placeholder: "请输入",
281
+ bordered: true,
282
+ disabled: false,
283
+ },
284
+ title: "",
285
+ },
286
+ ],
287
+ },
288
+ ],
289
+ },
290
+ ],
291
+ },
292
+ ],
293
+ },
294
+ footer: "",
295
+ style: {
296
+ borderRadius: "8px",
297
+ border: "1px solid var(--gray-200, #EAECF0)",
298
+ boxShadow:
299
+ "0px 8px 8px -4px rgba(16, 24, 40, 0.03), 0px 20px 24px -4px rgba(16, 24, 40, 0.08)",
300
+ background: "var(--base-white, #FFF)",
301
+ padding: "16px",
302
+ },
303
+ },
304
+
305
+ title: "",
306
+ },
307
+ ],
308
+ },
309
+ arrow: false,
310
+ disabled: false,
311
+ placement: "bottomCenter",
312
+ trigger: ["click"],
313
+ },
314
+ children: [
315
+ {
316
+ componentName: "Button",
317
+ props: {
318
+ type: "primary",
319
+ children: {
320
+ type: "JSSlot",
321
+ value: [
322
+ {
323
+ componentName: "Typography.Text",
324
+ props: {
325
+ children: "Filtered",
326
+ style: {
327
+ color: "inherit",
328
+ },
329
+ code: false,
330
+ delete: false,
331
+ disabled: false,
332
+ mark: false,
333
+ keyboard: false,
334
+ underline: false,
335
+ strong: false,
336
+ },
337
+ title: "",
338
+ },
339
+ ],
340
+ },
341
+ htmlType: "button",
342
+ size: "middle",
343
+ shape: "default",
344
+ icon: {
345
+ type: "JSSlot",
346
+ value: [
347
+ {
348
+ componentName: "Icon",
349
+ props: {
350
+ type: "FilterOutlined",
351
+ size: 20,
352
+ rotate: 0,
353
+ spin: false,
354
+ },
355
+ title: "",
356
+ },
357
+ ],
358
+ },
359
+ block: false,
360
+ danger: false,
361
+ ghost: false,
362
+ disabled: false,
363
+ style: {
364
+ display: "inline-flex",
365
+ color: "var(--gray-700, #344054)",
366
+ borderRadius: "99px",
367
+ backgroundColor: "#fff",
368
+ },
369
+ },
370
+ title: "",
371
+ },
372
+ ],
373
+ },
374
+ },
73
375
  ];
@@ -0,0 +1,117 @@
1
+ import snippets from "./snippets";
2
+
3
+ export default {
4
+ snippets,
5
+ componentName: "Sort",
6
+ title: "排序",
7
+ category: "数据展示",
8
+ docUrl: "",
9
+ screenshot: "",
10
+ devMode: "proCode",
11
+ npm: {
12
+ package: "@pisell/materials",
13
+ version: "1.0.1",
14
+ exportName: "Sort",
15
+ main: "src/index.tsx",
16
+ destructuring: true,
17
+ subName: "",
18
+ },
19
+ props: [
20
+ {
21
+ name: 'button',
22
+ title: { label: '自定义按钮', tip: '自定义按钮' },
23
+ propType: { type: 'oneOfType', value: ['node', 'func'] },
24
+ },
25
+ {
26
+ name: 'value',
27
+ title: { label: '当前选中项', tip: '当前选中的菜单项 key 数组' },
28
+ propType: { type: 'arrayOf', value: 'string' },
29
+ },
30
+ {
31
+ name: "list",
32
+ setter: {
33
+ componentName: "ArraySetter",
34
+ props: {
35
+ itemSetter: {
36
+ componentName: "ObjectSetter",
37
+ props: {
38
+ config: {
39
+ items: [
40
+ {
41
+ name: "label",
42
+ title: { label: "排序项", tip: "排序项展示文案" },
43
+ propType: "string",
44
+ setter: "PisellI18nSetter",
45
+ isRequired: true,
46
+ },
47
+ {
48
+ name: "name",
49
+ title: { label: "字段", tip: "所排序的字段" },
50
+ propType: "string",
51
+ setter: "StringSetter",
52
+ isRequired: true,
53
+ },
54
+ {
55
+ name: "type",
56
+ title: { label: "字段类型", tip: "所排序的字段类型" },
57
+ propType: "string",
58
+ setter: {
59
+ componentName: "SelectSetter",
60
+ mode: "single",
61
+ defaultValue: "single",
62
+ props: {
63
+ options: [
64
+ {
65
+ title: "日期排序",
66
+ value: "date",
67
+ },
68
+ {
69
+ title: "数字排序",
70
+ value: "number",
71
+ },
72
+ {
73
+ title: "a-z排序",
74
+ value: "string",
75
+ },
76
+ {
77
+ title: "时间排序",
78
+ value: "time",
79
+ },
80
+ ],
81
+ },
82
+ },
83
+ },
84
+ ],
85
+ },
86
+ },
87
+ initialValue: { label: "标题", name: "name", type: "date" },
88
+ },
89
+ },
90
+ },
91
+ },
92
+ {
93
+ name: 'placement',
94
+ title: {
95
+ label: '弹出位置',
96
+ tip:
97
+ '菜单弹出位置:`bottomLeft` `bottom` `bottomRight` `topLeft` `top` `topRight`',
98
+ },
99
+ propType: {
100
+ type: 'oneOf',
101
+ value: ['bottomLeft', 'bottom', 'bottomRight', 'topLeft', 'top', 'topRight'],
102
+ },
103
+ },
104
+ ],
105
+ configure: {
106
+ supports: {
107
+ style: true,
108
+ events: [
109
+ {
110
+ name: "onChange",
111
+ template:
112
+ "onChange(val,${extParams}){\n// 排序\nconsole.log('onChange', val);}",
113
+ },
114
+ ],
115
+ },
116
+ },
117
+ };
@@ -0,0 +1,22 @@
1
+ export default [
2
+ {
3
+ title: '排序按钮',
4
+ schema: {
5
+ componentName: 'Sort',
6
+ props: {
7
+ list: [
8
+ {
9
+ label: 'created time',
10
+ name: "time",
11
+ type: "date",
12
+ },
13
+ {
14
+ label: 'Alphabetical',
15
+ name: "name",
16
+ type: "string",
17
+ },
18
+ ]
19
+ },
20
+ },
21
+ },
22
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.0.140",
3
+ "version": "1.0.141",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",