@pisell/materials 6.0.7 → 6.0.9
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 +8 -8
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +8 -8
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +9 -9
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
- package/es/components/dataSourceComponents/fields/Input.Email/WithMode.d.ts +3 -1
- package/es/components/dataSourceComponents/fields/Input.Email/WithMode.js +15 -2
- package/es/components/dataSourceComponents/fields/Input.Email/index.d.ts +3 -1
- package/es/components/dataSourceComponents/fields/Input.Email/index.js +5 -1
- package/es/components/dataSourceComponents/hooks/useActions.js +44 -34
- package/es/components/login-and-register/index.less +4 -1
- package/es/components/pisellViewGrid/index.d.ts +16 -0
- package/es/components/pisellViewGrid/index.js +66 -0
- package/es/components/pisellViewGrid/index.less +31 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/lib/components/dataSourceComponents/dataSourceForm/utils.js +1 -1
- package/lib/components/dataSourceComponents/fields/Input.Email/WithMode.d.ts +3 -1
- package/lib/components/dataSourceComponents/fields/Input.Email/WithMode.js +9 -1
- package/lib/components/dataSourceComponents/fields/Input.Email/index.d.ts +3 -1
- package/lib/components/dataSourceComponents/fields/Input.Email/index.js +5 -1
- package/lib/components/dataSourceComponents/hooks/useActions.js +9 -1
- package/lib/components/login-and-register/index.less +4 -1
- package/lib/components/pisellViewGrid/index.d.ts +16 -0
- package/lib/components/pisellViewGrid/index.js +98 -0
- package/lib/components/pisellViewGrid/index.less +31 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +3 -0
- package/lowcode/pisell-view-grid/__screenshots__/card-1.png +0 -0
- package/lowcode/pisell-view-grid/meta.ts +167 -0
- package/lowcode/pisell-view-grid/snippets.ts +54 -0
- package/package.json +2 -2
package/lib/index.d.ts
CHANGED
|
@@ -131,6 +131,7 @@ export { default as DataSourceWrapper } from './components/dataSourceComponents/
|
|
|
131
131
|
export { default as DataSourceTypography } from './components/dataSourceComponents/dataSourceShow/dataSourceTypography';
|
|
132
132
|
export { default as DataSourceImage } from './components/dataSourceComponents/dataSourceShow/dataSourceImage';
|
|
133
133
|
export { default as DataSourceQRCode } from './components/dataSourceComponents/dataSourceShow/dataSourceQRCode';
|
|
134
|
+
export { default as PisellViewGrid } from './components/pisellViewGrid';
|
|
134
135
|
export { default as PageHeader } from './components/page-header';
|
|
135
136
|
export { default as OrganizationTenantSwitcher } from './components/organizationTenantSwitcher';
|
|
136
137
|
export { default as PisellTags } from './components/pisellTags';
|
package/lib/index.js
CHANGED
|
@@ -122,6 +122,7 @@ __export(src_exports, {
|
|
|
122
122
|
PisellToast: () => import_pisellToast.default,
|
|
123
123
|
PisellTooltip: () => import_pisellTooltip.default,
|
|
124
124
|
PisellUpload: () => import_pisellUpload.default,
|
|
125
|
+
PisellViewGrid: () => import_pisellViewGrid.default,
|
|
125
126
|
PisellWalletPassCard: () => import_pisellWalletPassCard.default,
|
|
126
127
|
Popconfirm: () => import_antd23.Popconfirm,
|
|
127
128
|
Popover: () => import_antd24.Popover,
|
|
@@ -302,6 +303,7 @@ var import_dataSourceWrapper = __toESM(require("./components/dataSourceComponent
|
|
|
302
303
|
var import_dataSourceTypography = __toESM(require("./components/dataSourceComponents/dataSourceShow/dataSourceTypography"));
|
|
303
304
|
var import_dataSourceImage = __toESM(require("./components/dataSourceComponents/dataSourceShow/dataSourceImage"));
|
|
304
305
|
var import_dataSourceQRCode = __toESM(require("./components/dataSourceComponents/dataSourceShow/dataSourceQRCode"));
|
|
306
|
+
var import_pisellViewGrid = __toESM(require("./components/pisellViewGrid"));
|
|
305
307
|
var import_page_header = __toESM(require("./components/page-header"));
|
|
306
308
|
var import_organizationTenantSwitcher = __toESM(require("./components/organizationTenantSwitcher"));
|
|
307
309
|
var import_pisellTags = __toESM(require("./components/pisellTags"));
|
|
@@ -401,6 +403,7 @@ var import_login_and_register = __toESM(require("./components/login-and-register
|
|
|
401
403
|
PisellToast,
|
|
402
404
|
PisellTooltip,
|
|
403
405
|
PisellUpload,
|
|
406
|
+
PisellViewGrid,
|
|
404
407
|
PisellWalletPassCard,
|
|
405
408
|
Popconfirm,
|
|
406
409
|
Popover,
|
|
Binary file
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import snippets from "./snippets";
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
snippets,
|
|
5
|
+
componentName: "PisellViewGrid",
|
|
6
|
+
title: "栅格视图",
|
|
7
|
+
category: "数据展示",
|
|
8
|
+
docUrl: "",
|
|
9
|
+
screenshot: "",
|
|
10
|
+
devMode: "proCode",
|
|
11
|
+
npm: {
|
|
12
|
+
package: "@pisell/materials",
|
|
13
|
+
version: "1.0.1",
|
|
14
|
+
exportName: "PisellViewGrid",
|
|
15
|
+
main: "src/index.tsx",
|
|
16
|
+
destructuring: true,
|
|
17
|
+
subName: "",
|
|
18
|
+
},
|
|
19
|
+
props: [
|
|
20
|
+
{
|
|
21
|
+
title: '数据源',
|
|
22
|
+
display: 'block',
|
|
23
|
+
type: 'group',
|
|
24
|
+
items: [
|
|
25
|
+
{
|
|
26
|
+
name: 'dataSource',
|
|
27
|
+
title: { label: '列表数据源', tip: 'dataSource | 列表数据源' },
|
|
28
|
+
propType: { type: 'arrayOf', value: 'any' },
|
|
29
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: 'loading',
|
|
33
|
+
title: {
|
|
34
|
+
label: '是否加载中',
|
|
35
|
+
tip: 'loading | 当卡片内容还在加载中时,可以用 loading 展示一个占位',
|
|
36
|
+
},
|
|
37
|
+
propType: 'bool',
|
|
38
|
+
defaultValue: false,
|
|
39
|
+
setter: ['BoolSetter', 'VariableSetter'],
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
name: 'rowKey',
|
|
43
|
+
title: {
|
|
44
|
+
label: '行Key',
|
|
45
|
+
tip: 'rowKey | 当 renderItem 自定义渲染列表项有效时,自定义每一行的 key 的获取方式',
|
|
46
|
+
},
|
|
47
|
+
propType: {
|
|
48
|
+
type: 'oneOfType',
|
|
49
|
+
value: ['string', 'function'],
|
|
50
|
+
},
|
|
51
|
+
defaultValue: 'id',
|
|
52
|
+
setter: [
|
|
53
|
+
'StringSetter',
|
|
54
|
+
{
|
|
55
|
+
componentName: 'FunctionSetter',
|
|
56
|
+
props: {
|
|
57
|
+
template:
|
|
58
|
+
'rowKey(item,${extParams}){\n// 自定义每一行的 key\nreturn `key-${item.id}`;\n}',
|
|
59
|
+
},
|
|
60
|
+
},
|
|
61
|
+
'VariableSetter',
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
],
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
title: '栅格 ',
|
|
68
|
+
display: 'block',
|
|
69
|
+
type: 'group',
|
|
70
|
+
items: [
|
|
71
|
+
{
|
|
72
|
+
name: 'columns',
|
|
73
|
+
title: { label: '列数', tip: 'columns | 列数' },
|
|
74
|
+
propType: 'number',
|
|
75
|
+
setter: 'NumberSetter',
|
|
76
|
+
defaultValue: 3,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: 'horizontalGap',
|
|
80
|
+
title: { label: '水平间隔', tip: 'horizontalGap | 栅格水平间隔,单位为像素(px)' },
|
|
81
|
+
propType: 'number',
|
|
82
|
+
setter: {
|
|
83
|
+
componentName: 'NumberSetter', props: {
|
|
84
|
+
min: 0,
|
|
85
|
+
},
|
|
86
|
+
},
|
|
87
|
+
defaultValue: 10,
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
name: 'verticalGap',
|
|
91
|
+
title: { label: '垂直间隔', tip: 'verticalGap | 栅格垂直间隔,单位为像素(px)' },
|
|
92
|
+
propType: 'number',
|
|
93
|
+
setter: {
|
|
94
|
+
componentName: 'NumberSetter',
|
|
95
|
+
props: {
|
|
96
|
+
min: 0,
|
|
97
|
+
},
|
|
98
|
+
},
|
|
99
|
+
defaultValue: 10,
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
name: 'singleRow',
|
|
103
|
+
title: { label: '一行展示', tip: 'singleRow | 一行展示' },
|
|
104
|
+
propType: 'boolean',
|
|
105
|
+
defaultValue: false,
|
|
106
|
+
setter: 'BoolSetter',
|
|
107
|
+
},
|
|
108
|
+
]
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
title: '扩展',
|
|
112
|
+
display: 'block',
|
|
113
|
+
type: 'group',
|
|
114
|
+
items: [
|
|
115
|
+
{
|
|
116
|
+
name: 'renderItem',
|
|
117
|
+
title: {
|
|
118
|
+
label: '渲染函数',
|
|
119
|
+
tip: 'renderItem | 当使用 dataSource 时,可以用 `renderItem` 自定义渲染列表项',
|
|
120
|
+
},
|
|
121
|
+
propType: 'func',
|
|
122
|
+
setter: [
|
|
123
|
+
{
|
|
124
|
+
componentName: 'SlotSetter',
|
|
125
|
+
title: '渲染函数插槽',
|
|
126
|
+
initialValue: {
|
|
127
|
+
type: 'JSSlot',
|
|
128
|
+
params: ['item'],
|
|
129
|
+
value: [
|
|
130
|
+
{
|
|
131
|
+
componentName: 'List.Item',
|
|
132
|
+
props: {},
|
|
133
|
+
children: {
|
|
134
|
+
componentName: 'Typography.Text',
|
|
135
|
+
props: {
|
|
136
|
+
children: {
|
|
137
|
+
type: 'JSExpression',
|
|
138
|
+
value: 'this.item.text',
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
],
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
componentName: 'FunctionSetter',
|
|
148
|
+
props: {
|
|
149
|
+
template: 'renderItem(item,${extParams}){\n// 自定义渲染列表项\nreturn `item`;\n}',
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
'VariableSetter',
|
|
153
|
+
],
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
},
|
|
157
|
+
],
|
|
158
|
+
configure: {
|
|
159
|
+
supports: {
|
|
160
|
+
style: true,
|
|
161
|
+
events: [],
|
|
162
|
+
},
|
|
163
|
+
component: {
|
|
164
|
+
isContainer: true,
|
|
165
|
+
},
|
|
166
|
+
},
|
|
167
|
+
};
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
export default [
|
|
2
|
+
{
|
|
3
|
+
title: '栅格视图',
|
|
4
|
+
schema: {
|
|
5
|
+
componentName: 'PisellViewGrid',
|
|
6
|
+
props: {
|
|
7
|
+
dataSource: [
|
|
8
|
+
{
|
|
9
|
+
id: 1,
|
|
10
|
+
text: "Racing car sprays burning fuel into crowd.",
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
id: 2,
|
|
14
|
+
text: "Japanese princess to wed commoner.",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
id: 3,
|
|
18
|
+
text: "Australian walks 100km after outback crash.",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 4,
|
|
22
|
+
text: "Man charged over missing wedding girl.",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
id: 5,
|
|
26
|
+
text: "Los Angeles battles huge wildfires.",
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
|
+
columns: 3,
|
|
30
|
+
horizontalGap: 10,
|
|
31
|
+
verticalGap: 10,
|
|
32
|
+
renderItem: {
|
|
33
|
+
type: "JSSlot",
|
|
34
|
+
params: ["item"],
|
|
35
|
+
value: [
|
|
36
|
+
{
|
|
37
|
+
componentName: "List.Item",
|
|
38
|
+
props: {},
|
|
39
|
+
children: {
|
|
40
|
+
componentName: "Typography.Text",
|
|
41
|
+
props: {
|
|
42
|
+
children: {
|
|
43
|
+
type: "JSExpression",
|
|
44
|
+
value: "this.item.text",
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
},
|
|
54
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.9",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"react-virtualized-auto-sizer": "^1.0.20",
|
|
66
66
|
"crypto-js": "^4.2.0",
|
|
67
67
|
"@zxing/library": "0.21.2",
|
|
68
|
-
"@pisell/date-picker": "1.0.100",
|
|
69
68
|
"@pisell/icon": "0.0.11",
|
|
69
|
+
"@pisell/date-picker": "1.0.100",
|
|
70
70
|
"@pisell/utils": "1.0.42"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|