@pisell/materials 1.0.443 → 1.0.445
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.css +1 -1
- package/build/lowcode/render/default/view.js +12 -12
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +12 -12
- package/es/components/Pagination/index.d.ts +1 -1
- package/es/components/button/index.js +2 -0
- package/es/components/buttonGroupEdit/index.d.ts +8 -0
- package/es/components/buttonGroupEdit/index.js +411 -0
- package/es/components/buttonGroupPreview/index.d.ts +20 -0
- package/es/components/buttonGroupPreview/index.js +81 -0
- package/es/components/cardPro/index.d.ts +4 -0
- package/es/components/cardPro/index.js +66 -0
- package/es/components/cardPro/index.less +58 -0
- package/es/components/section-footers/index.d.ts +3 -0
- package/es/components/section-footers/index.js +4 -0
- package/es/components/tabs/index.js +4 -7
- package/es/index.d.ts +4 -0
- package/es/index.js +4 -0
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +4 -1
- package/lib/components/Pagination/index.d.ts +1 -1
- package/lib/components/button/index.js +2 -0
- package/lib/components/buttonGroupEdit/index.d.ts +8 -0
- package/lib/components/buttonGroupEdit/index.js +234 -0
- package/lib/components/buttonGroupPreview/index.d.ts +20 -0
- package/lib/components/buttonGroupPreview/index.js +65 -0
- package/lib/components/cardPro/index.d.ts +4 -0
- package/lib/components/cardPro/index.js +60 -0
- package/lib/components/cardPro/index.less +58 -0
- package/lib/components/section-footers/index.d.ts +3 -0
- package/lib/components/{table/Actions/component/ExportImport/utils → section-footers}/index.js +8 -11
- package/lib/components/tabs/index.js +2 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.js +12 -0
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.js +7 -2
- package/lowcode/badge/meta.ts +2 -2
- package/lowcode/button/meta.ts +2 -6
- package/lowcode/button-group/meta.ts +201 -0
- package/lowcode/button-group/snippets.ts +68 -0
- package/lowcode/button-group-edit/meta.ts +32 -0
- package/lowcode/button-group-edit/snippets.ts +98 -0
- package/lowcode/button-group-preview/meta.ts +55 -0
- package/lowcode/button-group-preview/snippets.ts +57 -0
- package/lowcode/card-pro/meta.ts +338 -0
- package/lowcode/card-pro/snippe.ts +39 -0
- package/lowcode/section-footers/meta.ts +22 -0
- package/lowcode/section-footers/snippe.ts +8 -0
- package/lowcode/statistic/meta.ts +1 -1
- package/lowcode/tabs/meta.ts +0 -134
- package/lowcode/timeline/meta.ts +21 -6
- package/lowcode/timeline/snippets.ts +10 -2
- package/package.json +1 -5
- package/es/components/table/Actions/component/ExportImport/utils/index.d.ts +0 -9
- package/es/components/table/Actions/component/ExportImport/utils/index.js +0 -11
- package/lib/components/table/Actions/component/ExportImport/utils/index.d.ts +0 -9
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
"title": "按钮组-渲染",
|
|
4
|
+
"screenshot": "",
|
|
5
|
+
"schema": {
|
|
6
|
+
"componentName": "ButtonGroupPreview",
|
|
7
|
+
"props": {
|
|
8
|
+
buttonGroupList: [
|
|
9
|
+
[{
|
|
10
|
+
"id": "1-1",
|
|
11
|
+
"children": "按钮1",
|
|
12
|
+
"buttonProps": {
|
|
13
|
+
"id": "primary",
|
|
14
|
+
"type": "default",
|
|
15
|
+
}
|
|
16
|
+
}, {
|
|
17
|
+
"id": "1-2",
|
|
18
|
+
"children": "2",
|
|
19
|
+
"isMore": true,
|
|
20
|
+
"menuData": [{
|
|
21
|
+
"label": "下拉菜单1",
|
|
22
|
+
"key": "下拉菜单1"
|
|
23
|
+
}, {
|
|
24
|
+
"label": "下拉菜单2",
|
|
25
|
+
"key": "下拉菜单2"
|
|
26
|
+
}]
|
|
27
|
+
}],
|
|
28
|
+
[{
|
|
29
|
+
"id": "2-1",
|
|
30
|
+
"children": "2",
|
|
31
|
+
"menuData": [{
|
|
32
|
+
"label": "下拉菜单1",
|
|
33
|
+
"key": "下拉菜单1"
|
|
34
|
+
}, {
|
|
35
|
+
"label": "下拉菜单2",
|
|
36
|
+
"key": "下拉菜单2"
|
|
37
|
+
}]
|
|
38
|
+
}, {
|
|
39
|
+
"id": "2-2",
|
|
40
|
+
"children": "jkasjdlkas",
|
|
41
|
+
"buttonProps": {
|
|
42
|
+
"id": "primary",
|
|
43
|
+
"type": "default",
|
|
44
|
+
}
|
|
45
|
+
}]
|
|
46
|
+
],
|
|
47
|
+
buttonConfig: {
|
|
48
|
+
"1-1": {
|
|
49
|
+
"children": "2222",
|
|
50
|
+
"buttonProps": {
|
|
51
|
+
"type": "primary"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}]
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
import { uuid } from "../_utils/utils";
|
|
2
|
+
import snippets from "./snippe";
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
snippets,
|
|
6
|
+
componentName: "CardPro",
|
|
7
|
+
title: "卡片",
|
|
8
|
+
category: "通用",
|
|
9
|
+
docUrl: "",
|
|
10
|
+
screenshot: "",
|
|
11
|
+
devMode: "proCode",
|
|
12
|
+
npm: {
|
|
13
|
+
package: "@pisell/materials",
|
|
14
|
+
version: "1.0.1",
|
|
15
|
+
exportName: "CardPro",
|
|
16
|
+
main: "src/index.tsx",
|
|
17
|
+
destructuring: true,
|
|
18
|
+
subName: "",
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
props: [
|
|
23
|
+
{
|
|
24
|
+
name: "badge",
|
|
25
|
+
title: {
|
|
26
|
+
label: "启用徽标区域",
|
|
27
|
+
tip: "启用徽标区域"
|
|
28
|
+
},
|
|
29
|
+
propType: "node",
|
|
30
|
+
setter: {
|
|
31
|
+
componentName: "SlotSetter",
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
name: "objectFit",
|
|
36
|
+
title: {
|
|
37
|
+
label: "填充类型",
|
|
38
|
+
tip: "媒体区域填充类型",
|
|
39
|
+
},
|
|
40
|
+
propType: { type: "oneOf", value: ["large", "middle", "small"] },
|
|
41
|
+
setter: [
|
|
42
|
+
{
|
|
43
|
+
componentName: "RadioGroupSetter",
|
|
44
|
+
props: {
|
|
45
|
+
options: [
|
|
46
|
+
{
|
|
47
|
+
title: "fill",
|
|
48
|
+
value: "fill",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
title: "contain",
|
|
52
|
+
value: "contain",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
title: "cover",
|
|
56
|
+
value: "cover",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
title: "none",
|
|
60
|
+
value: "none",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
title: "scale-down",
|
|
64
|
+
value: "scale-down",
|
|
65
|
+
},
|
|
66
|
+
],
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
"VariableSetter",
|
|
70
|
+
],
|
|
71
|
+
setValue: (target, value) => {
|
|
72
|
+
// 当属性值更新时,手动触发逻辑
|
|
73
|
+
let coverValue = target.getProps().getPropValue("cover") || {};
|
|
74
|
+
coverValue.value[0].props.style.objectFit = value
|
|
75
|
+
target.getProps().setPropValue("cover", coverValue);
|
|
76
|
+
},
|
|
77
|
+
defaultValue: "fill",
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
name: "contentHeight",
|
|
81
|
+
title: { label: "内容区域高度", tip: "输入内容区域高度 超出高度出现滚动条" },
|
|
82
|
+
propType: "number",
|
|
83
|
+
setter: "NumberSetter",
|
|
84
|
+
defaultValue: 40,
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
name: "coverHeight",
|
|
88
|
+
title: { label: "媒体区域高度", tip: "输入媒体区域高度" },
|
|
89
|
+
propType: "number",
|
|
90
|
+
setter: "NumberSetter",
|
|
91
|
+
defaultValue: 100,
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
name: "cover",
|
|
95
|
+
title: {
|
|
96
|
+
label: "启用媒体区域"
|
|
97
|
+
},
|
|
98
|
+
propType: "node",
|
|
99
|
+
setter: {
|
|
100
|
+
componentName: "SlotSetter",
|
|
101
|
+
initialValue: {
|
|
102
|
+
type: "JSSlot",
|
|
103
|
+
value: [
|
|
104
|
+
{
|
|
105
|
+
componentName: "Image",
|
|
106
|
+
props: {
|
|
107
|
+
src: "https://zos.alipayobjects.com/rmsportal/jkjgkEfvpUPVyRjUImniVslZfWPnJuuZ.png",
|
|
108
|
+
width: '100%',
|
|
109
|
+
height: '100%',
|
|
110
|
+
style: {
|
|
111
|
+
objectFit: 'fill'
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
},
|
|
115
|
+
],
|
|
116
|
+
},
|
|
117
|
+
},
|
|
118
|
+
},
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
{
|
|
122
|
+
name: "isShowHead",
|
|
123
|
+
title: { label: "显示头部区域", tip: "是否显示头部区域" },
|
|
124
|
+
propType: "bool",
|
|
125
|
+
setter: "BoolSetter",
|
|
126
|
+
defaultValue: true,
|
|
127
|
+
},
|
|
128
|
+
|
|
129
|
+
{
|
|
130
|
+
name: "isShowFooter",
|
|
131
|
+
title: { label: "显示底部区域", tip: "是否显示底部区域" },
|
|
132
|
+
propType: "bool",
|
|
133
|
+
setter: "BoolSetter",
|
|
134
|
+
defaultValue: true,
|
|
135
|
+
},
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
{
|
|
139
|
+
name: "head",
|
|
140
|
+
title: {
|
|
141
|
+
label: "头部区域",
|
|
142
|
+
},
|
|
143
|
+
condition: (target) => {
|
|
144
|
+
return target.getProps().getPropValue('isShowHead')
|
|
145
|
+
},
|
|
146
|
+
display: 'accordion',
|
|
147
|
+
type: "group",
|
|
148
|
+
items: [{
|
|
149
|
+
name: "headTitle",
|
|
150
|
+
title: {
|
|
151
|
+
label: {
|
|
152
|
+
type: "i18n",
|
|
153
|
+
zh_CN: "主标题",
|
|
154
|
+
en_US: "Main Title",
|
|
155
|
+
},
|
|
156
|
+
tip: {
|
|
157
|
+
type: 'i18n',
|
|
158
|
+
zh_CN: '主标题',
|
|
159
|
+
en_US: 'Please enter the main title'
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
propType: "string",
|
|
163
|
+
setter: "StringSetter",
|
|
164
|
+
defaultValue: "这是主标题"
|
|
165
|
+
}, {
|
|
166
|
+
name: "headSubTitle",
|
|
167
|
+
title: {
|
|
168
|
+
label: "副标题",
|
|
169
|
+
placeholder: "请输入副标题"
|
|
170
|
+
},
|
|
171
|
+
propType: "string",
|
|
172
|
+
setter: "StringSetter",
|
|
173
|
+
defaultValue: "这是副标题"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: "extra",
|
|
177
|
+
title: { label: "头部操作", tip: "头部操作" },
|
|
178
|
+
propType: { type: "oneOfType", value: ["string", "node"] },
|
|
179
|
+
setter: [
|
|
180
|
+
{
|
|
181
|
+
componentName: "SlotSetter",
|
|
182
|
+
initialValue: {
|
|
183
|
+
type: "JSSlot",
|
|
184
|
+
value: [],
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
"VariableSetter",
|
|
188
|
+
],
|
|
189
|
+
},
|
|
190
|
+
|
|
191
|
+
]
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
name: "footer",
|
|
195
|
+
title: {
|
|
196
|
+
label: "底部区域",
|
|
197
|
+
},
|
|
198
|
+
condition: (target) => {
|
|
199
|
+
return target.getProps().getPropValue('isShowFooter')
|
|
200
|
+
},
|
|
201
|
+
display: 'accordion',
|
|
202
|
+
type: "group",
|
|
203
|
+
items: [
|
|
204
|
+
{
|
|
205
|
+
name: "actionButtons",
|
|
206
|
+
title: {
|
|
207
|
+
label: "底部按钮",
|
|
208
|
+
},
|
|
209
|
+
setter: {
|
|
210
|
+
componentName: "ArraySetter",
|
|
211
|
+
props: {
|
|
212
|
+
itemSetter: {
|
|
213
|
+
componentName: "ObjectSetter",
|
|
214
|
+
props: {
|
|
215
|
+
config: {
|
|
216
|
+
items: [
|
|
217
|
+
{
|
|
218
|
+
name: "key",
|
|
219
|
+
title: "key",
|
|
220
|
+
setter: "StringSetter",
|
|
221
|
+
initialValue: (val) => val || uuid(),
|
|
222
|
+
supportVariable: true,
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
name: "button",
|
|
226
|
+
title: {
|
|
227
|
+
label: {
|
|
228
|
+
type: "i18n",
|
|
229
|
+
"en-US": "button",
|
|
230
|
+
"zh-CN": "按钮",
|
|
231
|
+
},
|
|
232
|
+
},
|
|
233
|
+
propType: "node",
|
|
234
|
+
setter: {
|
|
235
|
+
componentName: "SlotSetter",
|
|
236
|
+
initialValue: {
|
|
237
|
+
type: "JSSlot",
|
|
238
|
+
value: [
|
|
239
|
+
{
|
|
240
|
+
componentName: "Button",
|
|
241
|
+
props: {
|
|
242
|
+
type: "primary",
|
|
243
|
+
children: "kik",
|
|
244
|
+
},
|
|
245
|
+
},
|
|
246
|
+
],
|
|
247
|
+
},
|
|
248
|
+
},
|
|
249
|
+
},
|
|
250
|
+
],
|
|
251
|
+
},
|
|
252
|
+
},
|
|
253
|
+
initialValue: () => {
|
|
254
|
+
return {
|
|
255
|
+
key: uuid(),
|
|
256
|
+
button: {
|
|
257
|
+
type: "JSSlot",
|
|
258
|
+
value: [
|
|
259
|
+
{
|
|
260
|
+
componentName: "Button",
|
|
261
|
+
props: {
|
|
262
|
+
type: "primary",
|
|
263
|
+
children: "按钮"
|
|
264
|
+
}
|
|
265
|
+
},
|
|
266
|
+
],
|
|
267
|
+
},
|
|
268
|
+
};
|
|
269
|
+
},
|
|
270
|
+
},
|
|
271
|
+
},
|
|
272
|
+
},
|
|
273
|
+
},
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
{
|
|
278
|
+
name: "fixedFooter",
|
|
279
|
+
title: {
|
|
280
|
+
label: "底部固定"
|
|
281
|
+
},
|
|
282
|
+
propType: "bool",
|
|
283
|
+
setter: "BoolSetter",
|
|
284
|
+
defaultValue: true,
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
name: "buttonPosition",
|
|
288
|
+
title: {
|
|
289
|
+
label: "按钮位置",
|
|
290
|
+
tip: "选择按钮排列位置",
|
|
291
|
+
},
|
|
292
|
+
propType: { type: "oneOf", value: ["large", "middle", "small"] },
|
|
293
|
+
setter: [
|
|
294
|
+
{
|
|
295
|
+
componentName: "RadioGroupSetter",
|
|
296
|
+
props: {
|
|
297
|
+
options: [
|
|
298
|
+
{
|
|
299
|
+
title: "居左",
|
|
300
|
+
value: "start",
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
title: "居中",
|
|
304
|
+
value: "center",
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
title: "居右",
|
|
308
|
+
value: "end",
|
|
309
|
+
},
|
|
310
|
+
],
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
|
+
"VariableSetter",
|
|
314
|
+
],
|
|
315
|
+
defaultValue: "center",
|
|
316
|
+
},
|
|
317
|
+
|
|
318
|
+
]
|
|
319
|
+
}
|
|
320
|
+
],
|
|
321
|
+
|
|
322
|
+
configure: {
|
|
323
|
+
component: {
|
|
324
|
+
isContainer: true
|
|
325
|
+
},
|
|
326
|
+
isExeng: true,
|
|
327
|
+
supports: {
|
|
328
|
+
style: true,
|
|
329
|
+
events: [
|
|
330
|
+
{
|
|
331
|
+
name: "onClick",
|
|
332
|
+
template:
|
|
333
|
+
"onClick(event,${extParams}){\n// 点击按钮时的回调\nconsole.log('onClick', event);}",
|
|
334
|
+
},
|
|
335
|
+
],
|
|
336
|
+
},
|
|
337
|
+
}
|
|
338
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { uuid } from "../_utils/utils";
|
|
2
|
+
|
|
3
|
+
export default [{
|
|
4
|
+
componentName: 'CardPro',
|
|
5
|
+
title: 'CardPro',
|
|
6
|
+
schema: {
|
|
7
|
+
componentName: 'CardPro',
|
|
8
|
+
props: {
|
|
9
|
+
|
|
10
|
+
actionButtons: [
|
|
11
|
+
{
|
|
12
|
+
key: uuid(),
|
|
13
|
+
button: {
|
|
14
|
+
type: "JSSlot",
|
|
15
|
+
value: {
|
|
16
|
+
componentName: "Button",
|
|
17
|
+
props: {
|
|
18
|
+
children: "主按钮",
|
|
19
|
+
type: "primary"
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
}, {
|
|
24
|
+
key: uuid(),
|
|
25
|
+
button: {
|
|
26
|
+
type: "JSSlot",
|
|
27
|
+
value: {
|
|
28
|
+
componentName: "Button",
|
|
29
|
+
props: {
|
|
30
|
+
children: "副按钮",
|
|
31
|
+
type: "default"
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}]
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import snippets from "./snippe";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: "SectionFooters",
|
|
6
|
+
title: "底部内容区块",
|
|
7
|
+
category: "通用",
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "SectionFooters",
|
|
15
|
+
main: "src/index.tsx",
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: "",
|
|
18
|
+
},
|
|
19
|
+
props: [{
|
|
20
|
+
|
|
21
|
+
}]
|
|
22
|
+
}
|
package/lowcode/tabs/meta.ts
CHANGED
|
@@ -160,140 +160,6 @@ export default {
|
|
|
160
160
|
},
|
|
161
161
|
},
|
|
162
162
|
},
|
|
163
|
-
// {
|
|
164
|
-
// name: 'tabs',
|
|
165
|
-
// title: '标签项',
|
|
166
|
-
// setter: {
|
|
167
|
-
// componentName: 'ArraySetter',
|
|
168
|
-
// props: {
|
|
169
|
-
// itemSetter: {
|
|
170
|
-
// componentName: 'ObjectSetter',
|
|
171
|
-
// props: {
|
|
172
|
-
// config: {
|
|
173
|
-
// items: [
|
|
174
|
-
// {
|
|
175
|
-
// name: 'key',
|
|
176
|
-
// title: 'key',
|
|
177
|
-
// setter: 'StringSetter',
|
|
178
|
-
// initialValue: (val) => val || uuid(),
|
|
179
|
-
// supportVariable: true
|
|
180
|
-
// },
|
|
181
|
-
// {
|
|
182
|
-
// name: 'tab',
|
|
183
|
-
// title: '标题',
|
|
184
|
-
// setter: 'StringSetter',
|
|
185
|
-
// initialValue: '标签项',
|
|
186
|
-
// supportVariable: true
|
|
187
|
-
// },
|
|
188
|
-
// // {
|
|
189
|
-
// // name: 'closeable',
|
|
190
|
-
// // title: '是否可删除',
|
|
191
|
-
// // condition(target) {
|
|
192
|
-
// // return target.getProps().getPropValue('type') === 'editable-card';
|
|
193
|
-
// // },
|
|
194
|
-
// // setter: 'BoolSetter',
|
|
195
|
-
// // initialValue: true,
|
|
196
|
-
// // },
|
|
197
|
-
// {
|
|
198
|
-
// name: 'disabled',
|
|
199
|
-
// title: '禁用',
|
|
200
|
-
// setter: 'BoolSetter',
|
|
201
|
-
// initialValue: false,
|
|
202
|
-
// supportVariable: true
|
|
203
|
-
// },
|
|
204
|
-
// {
|
|
205
|
-
// name: 'forceRender',
|
|
206
|
-
// title: '隐藏时保留',
|
|
207
|
-
// propType: 'bool',
|
|
208
|
-
// setter: 'BoolSetter',
|
|
209
|
-
// initialValue: false,
|
|
210
|
-
// supportVariable: true
|
|
211
|
-
// },
|
|
212
|
-
// ],
|
|
213
|
-
// },
|
|
214
|
-
// },
|
|
215
|
-
// initialValue: () => {
|
|
216
|
-
// return {
|
|
217
|
-
// key: uuid(),
|
|
218
|
-
// tab: '标签项',
|
|
219
|
-
// closeable: true,
|
|
220
|
-
// disabled: false,
|
|
221
|
-
// forceRender: false,
|
|
222
|
-
// };
|
|
223
|
-
// },
|
|
224
|
-
// },
|
|
225
|
-
// },
|
|
226
|
-
// },
|
|
227
|
-
// extraProps: {
|
|
228
|
-
// getValue(target, fieldValue) {
|
|
229
|
-
// const map = target.node.children.map((child) => {
|
|
230
|
-
// const key = child.getPropValue('key') ? String(child.getPropValue('key')) : child.id;
|
|
231
|
-
// return {
|
|
232
|
-
// key,
|
|
233
|
-
// tab: child.getPropValue('tab'),
|
|
234
|
-
// closeable: child.getPropValue('closeable'),
|
|
235
|
-
// disabled: child.getPropValue('disabled'),
|
|
236
|
-
// forceRender: child.getPropValue('forceRender'),
|
|
237
|
-
// };
|
|
238
|
-
// });
|
|
239
|
-
// return map;
|
|
240
|
-
// },
|
|
241
|
-
// setValue(target, value) {
|
|
242
|
-
// const { node } = target;
|
|
243
|
-
// const map = {};
|
|
244
|
-
|
|
245
|
-
// if (!Array.isArray(value)) {
|
|
246
|
-
// value = [];
|
|
247
|
-
// }
|
|
248
|
-
// value.forEach((item) => {
|
|
249
|
-
// const tabItem = Object.assign({}, item);
|
|
250
|
-
// map[item.key] = tabItem;
|
|
251
|
-
// });
|
|
252
|
-
|
|
253
|
-
// node.children.mergeChildren(
|
|
254
|
-
// (child) => {
|
|
255
|
-
// const key = String(child.getPropValue('key'));
|
|
256
|
-
// if (Object.hasOwnProperty.call(map, key)) {
|
|
257
|
-
// child.setPropValue('tab', map[key].tab);
|
|
258
|
-
// child.setPropValue('closeable', map[key].closeable);
|
|
259
|
-
// child.setPropValue('disabled', map[key].disabled);
|
|
260
|
-
// child.setPropValue('forceRender', map[key].forceRender);
|
|
261
|
-
// delete map[key];
|
|
262
|
-
// return false;
|
|
263
|
-
// }
|
|
264
|
-
// return true;
|
|
265
|
-
// },
|
|
266
|
-
// () => {
|
|
267
|
-
// const items = [];
|
|
268
|
-
// for (const key in map) {
|
|
269
|
-
// if (Object.hasOwnProperty.call(map, key)) {
|
|
270
|
-
// items.push({
|
|
271
|
-
// componentName: 'Tabs.TabPane',
|
|
272
|
-
// props: map[key],
|
|
273
|
-
// });
|
|
274
|
-
// }
|
|
275
|
-
// }
|
|
276
|
-
// return items;
|
|
277
|
-
// },
|
|
278
|
-
// (child1, child2) => {
|
|
279
|
-
// const a = value.findIndex(
|
|
280
|
-
// (item) => String(item.key) === String(child1.getPropValue('key')),
|
|
281
|
-
// );
|
|
282
|
-
// const b = value.findIndex(
|
|
283
|
-
// (item) => String(item.key) === String(child2.getPropValue('key')),
|
|
284
|
-
// );
|
|
285
|
-
// return a - b;
|
|
286
|
-
// },
|
|
287
|
-
// );
|
|
288
|
-
// },
|
|
289
|
-
// },
|
|
290
|
-
// },
|
|
291
|
-
// {
|
|
292
|
-
|
|
293
|
-
// name: 'addIcon',
|
|
294
|
-
// title: { label: '自定义添加按钮', tip: '自定义添加按钮' },
|
|
295
|
-
// propType: 'node',
|
|
296
|
-
// },
|
|
297
163
|
{
|
|
298
164
|
name: "animated",
|
|
299
165
|
title: {
|
package/lowcode/timeline/meta.ts
CHANGED
|
@@ -36,6 +36,17 @@ export default {
|
|
|
36
36
|
setter: 'StringSetter',
|
|
37
37
|
initialValue: (val) => val || uuid(),
|
|
38
38
|
},
|
|
39
|
+
{
|
|
40
|
+
name: "children",
|
|
41
|
+
title: "内容",
|
|
42
|
+
setter: {
|
|
43
|
+
componentName: "SlotSetter",
|
|
44
|
+
initialValue: {
|
|
45
|
+
type: "JSSlot",
|
|
46
|
+
value: [],
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
},
|
|
39
50
|
{
|
|
40
51
|
name: 'color',
|
|
41
52
|
title: '圆圈颜色',
|
|
@@ -46,11 +57,11 @@ export default {
|
|
|
46
57
|
title: '自定义时间轴点',
|
|
47
58
|
setter: 'node',
|
|
48
59
|
},
|
|
49
|
-
{
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
},
|
|
60
|
+
// {
|
|
61
|
+
// name: 'label',
|
|
62
|
+
// title: '设置标签',
|
|
63
|
+
// setter: 'PisellI18nSetter',
|
|
64
|
+
// },
|
|
54
65
|
{
|
|
55
66
|
name: 'position',
|
|
56
67
|
title: {
|
|
@@ -86,7 +97,11 @@ export default {
|
|
|
86
97
|
initialValue: () => {
|
|
87
98
|
return {
|
|
88
99
|
key: `timeLine${uuid()}`,
|
|
89
|
-
label: '时间轴',
|
|
100
|
+
// label: '时间轴',
|
|
101
|
+
children: {
|
|
102
|
+
type: "JSSlot",
|
|
103
|
+
value: [],
|
|
104
|
+
},
|
|
90
105
|
};
|
|
91
106
|
},
|
|
92
107
|
},
|
|
@@ -8,11 +8,19 @@ export default [
|
|
|
8
8
|
steps: [
|
|
9
9
|
{
|
|
10
10
|
key: 'timeLinei5wd',
|
|
11
|
-
label: '时间轴',
|
|
11
|
+
// label: '时间轴',
|
|
12
|
+
children: {
|
|
13
|
+
type: "JSSlot",
|
|
14
|
+
value: [],
|
|
15
|
+
},
|
|
12
16
|
},
|
|
13
17
|
{
|
|
14
18
|
key: 'timeLinei5wx',
|
|
15
|
-
label: '时间轴',
|
|
19
|
+
// label: '时间轴',
|
|
20
|
+
children: {
|
|
21
|
+
type: "JSSlot",
|
|
22
|
+
value: [],
|
|
23
|
+
},
|
|
16
24
|
},
|
|
17
25
|
],
|
|
18
26
|
},
|