@pisell/materials 1.0.88 → 1.0.90
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 +8 -8
- 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 +11 -11
- package/es/components/div/index.d.ts +1 -0
- package/es/components/div/index.d.ts.map +1 -1
- package/es/components/div/index.js +2 -4
- package/es/components/typography/index.d.ts +3 -0
- package/es/components/typography/index.d.ts.map +1 -0
- package/es/components/typography/index.js +33 -0
- package/es/index.d.ts +1 -1
- package/es/index.d.ts.map +1 -1
- package/es/index.js +1 -1
- package/lib/components/div/index.d.ts +1 -0
- package/lib/components/div/index.d.ts.map +1 -1
- package/lib/components/div/index.js +1 -1
- package/lib/components/typography/index.d.ts +3 -0
- package/lib/components/typography/index.d.ts.map +1 -0
- package/lib/components/typography/index.js +61 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +3 -3
- package/lowcode/grid.col/meta.ts +8 -0
- package/lowcode/list/meta.ts +2 -2
- package/lowcode/list.item/meta.ts +3 -0
- package/lowcode/record-view/meta.ts +696 -0
- package/lowcode/statistic/meta.ts +1 -0
- package/lowcode/typography.paragraph/meta.ts +121 -56
- package/lowcode/typography.title/meta.ts +67 -5
- package/package.json +2 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import snippets from
|
|
1
|
+
import snippets from "./snippets";
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
snippets,
|
|
5
|
-
componentName:
|
|
6
|
-
title:
|
|
7
|
-
category:
|
|
5
|
+
componentName: "Typography.Paragraph",
|
|
6
|
+
title: "段落",
|
|
7
|
+
category: "基础",
|
|
8
8
|
docUrl: "",
|
|
9
9
|
screenshot: "",
|
|
10
10
|
devMode: "proCode",
|
|
@@ -18,114 +18,179 @@ export default {
|
|
|
18
18
|
},
|
|
19
19
|
props: [
|
|
20
20
|
{
|
|
21
|
-
name:
|
|
22
|
-
title: { label:
|
|
21
|
+
name: "children",
|
|
22
|
+
title: { label: "内容", tip: "内容" },
|
|
23
23
|
setter: {
|
|
24
|
-
componentName:
|
|
24
|
+
componentName: "PisellI18nSetter",
|
|
25
25
|
},
|
|
26
|
-
defaultValue:
|
|
26
|
+
defaultValue: "",
|
|
27
27
|
supportVariable: true,
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
name:
|
|
31
|
-
title: { label:
|
|
32
|
-
propType:
|
|
30
|
+
name: "code",
|
|
31
|
+
title: { label: "添加代码样式", tip: "添加代码样式" },
|
|
32
|
+
propType: "bool",
|
|
33
33
|
defaultValue: false,
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
|
-
name:
|
|
36
|
+
name: "copyable",
|
|
37
37
|
title: {
|
|
38
|
-
label:
|
|
39
|
-
tip:
|
|
38
|
+
label: "是否可拷贝",
|
|
39
|
+
tip: "是否可拷贝,为对象时可进行各种自定义",
|
|
40
40
|
},
|
|
41
|
-
propType:
|
|
41
|
+
propType: "bool",
|
|
42
42
|
defaultValue: false,
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
name:
|
|
46
|
-
title: { label:
|
|
47
|
-
propType:
|
|
45
|
+
name: "delete",
|
|
46
|
+
title: { label: "添加删除线样式", tip: "添加删除线样式" },
|
|
47
|
+
propType: "bool",
|
|
48
48
|
defaultValue: false,
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
name:
|
|
52
|
-
title: { label:
|
|
53
|
-
propType:
|
|
51
|
+
name: "disabled",
|
|
52
|
+
title: { label: "是否禁用", tip: "是否为禁用状态" },
|
|
53
|
+
propType: "bool",
|
|
54
54
|
defaultValue: false,
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
|
-
name:
|
|
58
|
-
title: { label:
|
|
59
|
-
propType:
|
|
57
|
+
name: "editable",
|
|
58
|
+
title: { label: "是否可编辑", tip: "是否可编辑" },
|
|
59
|
+
propType: "bool",
|
|
60
60
|
defaultValue: false,
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
name:
|
|
64
|
-
title: { label:
|
|
65
|
-
propType:
|
|
63
|
+
name: "pcIsEllipsis",
|
|
64
|
+
title: { label: "PC自动溢出省略", tip: "PC自动溢出省略" },
|
|
65
|
+
propType: "bool",
|
|
66
66
|
defaultValue: false,
|
|
67
|
+
extraProps: {
|
|
68
|
+
setValue: (target, value) => {
|
|
69
|
+
if (value) {
|
|
70
|
+
target.parent.setPropValue("ellipsis.rows", 1);
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
if (
|
|
74
|
+
!target.parent.getPropValue("padIsEllipsis") &&
|
|
75
|
+
!target.parent.getPropValue("mobileIsEllipsis")
|
|
76
|
+
) {
|
|
77
|
+
target.parent.setPropValue("ellipsis.rows", 0);
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
name: "padIsEllipsis",
|
|
84
|
+
title: { label: "Pad自动溢出省略", tip: "Pad自动溢出省略" },
|
|
85
|
+
propType: "bool",
|
|
86
|
+
defaultValue: false,
|
|
87
|
+
extraProps: {
|
|
88
|
+
setValue: (target, value) => {
|
|
89
|
+
if (value) {
|
|
90
|
+
target.parent.setPropValue("ellipsis.rows", 1);
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
if (
|
|
94
|
+
!target.parent.getPropValue("pcIsEllipsis") &&
|
|
95
|
+
!target.parent.getPropValue("mobileIsEllipsis")
|
|
96
|
+
) {
|
|
97
|
+
target.parent.setPropValue("ellipsis.rows", 0);
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
},
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
name: "mobileIsEllipsis",
|
|
104
|
+
title: { label: "Mobile自动溢出省略", tip: "Mobile自动溢出省略" },
|
|
105
|
+
propType: "bool",
|
|
106
|
+
defaultValue: false,
|
|
107
|
+
extraProps: {
|
|
108
|
+
setValue: (target, value) => {
|
|
109
|
+
if (value) {
|
|
110
|
+
target.parent.setPropValue("ellipsis.rows", 1);
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
113
|
+
if (
|
|
114
|
+
!target.parent.getPropValue("pcIsEllipsis") &&
|
|
115
|
+
!target.parent.getPropValue("padIsEllipsis")
|
|
116
|
+
) {
|
|
117
|
+
target.parent.setPropValue("ellipsis.rows", 0);
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
name: "ellipsis.rows",
|
|
124
|
+
title: { label: "最大行数", tip: "ellipsis.rows | 最大行数" },
|
|
125
|
+
propType: "number",
|
|
126
|
+
setter: "NumberSetter",
|
|
127
|
+
condition: {
|
|
128
|
+
type: "JSFunction",
|
|
129
|
+
value:
|
|
130
|
+
'target => !!target.getProps().getPropValue("pcIsEllipsis") || !!target.getProps().getPropValue("padIsEllipsis") || !!target.getProps().getPropValue("mobileIsEllipsis")',
|
|
131
|
+
},
|
|
67
132
|
},
|
|
68
133
|
{
|
|
69
|
-
name:
|
|
70
|
-
title: { label:
|
|
71
|
-
propType:
|
|
134
|
+
name: "mark",
|
|
135
|
+
title: { label: "添加标记样式", tip: "添加标记样式" },
|
|
136
|
+
propType: "bool",
|
|
72
137
|
defaultValue: false,
|
|
73
138
|
},
|
|
74
139
|
{
|
|
75
|
-
name:
|
|
76
|
-
title: { label:
|
|
77
|
-
propType:
|
|
140
|
+
name: "underline",
|
|
141
|
+
title: { label: "添加下划线样式", tip: "添加下划线样式" },
|
|
142
|
+
propType: "bool",
|
|
78
143
|
defaultValue: false,
|
|
79
144
|
},
|
|
80
145
|
{
|
|
81
|
-
name:
|
|
146
|
+
name: "onChange",
|
|
82
147
|
title: {
|
|
83
|
-
label:
|
|
84
|
-
tip:
|
|
148
|
+
label: "当用户提交编辑内容时触发",
|
|
149
|
+
tip: "当用户提交编辑内容时触发",
|
|
85
150
|
},
|
|
86
|
-
propType:
|
|
151
|
+
propType: "func",
|
|
87
152
|
},
|
|
88
153
|
{
|
|
89
|
-
name:
|
|
90
|
-
title: { label:
|
|
91
|
-
propType:
|
|
154
|
+
name: "strong",
|
|
155
|
+
title: { label: "是否加粗", tip: "是否加粗" },
|
|
156
|
+
propType: "bool",
|
|
92
157
|
defaultValue: false,
|
|
93
158
|
},
|
|
94
159
|
{
|
|
95
|
-
name:
|
|
96
|
-
title: { label:
|
|
160
|
+
name: "type",
|
|
161
|
+
title: { label: "文本类型", tip: "文本类型" },
|
|
97
162
|
propType: {
|
|
98
|
-
type:
|
|
99
|
-
value: [
|
|
163
|
+
type: "oneOf",
|
|
164
|
+
value: ["default", "secondary", "success", "warning", "danger"],
|
|
100
165
|
},
|
|
101
166
|
setter: {
|
|
102
|
-
componentName:
|
|
167
|
+
componentName: "SelectSetter",
|
|
103
168
|
props: {
|
|
104
169
|
options: [
|
|
105
170
|
{
|
|
106
|
-
title:
|
|
107
|
-
value:
|
|
171
|
+
title: "默认",
|
|
172
|
+
value: "default",
|
|
108
173
|
},
|
|
109
174
|
{
|
|
110
|
-
title:
|
|
111
|
-
value:
|
|
175
|
+
title: "弱提示",
|
|
176
|
+
value: "secondary",
|
|
112
177
|
},
|
|
113
178
|
{
|
|
114
|
-
title:
|
|
115
|
-
value:
|
|
179
|
+
title: "成功",
|
|
180
|
+
value: "success",
|
|
116
181
|
},
|
|
117
182
|
{
|
|
118
|
-
title:
|
|
119
|
-
value:
|
|
183
|
+
title: "警告",
|
|
184
|
+
value: "warning",
|
|
120
185
|
},
|
|
121
186
|
{
|
|
122
|
-
title:
|
|
123
|
-
value:
|
|
187
|
+
title: "错误",
|
|
188
|
+
value: "danger",
|
|
124
189
|
},
|
|
125
190
|
],
|
|
126
191
|
},
|
|
127
192
|
},
|
|
128
193
|
},
|
|
129
194
|
],
|
|
130
|
-
configure: { supports: { style: true, events: [
|
|
195
|
+
configure: { supports: { style: true, events: ["onChange"] } },
|
|
131
196
|
};
|
|
@@ -63,13 +63,75 @@ export default {
|
|
|
63
63
|
defaultValue: false,
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
|
-
name:
|
|
67
|
-
title: {
|
|
68
|
-
|
|
69
|
-
|
|
66
|
+
name: "pcIsEllipsis",
|
|
67
|
+
title: { label: "PC自动溢出省略", tip: "PC自动溢出省略" },
|
|
68
|
+
propType: "bool",
|
|
69
|
+
defaultValue: false,
|
|
70
|
+
extraProps: {
|
|
71
|
+
setValue: (target, value) => {
|
|
72
|
+
if (value) {
|
|
73
|
+
target.parent.setPropValue("ellipsis.rows", 1);
|
|
74
|
+
return;
|
|
75
|
+
}
|
|
76
|
+
if (
|
|
77
|
+
!target.parent.getPropValue("padIsEllipsis") &&
|
|
78
|
+
!target.parent.getPropValue("mobileIsEllipsis")
|
|
79
|
+
) {
|
|
80
|
+
target.parent.setPropValue("ellipsis.rows", 0);
|
|
81
|
+
}
|
|
82
|
+
},
|
|
70
83
|
},
|
|
71
|
-
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
name: "padIsEllipsis",
|
|
87
|
+
title: { label: "Pad自动溢出省略", tip: "Pad自动溢出省略" },
|
|
88
|
+
propType: "bool",
|
|
72
89
|
defaultValue: false,
|
|
90
|
+
extraProps: {
|
|
91
|
+
setValue: (target, value) => {
|
|
92
|
+
if (value) {
|
|
93
|
+
target.parent.setPropValue("ellipsis.rows", 1);
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
if (
|
|
97
|
+
!target.parent.getPropValue("pcIsEllipsis") &&
|
|
98
|
+
!target.parent.getPropValue("mobileIsEllipsis")
|
|
99
|
+
) {
|
|
100
|
+
target.parent.setPropValue("ellipsis.rows", 0);
|
|
101
|
+
}
|
|
102
|
+
},
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: "mobileIsEllipsis",
|
|
107
|
+
title: { label: "Mobile自动溢出省略", tip: "Mobile自动溢出省略" },
|
|
108
|
+
propType: "bool",
|
|
109
|
+
defaultValue: false,
|
|
110
|
+
extraProps: {
|
|
111
|
+
setValue: (target, value) => {
|
|
112
|
+
if (value) {
|
|
113
|
+
target.parent.setPropValue("ellipsis.rows", 1);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
if (
|
|
117
|
+
!target.parent.getPropValue("pcIsEllipsis") &&
|
|
118
|
+
!target.parent.getPropValue("padIsEllipsis")
|
|
119
|
+
) {
|
|
120
|
+
target.parent.setPropValue("ellipsis.rows", 0);
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
},
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
name: "ellipsis.rows",
|
|
127
|
+
title: { label: "最大行数", tip: "ellipsis.rows | 最大行数" },
|
|
128
|
+
propType: "number",
|
|
129
|
+
setter: "NumberSetter",
|
|
130
|
+
condition: {
|
|
131
|
+
type: "JSFunction",
|
|
132
|
+
value:
|
|
133
|
+
'target => !!target.getProps().getPropValue("pcIsEllipsis") || !!target.getProps().getPropValue("padIsEllipsis") || !!target.getProps().getPropValue("mobileIsEllipsis")',
|
|
134
|
+
},
|
|
73
135
|
},
|
|
74
136
|
{
|
|
75
137
|
name: 'mark',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.90",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
"@dnd-kit/sortable": "^7.0.2",
|
|
55
55
|
"@dnd-kit/utilities": "^3.2.1",
|
|
56
56
|
"ahooks": "^3.7.6",
|
|
57
|
+
"react-infinite-scroll-component": "^6.1.0",
|
|
57
58
|
"@pisell/utils": "1.0.4",
|
|
58
59
|
"@pisell/icon": "0.0.8",
|
|
59
60
|
"@pisell/date-picker": "1.0.31"
|