@pisell/materials 1.0.619 → 1.0.621
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 +3 -3
- package/build/lowcode/preview.js +142 -142
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +23 -23
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +25 -25
- package/es/components/dataSourceComponents/fields/index.d.ts +16 -16
- package/es/components/pisellAppCard/PisellAppCard.d.ts +5 -0
- package/es/components/pisellAppCard/PisellAppCard.js +75 -0
- package/es/components/pisellAppCard/PisellAppCard.less +49 -0
- package/es/components/pisellAppCard/index.d.ts +3 -0
- package/es/components/pisellAppCard/index.js +2 -0
- package/es/components/pisellAppCard/types.d.ts +31 -0
- package/es/components/pisellAppCard/types.js +1 -0
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -1
- package/lib/components/dataSourceComponents/fields/index.d.ts +16 -16
- package/lib/components/pisellAppCard/PisellAppCard.d.ts +5 -0
- package/lib/components/pisellAppCard/PisellAppCard.js +102 -0
- package/lib/components/pisellAppCard/PisellAppCard.less +49 -0
- package/lib/components/pisellAppCard/index.d.ts +3 -0
- package/lib/components/pisellAppCard/index.js +36 -0
- package/lib/components/pisellAppCard/types.d.ts +31 -0
- package/lib/components/pisellAppCard/types.js +17 -0
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +3 -0
- package/lowcode/pisell-app-card/meta.ts +275 -0
- package/package.json +3 -3
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import {
|
|
2
|
+
IPublicTypeComponentMetadata,
|
|
3
|
+
IPublicTypeSnippet,
|
|
4
|
+
} from '@alilc/lowcode-types';
|
|
5
|
+
|
|
6
|
+
const PisellAppCardMeta: IPublicTypeComponentMetadata = {
|
|
7
|
+
componentName: 'PisellAppCard',
|
|
8
|
+
title: 'PisellAppCard',
|
|
9
|
+
docUrl: '',
|
|
10
|
+
screenshot: '',
|
|
11
|
+
devMode: 'proCode',
|
|
12
|
+
npm: {
|
|
13
|
+
package: '@pisell/materials',
|
|
14
|
+
version: '1.0.3',
|
|
15
|
+
exportName: 'PisellAppCard',
|
|
16
|
+
main: 'src/index.tsx',
|
|
17
|
+
destructuring: true,
|
|
18
|
+
subName: '',
|
|
19
|
+
},
|
|
20
|
+
configure: {
|
|
21
|
+
props: [
|
|
22
|
+
{
|
|
23
|
+
name: 'avatar',
|
|
24
|
+
title: '头像',
|
|
25
|
+
setter: 'StringSetter',
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
name: 'tags',
|
|
29
|
+
title: '标签',
|
|
30
|
+
setter: {
|
|
31
|
+
componentName: 'ArraySetter',
|
|
32
|
+
props: {
|
|
33
|
+
itemSetter: {
|
|
34
|
+
componentName: 'ObjectSetter',
|
|
35
|
+
props: {
|
|
36
|
+
config: {
|
|
37
|
+
items: [
|
|
38
|
+
{
|
|
39
|
+
name: 'label',
|
|
40
|
+
title: '标签文本',
|
|
41
|
+
setter: 'StringSetter',
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
name: 'type',
|
|
45
|
+
title: { label: '展示类型' },
|
|
46
|
+
setter: {
|
|
47
|
+
componentName: 'RadioGroupSetter',
|
|
48
|
+
props: {
|
|
49
|
+
options: [
|
|
50
|
+
{
|
|
51
|
+
title: '填充',
|
|
52
|
+
value: 'pill_color',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
title: '边框',
|
|
56
|
+
value: 'pill_outline',
|
|
57
|
+
},
|
|
58
|
+
],
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
propType: {
|
|
62
|
+
type: 'oneOf',
|
|
63
|
+
value: ['pill_color', 'pill_outline'],
|
|
64
|
+
},
|
|
65
|
+
defaultValue: 'pill_color',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
name: 'color',
|
|
69
|
+
title: { label: '颜色' },
|
|
70
|
+
setter: [
|
|
71
|
+
{
|
|
72
|
+
componentName: 'RadioGroupSetter',
|
|
73
|
+
props: {
|
|
74
|
+
options: [
|
|
75
|
+
{
|
|
76
|
+
title: 'Success',
|
|
77
|
+
value: 'success',
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
title: 'Warning',
|
|
81
|
+
value: 'warning',
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
title: 'Error',
|
|
85
|
+
value: 'error',
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
title: 'Gray',
|
|
89
|
+
value: 'gray',
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
'ColorSetter',
|
|
95
|
+
'StringSetter',
|
|
96
|
+
],
|
|
97
|
+
propType: {
|
|
98
|
+
type: 'oneOf',
|
|
99
|
+
value: ['success', 'warning', 'error', 'gray'],
|
|
100
|
+
},
|
|
101
|
+
defaultValue: 'success',
|
|
102
|
+
},
|
|
103
|
+
],
|
|
104
|
+
},
|
|
105
|
+
},
|
|
106
|
+
initialValue: () => {
|
|
107
|
+
return {
|
|
108
|
+
label: '标签1',
|
|
109
|
+
type: 'pill_color',
|
|
110
|
+
color: 'success',
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'title',
|
|
119
|
+
title: '标题',
|
|
120
|
+
setter: 'PisellI18nSetter',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: 'description',
|
|
124
|
+
title: '描述',
|
|
125
|
+
setter: 'PisellI18nSetter',
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
name: 'bottomButtons',
|
|
129
|
+
title: '底部按钮',
|
|
130
|
+
setter: {
|
|
131
|
+
componentName: 'ArraySetter',
|
|
132
|
+
props: {
|
|
133
|
+
itemSetter: {
|
|
134
|
+
componentName: 'ObjectSetter',
|
|
135
|
+
props: {
|
|
136
|
+
config: {
|
|
137
|
+
items: [
|
|
138
|
+
{
|
|
139
|
+
name: 'label',
|
|
140
|
+
title: '按钮文本',
|
|
141
|
+
setter: 'PisellI18nSetter',
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: 'type',
|
|
145
|
+
title: '按钮类型',
|
|
146
|
+
setter: {
|
|
147
|
+
componentName: 'SelectSetter',
|
|
148
|
+
props: {
|
|
149
|
+
options: [
|
|
150
|
+
{
|
|
151
|
+
title: 'primary button',
|
|
152
|
+
value: 'primary',
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
title: 'default button',
|
|
156
|
+
value: 'default',
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
title: 'dashed button',
|
|
160
|
+
value: 'dashed',
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
title: 'danger button',
|
|
164
|
+
value: 'danger',
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
title: 'link button',
|
|
168
|
+
value: 'link',
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
title: 'text button',
|
|
172
|
+
value: 'text',
|
|
173
|
+
},
|
|
174
|
+
],
|
|
175
|
+
},
|
|
176
|
+
},
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
name: 'onClick',
|
|
180
|
+
title: '点击事件',
|
|
181
|
+
setter: 'FunctionSetter',
|
|
182
|
+
},
|
|
183
|
+
],
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
initialValue: () => {
|
|
187
|
+
return {
|
|
188
|
+
label: '查看详情',
|
|
189
|
+
};
|
|
190
|
+
},
|
|
191
|
+
},
|
|
192
|
+
},
|
|
193
|
+
},
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: 'moreActions',
|
|
197
|
+
title: '更多操作',
|
|
198
|
+
setter: {
|
|
199
|
+
componentName: 'ArraySetter',
|
|
200
|
+
props: {
|
|
201
|
+
itemSetter: {
|
|
202
|
+
componentName: 'ObjectSetter',
|
|
203
|
+
props: {
|
|
204
|
+
config: {
|
|
205
|
+
items: [
|
|
206
|
+
{
|
|
207
|
+
name: 'label',
|
|
208
|
+
title: '操作文本',
|
|
209
|
+
setter: 'PisellI18nSetter',
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
name: 'onClick',
|
|
213
|
+
title: '点击事件',
|
|
214
|
+
setter: 'FunctionSetter',
|
|
215
|
+
},
|
|
216
|
+
],
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
initialValue: () => {
|
|
220
|
+
return {
|
|
221
|
+
label: '查看详情',
|
|
222
|
+
};
|
|
223
|
+
},
|
|
224
|
+
},
|
|
225
|
+
},
|
|
226
|
+
},
|
|
227
|
+
},
|
|
228
|
+
],
|
|
229
|
+
component: {
|
|
230
|
+
isContainer: true,
|
|
231
|
+
},
|
|
232
|
+
supports: {
|
|
233
|
+
style: true,
|
|
234
|
+
className: true,
|
|
235
|
+
},
|
|
236
|
+
},
|
|
237
|
+
};
|
|
238
|
+
|
|
239
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
240
|
+
{
|
|
241
|
+
title: 'PisellAppCard',
|
|
242
|
+
screenshot: '',
|
|
243
|
+
schema: {
|
|
244
|
+
componentName: 'PisellAppCard',
|
|
245
|
+
props: {
|
|
246
|
+
title: '应用名称',
|
|
247
|
+
description: '这是一个示例应用描述',
|
|
248
|
+
avatar:
|
|
249
|
+
'https://pisell2-dev.s3.cn-north-1.amazonaws.com.cn/media/tenant-0/2025/01/21/01jj3913k6jdxt1qw6n1rxjyn5.png',
|
|
250
|
+
tags: [
|
|
251
|
+
{
|
|
252
|
+
label: '标签1',
|
|
253
|
+
type: 'pill_color',
|
|
254
|
+
color: 'success',
|
|
255
|
+
},
|
|
256
|
+
],
|
|
257
|
+
moreActions: [
|
|
258
|
+
{
|
|
259
|
+
label: '查看详情',
|
|
260
|
+
},
|
|
261
|
+
],
|
|
262
|
+
bottomButtons: [
|
|
263
|
+
{
|
|
264
|
+
label: '查看详情',
|
|
265
|
+
},
|
|
266
|
+
],
|
|
267
|
+
},
|
|
268
|
+
},
|
|
269
|
+
},
|
|
270
|
+
];
|
|
271
|
+
|
|
272
|
+
export default {
|
|
273
|
+
...PisellAppCardMeta,
|
|
274
|
+
snippets,
|
|
275
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.621",
|
|
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",
|