@pisell/materials 1.0.135 → 1.0.137
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 +18 -18
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +17 -17
- package/lowcode/list/meta.ts +76 -5
- package/package.json +3 -3
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.137",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"ahooks": "^3.7.6",
|
|
57
57
|
"react-infinite-scroll-component": "^6.1.0",
|
|
58
58
|
"@pisell/utils": "1.0.18",
|
|
59
|
-
"@pisell/
|
|
60
|
-
"@pisell/
|
|
59
|
+
"@pisell/icon": "0.0.8",
|
|
60
|
+
"@pisell/date-picker": "1.0.51"
|
|
61
61
|
},
|
|
62
62
|
"peerDependencies": {
|
|
63
63
|
"react": "^18.0.0",
|