@pisell/materials 1.0.136 → 1.0.138
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 +10 -10
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +17 -17
- package/lowcode/list/meta.ts +76 -5
- package/lowcode/select/meta.ts +16 -2
- package/package.json +1 -1
package/lowcode/list/meta.ts
CHANGED
|
@@ -137,6 +137,13 @@ export default {
|
|
|
137
137
|
defaultValue: true,
|
|
138
138
|
setter: 'BoolSetter',
|
|
139
139
|
},
|
|
140
|
+
{
|
|
141
|
+
name: 'arrow',
|
|
142
|
+
title: { label: '是否展示上下数据箭头', tip: 'arrow | 是否展示上下数据箭头' },
|
|
143
|
+
propType: 'bool',
|
|
144
|
+
defaultValue: true,
|
|
145
|
+
setter: 'BoolSetter',
|
|
146
|
+
},
|
|
140
147
|
],
|
|
141
148
|
},
|
|
142
149
|
{
|
|
@@ -273,19 +280,79 @@ export default {
|
|
|
273
280
|
type: 'group',
|
|
274
281
|
items: [
|
|
275
282
|
{
|
|
276
|
-
name:
|
|
277
|
-
title: {
|
|
278
|
-
|
|
279
|
-
|
|
283
|
+
name: "paginationType",
|
|
284
|
+
title: {
|
|
285
|
+
label: "分页类型",
|
|
286
|
+
tip: "paginationType | 分页类型 ",
|
|
287
|
+
},
|
|
288
|
+
propType: { type: "oneOf", value: ["default", "scroll"] },
|
|
289
|
+
setter: [
|
|
290
|
+
{
|
|
291
|
+
componentName: "RadioGroupSetter",
|
|
292
|
+
props: {
|
|
293
|
+
options: [
|
|
294
|
+
{
|
|
295
|
+
title: "分页器",
|
|
296
|
+
value: "default",
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
title: "滑动加载",
|
|
300
|
+
value: "scroll",
|
|
301
|
+
},
|
|
302
|
+
],
|
|
303
|
+
},
|
|
304
|
+
},
|
|
305
|
+
"VariableSetter",
|
|
306
|
+
],
|
|
307
|
+
extraProps: {
|
|
308
|
+
setValue: (target, value) => {
|
|
309
|
+
if (value === "scroll") {
|
|
310
|
+
target.parent.setPropValue("pagination", {
|
|
311
|
+
pageSize: 5,
|
|
312
|
+
current: 1,
|
|
313
|
+
size: "default",
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
},
|
|
317
|
+
},
|
|
318
|
+
defaultValue: "default",
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
name: "listHeight",
|
|
322
|
+
title: {
|
|
323
|
+
label: "列表高度",
|
|
324
|
+
tip: "listHeight | 列表高度",
|
|
325
|
+
},
|
|
326
|
+
propType: "string",
|
|
327
|
+
setter: "StringSetter",
|
|
328
|
+
condition: {
|
|
329
|
+
type: "JSFunction",
|
|
330
|
+
value:
|
|
331
|
+
'target => target.getProps().getPropValue("paginationType") === "scroll"',
|
|
332
|
+
},
|
|
333
|
+
defaultValue: 400,
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
name: "pagination",
|
|
337
|
+
title: { label: "显示分页", tip: "pagination | 显示分页" },
|
|
338
|
+
propType: "object",
|
|
339
|
+
setter: "BoolSetter",
|
|
280
340
|
extraProps: {
|
|
281
341
|
setValue: (target, value) => {
|
|
282
342
|
if (value) {
|
|
283
|
-
target.parent.setPropValue(
|
|
343
|
+
target.parent.setPropValue("pagination", {
|
|
284
344
|
pageSize: 5,
|
|
345
|
+
current: 1,
|
|
346
|
+
size: "default",
|
|
285
347
|
});
|
|
286
348
|
}
|
|
287
349
|
},
|
|
288
350
|
},
|
|
351
|
+
condition: {
|
|
352
|
+
type: "JSFunction",
|
|
353
|
+
value:
|
|
354
|
+
'target => target.getProps().getPropValue("paginationType") === "default"',
|
|
355
|
+
},
|
|
289
356
|
},
|
|
290
357
|
{
|
|
291
358
|
name: 'pagination.pageSize',
|
|
@@ -578,6 +645,10 @@ export default {
|
|
|
578
645
|
name: 'pagination.onChange',
|
|
579
646
|
template: 'onChange(page,pageSize,${extParams}){\n// 页码或 pageSize 改变的回调\n}',
|
|
580
647
|
},
|
|
648
|
+
{
|
|
649
|
+
name: "loadMoreData",
|
|
650
|
+
template: "loadMoreData(){\n// \nconsole.log('loadMoreData');}",
|
|
651
|
+
},
|
|
581
652
|
],
|
|
582
653
|
},
|
|
583
654
|
},
|
package/lowcode/select/meta.ts
CHANGED
|
@@ -179,7 +179,7 @@ export default {
|
|
|
179
179
|
name: 'maxTagCount',
|
|
180
180
|
title: { label: '最大tag数', tip: '最多显示多少个tag' },
|
|
181
181
|
condition(target) {
|
|
182
|
-
return target.getProps().getPropValue('mode')
|
|
182
|
+
return ['tags','multiple'].includes(target.getProps().getPropValue('mode'));
|
|
183
183
|
},
|
|
184
184
|
propType: 'number',
|
|
185
185
|
},
|
|
@@ -187,7 +187,7 @@ export default {
|
|
|
187
187
|
name: 'maxTagTextLength',
|
|
188
188
|
title: { label: 'tag文本长度', tip: '最大显示的tag文本长度' },
|
|
189
189
|
condition(target) {
|
|
190
|
-
return target.getProps().getPropValue('mode')
|
|
190
|
+
return ['tags','multiple'].includes(target.getProps().getPropValue('mode'));
|
|
191
191
|
},
|
|
192
192
|
propType: 'number',
|
|
193
193
|
},
|
|
@@ -365,6 +365,20 @@ export default {
|
|
|
365
365
|
title: { label: '展开下拉菜单的回调', tip: '展开下拉菜单的回调' },
|
|
366
366
|
propType: 'func',
|
|
367
367
|
},
|
|
368
|
+
{
|
|
369
|
+
name: "isShowDropdown",
|
|
370
|
+
title: { label: '开启操作栏', tip: 'isShowDropdown |开启操作栏' },
|
|
371
|
+
propType: 'bool',
|
|
372
|
+
},
|
|
373
|
+
{
|
|
374
|
+
name: "selectAll",
|
|
375
|
+
title: { label: '全选', tip: 'selectAll |全选' },
|
|
376
|
+
propType: 'bool',
|
|
377
|
+
condition: {
|
|
378
|
+
type: 'JSFunction',
|
|
379
|
+
value: 'target => !!target.getProps().getPropValue("isShowDropdown")',
|
|
380
|
+
},
|
|
381
|
+
},
|
|
368
382
|
],
|
|
369
383
|
configure: {
|
|
370
384
|
supports: {
|