@pisell/materials 1.0.503 → 1.0.504
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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/index.js +1 -1
- package/build/lowcode/meta.js +7 -7
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +26 -26
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +26 -26
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/index.d.ts +2 -2
- package/es/components/pisellAvatar/index.d.ts +19 -0
- package/es/components/pisellAvatar/index.js +89 -0
- package/es/components/pisellAvatar/index.less +25 -0
- package/es/components/pisellCustomCheckboxGroup/index.d.ts +15 -0
- package/es/components/pisellCustomCheckboxGroup/index.js +125 -0
- package/es/components/pisellCustomCheckboxGroup/index.less +0 -0
- package/es/components/pisellDropdown/index.d.ts +20 -0
- package/es/components/pisellDropdown/index.js +51 -0
- package/es/components/pisellDropdown/index.less +44 -0
- package/es/components/pisellImageCarousels/index.d.ts +20 -0
- package/es/components/pisellImageCarousels/index.js +106 -0
- package/es/components/pisellImageCarousels/index.less +92 -0
- package/es/components/pisellProgressBar/index.d.ts +14 -0
- package/es/components/pisellProgressBar/index.js +44 -0
- package/es/components/pisellProgressBar/index.less +48 -0
- package/es/components/pisellSectionHeaders/index.d.ts +21 -0
- package/es/components/pisellSectionHeaders/index.js +39 -0
- package/es/components/pisellSectionHeaders/index.less +48 -0
- package/es/components/pisellViewGrid/index.d.ts +16 -0
- package/es/components/pisellViewGrid/index.js +88 -0
- package/es/components/pisellViewGrid/index.less +30 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/index.d.ts +9 -2
- package/es/index.js +10 -3
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +2 -2
- package/lib/components/pisellAvatar/index.d.ts +19 -0
- package/lib/components/pisellAvatar/index.js +108 -0
- package/lib/components/pisellAvatar/index.less +25 -0
- package/lib/components/pisellCustomCheckboxGroup/index.d.ts +15 -0
- package/lib/components/pisellCustomCheckboxGroup/index.js +94 -0
- package/lib/components/pisellCustomCheckboxGroup/index.less +0 -0
- package/lib/components/pisellDropdown/index.d.ts +20 -0
- package/lib/components/pisellDropdown/index.js +72 -0
- package/lib/components/pisellDropdown/index.less +44 -0
- package/lib/components/pisellImageCarousels/index.d.ts +20 -0
- package/lib/components/pisellImageCarousels/index.js +107 -0
- package/lib/components/pisellImageCarousels/index.less +92 -0
- package/lib/components/pisellProgressBar/index.d.ts +14 -0
- package/lib/components/pisellProgressBar/index.js +62 -0
- package/lib/components/pisellProgressBar/index.less +48 -0
- package/lib/components/pisellSectionHeaders/index.d.ts +21 -0
- package/lib/components/pisellSectionHeaders/index.js +58 -0
- package/lib/components/pisellSectionHeaders/index.less +48 -0
- package/lib/components/pisellViewGrid/index.d.ts +16 -0
- package/lib/components/pisellViewGrid/index.js +109 -0
- package/lib/components/pisellViewGrid/index.less +30 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/index.d.ts +9 -2
- package/lib/index.js +23 -2
- package/lowcode/pisell-avatar/__screenshots__/avatar-1.jpg +0 -0
- package/lowcode/pisell-avatar/meta.ts +111 -0
- package/lowcode/pisell-avatar/snippets.ts +14 -0
- package/lowcode/pisell-custom-checkbox-group/__screenshots__/card-1.png +0 -0
- package/lowcode/pisell-custom-checkbox-group/meta.ts +202 -0
- package/lowcode/pisell-custom-checkbox-group/snippets.ts +56 -0
- package/lowcode/pisell-dropdown/__screenshots__/dropdown-1.png +0 -0
- package/lowcode/pisell-dropdown/meta.ts +180 -0
- package/lowcode/pisell-dropdown/snippets.ts +69 -0
- package/lowcode/pisell-image-carousels/meta.ts +143 -0
- package/lowcode/pisell-image-carousels/snippets.ts +26 -0
- package/lowcode/pisell-progress-bar/meta.ts +115 -0
- package/lowcode/pisell-progress-bar/snippets.ts +15 -0
- package/lowcode/pisell-section-headers/meta.ts +91 -0
- package/lowcode/pisell-section-headers/snippets.ts +22 -0
- package/lowcode/pisell-view-grid/__screenshots__/card-1.png +0 -0
- package/lowcode/pisell-view-grid/meta.ts +167 -0
- package/lowcode/pisell-view-grid/snippets.ts +54 -0
- package/package.json +4 -3
|
@@ -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
|
+
];
|
|
Binary file
|
|
@@ -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,143 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellImageCarousels',
|
|
6
|
+
title: '轮播图',
|
|
7
|
+
category: '数据展示',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.1',
|
|
14
|
+
exportName: 'PisellImageCarousels',
|
|
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: 'dataSource',
|
|
27
|
+
title: { label: '列表数据源', tip: '列表数据源' },
|
|
28
|
+
propType: { type: 'arrayOf', value: 'any' },
|
|
29
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'rowKey',
|
|
33
|
+
title: {
|
|
34
|
+
label: '行Key',
|
|
35
|
+
tip: 'rowKey | 当 renderItem 自定义渲染列表项有效时,自定义每一行的 key 的获取方式',
|
|
36
|
+
},
|
|
37
|
+
propType: {
|
|
38
|
+
type: 'oneOfType',
|
|
39
|
+
value: ['string', 'function'],
|
|
40
|
+
},
|
|
41
|
+
defaultValue: 'id',
|
|
42
|
+
setter: [
|
|
43
|
+
'StringSetter',
|
|
44
|
+
{
|
|
45
|
+
componentName: 'FunctionSetter',
|
|
46
|
+
props: {
|
|
47
|
+
template:
|
|
48
|
+
'rowKey(item,${extParams}){\n// 自定义每一行的 key\nreturn `key-${item.id}`;\n}',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
'VariableSetter',
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
title: '轮播设置',
|
|
58
|
+
display: 'block',
|
|
59
|
+
type: 'group',
|
|
60
|
+
items: [
|
|
61
|
+
{
|
|
62
|
+
name: 'showDots',
|
|
63
|
+
title: { label: '显示翻页点', tip: 'showDots | 显示翻页点' },
|
|
64
|
+
propType: 'bool',
|
|
65
|
+
setter: 'BoolSetter',
|
|
66
|
+
defaultValue: true,
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
name: 'showArrows',
|
|
70
|
+
title: { label: '显示箭头', tip: 'showArrows | 显示箭头' },
|
|
71
|
+
propType: 'bool',
|
|
72
|
+
setter: 'BoolSetter',
|
|
73
|
+
defaultValue: true,
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'autoplay',
|
|
77
|
+
title: { label: '自动切换', tip: 'autoplay | 自动切换' },
|
|
78
|
+
propType: 'bool',
|
|
79
|
+
setter: 'BoolSetter',
|
|
80
|
+
defaultValue: true,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: 'interval',
|
|
84
|
+
title: { label: '切换的间隔 (毫秒)', tip: 'interval | 切换的间隔 (毫秒)' },
|
|
85
|
+
setter: {
|
|
86
|
+
componentName: "NumberSetter",
|
|
87
|
+
props: {
|
|
88
|
+
min: 0,
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
defaultValue: 3000,
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
title: '图片设置',
|
|
97
|
+
display: 'block',
|
|
98
|
+
type: 'group',
|
|
99
|
+
items: [
|
|
100
|
+
{
|
|
101
|
+
name: 'borderRadius',
|
|
102
|
+
title: { label: '圆角度数', tip: 'borderRadius | 圆角度数' },
|
|
103
|
+
setter: {
|
|
104
|
+
componentName: "NumberSetter",
|
|
105
|
+
props: {
|
|
106
|
+
min: 0,
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
defaultValue: 8,
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
name: 'width',
|
|
113
|
+
title: { label: '图片宽度', tip: 'width | 图片宽度' },
|
|
114
|
+
setter: {
|
|
115
|
+
componentName: "NumberSetter",
|
|
116
|
+
props: {
|
|
117
|
+
min: 0,
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
defaultValue: 640,
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'height',
|
|
124
|
+
title: { label: '图片高度', tip: 'height | 图片高度' },
|
|
125
|
+
setter: {
|
|
126
|
+
componentName: "NumberSetter",
|
|
127
|
+
props: {
|
|
128
|
+
min: 0,
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
defaultValue: 400,
|
|
132
|
+
},
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
],
|
|
136
|
+
|
|
137
|
+
configure: {
|
|
138
|
+
supports: {
|
|
139
|
+
style: true,
|
|
140
|
+
events: [],
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '轮播图',
|
|
4
|
+
schema: {
|
|
5
|
+
componentName: 'PisellImageCarousels',
|
|
6
|
+
props: {
|
|
7
|
+
dataSource: [{
|
|
8
|
+
url: 'https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png',
|
|
9
|
+
alt: '图片1',
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
url: 'https://gw.alicdn.com/bao/uploaded/i1/1115405069/O1CN01IYXdQb1nJebqPtA8S_!!1115405069.jpg_.webp',
|
|
13
|
+
alt: '图片2',
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
showDots: true,
|
|
17
|
+
showArrows: true,
|
|
18
|
+
autoplay: true,
|
|
19
|
+
interval: 3000,
|
|
20
|
+
borderRadius: 8,
|
|
21
|
+
height: 400,
|
|
22
|
+
width: 640,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
];
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellProgressBar',
|
|
6
|
+
title: '顶部进度栏',
|
|
7
|
+
category: '导航',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.1',
|
|
14
|
+
exportName: 'PisellProgressBar',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: '',
|
|
18
|
+
},
|
|
19
|
+
props: [{
|
|
20
|
+
name: 'showClose',
|
|
21
|
+
title: {
|
|
22
|
+
label: '显示关闭',
|
|
23
|
+
tip: 'showClose | 显示关闭',
|
|
24
|
+
},
|
|
25
|
+
propType: 'bool',
|
|
26
|
+
setter: 'BoolSetter',
|
|
27
|
+
defaultValue: true,
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
name: 'isConfirmClose',
|
|
31
|
+
title: {
|
|
32
|
+
label: '关闭时二次确认',
|
|
33
|
+
tip: 'isConfirmClose | 关闭时二次确认',
|
|
34
|
+
},
|
|
35
|
+
propType: 'bool',
|
|
36
|
+
setter: 'BoolSetter',
|
|
37
|
+
defaultValue: true,
|
|
38
|
+
condition(target) {
|
|
39
|
+
return target.getProps().getPropValue("showClose");
|
|
40
|
+
},
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: 'showStep',
|
|
44
|
+
title: {
|
|
45
|
+
label: '显示步骤',
|
|
46
|
+
tip: 'showStep | 显示步骤',
|
|
47
|
+
},
|
|
48
|
+
propType: 'bool',
|
|
49
|
+
setter: 'BoolSetter',
|
|
50
|
+
defaultValue: true,
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
name: 'step',
|
|
54
|
+
title: {
|
|
55
|
+
label: '当前步骤值',
|
|
56
|
+
tip: 'step | 当前选择的第几步',
|
|
57
|
+
},
|
|
58
|
+
setter: {
|
|
59
|
+
componentName: 'NumberSetter',
|
|
60
|
+
props: {
|
|
61
|
+
min: 1,
|
|
62
|
+
},
|
|
63
|
+
},
|
|
64
|
+
condition(target) {
|
|
65
|
+
return target.getProps().getPropValue("showStep");
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
type: 'group',
|
|
70
|
+
title: '外观',
|
|
71
|
+
display: 'block',
|
|
72
|
+
items: [
|
|
73
|
+
{
|
|
74
|
+
name: 'border',
|
|
75
|
+
title: {
|
|
76
|
+
label: '描边',
|
|
77
|
+
tip: 'border | 描边',
|
|
78
|
+
},
|
|
79
|
+
propType: 'bool',
|
|
80
|
+
setter: 'BoolSetter',
|
|
81
|
+
defaultValue: true,
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'backgroundColor',
|
|
85
|
+
title: {
|
|
86
|
+
label: '头部背景颜色',
|
|
87
|
+
tip: 'backgroundColor | 头部背景颜色',
|
|
88
|
+
},
|
|
89
|
+
setter: 'ColorSetter',
|
|
90
|
+
defaultValue: '#ffffff',
|
|
91
|
+
},
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
],
|
|
95
|
+
configure: {
|
|
96
|
+
component: {
|
|
97
|
+
isContainer: true,
|
|
98
|
+
},
|
|
99
|
+
supports: {
|
|
100
|
+
style: true,
|
|
101
|
+
events: [
|
|
102
|
+
{
|
|
103
|
+
name: 'onBack',
|
|
104
|
+
template:
|
|
105
|
+
"onBack(value,${extParams}){\n// 返回事件的回调\nconsole.log('onBack',value);}",
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
name: 'onAction',
|
|
109
|
+
template:
|
|
110
|
+
"onAction(value,${extParams}){\n// 右侧操作事件的回调\nconsole.log('onAction',value);}",
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
};
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import snippets from './snippets';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: 'PisellSectionHeaders',
|
|
6
|
+
title: '顶部内容区块',
|
|
7
|
+
category: '数据展示',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.1',
|
|
14
|
+
exportName: 'PisellSectionHeaders',
|
|
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: 'background',
|
|
27
|
+
// title: { label: '背景色', tip: 'background | 背景色' },
|
|
28
|
+
// propType: 'string',
|
|
29
|
+
// setter: 'ColorSetter',
|
|
30
|
+
// },
|
|
31
|
+
// ],
|
|
32
|
+
// },
|
|
33
|
+
{
|
|
34
|
+
name: 'backNode',
|
|
35
|
+
title: { label: '返回区域', tip: 'backNode | 返回区域' },
|
|
36
|
+
propType: 'node',
|
|
37
|
+
setter: {
|
|
38
|
+
componentName: 'SlotSetter',
|
|
39
|
+
initialValue: {
|
|
40
|
+
type: 'JSSlot',
|
|
41
|
+
value: [],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: 'centerNode',
|
|
48
|
+
title: { label: '中间区域', tip: 'centerNode | 中间区域' },
|
|
49
|
+
propType: 'node',
|
|
50
|
+
setter: {
|
|
51
|
+
componentName: 'SlotSetter',
|
|
52
|
+
initialValue: {
|
|
53
|
+
type: 'JSSlot',
|
|
54
|
+
value: [],
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: 'actionNode',
|
|
60
|
+
title: { label: '操作区域', tip: 'actionNode | 操作区域' },
|
|
61
|
+
propType: 'node',
|
|
62
|
+
setter: {
|
|
63
|
+
componentName: 'SlotSetter',
|
|
64
|
+
initialValue: {
|
|
65
|
+
type: 'JSSlot',
|
|
66
|
+
value: [],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
],
|
|
71
|
+
configure: {
|
|
72
|
+
component: {
|
|
73
|
+
isContainer: true,
|
|
74
|
+
},
|
|
75
|
+
supports: {
|
|
76
|
+
style: true,
|
|
77
|
+
events: [
|
|
78
|
+
{
|
|
79
|
+
name: 'onBack',
|
|
80
|
+
template:
|
|
81
|
+
"onBack(value,${extParams}){\n// 返回事件的回调\nconsole.log('onBack',value);}",
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
name: 'onAction',
|
|
85
|
+
template:
|
|
86
|
+
"onAction(value,${extParams}){\n// 右侧操作事件的回调\nconsole.log('onAction',value);}",
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
},
|
|
91
|
+
};
|