@pisell/materials 1.0.160 → 1.0.162
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 +2 -2
- package/build/lowcode/preview.js +7 -7
- package/build/lowcode/render/default/view.js +18 -18
- package/build/lowcode/view.js +17 -17
- package/lowcode/component/meta.ts +244 -0
- package/lowcode/menu/meta.ts +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,244 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ComponentMetadata,
|
|
3
|
+
IPublicModelSettingField,
|
|
4
|
+
Snippet,
|
|
5
|
+
} from "@alilc/lowcode-types";
|
|
6
|
+
|
|
7
|
+
const ComponentMeta: ComponentMetadata = {
|
|
8
|
+
componentName: "Component",
|
|
9
|
+
title: {
|
|
10
|
+
type: "i18n",
|
|
11
|
+
"en-US": "Component",
|
|
12
|
+
"zh-CN": "低代码业务组件",
|
|
13
|
+
},
|
|
14
|
+
docUrl: "",
|
|
15
|
+
screenshot: "",
|
|
16
|
+
devMode: "proCode",
|
|
17
|
+
npm: {
|
|
18
|
+
package: "@pisell/materials",
|
|
19
|
+
version: "1.0.11",
|
|
20
|
+
exportName: "Component",
|
|
21
|
+
main: "src/index.tsx",
|
|
22
|
+
destructuring: true,
|
|
23
|
+
subName: "",
|
|
24
|
+
},
|
|
25
|
+
configure: {
|
|
26
|
+
props: [
|
|
27
|
+
{
|
|
28
|
+
name: "___propTypes___",
|
|
29
|
+
title: "属性定义(propTypes)",
|
|
30
|
+
setter: {
|
|
31
|
+
componentName: "ArraySetter",
|
|
32
|
+
props: {
|
|
33
|
+
itemSetter: {
|
|
34
|
+
componentName: "ObjectSetter",
|
|
35
|
+
props: {
|
|
36
|
+
config: {
|
|
37
|
+
items: [
|
|
38
|
+
{
|
|
39
|
+
name: "title",
|
|
40
|
+
title: "属性标题",
|
|
41
|
+
setter: "StringSetter",
|
|
42
|
+
initialValue: "我是标题",
|
|
43
|
+
supportVariable: true,
|
|
44
|
+
isRequired: true,
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
name: "name",
|
|
48
|
+
title: "属性名称",
|
|
49
|
+
setter: "StringSetter",
|
|
50
|
+
initialValue: "属性名称",
|
|
51
|
+
supportVariable: true,
|
|
52
|
+
isRequired: true,
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
name: "type",
|
|
56
|
+
title: "属性类型",
|
|
57
|
+
setter: {
|
|
58
|
+
componentName: "SelectSetter",
|
|
59
|
+
props: {
|
|
60
|
+
options: [
|
|
61
|
+
{
|
|
62
|
+
title: "文本",
|
|
63
|
+
value: "string",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
title: "布尔",
|
|
67
|
+
value: "boolean",
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
title: "数字",
|
|
71
|
+
value: "number",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
title: "对象",
|
|
75
|
+
value: "object",
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
title: "数组",
|
|
79
|
+
value: "array",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
title: "函数",
|
|
83
|
+
value: "function",
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
title: "元素",
|
|
87
|
+
value: "element",
|
|
88
|
+
},
|
|
89
|
+
],
|
|
90
|
+
placeholder: "请选择",
|
|
91
|
+
},
|
|
92
|
+
initialValue: "string",
|
|
93
|
+
},
|
|
94
|
+
initialValue: "属性类型",
|
|
95
|
+
supportVariable: true,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "setter",
|
|
99
|
+
title: "设置器",
|
|
100
|
+
setter: {
|
|
101
|
+
componentName: "SelectSetter",
|
|
102
|
+
props: {
|
|
103
|
+
options: [
|
|
104
|
+
{
|
|
105
|
+
title: "ArraySetter",
|
|
106
|
+
value: "ArraySetter",
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
title: "BoolSetter",
|
|
110
|
+
value: "BoolSetter",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
title: "ColorSetter",
|
|
114
|
+
value: "ColorSetter",
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
title: "EventSetter",
|
|
118
|
+
value: "EventSetter",
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
title: "FunctionSetter",
|
|
122
|
+
value: "FunctionSetter",
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
title: "IconSetter",
|
|
126
|
+
value: "IconSetter",
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
title: "MixedSetter",
|
|
130
|
+
value: "MixedSetter",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
title: "NumberSetter",
|
|
134
|
+
value: "NumberSetter",
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
title: "RadioGroupSetter",
|
|
138
|
+
value: "RadioGroupSetter",
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
title: "SelectSetter",
|
|
142
|
+
value: "SelectSetter",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
title: "SlotSetter",
|
|
146
|
+
value: "SlotSetter",
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
title: "StringSetter",
|
|
150
|
+
value: "StringSetter",
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
title: "StyleSetter",
|
|
154
|
+
value: "StyleSetter",
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
title: "TextAreaSetter",
|
|
158
|
+
value: "TextAreaSetter",
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
title: "VariableSetter",
|
|
162
|
+
value: "VariableSetter",
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
placeholder: "请选择",
|
|
166
|
+
},
|
|
167
|
+
initialValue: "string",
|
|
168
|
+
},
|
|
169
|
+
supportVariable: true,
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: "display",
|
|
173
|
+
title: "布局",
|
|
174
|
+
setter: {
|
|
175
|
+
componentName: "RadioGroupSetter",
|
|
176
|
+
props: {
|
|
177
|
+
options: [
|
|
178
|
+
{
|
|
179
|
+
title: "块",
|
|
180
|
+
value: "block",
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
title: "行内",
|
|
184
|
+
value: "inline",
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
},
|
|
188
|
+
initialValue: "block",
|
|
189
|
+
},
|
|
190
|
+
initialValue: "block",
|
|
191
|
+
supportVariable: true,
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
initialValue: () => {
|
|
197
|
+
return {
|
|
198
|
+
title: "属性标题",
|
|
199
|
+
name: "属性名称",
|
|
200
|
+
type: "string",
|
|
201
|
+
setter: "StringSetter",
|
|
202
|
+
display: "block",
|
|
203
|
+
};
|
|
204
|
+
},
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
},
|
|
208
|
+
extraProps: {
|
|
209
|
+
getValue: (target: IPublicModelSettingField, value: any) => {
|
|
210
|
+
// console.log(target, target.getProps(), value, "getValue");
|
|
211
|
+
return value
|
|
212
|
+
},
|
|
213
|
+
setValue: (target: IPublicModelSettingField, value: any) => {
|
|
214
|
+
// console.log(target, value, "setValue");
|
|
215
|
+
return value;
|
|
216
|
+
},
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
],
|
|
220
|
+
supports: {
|
|
221
|
+
style: true,
|
|
222
|
+
},
|
|
223
|
+
component: {
|
|
224
|
+
isContainer: true,
|
|
225
|
+
// isPage: true,
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
const snippets: Snippet[] = [
|
|
231
|
+
{
|
|
232
|
+
title: "Component",
|
|
233
|
+
screenshot: "",
|
|
234
|
+
schema: {
|
|
235
|
+
componentName: "Component",
|
|
236
|
+
props: {},
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
];
|
|
240
|
+
|
|
241
|
+
export default {
|
|
242
|
+
...ComponentMeta,
|
|
243
|
+
snippets,
|
|
244
|
+
};
|
package/lowcode/menu/meta.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.162",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"react-infinite-scroll-component": "^6.1.0",
|
|
59
59
|
"@pisell/utils": "1.0.21",
|
|
60
60
|
"@pisell/icon": "0.0.8",
|
|
61
|
-
"@pisell/date-picker": "1.0.
|
|
61
|
+
"@pisell/date-picker": "1.0.56"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"react": "^18.0.0",
|