@pisell/materials 2.2.41 → 2.2.43

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 (137) hide show
  1. package/es/components/TimeResourceSelector/index.d.ts +21 -0
  2. package/es/components/TimeResourceSelector/index.js +115 -0
  3. package/es/components/TimeResourceSelector/index.less +59 -0
  4. package/es/components/pisellAnchor/index.d.ts +15 -0
  5. package/es/components/pisellAnchor/index.js +126 -0
  6. package/es/components/pisellAnchor/index.less +177 -0
  7. package/es/components/pisellAvatar/index.d.ts +19 -0
  8. package/es/components/pisellAvatar/index.js +90 -0
  9. package/es/components/pisellAvatar/index.less +26 -0
  10. package/es/components/pisellCard/index.d.ts +8 -0
  11. package/es/components/pisellCard/index.js +34 -5
  12. package/es/components/pisellCard/index.less +31 -4
  13. package/es/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  14. package/es/components/pisellCustomCheckboxGroup/index.js +72 -0
  15. package/es/components/pisellCustomCheckboxGroup/index.less +0 -0
  16. package/es/components/pisellDropdown/index.d.ts +20 -0
  17. package/es/components/pisellDropdown/index.js +51 -0
  18. package/es/components/pisellDropdown/index.less +44 -0
  19. package/es/components/pisellEmpty/index.d.ts +2 -1
  20. package/es/components/pisellHeaderProgressBar/index.d.ts +29 -0
  21. package/es/components/pisellHeaderProgressBar/index.js +76 -0
  22. package/es/components/pisellHeaderProgressBar/index.less +18 -0
  23. package/es/components/pisellImageCarousels/index.d.ts +18 -0
  24. package/es/components/pisellImageCarousels/index.js +108 -0
  25. package/es/components/pisellImageCarousels/index.less +92 -0
  26. package/es/components/pisellList01/index.d.ts +17 -0
  27. package/es/components/pisellList01/index.js +105 -0
  28. package/es/components/pisellList01/index.less +53 -0
  29. package/es/components/pisellSectionHeaders/index.d.ts +21 -0
  30. package/es/components/pisellSectionHeaders/index.js +35 -0
  31. package/es/components/pisellSectionHeaders/index.less +46 -0
  32. package/es/components/pisellViewGrid/index.d.ts +16 -0
  33. package/es/components/pisellViewGrid/index.js +66 -0
  34. package/es/components/pisellViewGrid/index.less +31 -0
  35. package/es/components/productCard/components/Header/index.js +3 -2
  36. package/es/components/productCard/hooks/useOpenNote.js +3 -2
  37. package/es/components/productCard/index.js +7 -3
  38. package/es/components/productCard/index.less +6 -2
  39. package/es/components/productCard/status.js +3 -1
  40. package/es/components/productCard/types.d.ts +2 -0
  41. package/es/components/productCard/utils.js +17 -1
  42. package/es/components/section-footers/index.d.ts +9 -0
  43. package/es/components/section-footers/index.js +17 -0
  44. package/es/components/section-footers/index.less +5 -0
  45. package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  46. package/es/components/table/Actions/component/ExportImport/utils/index.js +11 -0
  47. package/es/index.d.ts +10 -0
  48. package/es/index.js +11 -1
  49. package/lib/components/TimeResourceSelector/index.d.ts +21 -0
  50. package/lib/components/TimeResourceSelector/index.js +109 -0
  51. package/lib/components/TimeResourceSelector/index.less +59 -0
  52. package/lib/components/pisellAnchor/index.d.ts +15 -0
  53. package/lib/components/pisellAnchor/index.js +120 -0
  54. package/lib/components/pisellAnchor/index.less +177 -0
  55. package/lib/components/pisellAvatar/index.d.ts +19 -0
  56. package/lib/components/pisellAvatar/index.js +108 -0
  57. package/lib/components/pisellAvatar/index.less +26 -0
  58. package/lib/components/pisellCard/index.d.ts +8 -0
  59. package/lib/components/pisellCard/index.js +30 -7
  60. package/lib/components/pisellCard/index.less +31 -4
  61. package/lib/components/pisellCustomCheckboxGroup/index.d.ts +16 -0
  62. package/lib/components/pisellCustomCheckboxGroup/index.js +71 -0
  63. package/lib/components/pisellCustomCheckboxGroup/index.less +0 -0
  64. package/lib/components/pisellDropdown/index.d.ts +20 -0
  65. package/lib/components/pisellDropdown/index.js +72 -0
  66. package/lib/components/pisellDropdown/index.less +44 -0
  67. package/lib/components/pisellEmpty/index.d.ts +2 -1
  68. package/lib/components/pisellHeaderProgressBar/index.d.ts +29 -0
  69. package/lib/components/pisellHeaderProgressBar/index.js +88 -0
  70. package/lib/components/pisellHeaderProgressBar/index.less +18 -0
  71. package/lib/components/pisellImageCarousels/index.d.ts +18 -0
  72. package/lib/components/pisellImageCarousels/index.js +108 -0
  73. package/lib/components/pisellImageCarousels/index.less +92 -0
  74. package/lib/components/pisellList01/index.d.ts +17 -0
  75. package/lib/components/pisellList01/index.js +113 -0
  76. package/lib/components/pisellList01/index.less +53 -0
  77. package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
  78. package/lib/components/pisellSectionHeaders/index.js +52 -0
  79. package/lib/components/pisellSectionHeaders/index.less +46 -0
  80. package/lib/components/pisellViewGrid/index.d.ts +16 -0
  81. package/lib/components/pisellViewGrid/index.js +98 -0
  82. package/lib/components/pisellViewGrid/index.less +31 -0
  83. package/lib/components/productCard/components/Header/index.js +3 -2
  84. package/lib/components/productCard/hooks/useOpenNote.js +2 -1
  85. package/lib/components/productCard/index.js +9 -4
  86. package/lib/components/productCard/index.less +6 -2
  87. package/lib/components/productCard/status.js +3 -1
  88. package/lib/components/productCard/types.d.ts +2 -0
  89. package/lib/components/productCard/utils.js +15 -4
  90. package/lib/components/section-footers/index.d.ts +9 -0
  91. package/lib/components/section-footers/index.js +44 -0
  92. package/lib/components/section-footers/index.less +5 -0
  93. package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +9 -0
  94. package/lib/components/table/Actions/component/ExportImport/utils/index.js +31 -0
  95. package/lib/index.d.ts +10 -0
  96. package/lib/index.js +30 -0
  97. package/lowcode/pisell-anchor/meta.ts +118 -0
  98. package/lowcode/pisell-anchor/snippets.ts +26 -0
  99. package/lowcode/pisell-avatar/__screenshots__/avatar-1.jpg +0 -0
  100. package/lowcode/pisell-avatar/meta.ts +111 -0
  101. package/lowcode/pisell-avatar/snippets.ts +14 -0
  102. package/lowcode/pisell-card/meta.ts +62 -27
  103. package/lowcode/pisell-card/snippets.ts +6 -0
  104. package/lowcode/pisell-custom-checkbox-group/__screenshots__/card-1.png +0 -0
  105. package/lowcode/pisell-custom-checkbox-group/meta.ts +204 -0
  106. package/lowcode/pisell-custom-checkbox-group/snippets.ts +56 -0
  107. package/lowcode/pisell-dropdown/__screenshots__/dropdown-1.png +0 -0
  108. package/lowcode/pisell-dropdown/meta.ts +180 -0
  109. package/lowcode/pisell-dropdown/snippets.ts +69 -0
  110. package/lowcode/pisell-header-progress-bar/meta.ts +116 -0
  111. package/lowcode/pisell-header-progress-bar/snippets.ts +24 -0
  112. package/lowcode/pisell-image-carousels/meta.ts +143 -0
  113. package/lowcode/pisell-image-carousels/snippets.ts +20 -0
  114. package/lowcode/pisell-list01/meta.ts +74 -0
  115. package/lowcode/pisell-list01/snippets.ts +35 -0
  116. package/lowcode/pisell-section-headers/meta.ts +91 -0
  117. package/lowcode/pisell-section-headers/snippets.ts +22 -0
  118. package/lowcode/pisell-view-grid/__screenshots__/card-1.png +0 -0
  119. package/lowcode/pisell-view-grid/meta.ts +167 -0
  120. package/lowcode/pisell-view-grid/snippets.ts +54 -0
  121. package/lowcode/section-footers/meta.ts +66 -0
  122. package/lowcode/section-footers/snippe.ts +21 -0
  123. package/package.json +4 -3
  124. package/build/lowcode/assets-daily.json +0 -93
  125. package/build/lowcode/assets-dev.json +0 -93
  126. package/build/lowcode/assets-prod.json +0 -93
  127. package/build/lowcode/designer.html +0 -303
  128. package/build/lowcode/index.html +0 -305
  129. package/build/lowcode/index.js +0 -1
  130. package/build/lowcode/meta.js +0 -9
  131. package/build/lowcode/preview.css +0 -1
  132. package/build/lowcode/preview.html +0 -35
  133. package/build/lowcode/preview.js +0 -304
  134. package/build/lowcode/render/default/view.css +0 -1
  135. package/build/lowcode/render/default/view.js +0 -232
  136. package/build/lowcode/view.css +0 -1
  137. package/build/lowcode/view.js +0 -232
@@ -0,0 +1,204 @@
1
+ import snippets from "./snippets";
2
+
3
+ export default {
4
+ snippets,
5
+ componentName: "PisellCustomCheckboxGroup",
6
+ title: "自定义选项卡",
7
+ category: "数据展示",
8
+ docUrl: "",
9
+ screenshot: "",
10
+ devMode: "proCode",
11
+ npm: {
12
+ package: "@pisell/materials",
13
+ version: "1.0.1",
14
+ exportName: "PisellCustomCheckboxGroup",
15
+ main: "src/index.tsx",
16
+ destructuring: true,
17
+ subName: "",
18
+ },
19
+ props: [
20
+ // {
21
+ // title: '数据源',
22
+ // display: 'block',
23
+ // type: 'group',
24
+ // items: [
25
+
26
+ // ],
27
+ // },
28
+
29
+ {
30
+ name: 'dataSource',
31
+ title: { label: '列表数据源', tip: 'dataSource | 列表数据源' },
32
+ propType: { type: 'arrayOf', value: 'any' },
33
+ setter: ['JsonSetter', 'VariableSetter'],
34
+ },
35
+ // {
36
+ // name: 'loading',
37
+ // title: {
38
+ // label: '是否加载中',
39
+ // tip: 'loading | 当卡片内容还在加载中时,可以用 loading 展示一个占位',
40
+ // },
41
+ // propType: 'bool',
42
+ // defaultValue: false,
43
+ // setter: ['BoolSetter', 'VariableSetter'],
44
+ // },
45
+ {
46
+ name: 'rowKey',
47
+ title: {
48
+ label: '行Key',
49
+ tip: 'rowKey | 当 renderItem 自定义渲染列表项有效时,自定义每一行的 key 的获取方式',
50
+ },
51
+ propType: {
52
+ type: 'oneOfType',
53
+ value: ['string', 'function'],
54
+ },
55
+ defaultValue: 'id',
56
+ setter: [
57
+ 'StringSetter',
58
+ {
59
+ componentName: 'FunctionSetter',
60
+ props: {
61
+ template:
62
+ 'rowKey(item,${extParams}){\n// 自定义每一行的 key\nreturn `key-${item.id}`;\n}',
63
+ },
64
+ },
65
+ 'VariableSetter',
66
+ ],
67
+ },
68
+ {
69
+ name: 'disabled',
70
+ title: { label: '禁用选择', tip: 'disabled | 是否禁用选择' },
71
+ propType: 'boolean',
72
+ defaultValue: false,
73
+ setter: 'BoolSetter',
74
+ },
75
+ {
76
+ name: 'isMultiple',
77
+ title: { label: '是否多选', tip: 'isMultiple | 是否多选' },
78
+ propType: 'boolean',
79
+ setter: 'BoolSetter',
80
+ },
81
+ {
82
+ name: "value",
83
+ title: { label: "Value", tip: "value | 当前选中的值" },
84
+ propType: "string",
85
+ setter: "StringSetter",
86
+ },
87
+ {
88
+ name: 'allowAdd',
89
+ title: { label: '允许添加', tip: 'allowAdd | 是否允许添加' },
90
+ propType: 'boolean',
91
+ defaultValue: false,
92
+ setter: 'BoolSetter',
93
+ },
94
+ // {
95
+ // title: '栅格 ',
96
+ // display: 'block',
97
+ // type: 'group',
98
+ // items: [
99
+ // {
100
+ // name: 'columns',
101
+ // title: { label: '列数', tip: 'columns | 列数' },
102
+ // propType: 'number',
103
+ // setter: 'NumberSetter',
104
+ // defaultValue: 3,
105
+ // },
106
+ // {
107
+ // name: 'horizontalGap',
108
+ // title: { label: '水平间隔', tip: 'horizontalGap | 栅格水平间隔,单位为像素(px)' },
109
+ // propType: 'number',
110
+ // setter: {
111
+ // componentName: 'NumberSetter', props: {
112
+ // min: 0,
113
+ // },
114
+ // },
115
+ // defaultValue: 10,
116
+ // },
117
+ // {
118
+ // name: 'verticalGap',
119
+ // title: { label: '垂直间隔', tip: 'verticalGap | 栅格垂直间隔,单位为像素(px)' },
120
+ // propType: 'number',
121
+ // setter: {
122
+ // componentName: 'NumberSetter',
123
+ // props: {
124
+ // min: 0,
125
+ // },
126
+ // },
127
+ // defaultValue: 10,
128
+ // },
129
+ // {
130
+ // name: 'singleRow',
131
+ // title: { label: '一行展示', tip: 'singleRow | 一行展示' },
132
+ // propType: 'boolean',
133
+ // defaultValue: false,
134
+ // setter: 'BoolSetter',
135
+ // },
136
+ // ]
137
+ // },
138
+ // {
139
+ // title: '扩展',
140
+ // display: 'block',
141
+ // type: 'group',
142
+ // items: [
143
+ // {
144
+ // name: 'renderItem',
145
+ // title: {
146
+ // label: '渲染函数',
147
+ // tip: 'renderItem | 当使用 dataSource 时,可以用 `renderItem` 自定义渲染列表项',
148
+ // },
149
+ // propType: 'func',
150
+ // setter: [
151
+ // {
152
+ // componentName: 'SlotSetter',
153
+ // title: '渲染函数插槽',
154
+ // initialValue: {
155
+ // type: 'JSSlot',
156
+ // params: ['item'],
157
+ // value: [
158
+ // {
159
+ // componentName: 'List.Item',
160
+ // props: {},
161
+ // children: {
162
+ // componentName: 'Typography.Text',
163
+ // props: {
164
+ // children: {
165
+ // type: 'JSExpression',
166
+ // value: 'this.item.text',
167
+ // },
168
+ // },
169
+ // },
170
+ // },
171
+ // ],
172
+ // },
173
+ // },
174
+ // {
175
+ // componentName: 'FunctionSetter',
176
+ // props: {
177
+ // template: 'renderItem(item,${extParams}){\n// 自定义渲染列表项\nreturn `item`;\n}',
178
+ // },
179
+ // },
180
+ // 'VariableSetter',
181
+ // ],
182
+ // },
183
+ // ],
184
+ // }
185
+ ],
186
+ configure: {
187
+ supports: {
188
+ style: true,
189
+ events: [
190
+ {
191
+ name: 'onChange',
192
+ template: 'onChange(value,${extParams}){\n// 选中值改变时的回调\nconsole.log("value",value);\n}',
193
+ },
194
+ {
195
+ name: 'onAdd',
196
+ template: 'onAdd(${extParams}){\n// 点击添加按钮时的回调\n}',
197
+ },
198
+ ],
199
+ },
200
+ component: {
201
+ isContainer: true,
202
+ },
203
+ },
204
+ };
@@ -0,0 +1,56 @@
1
+ export default [
2
+ {
3
+ title: '自定义选项卡',
4
+ schema: {
5
+ componentName: 'PisellCustomCheckboxGroup',
6
+ props: {
7
+ disabled: false,
8
+ allowAdd: false,
9
+ dataSource: [
10
+ {
11
+ id: 1,
12
+ text: "Racing car sprays burning fuel into crowd.",
13
+ },
14
+ {
15
+ id: 2,
16
+ text: "Japanese princess to wed commoner.",
17
+ },
18
+ {
19
+ id: 3,
20
+ text: "Australian walks 100km after outback crash.",
21
+ },
22
+ {
23
+ id: 4,
24
+ text: "Man charged over missing wedding girl.",
25
+ },
26
+ {
27
+ id: 5,
28
+ text: "Los Angeles battles huge wildfires.",
29
+ },
30
+ ],
31
+ columns: 3,
32
+ horizontalGap: 10,
33
+ verticalGap: 10,
34
+ renderItem: {
35
+ type: "JSSlot",
36
+ params: ["item"],
37
+ value: [
38
+ {
39
+ componentName: "List.Item",
40
+ props: {},
41
+ children: {
42
+ componentName: "Typography.Text",
43
+ props: {
44
+ children: {
45
+ type: "JSExpression",
46
+ value: "this.item.text",
47
+ },
48
+ },
49
+ },
50
+ },
51
+ ],
52
+ },
53
+ },
54
+ },
55
+ },
56
+ ];
@@ -0,0 +1,180 @@
1
+ import snippets from './snippets';
2
+
3
+ export default {
4
+ snippets,
5
+ componentName: 'PisellDropdown',
6
+ title: '下拉菜单',
7
+ category: '导航',
8
+ docUrl: "",
9
+ screenshot: "",
10
+ devMode: "proCode",
11
+ npm: {
12
+ package: "@pisell/materials",
13
+ version: "1.0.1",
14
+ exportName: "PisellDropdown",
15
+ main: "src/index.tsx",
16
+ destructuring: true,
17
+ subName: "",
18
+ },
19
+ props: [
20
+ {
21
+ name: 'open',
22
+ title: { label: '菜单是否显示', tip: '菜单是否显示' },
23
+ propType: { type: 'oneOf', value: [true, false, '-'] },
24
+ defaultValue: '-',
25
+ setter: {
26
+ componentName: 'RadioGroupSetter',
27
+ props: {
28
+ options: [
29
+ {
30
+ title: '默认非受控',
31
+ value: '-',
32
+ },
33
+ {
34
+ title: '显示',
35
+ value: true,
36
+ },
37
+ {
38
+ title: '不显示',
39
+ value: false,
40
+ },
41
+ ],
42
+ },
43
+ },
44
+ extraProps: {
45
+ getValue(target, fieldValue) {
46
+ const { node } = target;
47
+ let value = node.getPropValue('open');
48
+ if (value === undefined) {
49
+ value = '-';
50
+ }
51
+ return value;
52
+ },
53
+ setValue(target, value) {
54
+ const { node } = target;
55
+ if (value === '-') {
56
+ setTimeout(() => {
57
+ node.clearPropValue('open');
58
+ });
59
+ }
60
+ },
61
+ },
62
+ },
63
+ {
64
+ name: 'arrow',
65
+ title: { label: '显示下拉箭头', tip: '是否显示下拉箭头' },
66
+ propType: 'bool',
67
+ defaultValue: false,
68
+ },
69
+ {
70
+ name: 'disabled',
71
+ title: { label: '是否禁用', tip: '是否为禁用状态' },
72
+ propType: 'bool',
73
+ },
74
+ // {
75
+ // name: 'getPopupContainer',
76
+ // title: {
77
+ // label: '渲染父节点',
78
+ // tip:
79
+ // '菜单渲染父节点。默认渲染到 body 上,如果你遇到菜单滚动定位问题,试试修改为滚动的区域,并相对其定位。[示例](https://codepen.io/afc163/pen/zEjNOy?editors=0010)',
80
+ // },
81
+ // propType: 'func',
82
+ // },
83
+ {
84
+ name: 'overlay',
85
+ title: { label: '菜单', tip: '菜单' },
86
+ // propType: { type: 'oneOfType', value: ['node', 'func'] },
87
+ componentName: 'ArraySetter',
88
+ props: {
89
+ itemSetter: {
90
+ componentName: 'ObjectSetter',
91
+ props: {
92
+ config: {
93
+ items: [
94
+ {
95
+ name: 'key',
96
+ title: 'key',
97
+ setter: 'StringSetter',
98
+ },
99
+ {
100
+ name: 'label',
101
+ title: '标签',
102
+ setter: 'StringSetter',
103
+ },
104
+ {
105
+ name: 'icon',
106
+ title: '图标',
107
+ setter: 'IconSetter',
108
+ },
109
+ {
110
+ name: 'shortcut',
111
+ title: '快捷键',
112
+ setter: 'StringSetter',
113
+ },
114
+ {
115
+ name: 'divider',
116
+ title: '分割线',
117
+ setter: 'BoolSetter',
118
+ },
119
+ ],
120
+ },
121
+ },
122
+ },
123
+ },
124
+ },
125
+ // {
126
+ // name: 'overlayClassName',
127
+ // title: { label: '根元素的类名称', tip: '根元素的类名称' },
128
+ // propType: 'string',
129
+ // },
130
+ // {
131
+ // name: 'overlayStyle',
132
+ // title: { label: '根元素的样式', tip: '根元素的样式' },
133
+ // propType: 'object',
134
+ // },
135
+ {
136
+ name: 'placement',
137
+ title: {
138
+ label: '弹出位置',
139
+ tip:
140
+ '菜单弹出位置:`bottomLeft` `bottom` `bottomRight` `topLeft` `top` `topRight`',
141
+ },
142
+ propType: {
143
+ type: 'oneOf',
144
+ value: ['bottomLeft', 'bottom', 'bottomRight', 'topLeft', 'top', 'topRight'],
145
+ },
146
+ },
147
+ {
148
+ name: 'trigger',
149
+ title: {
150
+ label: '触发下拉的行为',
151
+ tip: '触发下拉的行为, 移动端不支持 hover',
152
+ },
153
+ propType: {
154
+ type: 'arrayOf',
155
+ value: { type: 'oneOf', value: ['click', 'hover', 'contextMenu'] },
156
+ },
157
+ },
158
+ {
159
+ name: 'onOpenChange',
160
+ title: {
161
+ label: '显示状态回调',
162
+ tip: '菜单显示状态改变时调用,参数为 `open`',
163
+ },
164
+ propType: 'func',
165
+ },
166
+ ],
167
+ configure: {
168
+ component: { isContainer: true },
169
+ supports: {
170
+ style: true,
171
+ events: [
172
+ {
173
+ name: 'onOpenChange',
174
+ template:
175
+ "onOpenChange(open,${extParams}){\n// 菜单显示状态改变时调用\nconsole.log('onOpenChange',open);}",
176
+ },
177
+ ],
178
+ },
179
+ },
180
+ };
@@ -0,0 +1,69 @@
1
+ export default [
2
+ {
3
+ title: "下拉菜单",
4
+ screenshot:
5
+ "https://alifd.alicdn.com/fusion-cool/icons/icon-antd/dropdown-1.png",
6
+ schema: {
7
+ componentName: "PisellDropdown",
8
+ props: {
9
+ overlay: {
10
+ type: "JSSlot",
11
+ value: [
12
+ {
13
+ componentName: "Menu",
14
+ props: {
15
+ items: [
16
+ {
17
+ key: 'profile',
18
+ label: 'View profile',
19
+ icon: 'UserOutlined',
20
+ shortcut: '⌘+P',
21
+ },
22
+ {
23
+ key: 'settings',
24
+ label: 'Settings',
25
+ icon: 'SettingOutlined',
26
+ shortcut: '⌘+S',
27
+ },
28
+ ],
29
+ },
30
+ },
31
+ ],
32
+ },
33
+ },
34
+ children: [
35
+ {
36
+ componentName: "Button",
37
+ props: {
38
+ type: "link",
39
+ children: {
40
+ type: "JSSlot",
41
+ value: [
42
+ {
43
+ componentName: "Typography.Text",
44
+ props: {
45
+ children: "Hover me",
46
+ style: {
47
+ color: "inherit",
48
+ },
49
+ },
50
+ },
51
+ {
52
+ componentName: "Icon",
53
+ props: {
54
+ type: "DownOutlined",
55
+ size: 15,
56
+ style: {
57
+ marginLeft: 4,
58
+ verticalAlign: "middle",
59
+ },
60
+ },
61
+ },
62
+ ],
63
+ },
64
+ },
65
+ },
66
+ ],
67
+ },
68
+ },
69
+ ];
@@ -0,0 +1,116 @@
1
+ import snippets from './snippets';
2
+
3
+ export default {
4
+ snippets,
5
+ componentName: 'PisellHeaderProgressBar',
6
+ title: '顶部进度栏',
7
+ category: '导航',
8
+ docUrl: '',
9
+ screenshot: '',
10
+ devMode: 'proCode',
11
+ npm: {
12
+ package: '@pisell/materials',
13
+ version: '1.0.1',
14
+ exportName: 'PisellHeaderProgressBar',
15
+ main: 'src/index.tsx',
16
+ destructuring: true,
17
+ subName: '',
18
+ },
19
+ props: [
20
+ {
21
+ title: '基础',
22
+ display: 'block',
23
+ type: 'group',
24
+ items: [
25
+ {
26
+ name: 'showClose',
27
+ title: { label: '显示关闭', tip: 'showClose | 显示关闭' },
28
+ propType: 'bool',
29
+ setter: 'BoolSetter',
30
+ defaultValue: true,
31
+ },
32
+ {
33
+ name: 'title',
34
+ title: { label: '标题', tip: 'title | 标题' },
35
+ propType: 'node',
36
+ setter: {
37
+ componentName: 'SlotSetter',
38
+ initialValue: {
39
+ type: 'JSSlot',
40
+ value: [],
41
+ },
42
+ }
43
+ },
44
+ {
45
+ name: 'stepText',
46
+ title: { label: '步骤文案', tip: 'stepText | 步骤文案' },
47
+ propType: 'node',
48
+ setter: {
49
+ componentName: 'SlotSetter',
50
+ initialValue: {
51
+ type: 'JSSlot',
52
+ value: [],
53
+ },
54
+ }
55
+ }
56
+ ],
57
+ },
58
+ {
59
+ title: '外观',
60
+ display: 'block',
61
+ type: 'group',
62
+ items: [
63
+ {
64
+ name: 'enableShadow',
65
+ title: { label: '启用投影', tip: 'enableShadow | 启用投影' },
66
+ propType: 'bool',
67
+ setter: 'BoolSetter',
68
+ defaultValue: true,
69
+ },
70
+ {
71
+ name: 'enableBorder',
72
+ title: { label: '启用描边', tip: 'enableBorder | 启用描边' },
73
+ propType: 'bool',
74
+ setter: 'BoolSetter',
75
+ defaultValue: true,
76
+ },
77
+ {
78
+ name: 'borderWidth',
79
+ title: { label: '描边粗细', tip: 'borderWidth | 描边粗细' },
80
+ setter: 'NumberSetter',
81
+ defaultValue: 1,
82
+ },
83
+ {
84
+ name: 'borderColor',
85
+ title: '描边颜色',
86
+ setter: 'ColorSetter',
87
+ defaultValue: '#E5E5E5',
88
+ },
89
+ {
90
+ name: 'backgroundColor',
91
+ title: '头部背景颜色',
92
+ setter: 'ColorSetter',
93
+ defaultValue: '#FFFFFF',
94
+ },
95
+ ],
96
+ },
97
+ ],
98
+
99
+ configure: {
100
+ supports: {
101
+ style: true,
102
+ events: [
103
+ {
104
+ name: 'onBack',
105
+ template:
106
+ 'onBack(${extParams}){\n// 点击返回时的回调\n}',
107
+ },
108
+ {
109
+ name: 'onClose',
110
+ template:
111
+ 'onClose(${extParams}){\n// 点击关闭时的回调\n}',
112
+ },
113
+ ],
114
+ },
115
+ },
116
+ };
@@ -0,0 +1,24 @@
1
+ export default [
2
+ {
3
+ title: '顶部进度栏',
4
+ schema: {
5
+ componentName: 'PisellHeaderProgressBar',
6
+ props: {
7
+ showClose: true,
8
+ enableShadow: true,
9
+ enableBorder: true,
10
+ borderWidth: 1,
11
+ borderColor: '#E5E5E5',
12
+ backgroundColor: '#FFFFFF',
13
+ title: {
14
+ type: "JSSlot",
15
+ value: [],
16
+ },
17
+ stepText: {
18
+ type: "JSSlot",
19
+ value: [],
20
+ },
21
+ },
22
+ },
23
+ },
24
+ ];