@pisell/materials 1.0.1060 → 1.0.1062
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/meta.js +7 -7
- package/build/lowcode/render/default/view.css +1 -1
- package/build/lowcode/render/default/view.js +3 -3
- package/build/lowcode/view.css +1 -1
- package/build/lowcode/view.js +23 -23
- package/es/components/PisellLayouts/index.js +14 -14
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.js +9 -4
- package/es/components/pisellFloorMapLayout/PisellFloorMapLayout.stories.js +34 -34
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +55 -2
- package/es/components/pisellFloorMapLayout/components/FloorMapEditPanel.less +1 -0
- package/es/components/pisellFloorMapLayout/components/ItemLayer.js +5 -5
- package/es/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +3 -2
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +2 -0
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +4 -2
- package/es/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +42 -1
- package/es/components/pisellFloorMapLayout/types.d.ts +17 -1
- package/es/components/pisellHierarchicalSummaryList/hooks/useExpandedKeys.js +2 -2
- package/es/components/pisellHierarchicalSummaryList/index.js +2 -2
- package/es/components/pisellRecordBoard/PisellRecordBoard.js +30 -5
- package/es/components/pisellRecordBoard/PisellRecordBoard.stories.js +51 -51
- package/es/components/pisellRecordBoard/shellFrame/ToolBar/index.js +4 -4
- package/es/components/pisellRecordBoard/shellFrame/index.js +4 -2
- package/es/components/pisellRecordBoard/types.d.ts +8 -2
- package/es/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +1 -1
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.js +148 -51
- package/es/components/pisellTimeNavigator/PisellTimeNavigator.less +38 -4
- package/es/components/pisellTimeNavigator/components/BackgroundLayer.js +2 -2
- package/es/components/pisellTimeNavigator/components/CursorLayer.js +4 -4
- package/es/components/pisellTimeNavigator/components/GestureLayer.js +2 -2
- package/es/components/pisellTimeNavigator/components/NowButton.js +3 -3
- package/es/components/pisellTimeNavigator/components/ScaleLayer.js +3 -3
- package/es/components/pisellTimeNavigator/hooks/useDragInertia.js +2 -2
- package/es/components/pisellTimeNavigator/hooks/useRealtime.js +2 -2
- package/es/components/pisellTimeNavigator/hooks/useTimeAxis.js +8 -8
- package/es/components/pisellTimeNavigator/types.d.ts +4 -0
- package/es/components/pisellTimeNavigator/utils/index.d.ts +4 -0
- package/es/components/pisellTimeNavigator/utils/index.js +28 -14
- package/es/index.js +16 -16
- package/lib/components/pisellFloorMapLayout/PisellFloorMapLayout.js +7 -4
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.js +231 -157
- package/lib/components/pisellFloorMapLayout/components/FloorMapEditPanel.less +1 -0
- package/lib/components/pisellFloorMapLayout/context/mergeFloorMapLayoutContext.js +2 -1
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.d.ts +2 -0
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapEditState.js +4 -2
- package/lib/components/pisellFloorMapLayout/hooks/useFloorMapTransformMetrics.js +47 -1
- package/lib/components/pisellFloorMapLayout/types.d.ts +17 -1
- package/lib/components/pisellRecordBoard/PisellRecordBoard.js +32 -4
- package/lib/components/pisellRecordBoard/shellFrame/index.js +1 -0
- package/lib/components/pisellRecordBoard/types.d.ts +8 -2
- package/lib/components/pisellReservationScheduleBand/PisellReservationScheduleBand.less +1 -1
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.js +143 -29
- package/lib/components/pisellTimeNavigator/PisellTimeNavigator.less +38 -4
- package/lib/components/pisellTimeNavigator/types.d.ts +4 -0
- package/lib/components/pisellTimeNavigator/utils/index.d.ts +4 -0
- package/lib/components/pisellTimeNavigator/utils/index.js +9 -0
- package/lowcode/floor-map-layout-provider/meta.ts +1 -1
- package/lowcode/pisell-floor-map-layout/meta.ts +75 -1
- package/lowcode/pisell-hierarchical-summary-list/meta.ts +244 -244
- package/lowcode/render-figma-style-round-table-card/meta.ts +1 -1
- package/lowcode/render-figma-style-table-card/meta.ts +1 -1
- package/package.json +4 -4
|
@@ -1,244 +1,244 @@
|
|
|
1
|
-
import {
|
|
2
|
-
IPublicTypeComponentMetadata,
|
|
3
|
-
IPublicTypeSnippet,
|
|
4
|
-
} from '@alilc/lowcode-types';
|
|
5
|
-
|
|
6
|
-
const PisellHierarchicalSummaryListMeta: IPublicTypeComponentMetadata = {
|
|
7
|
-
componentName: 'PisellHierarchicalSummaryList',
|
|
8
|
-
title: '层级汇总列表',
|
|
9
|
-
docUrl: '',
|
|
10
|
-
screenshot: '',
|
|
11
|
-
devMode: 'proCode',
|
|
12
|
-
npm: {
|
|
13
|
-
package: '@pisell/materials',
|
|
14
|
-
version: '1.0.3',
|
|
15
|
-
exportName: 'PisellHierarchicalSummaryList',
|
|
16
|
-
main: 'src/index.tsx',
|
|
17
|
-
destructuring: true,
|
|
18
|
-
subName: '',
|
|
19
|
-
},
|
|
20
|
-
props: [
|
|
21
|
-
{
|
|
22
|
-
title: {
|
|
23
|
-
label: {
|
|
24
|
-
type: 'i18n',
|
|
25
|
-
'en-US': 'items',
|
|
26
|
-
'zh-CN': '数据源',
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
name: 'items',
|
|
30
|
-
setter: ['JsonSetter', 'VariableSetter'],
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
title: {
|
|
34
|
-
label: {
|
|
35
|
-
type: 'i18n',
|
|
36
|
-
'en-US': 'expandedKeys',
|
|
37
|
-
'zh-CN': '展开项(受控)',
|
|
38
|
-
},
|
|
39
|
-
},
|
|
40
|
-
name: 'expandedKeys',
|
|
41
|
-
setter: ['JsonSetter', 'VariableSetter'],
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
title: {
|
|
45
|
-
label: {
|
|
46
|
-
type: 'i18n',
|
|
47
|
-
'en-US': 'defaultExpandedKeys',
|
|
48
|
-
'zh-CN': '默认展开项(非受控)',
|
|
49
|
-
},
|
|
50
|
-
},
|
|
51
|
-
name: 'defaultExpandedKeys',
|
|
52
|
-
setter: ['JsonSetter', 'VariableSetter'],
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
title: {
|
|
56
|
-
label: {
|
|
57
|
-
type: 'i18n',
|
|
58
|
-
'en-US': 'defaultExpandedLevel',
|
|
59
|
-
'zh-CN': '默认展开层级',
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
name: 'defaultExpandedLevel',
|
|
63
|
-
setter: ['NumberSetter', 'VariableSetter'],
|
|
64
|
-
defaultValue: 0,
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
title: {
|
|
68
|
-
label: {
|
|
69
|
-
type: 'i18n',
|
|
70
|
-
'en-US': 'accordion',
|
|
71
|
-
'zh-CN': '手风琴模式',
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
name: 'accordion',
|
|
75
|
-
setter: ['BoolSetter', 'VariableSetter'],
|
|
76
|
-
defaultValue: false,
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
title: {
|
|
80
|
-
label: {
|
|
81
|
-
type: 'i18n',
|
|
82
|
-
'en-US': 'maxRenderLevel',
|
|
83
|
-
'zh-CN': '最大渲染层级',
|
|
84
|
-
},
|
|
85
|
-
},
|
|
86
|
-
name: 'maxRenderLevel',
|
|
87
|
-
setter: ['NumberSetter', 'VariableSetter'],
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
title: {
|
|
91
|
-
label: {
|
|
92
|
-
type: 'i18n',
|
|
93
|
-
'en-US': 'maxExpandLevel',
|
|
94
|
-
'zh-CN': '最大可展开层级',
|
|
95
|
-
},
|
|
96
|
-
},
|
|
97
|
-
name: 'maxExpandLevel',
|
|
98
|
-
setter: ['NumberSetter', 'VariableSetter'],
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
title: {
|
|
102
|
-
label: {
|
|
103
|
-
type: 'i18n',
|
|
104
|
-
'en-US': 'indent',
|
|
105
|
-
'zh-CN': '缩进(px)',
|
|
106
|
-
},
|
|
107
|
-
},
|
|
108
|
-
name: 'indent',
|
|
109
|
-
setter: ['NumberSetter', 'VariableSetter'],
|
|
110
|
-
defaultValue: 16,
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
title: {
|
|
114
|
-
label: {
|
|
115
|
-
type: 'i18n',
|
|
116
|
-
'en-US': 'rowGap',
|
|
117
|
-
'zh-CN': '行间距(px)',
|
|
118
|
-
},
|
|
119
|
-
},
|
|
120
|
-
name: 'rowGap',
|
|
121
|
-
setter: ['NumberSetter', 'VariableSetter'],
|
|
122
|
-
defaultValue: 8,
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
title: {
|
|
126
|
-
label: {
|
|
127
|
-
type: 'i18n',
|
|
128
|
-
'en-US': 'levelConfig',
|
|
129
|
-
'zh-CN': '层级配置',
|
|
130
|
-
},
|
|
131
|
-
},
|
|
132
|
-
name: 'levelConfig',
|
|
133
|
-
setter: ['JsonSetter', 'VariableSetter'],
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
title: {
|
|
137
|
-
label: {
|
|
138
|
-
type: 'i18n',
|
|
139
|
-
'en-US': 'aggregate',
|
|
140
|
-
'zh-CN': '聚合配置',
|
|
141
|
-
},
|
|
142
|
-
},
|
|
143
|
-
name: 'aggregate',
|
|
144
|
-
setter: ['JsonSetter', 'VariableSetter'],
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
title: {
|
|
148
|
-
label: {
|
|
149
|
-
type: 'i18n',
|
|
150
|
-
'en-US': 'renderLabel',
|
|
151
|
-
'zh-CN': '自定义渲染标题',
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
name: 'renderLabel',
|
|
155
|
-
setter: [
|
|
156
|
-
{
|
|
157
|
-
componentName: 'FunctionSetter',
|
|
158
|
-
props: {
|
|
159
|
-
template:
|
|
160
|
-
'renderLabel(item, ctx, ${extParams}){\n// 自定义标题渲染\nreturn item.label;\n}',
|
|
161
|
-
},
|
|
162
|
-
},
|
|
163
|
-
'VariableSetter',
|
|
164
|
-
],
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
title: {
|
|
168
|
-
label: {
|
|
169
|
-
type: 'i18n',
|
|
170
|
-
'en-US': 'renderValue',
|
|
171
|
-
'zh-CN': '自定义渲染数值',
|
|
172
|
-
},
|
|
173
|
-
},
|
|
174
|
-
name: 'renderValue',
|
|
175
|
-
setter: [
|
|
176
|
-
{
|
|
177
|
-
componentName: 'FunctionSetter',
|
|
178
|
-
props: {
|
|
179
|
-
template:
|
|
180
|
-
'renderValue(item, ctx, ${extParams}){\n// 自定义数值渲染\nreturn item.value;\n}',
|
|
181
|
-
},
|
|
182
|
-
},
|
|
183
|
-
'VariableSetter',
|
|
184
|
-
],
|
|
185
|
-
},
|
|
186
|
-
],
|
|
187
|
-
configure: {
|
|
188
|
-
component: {
|
|
189
|
-
isContainer: false,
|
|
190
|
-
},
|
|
191
|
-
supports: {
|
|
192
|
-
style: true,
|
|
193
|
-
className: true,
|
|
194
|
-
events: [
|
|
195
|
-
{
|
|
196
|
-
name: 'onExpandedKeysChange',
|
|
197
|
-
template:
|
|
198
|
-
"onExpandedKeysChange(keys,${extParams}){\n// 展开项变化\nconsole.log('onExpandedKeysChange', keys);}",
|
|
199
|
-
},
|
|
200
|
-
],
|
|
201
|
-
},
|
|
202
|
-
},
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
const snippets: IPublicTypeSnippet[] = [
|
|
206
|
-
{
|
|
207
|
-
title: '层级汇总列表',
|
|
208
|
-
screenshot: '',
|
|
209
|
-
schema: {
|
|
210
|
-
componentName: 'PisellHierarchicalSummaryList',
|
|
211
|
-
props: {
|
|
212
|
-
items: [
|
|
213
|
-
{
|
|
214
|
-
key: 'l1',
|
|
215
|
-
label: 'Label',
|
|
216
|
-
value: 'Value',
|
|
217
|
-
children: [
|
|
218
|
-
{
|
|
219
|
-
key: 'l2',
|
|
220
|
-
label: 'Label',
|
|
221
|
-
value: 'Value',
|
|
222
|
-
children: [
|
|
223
|
-
{ key: 'l3-1', label: 'Label · N items', value: 'Value' },
|
|
224
|
-
{
|
|
225
|
-
key: 'l3-2',
|
|
226
|
-
label: 'Label',
|
|
227
|
-
infoTooltip: 'Tooltip',
|
|
228
|
-
value: 'Value',
|
|
229
|
-
},
|
|
230
|
-
],
|
|
231
|
-
},
|
|
232
|
-
],
|
|
233
|
-
},
|
|
234
|
-
],
|
|
235
|
-
defaultExpandedLevel: 2,
|
|
236
|
-
},
|
|
237
|
-
},
|
|
238
|
-
},
|
|
239
|
-
];
|
|
240
|
-
|
|
241
|
-
export default {
|
|
242
|
-
...PisellHierarchicalSummaryListMeta,
|
|
243
|
-
snippets,
|
|
244
|
-
};
|
|
1
|
+
import {
|
|
2
|
+
IPublicTypeComponentMetadata,
|
|
3
|
+
IPublicTypeSnippet,
|
|
4
|
+
} from '@alilc/lowcode-types';
|
|
5
|
+
|
|
6
|
+
const PisellHierarchicalSummaryListMeta: IPublicTypeComponentMetadata = {
|
|
7
|
+
componentName: 'PisellHierarchicalSummaryList',
|
|
8
|
+
title: '层级汇总列表',
|
|
9
|
+
docUrl: '',
|
|
10
|
+
screenshot: '',
|
|
11
|
+
devMode: 'proCode',
|
|
12
|
+
npm: {
|
|
13
|
+
package: '@pisell/materials',
|
|
14
|
+
version: '1.0.3',
|
|
15
|
+
exportName: 'PisellHierarchicalSummaryList',
|
|
16
|
+
main: 'src/index.tsx',
|
|
17
|
+
destructuring: true,
|
|
18
|
+
subName: '',
|
|
19
|
+
},
|
|
20
|
+
props: [
|
|
21
|
+
{
|
|
22
|
+
title: {
|
|
23
|
+
label: {
|
|
24
|
+
type: 'i18n',
|
|
25
|
+
'en-US': 'items',
|
|
26
|
+
'zh-CN': '数据源',
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
name: 'items',
|
|
30
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
title: {
|
|
34
|
+
label: {
|
|
35
|
+
type: 'i18n',
|
|
36
|
+
'en-US': 'expandedKeys',
|
|
37
|
+
'zh-CN': '展开项(受控)',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
name: 'expandedKeys',
|
|
41
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
title: {
|
|
45
|
+
label: {
|
|
46
|
+
type: 'i18n',
|
|
47
|
+
'en-US': 'defaultExpandedKeys',
|
|
48
|
+
'zh-CN': '默认展开项(非受控)',
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
name: 'defaultExpandedKeys',
|
|
52
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
title: {
|
|
56
|
+
label: {
|
|
57
|
+
type: 'i18n',
|
|
58
|
+
'en-US': 'defaultExpandedLevel',
|
|
59
|
+
'zh-CN': '默认展开层级',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
name: 'defaultExpandedLevel',
|
|
63
|
+
setter: ['NumberSetter', 'VariableSetter'],
|
|
64
|
+
defaultValue: 0,
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
title: {
|
|
68
|
+
label: {
|
|
69
|
+
type: 'i18n',
|
|
70
|
+
'en-US': 'accordion',
|
|
71
|
+
'zh-CN': '手风琴模式',
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
name: 'accordion',
|
|
75
|
+
setter: ['BoolSetter', 'VariableSetter'],
|
|
76
|
+
defaultValue: false,
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
title: {
|
|
80
|
+
label: {
|
|
81
|
+
type: 'i18n',
|
|
82
|
+
'en-US': 'maxRenderLevel',
|
|
83
|
+
'zh-CN': '最大渲染层级',
|
|
84
|
+
},
|
|
85
|
+
},
|
|
86
|
+
name: 'maxRenderLevel',
|
|
87
|
+
setter: ['NumberSetter', 'VariableSetter'],
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
title: {
|
|
91
|
+
label: {
|
|
92
|
+
type: 'i18n',
|
|
93
|
+
'en-US': 'maxExpandLevel',
|
|
94
|
+
'zh-CN': '最大可展开层级',
|
|
95
|
+
},
|
|
96
|
+
},
|
|
97
|
+
name: 'maxExpandLevel',
|
|
98
|
+
setter: ['NumberSetter', 'VariableSetter'],
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
title: {
|
|
102
|
+
label: {
|
|
103
|
+
type: 'i18n',
|
|
104
|
+
'en-US': 'indent',
|
|
105
|
+
'zh-CN': '缩进(px)',
|
|
106
|
+
},
|
|
107
|
+
},
|
|
108
|
+
name: 'indent',
|
|
109
|
+
setter: ['NumberSetter', 'VariableSetter'],
|
|
110
|
+
defaultValue: 16,
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
title: {
|
|
114
|
+
label: {
|
|
115
|
+
type: 'i18n',
|
|
116
|
+
'en-US': 'rowGap',
|
|
117
|
+
'zh-CN': '行间距(px)',
|
|
118
|
+
},
|
|
119
|
+
},
|
|
120
|
+
name: 'rowGap',
|
|
121
|
+
setter: ['NumberSetter', 'VariableSetter'],
|
|
122
|
+
defaultValue: 8,
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
title: {
|
|
126
|
+
label: {
|
|
127
|
+
type: 'i18n',
|
|
128
|
+
'en-US': 'levelConfig',
|
|
129
|
+
'zh-CN': '层级配置',
|
|
130
|
+
},
|
|
131
|
+
},
|
|
132
|
+
name: 'levelConfig',
|
|
133
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
title: {
|
|
137
|
+
label: {
|
|
138
|
+
type: 'i18n',
|
|
139
|
+
'en-US': 'aggregate',
|
|
140
|
+
'zh-CN': '聚合配置',
|
|
141
|
+
},
|
|
142
|
+
},
|
|
143
|
+
name: 'aggregate',
|
|
144
|
+
setter: ['JsonSetter', 'VariableSetter'],
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
title: {
|
|
148
|
+
label: {
|
|
149
|
+
type: 'i18n',
|
|
150
|
+
'en-US': 'renderLabel',
|
|
151
|
+
'zh-CN': '自定义渲染标题',
|
|
152
|
+
},
|
|
153
|
+
},
|
|
154
|
+
name: 'renderLabel',
|
|
155
|
+
setter: [
|
|
156
|
+
{
|
|
157
|
+
componentName: 'FunctionSetter',
|
|
158
|
+
props: {
|
|
159
|
+
template:
|
|
160
|
+
'renderLabel(item, ctx, ${extParams}){\n// 自定义标题渲染\nreturn item.label;\n}',
|
|
161
|
+
},
|
|
162
|
+
},
|
|
163
|
+
'VariableSetter',
|
|
164
|
+
],
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
title: {
|
|
168
|
+
label: {
|
|
169
|
+
type: 'i18n',
|
|
170
|
+
'en-US': 'renderValue',
|
|
171
|
+
'zh-CN': '自定义渲染数值',
|
|
172
|
+
},
|
|
173
|
+
},
|
|
174
|
+
name: 'renderValue',
|
|
175
|
+
setter: [
|
|
176
|
+
{
|
|
177
|
+
componentName: 'FunctionSetter',
|
|
178
|
+
props: {
|
|
179
|
+
template:
|
|
180
|
+
'renderValue(item, ctx, ${extParams}){\n// 自定义数值渲染\nreturn item.value;\n}',
|
|
181
|
+
},
|
|
182
|
+
},
|
|
183
|
+
'VariableSetter',
|
|
184
|
+
],
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
configure: {
|
|
188
|
+
component: {
|
|
189
|
+
isContainer: false,
|
|
190
|
+
},
|
|
191
|
+
supports: {
|
|
192
|
+
style: true,
|
|
193
|
+
className: true,
|
|
194
|
+
events: [
|
|
195
|
+
{
|
|
196
|
+
name: 'onExpandedKeysChange',
|
|
197
|
+
template:
|
|
198
|
+
"onExpandedKeysChange(keys,${extParams}){\n// 展开项变化\nconsole.log('onExpandedKeysChange', keys);}",
|
|
199
|
+
},
|
|
200
|
+
],
|
|
201
|
+
},
|
|
202
|
+
},
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
const snippets: IPublicTypeSnippet[] = [
|
|
206
|
+
{
|
|
207
|
+
title: '层级汇总列表',
|
|
208
|
+
screenshot: '',
|
|
209
|
+
schema: {
|
|
210
|
+
componentName: 'PisellHierarchicalSummaryList',
|
|
211
|
+
props: {
|
|
212
|
+
items: [
|
|
213
|
+
{
|
|
214
|
+
key: 'l1',
|
|
215
|
+
label: 'Label',
|
|
216
|
+
value: 'Value',
|
|
217
|
+
children: [
|
|
218
|
+
{
|
|
219
|
+
key: 'l2',
|
|
220
|
+
label: 'Label',
|
|
221
|
+
value: 'Value',
|
|
222
|
+
children: [
|
|
223
|
+
{ key: 'l3-1', label: 'Label · N items', value: 'Value' },
|
|
224
|
+
{
|
|
225
|
+
key: 'l3-2',
|
|
226
|
+
label: 'Label',
|
|
227
|
+
infoTooltip: 'Tooltip',
|
|
228
|
+
value: 'Value',
|
|
229
|
+
},
|
|
230
|
+
],
|
|
231
|
+
},
|
|
232
|
+
],
|
|
233
|
+
},
|
|
234
|
+
],
|
|
235
|
+
defaultExpandedLevel: 2,
|
|
236
|
+
},
|
|
237
|
+
},
|
|
238
|
+
},
|
|
239
|
+
];
|
|
240
|
+
|
|
241
|
+
export default {
|
|
242
|
+
...PisellHierarchicalSummaryListMeta,
|
|
243
|
+
snippets,
|
|
244
|
+
};
|
|
@@ -9,7 +9,7 @@ const renderFigmaStyleRoundTableCardMeta: ComponentMetadata = {
|
|
|
9
9
|
"devMode": "proCode",
|
|
10
10
|
"npm": {
|
|
11
11
|
"package": "@pisell/materials",
|
|
12
|
-
"version": "1.0.
|
|
12
|
+
"version": "1.0.1060",
|
|
13
13
|
"exportName": "renderFigmaStyleRoundTableCard",
|
|
14
14
|
"main": "src\\index.tsx",
|
|
15
15
|
"destructuring": true,
|
|
@@ -9,7 +9,7 @@ const renderFigmaStyleTableCardMeta: ComponentMetadata = {
|
|
|
9
9
|
"devMode": "proCode",
|
|
10
10
|
"npm": {
|
|
11
11
|
"package": "@pisell/materials",
|
|
12
|
-
"version": "1.0.
|
|
12
|
+
"version": "1.0.1060",
|
|
13
13
|
"exportName": "renderFigmaStyleTableCard",
|
|
14
14
|
"main": "src\\index.tsx",
|
|
15
15
|
"destructuring": true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pisell/materials",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1062",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"module": "./es/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
"swiper": "^8.4.7",
|
|
91
91
|
"antd-mobile": "^5.38.1",
|
|
92
92
|
"vod-js-sdk-v6": "^1.4.11",
|
|
93
|
-
"@pisell/
|
|
94
|
-
"@pisell/
|
|
95
|
-
"@pisell/
|
|
93
|
+
"@pisell/icon": "0.0.10",
|
|
94
|
+
"@pisell/utils": "1.0.66",
|
|
95
|
+
"@pisell/date-picker": "1.0.139"
|
|
96
96
|
},
|
|
97
97
|
"peerDependencies": {
|
|
98
98
|
"react": "^18.0.0",
|