@pisell/materials 1.0.597 → 1.0.598
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 +34 -20
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +34 -20
- package/es/components/appVersionControl/index.d.ts +5 -0
- package/es/components/appVersionControl/index.js +221 -0
- package/es/components/appVersionControl/index.less +34 -0
- package/es/components/appVersionControl/types.d.ts +20 -0
- package/es/components/appVersionControl/types.js +1 -0
- package/es/components/customSelect/index.d.ts +17 -0
- package/es/components/customSelect/index.js +26 -0
- package/es/components/customSelect/index.less +7 -0
- package/es/components/pisellLayout/content.d.ts +7 -0
- package/es/components/pisellLayout/content.js +12 -0
- package/es/components/pisellLayout/footer.d.ts +7 -0
- package/es/components/pisellLayout/footer.js +12 -0
- package/es/components/pisellLayout/header.d.ts +7 -0
- package/es/components/pisellLayout/header.js +12 -0
- package/es/components/pisellLayout/index.d.ts +14 -0
- package/es/components/pisellLayout/index.js +15 -0
- package/es/components/pisellLayout/sider.d.ts +7 -0
- package/es/components/pisellLayout/sider.js +12 -0
- package/es/components/versionModal/index.d.ts +1 -0
- package/es/components/versionModal/index.js +5 -2
- package/es/index.d.ts +106 -136
- package/es/index.js +108 -167
- package/es/locales/en-US.d.ts +9 -1
- package/es/locales/en-US.js +15 -2
- package/es/locales/zh-CN.d.ts +9 -1
- package/es/locales/zh-CN.js +14 -2
- package/es/locales/zh-TW.d.ts +9 -0
- package/es/locales/zh-TW.js +15 -1
- package/lib/components/appVersionControl/index.d.ts +5 -0
- package/lib/components/appVersionControl/index.js +208 -0
- package/lib/components/appVersionControl/index.less +34 -0
- package/lib/components/appVersionControl/types.d.ts +20 -0
- package/lib/components/appVersionControl/types.js +17 -0
- package/lib/components/customSelect/index.d.ts +17 -0
- package/lib/components/customSelect/index.js +58 -0
- package/lib/components/customSelect/index.less +7 -0
- package/lib/components/pisellLayout/content.d.ts +7 -0
- package/lib/components/pisellLayout/content.js +42 -0
- package/lib/components/pisellLayout/footer.d.ts +7 -0
- package/lib/components/pisellLayout/footer.js +42 -0
- package/lib/components/pisellLayout/header.d.ts +7 -0
- package/lib/components/pisellLayout/header.js +42 -0
- package/lib/components/pisellLayout/index.d.ts +14 -0
- package/lib/components/pisellLayout/index.js +45 -0
- package/lib/components/pisellLayout/sider.d.ts +7 -0
- package/lib/components/pisellLayout/sider.js +42 -0
- package/lib/components/versionModal/index.d.ts +1 -0
- package/lib/components/versionModal/index.js +4 -2
- package/lib/index.d.ts +106 -136
- package/lib/index.js +156 -174
- package/lib/locales/en-US.d.ts +9 -1
- package/lib/locales/en-US.js +13 -2
- package/lib/locales/zh-CN.d.ts +9 -1
- package/lib/locales/zh-CN.js +12 -2
- package/lib/locales/zh-TW.d.ts +9 -0
- package/lib/locales/zh-TW.js +13 -1
- package/lowcode/app-version-control/meta.ts +76 -0
- package/lowcode/custom-select/meta.ts +206 -0
- package/lowcode/custom-select/snippets.ts +33 -0
- package/lowcode/form-item-icon-select/snippets.ts +1 -0
- package/lowcode/icon-select/meta.ts +1 -1
- package/lowcode/pisell-content/meta.ts +83 -0
- package/lowcode/pisell-footer/meta.ts +81 -0
- package/lowcode/pisell-header/meta.ts +83 -0
- package/lowcode/pisell-layout/meta.ts +174 -0
- package/lowcode/pisell-sider/meta.ts +142 -0
- package/lowcode/pisell-text/meta.ts +9 -8080
- package/package.json +1 -1
package/lib/locales/zh-TW.js
CHANGED
|
@@ -216,6 +216,7 @@ var zh_TW_default = {
|
|
|
216
216
|
"pisell-delete-confirm-cancel": "取消",
|
|
217
217
|
"pisell-design-mode-action-disabled": "編輯模式下不可執行此操作",
|
|
218
218
|
"pisell-translation-original": "原始語言",
|
|
219
|
+
// 版本升级组件
|
|
219
220
|
"pisell-version-modal-title": "創建新版本",
|
|
220
221
|
"pisell-version-modal-current-version": "當前版本",
|
|
221
222
|
"pisell-version-modal-version": "版本號",
|
|
@@ -229,6 +230,7 @@ var zh_TW_default = {
|
|
|
229
230
|
"pisell-version-modal-describe-update-notes": "描述此版本的主要更改...",
|
|
230
231
|
"pisell-version-modal-version-error": "版本號必須大於當前版本",
|
|
231
232
|
"pisell-version-modal-version-required": "版本號為必填項",
|
|
233
|
+
// 图标选择组件
|
|
232
234
|
"pisell-icon-select-placeholder": "選擇圖標",
|
|
233
235
|
"pisell-icon-select-outlined": "線框風格",
|
|
234
236
|
"pisell-icon-select-filled": "實底風格",
|
|
@@ -242,5 +244,15 @@ var zh_TW_default = {
|
|
|
242
244
|
"subdomain-error-pattern": "子域名只能包含小寫字母、數字和連字符",
|
|
243
245
|
"subdomain-error-numbers-only": "子域名不能全為數字",
|
|
244
246
|
"subdomain-error-hyphen-ends": "子域名不能以連字符開頭或結尾",
|
|
245
|
-
"subdomain-error-consecutive-hyphens": "子域名不能包含連續的連字符"
|
|
247
|
+
"subdomain-error-consecutive-hyphens": "子域名不能包含連續的連字符",
|
|
248
|
+
// 应用版本控制组件
|
|
249
|
+
"pisell-lowcode-app-version-control-live": "正式版",
|
|
250
|
+
"pisell-lowcode-app-version-control-draft": "草稿",
|
|
251
|
+
"pisell-lowcode-app-version-control-deprecated": "已廢棄",
|
|
252
|
+
"pisell-lowcode-app-version-control-new-version": "新版本",
|
|
253
|
+
"pisell-lowcode-app-version-control-promote-to-live": "發布正式版",
|
|
254
|
+
"pisell-lowcode-app-version-control-promote-version": (version) => `發布版本 ${version || ""}?`,
|
|
255
|
+
"pisell-lowcode-app-version-control-promote-version-describe": "發布版本後,該版本將無法再進行修改",
|
|
256
|
+
"pisell-lowcode-app-version-control-promote-version-ok": "發布",
|
|
257
|
+
"pisell-lowcode-app-version-control-promote-version-cancel": "取消"
|
|
246
258
|
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IPublicTypeSnippet,
|
|
3
|
+
} from '@alilc/lowcode-types';
|
|
4
|
+
|
|
5
|
+
const PisellAppVersionControlMeta = {
|
|
6
|
+
componentName: 'AppVersionControl',
|
|
7
|
+
title: '应用版本控制',
|
|
8
|
+
docUrl: '',
|
|
9
|
+
screenshot: '',
|
|
10
|
+
devMode: 'proCode',
|
|
11
|
+
npm: {
|
|
12
|
+
package: '@pisell/materials',
|
|
13
|
+
version: '1.0.3',
|
|
14
|
+
exportName: 'AppVersionControl',
|
|
15
|
+
main: 'src/index.tsx',
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: '',
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
title: {
|
|
22
|
+
label: {
|
|
23
|
+
type: 'i18n',
|
|
24
|
+
'en-US': 'allowPublish',
|
|
25
|
+
'zh-CN': '允许发布',
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
name: 'allowPublish',
|
|
29
|
+
description: '是否允许发布版本',
|
|
30
|
+
defaultValue: true,
|
|
31
|
+
setter: 'BoolSetter',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: {
|
|
35
|
+
label: {
|
|
36
|
+
type: 'i18n',
|
|
37
|
+
'en-US': 'allowCreate',
|
|
38
|
+
'zh-CN': '允许创建',
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
name: 'allowCreate',
|
|
42
|
+
description: '是否允许创建新版本',
|
|
43
|
+
defaultValue: true,
|
|
44
|
+
setter: 'BoolSetter',
|
|
45
|
+
},
|
|
46
|
+
],
|
|
47
|
+
configure: {
|
|
48
|
+
component: {
|
|
49
|
+
isContainer: true,
|
|
50
|
+
},
|
|
51
|
+
supports: {
|
|
52
|
+
style: true,
|
|
53
|
+
className: true,
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
59
|
+
{
|
|
60
|
+
title: '应用版本控制',
|
|
61
|
+
screenshot: '',
|
|
62
|
+
schema: {
|
|
63
|
+
title: '应用版本控制',
|
|
64
|
+
componentName: 'AppVersionControl',
|
|
65
|
+
props: {
|
|
66
|
+
allowPublish: true,
|
|
67
|
+
allowCreate: true,
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
},
|
|
71
|
+
];
|
|
72
|
+
|
|
73
|
+
export default {
|
|
74
|
+
...PisellAppVersionControlMeta,
|
|
75
|
+
snippets,
|
|
76
|
+
};
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import { uuid } from '../_utils/utils';
|
|
2
|
+
|
|
3
|
+
import snippets from './snippets';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
snippets,
|
|
7
|
+
componentName: 'CustomSelect',
|
|
8
|
+
title: '自定义下拉菜单',
|
|
9
|
+
category: '表单',
|
|
10
|
+
docUrl: "",
|
|
11
|
+
screenshot: "",
|
|
12
|
+
devMode: "proCode",
|
|
13
|
+
npm: {
|
|
14
|
+
package: "@pisell/materials",
|
|
15
|
+
version: "1.0.1",
|
|
16
|
+
exportName: "CustomSelect",
|
|
17
|
+
main: "src/index.tsx",
|
|
18
|
+
destructuring: true,
|
|
19
|
+
subName: "",
|
|
20
|
+
},
|
|
21
|
+
props: [
|
|
22
|
+
{
|
|
23
|
+
name: 'defaultValue',
|
|
24
|
+
title: { label: '默认值', tip: '默认选中值' },
|
|
25
|
+
propType: {
|
|
26
|
+
type: 'oneOfType',
|
|
27
|
+
value: [
|
|
28
|
+
'string',
|
|
29
|
+
{ type: 'arrayOf', value: 'string' },
|
|
30
|
+
'number',
|
|
31
|
+
{ type: 'arrayOf', value: 'number' },
|
|
32
|
+
],
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: 'renderItem',
|
|
37
|
+
title: { label: '自定义渲染', tip: '自定义渲染选项内容' },
|
|
38
|
+
propType: {
|
|
39
|
+
type: 'func',
|
|
40
|
+
},
|
|
41
|
+
setter: [
|
|
42
|
+
{
|
|
43
|
+
componentName: 'SlotSetter',
|
|
44
|
+
title: '渲染函数插槽',
|
|
45
|
+
initialValue: {
|
|
46
|
+
type: 'JSSlot',
|
|
47
|
+
params: ['option'],
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
componentName: 'FunctionSetter',
|
|
52
|
+
props: {
|
|
53
|
+
template: 'renderItem(item,${extParams}){\n// 自定义渲染\nreturn `item`;\n}',
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
'VariableSetter',
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
name: 'value',
|
|
61
|
+
title: { label: '当前值', tip: '当前值' },
|
|
62
|
+
propType: {
|
|
63
|
+
type: 'oneOfType',
|
|
64
|
+
value: [
|
|
65
|
+
'string',
|
|
66
|
+
{ type: 'arrayOf', value: 'string' },
|
|
67
|
+
'number',
|
|
68
|
+
{ type: 'arrayOf', value: 'number' },
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: 'options',
|
|
74
|
+
title: { label: '可选项', tip: '可选项' },
|
|
75
|
+
propType: {
|
|
76
|
+
type: 'arrayOf',
|
|
77
|
+
value: {
|
|
78
|
+
type: 'shape',
|
|
79
|
+
value: [
|
|
80
|
+
{
|
|
81
|
+
name: 'label',
|
|
82
|
+
propType: 'string',
|
|
83
|
+
description: '选项名',
|
|
84
|
+
defaultValue: '选项名',
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: 'value',
|
|
88
|
+
propType: ['string', 'number'],
|
|
89
|
+
description: '选项值',
|
|
90
|
+
defaultValue: '选项值',
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
name: 'disabled',
|
|
94
|
+
propType: 'bool',
|
|
95
|
+
description: '是否禁用',
|
|
96
|
+
defaultValue: false,
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
setter: {
|
|
102
|
+
componentName: 'ArraySetter',
|
|
103
|
+
props: {
|
|
104
|
+
itemSetter: {
|
|
105
|
+
componentName: 'ObjectSetter',
|
|
106
|
+
props: {
|
|
107
|
+
config: {
|
|
108
|
+
items: [
|
|
109
|
+
{
|
|
110
|
+
name: 'label',
|
|
111
|
+
title: '选项名',
|
|
112
|
+
setter: ['PisellI18nSetter', 'VariableSetter'],
|
|
113
|
+
isRequired: true
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
name: 'value',
|
|
117
|
+
title: '选项值',
|
|
118
|
+
setter: ['StringSetter', 'NumberSetter', 'VariableSetter'],
|
|
119
|
+
isRequired: true
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
name: 'disabled',
|
|
123
|
+
title: '是否禁用',
|
|
124
|
+
setter: ['BoolSetter', 'VariableSetter'],
|
|
125
|
+
},
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
},
|
|
129
|
+
initialValue: () => {
|
|
130
|
+
return {
|
|
131
|
+
label: '选项名',
|
|
132
|
+
value: uuid(),
|
|
133
|
+
disabled: false,
|
|
134
|
+
};
|
|
135
|
+
},
|
|
136
|
+
},
|
|
137
|
+
},
|
|
138
|
+
},
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
name: 'disabled',
|
|
142
|
+
title: { label: '是否禁用', tip: '是否为禁用状态' },
|
|
143
|
+
propType: 'bool',
|
|
144
|
+
defaultValue: false,
|
|
145
|
+
setter: 'BoolSetter'
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
configure: {
|
|
149
|
+
supports: {
|
|
150
|
+
style: true,
|
|
151
|
+
events: [
|
|
152
|
+
{
|
|
153
|
+
name: 'onBlur',
|
|
154
|
+
template: "onBlur(${extParams}){\n// 失去焦点时回调\nconsole.log('onBlur');}",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
name: 'onChange',
|
|
158
|
+
template:
|
|
159
|
+
"onChange(value,option,${extParams}){\n// 选中 option,或 input 的 value 变化时,调用此函数\nconsole.log('onChange',value,option);}",
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
name: 'onDeselect',
|
|
163
|
+
template:
|
|
164
|
+
"onDeselect(value,${extParams}){\n// 取消选中时调用\nconsole.log('onDeselect',value);}",
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
name: 'onFocus',
|
|
168
|
+
template: "onFocus(${extParams}){\n// 获得焦点时回调\nconsole.log('onFocus');}",
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
name: 'onInputKeyDown',
|
|
172
|
+
template:
|
|
173
|
+
"onInputKeyDown(${extParams}){\n// 按键按下时回调\nconsole.log('onInputKeyDown');}",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: 'onMouseEnter',
|
|
177
|
+
template: "onMouseEnter(${extParams}){\n// 鼠标移入时回调\nconsole.log('onMouseEnter');}",
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
name: 'onMouseLeave',
|
|
181
|
+
template: "onMouseLeave(${extParams}){\n// 鼠标移出时回调\nconsole.log('onMouseLeave');}",
|
|
182
|
+
},
|
|
183
|
+
{
|
|
184
|
+
name: 'onPopupScroll',
|
|
185
|
+
template:
|
|
186
|
+
"onPopupScroll(${extParams}){\n// 下拉列表滚动时的回调\nconsole.log('onPopupScroll');}",
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
name: 'onSearch',
|
|
190
|
+
template:
|
|
191
|
+
"onSearch(value,${extParams}){\n// 文本框值变化时回调\nconsole.log('onSearch',value);}",
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: 'onSelect',
|
|
195
|
+
template:
|
|
196
|
+
"onSelect(value,option,${extParams}){\n// 被选中时调用\nconsole.log('onSelect',value,option);}",
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
name: 'onDropdownVisibleChange',
|
|
200
|
+
template:
|
|
201
|
+
"onDropdownVisibleChange(open,${extParams}){\n// 展开下拉菜单的回调\nconsole.log('onDropdownVisibleChange',open);}",
|
|
202
|
+
},
|
|
203
|
+
],
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '自定义下拉菜单',
|
|
4
|
+
schema: {
|
|
5
|
+
componentName: 'CustomSelect',
|
|
6
|
+
props: {
|
|
7
|
+
style: {
|
|
8
|
+
width: 200,
|
|
9
|
+
},
|
|
10
|
+
styleType: 'antd',
|
|
11
|
+
renderItem: {
|
|
12
|
+
type: 'JSSlot',
|
|
13
|
+
params: ['option'],
|
|
14
|
+
},
|
|
15
|
+
value: "A",
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
label: 'A',
|
|
19
|
+
value: 'A',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: 'B',
|
|
23
|
+
value: 'B',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: 'C',
|
|
27
|
+
value: 'C',
|
|
28
|
+
},
|
|
29
|
+
],
|
|
30
|
+
},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
];
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
2
|
+
|
|
3
|
+
const PisellContentMeta: ComponentMetadata = {
|
|
4
|
+
componentName: 'PisellContent',
|
|
5
|
+
title: 'PisellContent',
|
|
6
|
+
docUrl: '',
|
|
7
|
+
screenshot: '',
|
|
8
|
+
devMode: 'proCode',
|
|
9
|
+
npm: {
|
|
10
|
+
package: '@pisell/materials',
|
|
11
|
+
version: '1.0.3',
|
|
12
|
+
exportName: 'PisellContent',
|
|
13
|
+
main: 'src/index.tsx',
|
|
14
|
+
destructuring: true,
|
|
15
|
+
subName: '',
|
|
16
|
+
},
|
|
17
|
+
props: [
|
|
18
|
+
{
|
|
19
|
+
title: {
|
|
20
|
+
label: {
|
|
21
|
+
type: 'i18n',
|
|
22
|
+
'en-US': 'className',
|
|
23
|
+
'zh-CN': '类名',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
name: 'className',
|
|
27
|
+
setter: 'StringSetter',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: {
|
|
31
|
+
label: {
|
|
32
|
+
type: 'i18n',
|
|
33
|
+
'en-US': 'style',
|
|
34
|
+
'zh-CN': '样式',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
name: 'style',
|
|
38
|
+
setter: 'StyleSetter',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
configure: {
|
|
42
|
+
component: {
|
|
43
|
+
isContainer: true,
|
|
44
|
+
},
|
|
45
|
+
supports: {
|
|
46
|
+
style: true,
|
|
47
|
+
className: true,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const snippets: Snippet[] = [
|
|
53
|
+
{
|
|
54
|
+
title: 'PisellContent',
|
|
55
|
+
screenshot: '',
|
|
56
|
+
schema: {
|
|
57
|
+
componentName: 'PisellContent',
|
|
58
|
+
props: {
|
|
59
|
+
style: {
|
|
60
|
+
backgroundColor: '#7dbcea',
|
|
61
|
+
color: '#fff',
|
|
62
|
+
minHeight: 120,
|
|
63
|
+
lineHeight: '120px',
|
|
64
|
+
textAlign: 'center',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
children: [{
|
|
68
|
+
componentName: 'PisellText',
|
|
69
|
+
props: {
|
|
70
|
+
style: {
|
|
71
|
+
color: '#fff',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
children: 'Content',
|
|
75
|
+
},],
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
];
|
|
79
|
+
|
|
80
|
+
export default {
|
|
81
|
+
...PisellContentMeta,
|
|
82
|
+
snippets,
|
|
83
|
+
};
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
2
|
+
|
|
3
|
+
const PisellFooterMeta: ComponentMetadata = {
|
|
4
|
+
componentName: 'PisellFooter',
|
|
5
|
+
title: 'PisellFooter',
|
|
6
|
+
docUrl: '',
|
|
7
|
+
screenshot: '',
|
|
8
|
+
devMode: 'proCode',
|
|
9
|
+
npm: {
|
|
10
|
+
package: '@pisell/materials',
|
|
11
|
+
version: '1.0.3',
|
|
12
|
+
exportName: 'PisellFooter',
|
|
13
|
+
main: 'src/index.tsx',
|
|
14
|
+
destructuring: true,
|
|
15
|
+
subName: '',
|
|
16
|
+
},
|
|
17
|
+
props: [
|
|
18
|
+
{
|
|
19
|
+
title: {
|
|
20
|
+
label: {
|
|
21
|
+
type: 'i18n',
|
|
22
|
+
'en-US': 'className',
|
|
23
|
+
'zh-CN': '类名',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
name: 'className',
|
|
27
|
+
setter: 'StringSetter',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: {
|
|
31
|
+
label: {
|
|
32
|
+
type: 'i18n',
|
|
33
|
+
'en-US': 'style',
|
|
34
|
+
'zh-CN': '样式',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
name: 'style',
|
|
38
|
+
setter: 'StyleSetter',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
configure: {
|
|
42
|
+
component: {
|
|
43
|
+
isContainer: true,
|
|
44
|
+
},
|
|
45
|
+
supports: {
|
|
46
|
+
style: true,
|
|
47
|
+
className: true,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const snippets: Snippet[] = [
|
|
53
|
+
{
|
|
54
|
+
title: 'PisellFooter',
|
|
55
|
+
screenshot: '',
|
|
56
|
+
schema: {
|
|
57
|
+
componentName: 'PisellFooter',
|
|
58
|
+
props: {
|
|
59
|
+
style: {
|
|
60
|
+
backgroundColor: '#1890ff',
|
|
61
|
+
color: '#fff',
|
|
62
|
+
textAlign: 'center',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
children: [{
|
|
66
|
+
componentName: 'PisellText',
|
|
67
|
+
props: {
|
|
68
|
+
style: {
|
|
69
|
+
color: '#fff',
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
children: 'Footer',
|
|
73
|
+
},],
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
];
|
|
77
|
+
|
|
78
|
+
export default {
|
|
79
|
+
...PisellFooterMeta,
|
|
80
|
+
snippets,
|
|
81
|
+
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { ComponentMetadata, Snippet } from '@alilc/lowcode-types';
|
|
2
|
+
|
|
3
|
+
const PisellHeaderMeta: ComponentMetadata = {
|
|
4
|
+
componentName: 'PisellHeader',
|
|
5
|
+
title: 'PisellHeader',
|
|
6
|
+
docUrl: '',
|
|
7
|
+
screenshot: '',
|
|
8
|
+
devMode: 'proCode',
|
|
9
|
+
npm: {
|
|
10
|
+
package: '@pisell/materials',
|
|
11
|
+
version: '1.0.3',
|
|
12
|
+
exportName: 'PisellHeader',
|
|
13
|
+
main: 'src/index.tsx',
|
|
14
|
+
destructuring: true,
|
|
15
|
+
subName: '',
|
|
16
|
+
},
|
|
17
|
+
props: [
|
|
18
|
+
{
|
|
19
|
+
title: {
|
|
20
|
+
label: {
|
|
21
|
+
type: 'i18n',
|
|
22
|
+
'en-US': 'className',
|
|
23
|
+
'zh-CN': '类名',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
name: 'className',
|
|
27
|
+
setter: 'StringSetter',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: {
|
|
31
|
+
label: {
|
|
32
|
+
type: 'i18n',
|
|
33
|
+
'en-US': 'style',
|
|
34
|
+
'zh-CN': '样式',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
name: 'style',
|
|
38
|
+
setter: 'StyleSetter',
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
configure: {
|
|
42
|
+
component: {
|
|
43
|
+
isContainer: true,
|
|
44
|
+
},
|
|
45
|
+
supports: {
|
|
46
|
+
style: true,
|
|
47
|
+
className: true,
|
|
48
|
+
},
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const snippets: Snippet[] = [
|
|
53
|
+
{
|
|
54
|
+
title: 'PisellHeader',
|
|
55
|
+
screenshot: '',
|
|
56
|
+
schema: {
|
|
57
|
+
componentName: 'PisellHeader',
|
|
58
|
+
props: {
|
|
59
|
+
style: {
|
|
60
|
+
backgroundColor: '#1890ff',
|
|
61
|
+
color: '#fff',
|
|
62
|
+
height: 64,
|
|
63
|
+
lineHeight: '64px',
|
|
64
|
+
textAlign: 'center',
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
children: [{
|
|
68
|
+
componentName: 'PisellText',
|
|
69
|
+
props: {
|
|
70
|
+
style: {
|
|
71
|
+
color: '#fff',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
children: 'Header',
|
|
75
|
+
},],
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
];
|
|
79
|
+
|
|
80
|
+
export default {
|
|
81
|
+
...PisellHeaderMeta,
|
|
82
|
+
snippets,
|
|
83
|
+
};
|