@pisell/materials 1.0.598 → 1.0.600
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 +30 -30
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +27 -27
- package/es/components/appVersionControl/index.js +1 -1
- package/es/components/appVersionControl/types.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +4 -12
- package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +2 -0
- package/es/components/dataSourceComponents/dataSourceMenu/index.js +19 -0
- package/es/components/dataSourceComponents/fields/Input.Subdomain/WithMode.js +4 -4
- package/es/components/image/avatar.png +0 -0
- package/es/components/image/image.png +0 -0
- package/es/components/image/index.d.ts +10 -0
- package/es/components/image/index.js +25 -0
- package/es/components/image/product.png +0 -0
- package/es/components/pisellDraggable/PisellDraggable.d.ts +18 -0
- package/es/components/pisellDraggable/PisellDraggable.js +190 -0
- package/es/components/pisellDraggable/PisellDraggable.less +154 -0
- package/es/components/pisellDraggable/SortableItem.d.ts +41 -0
- package/es/components/pisellDraggable/SortableItem.js +115 -0
- package/es/components/pisellDraggable/index.d.ts +3 -0
- package/es/components/pisellDraggable/index.js +2 -0
- package/es/components/pisellDraggable/types.d.ts +101 -0
- package/es/components/pisellDraggable/types.js +1 -0
- package/es/components/pisellLayout/content.d.ts +1 -0
- package/es/components/pisellLayout/content.js +19 -2
- package/es/components/pisellMenu/PisellMenu.d.ts +5 -0
- package/es/components/pisellMenu/PisellMenu.js +55 -0
- package/es/components/pisellMenu/PisellMenu.less +53 -0
- package/es/components/pisellMenu/index.d.ts +3 -0
- package/es/components/pisellMenu/index.js +2 -0
- package/es/components/pisellMenu/types.d.ts +30 -0
- package/es/components/pisellMenu/types.js +1 -0
- package/es/index.d.ts +29 -24
- package/es/index.js +29 -25
- package/es/locales/zh-TW.js +1 -1
- package/es/typings.d.ts +4 -0
- package/lib/components/appVersionControl/index.js +1 -1
- package/lib/components/appVersionControl/types.d.ts +1 -1
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -14
- package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +2 -0
- package/lib/components/dataSourceComponents/dataSourceMenu/index.js +45 -0
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/WithMode.js +4 -4
- package/lib/components/image/avatar.png +0 -0
- package/lib/components/image/image.png +0 -0
- package/lib/components/image/index.d.ts +10 -0
- package/lib/components/image/index.js +59 -0
- package/lib/components/image/product.png +0 -0
- package/lib/components/pisellDraggable/PisellDraggable.d.ts +18 -0
- package/lib/components/pisellDraggable/PisellDraggable.js +175 -0
- package/lib/components/pisellDraggable/PisellDraggable.less +154 -0
- package/lib/components/pisellDraggable/SortableItem.d.ts +41 -0
- package/lib/components/pisellDraggable/SortableItem.js +127 -0
- package/lib/components/pisellDraggable/index.d.ts +3 -0
- package/lib/components/pisellDraggable/index.js +36 -0
- package/lib/components/pisellDraggable/types.d.ts +101 -0
- package/lib/components/pisellDraggable/types.js +17 -0
- package/lib/components/pisellLayout/content.d.ts +1 -0
- package/lib/components/pisellLayout/content.js +9 -1
- package/lib/components/pisellMenu/PisellMenu.d.ts +5 -0
- package/lib/components/pisellMenu/PisellMenu.js +91 -0
- package/lib/components/pisellMenu/PisellMenu.less +53 -0
- package/lib/components/pisellMenu/index.d.ts +3 -0
- package/lib/components/pisellMenu/index.js +36 -0
- package/lib/components/pisellMenu/types.d.ts +30 -0
- package/lib/components/pisellMenu/types.js +17 -0
- package/lib/index.d.ts +29 -24
- package/lib/index.js +34 -24
- package/lib/locales/zh-TW.js +1 -1
- package/lib/typings.d.ts +4 -0
- package/lowcode/_utils/defaultSchema.ts +1 -1
- package/lowcode/app-version-control/meta.ts +16 -0
- package/lowcode/data-source-menu/meta.ts +115 -0
- package/lowcode/form-item-input.mobile/__screenshots__/mobile.png +0 -0
- package/lowcode/form-item-input.mobile/meta.ts +15 -1
- package/lowcode/form-item-input.mobile/snippets.ts +7 -1
- package/lowcode/form-item-input.phone/meta.ts +15 -1
- package/lowcode/form-item-input.phone/snippets.ts +6 -0
- package/lowcode/form-item-input.subdomain/__screenshots__/subdomain.png +0 -0
- package/lowcode/form-item-input.subdomain/meta.ts +17 -1
- package/lowcode/form-item-input.subdomain/snippets.ts +1 -1
- package/lowcode/image/meta.ts +19 -0
- package/lowcode/image/snippets.ts +1 -0
- package/lowcode/pisell-content/meta.ts +12 -9
- package/lowcode/pisell-draggable/meta.ts +190 -0
- package/lowcode/pisell-layout/meta.ts +9 -9
- package/lowcode/pisell-menu/meta.ts +112 -0
- package/package.json +3 -3
- package/lowcode/form-item-input.mobile/__screenshots__/phone.png +0 -0
|
@@ -3,7 +3,7 @@ import { inputPlaceholder } from "../_utils/defaultSchema";
|
|
|
3
3
|
export default [
|
|
4
4
|
{
|
|
5
5
|
title: '手机号码输入',
|
|
6
|
-
screenshot: require('./__screenshots__/
|
|
6
|
+
screenshot: require('./__screenshots__/mobile.png'),
|
|
7
7
|
schema: {
|
|
8
8
|
title: '手机号码输入',
|
|
9
9
|
componentName: 'FormItemInput.Mobile',
|
|
@@ -14,6 +14,12 @@ export default [
|
|
|
14
14
|
typeobj: {
|
|
15
15
|
type: 'mobile',
|
|
16
16
|
enabled: true,
|
|
17
|
+
message:{
|
|
18
|
+
type: 'i18n',
|
|
19
|
+
en: 'Please enter a valid mobile number',
|
|
20
|
+
'zh-CN': '请输入正确的手机号码 ',
|
|
21
|
+
'zh-HK': '請輸入正確的手機號碼',
|
|
22
|
+
}
|
|
17
23
|
},
|
|
18
24
|
},
|
|
19
25
|
},
|
|
@@ -52,7 +52,21 @@ export default {
|
|
|
52
52
|
]),
|
|
53
53
|
getFormItemValidateGroup([
|
|
54
54
|
generalItemMap['requiredobj'],
|
|
55
|
-
|
|
55
|
+
{
|
|
56
|
+
...generalItemMap['typeobj'],
|
|
57
|
+
title: {
|
|
58
|
+
label: {
|
|
59
|
+
type: 'i18n',
|
|
60
|
+
'en-US': 'Phone format',
|
|
61
|
+
'zh-CN': '电话格式 ',
|
|
62
|
+
},
|
|
63
|
+
tip: {
|
|
64
|
+
type: 'i18n',
|
|
65
|
+
'en-US': 'Phone format',
|
|
66
|
+
'zh-CN': '电话格式 ',
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
}
|
|
56
70
|
]),
|
|
57
71
|
],
|
|
58
72
|
props: [
|
|
Binary file
|
|
@@ -102,7 +102,23 @@ export default {
|
|
|
102
102
|
]),
|
|
103
103
|
getFormItemValidateGroup([
|
|
104
104
|
generalItemMap['requiredobj'],
|
|
105
|
-
generalItemMap['
|
|
105
|
+
generalItemMap['minLengthobj'],
|
|
106
|
+
generalItemMap['maxLengthobj'],
|
|
107
|
+
{
|
|
108
|
+
...generalItemMap['typeobj'],
|
|
109
|
+
title: {
|
|
110
|
+
label: {
|
|
111
|
+
type: 'i18n',
|
|
112
|
+
'en-US': 'Subdomain format',
|
|
113
|
+
'zh-CN': '子域名格式 ',
|
|
114
|
+
},
|
|
115
|
+
tip: {
|
|
116
|
+
type: 'i18n',
|
|
117
|
+
'en-US': 'Subdomain format',
|
|
118
|
+
'zh-CN': '子域名格式 ',
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
106
122
|
]),
|
|
107
123
|
],
|
|
108
124
|
props: [
|
package/lowcode/image/meta.ts
CHANGED
|
@@ -49,6 +49,25 @@ export default {
|
|
|
49
49
|
title: { label: "高度", tip: "高度" },
|
|
50
50
|
propType: "number",
|
|
51
51
|
},
|
|
52
|
+
{
|
|
53
|
+
name: "fallbackType",
|
|
54
|
+
title: { label: "占位图", tip: "占位图类型" },
|
|
55
|
+
propType: {
|
|
56
|
+
type: "oneOf",
|
|
57
|
+
value: ["image", "avatar", "product"]
|
|
58
|
+
},
|
|
59
|
+
defaultValue: "image",
|
|
60
|
+
setter: {
|
|
61
|
+
componentName: "SelectSetter",
|
|
62
|
+
props: {
|
|
63
|
+
options: [
|
|
64
|
+
{ label: "图片", value: "image" },
|
|
65
|
+
{ label: "人像", value: "avatar" },
|
|
66
|
+
{ label: "商品", value: "product" }
|
|
67
|
+
]
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
52
71
|
],
|
|
53
72
|
configure: {
|
|
54
73
|
supports: {
|
|
@@ -26,6 +26,17 @@ const PisellContentMeta: ComponentMetadata = {
|
|
|
26
26
|
name: 'className',
|
|
27
27
|
setter: 'StringSetter',
|
|
28
28
|
},
|
|
29
|
+
{
|
|
30
|
+
title: {
|
|
31
|
+
label: {
|
|
32
|
+
type: 'i18n',
|
|
33
|
+
'en-US': 'Other content',
|
|
34
|
+
'zh-CN': '额外内容',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
name: 'children',
|
|
38
|
+
setter: ['SlotSetter'],
|
|
39
|
+
},
|
|
29
40
|
{
|
|
30
41
|
title: {
|
|
31
42
|
label: {
|
|
@@ -63,16 +74,8 @@ const snippets: Snippet[] = [
|
|
|
63
74
|
lineHeight: '120px',
|
|
64
75
|
textAlign: 'center',
|
|
65
76
|
},
|
|
77
|
+
|
|
66
78
|
},
|
|
67
|
-
children: [{
|
|
68
|
-
componentName: 'PisellText',
|
|
69
|
-
props: {
|
|
70
|
-
style: {
|
|
71
|
-
color: '#fff',
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
children: 'Content',
|
|
75
|
-
},],
|
|
76
79
|
},
|
|
77
80
|
},
|
|
78
81
|
];
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
2
|
+
|
|
3
|
+
const PisellDraggableMeta: IPublicTypeComponentMetadata = {
|
|
4
|
+
componentName: 'PisellDraggable',
|
|
5
|
+
title: 'PisellDraggable',
|
|
6
|
+
docUrl: '',
|
|
7
|
+
screenshot: '',
|
|
8
|
+
devMode: 'proCode',
|
|
9
|
+
npm: {
|
|
10
|
+
package: '@pisell/materials',
|
|
11
|
+
version: '1.0.3',
|
|
12
|
+
exportName: 'PisellDraggable',
|
|
13
|
+
main: 'src/index.tsx',
|
|
14
|
+
destructuring: true,
|
|
15
|
+
subName: '',
|
|
16
|
+
},
|
|
17
|
+
props: [
|
|
18
|
+
{
|
|
19
|
+
title: {
|
|
20
|
+
label: {
|
|
21
|
+
type: 'i18n',
|
|
22
|
+
'en-US': 'items',
|
|
23
|
+
'zh-CN': '拖拽项列表',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
name: 'items',
|
|
27
|
+
description: '拖拽项数据列表',
|
|
28
|
+
setter: 'JsonSetter',
|
|
29
|
+
defaultValue: [],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
title: {
|
|
33
|
+
label: {
|
|
34
|
+
type: 'i18n',
|
|
35
|
+
'en-US': 'direction',
|
|
36
|
+
'zh-CN': '排列方向',
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
name: 'direction',
|
|
40
|
+
setter: {
|
|
41
|
+
componentName: 'RadioGroupSetter',
|
|
42
|
+
props: {
|
|
43
|
+
options: [
|
|
44
|
+
{ label: '垂直', value: 'vertical' },
|
|
45
|
+
{ label: '水平', value: 'horizontal' },
|
|
46
|
+
{ label: '网格', value: 'grid' },
|
|
47
|
+
],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
defaultValue: 'vertical',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
title: {
|
|
54
|
+
label: {
|
|
55
|
+
type: 'i18n',
|
|
56
|
+
'en-US': 'columns',
|
|
57
|
+
'zh-CN': '列数',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
name: 'columns',
|
|
61
|
+
description: '网格布局时的列数',
|
|
62
|
+
setter: 'NumberSetter',
|
|
63
|
+
defaultValue: 3,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
title: {
|
|
67
|
+
label: {
|
|
68
|
+
type: 'i18n',
|
|
69
|
+
'en-US': 'allowCrossContainer',
|
|
70
|
+
'zh-CN': '允许跨容器',
|
|
71
|
+
},
|
|
72
|
+
},
|
|
73
|
+
name: 'allowCrossContainer',
|
|
74
|
+
setter: 'BoolSetter',
|
|
75
|
+
defaultValue: false,
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
title: {
|
|
79
|
+
label: {
|
|
80
|
+
type: 'i18n',
|
|
81
|
+
'en-US': 'disabled',
|
|
82
|
+
'zh-CN': '禁用',
|
|
83
|
+
},
|
|
84
|
+
},
|
|
85
|
+
name: 'disabled',
|
|
86
|
+
setter: 'BoolSetter',
|
|
87
|
+
defaultValue: false,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
title: {
|
|
91
|
+
label: {
|
|
92
|
+
type: 'i18n',
|
|
93
|
+
'en-US': 'animationDuration',
|
|
94
|
+
'zh-CN': '动画时长',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
name: 'animationDuration',
|
|
98
|
+
description: '动画持续时间(毫秒)',
|
|
99
|
+
setter: 'NumberSetter',
|
|
100
|
+
defaultValue: 250,
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
title: {
|
|
104
|
+
label: {
|
|
105
|
+
type: 'i18n',
|
|
106
|
+
'en-US': 'className',
|
|
107
|
+
'zh-CN': '类名',
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
name: 'className',
|
|
111
|
+
setter: 'StringSetter',
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
title: {
|
|
115
|
+
label: {
|
|
116
|
+
type: 'i18n',
|
|
117
|
+
'en-US': 'style',
|
|
118
|
+
'zh-CN': '样式',
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
name: 'style',
|
|
122
|
+
setter: 'StyleSetter',
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
title: {
|
|
126
|
+
label: {
|
|
127
|
+
type: 'i18n',
|
|
128
|
+
'en-US': 'dragMode',
|
|
129
|
+
'zh-CN': '拖动方式',
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
name: 'dragMode',
|
|
133
|
+
setter: {
|
|
134
|
+
componentName: 'RadioGroupSetter',
|
|
135
|
+
props: {
|
|
136
|
+
options: [
|
|
137
|
+
{ label: '手柄拖动', value: 'handle' },
|
|
138
|
+
{ label: '整体拖动', value: 'item' },
|
|
139
|
+
],
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
defaultValue: 'handle',
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
configure: {
|
|
146
|
+
component: {
|
|
147
|
+
isContainer: true,
|
|
148
|
+
},
|
|
149
|
+
supports: {
|
|
150
|
+
style: true,
|
|
151
|
+
className: true,
|
|
152
|
+
events: [
|
|
153
|
+
{
|
|
154
|
+
name: 'onDragStart',
|
|
155
|
+
description: '拖拽开始时的回调',
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
name: 'onDragEnd',
|
|
159
|
+
description: '拖拽结束时的回调',
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'onChange',
|
|
163
|
+
description: '数据变化时的回调',
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
},
|
|
167
|
+
},
|
|
168
|
+
};
|
|
169
|
+
|
|
170
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
171
|
+
{
|
|
172
|
+
title: 'PisellDraggable',
|
|
173
|
+
screenshot: '',
|
|
174
|
+
schema: {
|
|
175
|
+
componentName: 'PisellDraggable',
|
|
176
|
+
props: {
|
|
177
|
+
items: [
|
|
178
|
+
{ id: '1', content: '项目 1' },
|
|
179
|
+
{ id: '2', content: '项目 2' },
|
|
180
|
+
{ id: '3', content: '项目 3' },
|
|
181
|
+
],
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
];
|
|
186
|
+
|
|
187
|
+
export default {
|
|
188
|
+
...PisellDraggableMeta,
|
|
189
|
+
snippets,
|
|
190
|
+
};
|
|
@@ -132,15 +132,15 @@ const snippets: IPublicTypeSnippet[] = [
|
|
|
132
132
|
textAlign: 'center',
|
|
133
133
|
},
|
|
134
134
|
},
|
|
135
|
-
children: [{
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
},],
|
|
135
|
+
// children: [{
|
|
136
|
+
// componentName: 'PisellText',
|
|
137
|
+
// props: {
|
|
138
|
+
// style: {
|
|
139
|
+
// color: '#fff',
|
|
140
|
+
// },
|
|
141
|
+
// },
|
|
142
|
+
// children: 'Content',
|
|
143
|
+
// },],
|
|
144
144
|
},
|
|
145
145
|
],
|
|
146
146
|
},
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
|
|
2
|
+
|
|
3
|
+
const PisellMenuMeta: IPublicTypeComponentMetadata = {
|
|
4
|
+
componentName: 'PisellMenu',
|
|
5
|
+
title: 'PisellMenu',
|
|
6
|
+
docUrl: '',
|
|
7
|
+
screenshot: '',
|
|
8
|
+
devMode: 'proCode',
|
|
9
|
+
npm: {
|
|
10
|
+
package: '@pisell/materials',
|
|
11
|
+
version: '1.0.3',
|
|
12
|
+
exportName: 'PisellMenu',
|
|
13
|
+
main: 'src/index.tsx',
|
|
14
|
+
destructuring: true,
|
|
15
|
+
subName: ''
|
|
16
|
+
},
|
|
17
|
+
props: [
|
|
18
|
+
{
|
|
19
|
+
name: 'mode',
|
|
20
|
+
propType: {
|
|
21
|
+
type: 'oneOf',
|
|
22
|
+
value: ['vertical', 'horizontal', 'inline']
|
|
23
|
+
},
|
|
24
|
+
description: '菜单模式',
|
|
25
|
+
defaultValue: 'vertical',
|
|
26
|
+
setter: {
|
|
27
|
+
componentName: 'SelectSetter',
|
|
28
|
+
props: {
|
|
29
|
+
options: [
|
|
30
|
+
{ label: '垂直', value: 'vertical' },
|
|
31
|
+
{ label: '水平', value: 'horizontal' },
|
|
32
|
+
{ label: '内嵌', value: 'inline' },
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
name: 'theme',
|
|
39
|
+
propType: {
|
|
40
|
+
type: 'oneOf',
|
|
41
|
+
value: ['light', 'dark']
|
|
42
|
+
},
|
|
43
|
+
description: '主题',
|
|
44
|
+
defaultValue: 'light',
|
|
45
|
+
setter: {
|
|
46
|
+
componentName: 'RadioGroupSetter',
|
|
47
|
+
props: {
|
|
48
|
+
options: [
|
|
49
|
+
{ label: '亮色', value: 'light' },
|
|
50
|
+
{ label: '暗色', value: 'dark' },
|
|
51
|
+
]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
name: 'dataSource',
|
|
57
|
+
propType: 'array',
|
|
58
|
+
description: '菜单项',
|
|
59
|
+
setter: 'JsonSetter'
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
name: 'className',
|
|
63
|
+
propType: 'string',
|
|
64
|
+
description: '类名',
|
|
65
|
+
setter: 'StringSetter'
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'style',
|
|
69
|
+
propType: 'object',
|
|
70
|
+
description: '样式',
|
|
71
|
+
setter: 'StyleSetter'
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
configure: {
|
|
75
|
+
component: {
|
|
76
|
+
isContainer: true
|
|
77
|
+
},
|
|
78
|
+
supports: {
|
|
79
|
+
style: true,
|
|
80
|
+
className: true
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
86
|
+
{
|
|
87
|
+
title: 'PisellMenu',
|
|
88
|
+
screenshot: '',
|
|
89
|
+
schema: {
|
|
90
|
+
componentName: 'PisellMenu',
|
|
91
|
+
props: {
|
|
92
|
+
mode: 'vertical',
|
|
93
|
+
theme: 'light',
|
|
94
|
+
items: [
|
|
95
|
+
{
|
|
96
|
+
label: '菜单项1',
|
|
97
|
+
key: 'item-1'
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
label: '菜单项2',
|
|
101
|
+
key: 'item-2'
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
];
|
|
108
|
+
|
|
109
|
+
export default {
|
|
110
|
+
...PisellMenuMeta,
|
|
111
|
+
snippets
|
|
112
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.600",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -70,8 +70,8 @@
|
|
|
70
70
|
"swiper": "^8.4.7",
|
|
71
71
|
"react-barcode": "^1.5.3",
|
|
72
72
|
"@pisell/date-picker": "1.0.115",
|
|
73
|
-
"@pisell/
|
|
74
|
-
"@pisell/
|
|
73
|
+
"@pisell/icon": "0.0.10",
|
|
74
|
+
"@pisell/utils": "1.0.43"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
77
|
"react": "^18.0.0",
|
|
Binary file
|