@teamias/rex-design 0.0.1 → 0.0.3
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/LICENSE +21 -21
- package/README.md +3 -3
- package/dist/components/action-buttons/action-buttons.d.ts +1 -1
- package/dist/components/action-buttons/action-buttons.js +86 -76
- package/dist/components/action-buttons/demo/index.js +61 -58
- package/dist/components/base-form/base-form.js +218 -215
- package/dist/components/base-form/demo/index.js +147 -135
- package/dist/components/base-form/modules/renderComponentNode.d.ts +2 -2
- package/dist/components/base-form/modules/renderComponentNode.js +135 -130
- package/dist/components/base-form/types.d.ts +1 -1
- package/dist/components/base-form/types.js +0 -9
- package/dist/components/base-list-table/base-list-table.d.ts +2 -2
- package/dist/components/base-list-table/base-list-table.js +156 -135
- package/dist/components/base-list-table/demo/BasicBaseListTable.js +22 -13
- package/dist/components/base-list-table/demo/NoData.js +2 -1
- package/dist/components/base-list-table/demo/TableMaxRowCount.js +1669 -1663
- package/dist/components/base-list-table/demo/VirtualDemo.js +22 -13
- package/dist/components/base-table/base-table.d.ts +2 -2
- package/dist/components/base-table/base-table.js +60 -55
- package/dist/components/base-table/components/BaseTableRow.js +79 -66
- package/dist/components/base-table/demo/BaseTableAll.js +6 -2
- package/dist/components/base-table/demo/BaseTableBasic.js +5 -2
- package/dist/components/base-table/demo/BaseTableIndex.js +48 -50
- package/dist/components/base-table/demo/BaseTableRowSelect.js +2 -1
- package/dist/components/data-cell/data-cell.js +5 -4
- package/dist/components/data-cell/demo/index.js +327 -309
- package/dist/components/data-cell/modules/cellItemMap.d.ts +2 -2
- package/dist/components/data-cell/modules/cellItemMap.js +184 -157
- package/dist/components/data-cell/types.d.ts +9 -9
- package/dist/components/icons/demo/index.js +44 -40
- package/dist/components/icons/icons.d.ts +1 -1
- package/dist/components/icons/icons.js +36 -26
- package/dist/components/index.d.ts +7 -0
- package/dist/components/index.js +7 -0
- package/dist/components/media-viewer/demo/index.js +24 -20
- package/dist/components/media-viewer/media-viewer.d.ts +1 -1
- package/dist/components/media-viewer/media-viewer.js +13 -12
- package/dist/context/index.d.ts +2 -0
- package/dist/context/index.js +2 -0
- package/dist/{hooks → context}/request-fields-container/demo/index.js +10 -5
- package/dist/{hooks → context}/request-fields-container/index.js +2 -2
- package/dist/{hooks → context}/request-fields-container/request-fields-container-context-provider.js +17 -12
- package/dist/context/request-fields-container/request-fields-container-hoc.d.ts +4 -0
- package/dist/{hooks → context}/request-fields-container/request-fields-container-hoc.js +0 -1
- package/dist/{hooks → context}/request-fields-container/use-request-fields-container.js +2 -2
- package/dist/{hooks → context}/rex-pro-config-provider/demo/index.js +9 -5
- package/dist/{hooks → context}/rex-pro-config-provider/index.js +2 -2
- package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-context.js +0 -1
- package/dist/context/rex-pro-config-provider/rex-pro-config-provider.d.ts +5 -0
- package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-provider.js +8 -6
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/use-state-data/use-state-data.js +4 -4
- package/dist/index.d.ts +3 -10
- package/dist/index.js +3 -10
- package/dist/{components/base-form/locales → locales}/en-US.json +30 -21
- package/dist/{components/base-form/locales → locales}/zh-CN.json +30 -21
- package/dist/types/svg.d.ts +3 -3
- package/package.json +37 -33
- package/dist/components/base-form/locales.index.d.ts +0 -42
- package/dist/components/base-form/locales.index.js +0 -4
- package/dist/hooks/request-fields-container/request-fields-container-hoc.d.ts +0 -4
- package/dist/hooks/rex-pro-config-provider/rex-pro-config-provider.d.ts +0 -6
- package/dist/utils/locales/en-US.json +0 -13
- package/dist/utils/locales/index.d.ts +0 -26
- package/dist/utils/locales/index.js +0 -4
- package/dist/utils/locales/zh-CN.json +0 -13
- package/dist/{hooks → context}/request-fields-container/demo/index.d.ts +0 -0
- package/dist/{hooks → context}/request-fields-container/index.d.ts +2 -2
- package/dist/{hooks → context}/request-fields-container/request-fields-container-context-provider.d.ts +0 -0
- package/dist/{hooks → context}/request-fields-container/request-fields-container-context.d.ts +0 -0
- package/dist/{hooks → context}/request-fields-container/request-fields-container-context.js +0 -0
- package/dist/{hooks → context}/request-fields-container/use-request-fields-container.d.ts +0 -0
- package/dist/{hooks → context}/rex-pro-config-provider/demo/index.d.ts +0 -0
- package/dist/{hooks → context}/rex-pro-config-provider/index.d.ts +1 -1
- /package/dist/{hooks → context}/rex-pro-config-provider/rex-pro-config-context.d.ts +0 -0
- /package/dist/{hooks → context}/rex-pro-config-provider/use-rex-pro-config-provider.d.ts +0 -0
- /package/dist/{hooks → context}/rex-pro-config-provider/use-rex-pro-config-provider.js +0 -0
|
@@ -1,332 +1,350 @@
|
|
|
1
|
-
import React from "react";
|
|
2
1
|
import { DataCell } from "../../..";
|
|
2
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
4
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
5
|
export default (function () {
|
|
4
|
-
return /*#__PURE__*/
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
6
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
7
|
+
children: [/*#__PURE__*/_jsx(DataCell, {
|
|
8
|
+
items: [{
|
|
9
|
+
type: 'text',
|
|
10
|
+
props: {
|
|
11
|
+
label: '中文',
|
|
12
|
+
value: 1075
|
|
13
|
+
}
|
|
14
|
+
}, {
|
|
15
|
+
type: 'img',
|
|
16
|
+
props: {
|
|
17
|
+
label: 'ssss',
|
|
18
|
+
value: 'http://'
|
|
19
|
+
}
|
|
20
|
+
}, {
|
|
21
|
+
type: 'tag',
|
|
22
|
+
props: {
|
|
23
|
+
label: 'ssss',
|
|
24
|
+
value: 'http://'
|
|
25
|
+
}
|
|
26
|
+
}, {
|
|
27
|
+
type: 'link',
|
|
28
|
+
props: {
|
|
29
|
+
label: 'ssss',
|
|
30
|
+
value: 'http://'
|
|
31
|
+
}
|
|
32
|
+
}, {
|
|
33
|
+
type: 'icon',
|
|
34
|
+
props: {
|
|
35
|
+
label: 'iconify',
|
|
36
|
+
value: 'svg-spinners:ring-resize'
|
|
37
|
+
}
|
|
38
|
+
}, {
|
|
39
|
+
type: 'link-group',
|
|
40
|
+
props: {
|
|
41
|
+
items: [{
|
|
42
|
+
label: 'ssss',
|
|
43
|
+
value: 'http://',
|
|
44
|
+
action: 'url',
|
|
45
|
+
style: {
|
|
46
|
+
color: 'red'
|
|
47
|
+
}
|
|
48
|
+
}, {
|
|
49
|
+
label: 'ssss',
|
|
50
|
+
value: 'http://',
|
|
51
|
+
action: 'url'
|
|
52
|
+
}]
|
|
53
|
+
}
|
|
54
|
+
}, {
|
|
55
|
+
type: 'group',
|
|
56
|
+
props: {
|
|
42
57
|
style: {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}, {
|
|
83
|
-
"type": "text",
|
|
84
|
-
"props": {
|
|
85
|
-
"label": "中文2",
|
|
86
|
-
"value": {
|
|
87
|
-
"type": "img",
|
|
88
|
-
"props": {
|
|
89
|
-
"label": "ssss",
|
|
90
|
-
value: 'http://'
|
|
58
|
+
display: 'inline-flex',
|
|
59
|
+
flexDirection: 'column',
|
|
60
|
+
gap: 10
|
|
61
|
+
},
|
|
62
|
+
items: [{
|
|
63
|
+
type: 'icon',
|
|
64
|
+
props: {
|
|
65
|
+
label: 'iconify',
|
|
66
|
+
value: 'svg-spinners:ring-resize'
|
|
67
|
+
}
|
|
68
|
+
}, {
|
|
69
|
+
type: 'text',
|
|
70
|
+
props: {
|
|
71
|
+
label: '中文',
|
|
72
|
+
value: 1075
|
|
73
|
+
}
|
|
74
|
+
}]
|
|
75
|
+
}
|
|
76
|
+
}]
|
|
77
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
78
|
+
children: "-------------------------------------"
|
|
79
|
+
}), /*#__PURE__*/_jsx(DataCell, {
|
|
80
|
+
items: [{
|
|
81
|
+
type: 'text',
|
|
82
|
+
props: {
|
|
83
|
+
label: '中文',
|
|
84
|
+
value: 1075,
|
|
85
|
+
copyable: true
|
|
86
|
+
}
|
|
87
|
+
}, {
|
|
88
|
+
type: 'text',
|
|
89
|
+
props: {
|
|
90
|
+
label: '中文2',
|
|
91
|
+
value: {
|
|
92
|
+
type: 'img',
|
|
93
|
+
props: {
|
|
94
|
+
label: 'ssss',
|
|
95
|
+
value: 'http://'
|
|
96
|
+
}
|
|
91
97
|
}
|
|
92
98
|
}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
99
|
+
}, {
|
|
100
|
+
type: 'text',
|
|
101
|
+
props: {
|
|
102
|
+
label: '中文2',
|
|
103
|
+
value: {
|
|
104
|
+
type: 'tag',
|
|
105
|
+
props: {
|
|
106
|
+
label: 'ssss',
|
|
107
|
+
value: 'http://'
|
|
108
|
+
}
|
|
103
109
|
}
|
|
104
110
|
}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
111
|
+
}, {
|
|
112
|
+
type: 'text',
|
|
113
|
+
props: {
|
|
114
|
+
label: '中文2',
|
|
115
|
+
value: {
|
|
116
|
+
type: 'link',
|
|
117
|
+
props: {
|
|
118
|
+
label: 'ssss',
|
|
119
|
+
value: 'http://',
|
|
120
|
+
copyable: '自定义内容'
|
|
121
|
+
}
|
|
116
122
|
}
|
|
117
123
|
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
124
|
+
}, {
|
|
125
|
+
type: 'text',
|
|
126
|
+
props: {
|
|
127
|
+
label: '中文2',
|
|
128
|
+
value: {
|
|
129
|
+
type: 'icon',
|
|
130
|
+
props: {
|
|
131
|
+
label: 'iconify',
|
|
132
|
+
value: 'svg-spinners:ring-resize'
|
|
133
|
+
}
|
|
128
134
|
}
|
|
129
135
|
}
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
}
|
|
136
|
+
}, {
|
|
137
|
+
type: 'text',
|
|
138
|
+
props: {
|
|
139
|
+
label: '中文2',
|
|
140
|
+
value: {
|
|
141
|
+
type: 'link-group',
|
|
142
|
+
props: {
|
|
143
|
+
items: [{
|
|
144
|
+
label: 'ssss',
|
|
145
|
+
value: 'http://',
|
|
146
|
+
action: 'url',
|
|
147
|
+
style: {
|
|
148
|
+
color: 'red'
|
|
149
|
+
}
|
|
150
|
+
}, {
|
|
151
|
+
label: 'ssss',
|
|
152
|
+
value: 'http://',
|
|
153
|
+
action: 'url'
|
|
154
|
+
}]
|
|
155
|
+
}
|
|
150
156
|
}
|
|
151
157
|
}
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
}
|
|
172
|
-
}
|
|
158
|
+
}, {
|
|
159
|
+
type: 'text',
|
|
160
|
+
props: {
|
|
161
|
+
label: '中文2',
|
|
162
|
+
value: {
|
|
163
|
+
type: 'group',
|
|
164
|
+
props: {
|
|
165
|
+
items: [{
|
|
166
|
+
type: 'icon',
|
|
167
|
+
props: {
|
|
168
|
+
label: 'iconify',
|
|
169
|
+
value: 'svg-spinners:ring-resize'
|
|
170
|
+
}
|
|
171
|
+
}, {
|
|
172
|
+
type: 'text',
|
|
173
|
+
props: {
|
|
174
|
+
label: '中文',
|
|
175
|
+
value: 1075
|
|
176
|
+
}
|
|
177
|
+
}]
|
|
178
|
+
}
|
|
173
179
|
}
|
|
174
180
|
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
value: 'http://',
|
|
206
|
-
action: 'default',
|
|
207
|
-
tooltip: '进7天数据',
|
|
208
|
-
style: {
|
|
209
|
-
color: 'red'
|
|
181
|
+
}]
|
|
182
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
183
|
+
children: "-------------------------------------"
|
|
184
|
+
}), /*#__PURE__*/_jsx(DataCell, {
|
|
185
|
+
items: [{
|
|
186
|
+
type: 'img',
|
|
187
|
+
props: {
|
|
188
|
+
label: 'ssss',
|
|
189
|
+
value: 'http://'
|
|
190
|
+
}
|
|
191
|
+
}]
|
|
192
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
193
|
+
children: "-------------------------------------"
|
|
194
|
+
}), /*#__PURE__*/_jsx(DataCell, {
|
|
195
|
+
items: [{
|
|
196
|
+
type: 'tag',
|
|
197
|
+
props: {
|
|
198
|
+
label: 'ssss',
|
|
199
|
+
value: 'http://'
|
|
200
|
+
}
|
|
201
|
+
}]
|
|
202
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
203
|
+
children: "-------------------------------------"
|
|
204
|
+
}), /*#__PURE__*/_jsx(DataCell, {
|
|
205
|
+
items: [{
|
|
206
|
+
type: 'link',
|
|
207
|
+
props: {
|
|
208
|
+
label: 'ssss',
|
|
209
|
+
value: 'http://',
|
|
210
|
+
action: 'url'
|
|
210
211
|
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
"label": "ssss",
|
|
216
|
-
value: 'http://',
|
|
217
|
-
action: 'custom'
|
|
218
|
-
}
|
|
219
|
-
}]
|
|
220
|
-
}), /*#__PURE__*/React.createElement("span", null, "-------------------------------------"), /*#__PURE__*/React.createElement(DataCell, {
|
|
221
|
-
items: [{
|
|
222
|
-
"type": "icon",
|
|
223
|
-
"props": {
|
|
224
|
-
"label": "iconify",
|
|
225
|
-
value: 'svg-spinners:ring-resize'
|
|
226
|
-
}
|
|
227
|
-
}]
|
|
228
|
-
}), /*#__PURE__*/React.createElement("span", null, "-------------------------------------"), /*#__PURE__*/React.createElement(DataCell, {
|
|
229
|
-
items: [{
|
|
230
|
-
"type": "link-group",
|
|
231
|
-
"props": {
|
|
232
|
-
items: [{
|
|
233
|
-
"label": "ssss",
|
|
212
|
+
}, {
|
|
213
|
+
type: 'link',
|
|
214
|
+
props: {
|
|
215
|
+
label: 'ssss',
|
|
234
216
|
value: 'http://',
|
|
235
|
-
action: '
|
|
217
|
+
action: 'default',
|
|
218
|
+
tooltip: '进7天数据',
|
|
236
219
|
style: {
|
|
237
220
|
color: 'red'
|
|
238
|
-
},
|
|
239
|
-
tooltip: '进7天数据'
|
|
240
|
-
}, {
|
|
241
|
-
"label": "ssss",
|
|
242
|
-
value: 'http://',
|
|
243
|
-
action: 'url'
|
|
244
|
-
}]
|
|
245
|
-
}
|
|
246
|
-
}]
|
|
247
|
-
}), /*#__PURE__*/React.createElement("span", null, "-------------------------------------"), /*#__PURE__*/React.createElement(DataCell, {
|
|
248
|
-
items: [{
|
|
249
|
-
type: 'group',
|
|
250
|
-
props: {
|
|
251
|
-
style: {
|
|
252
|
-
display: 'inline-flex',
|
|
253
|
-
flexDirection: 'column',
|
|
254
|
-
gap: 10
|
|
255
|
-
},
|
|
256
|
-
items: [{
|
|
257
|
-
"type": "icon",
|
|
258
|
-
"props": {
|
|
259
|
-
"label": "iconify",
|
|
260
|
-
value: 'svg-spinners:ring-resize'
|
|
261
|
-
}
|
|
262
|
-
}, {
|
|
263
|
-
"type": "text",
|
|
264
|
-
"props": {
|
|
265
|
-
"label": "中文",
|
|
266
|
-
"value": 1075
|
|
267
|
-
}
|
|
268
|
-
}, {
|
|
269
|
-
"type": "link-group",
|
|
270
|
-
"props": {
|
|
271
|
-
items: [{
|
|
272
|
-
"label": "ssss",
|
|
273
|
-
value: 'http://',
|
|
274
|
-
action: 'url',
|
|
275
|
-
style: {
|
|
276
|
-
color: 'red'
|
|
277
|
-
},
|
|
278
|
-
tooltip: '进7天数据'
|
|
279
|
-
}, {
|
|
280
|
-
"label": "ssss",
|
|
281
|
-
value: 'http://',
|
|
282
|
-
action: 'url'
|
|
283
|
-
}]
|
|
284
|
-
}
|
|
285
|
-
}]
|
|
286
|
-
}
|
|
287
|
-
}, {
|
|
288
|
-
"type": "group",
|
|
289
|
-
props: {
|
|
290
|
-
"style": {
|
|
291
|
-
"display": "inline-flex",
|
|
292
|
-
"alignItems": "center",
|
|
293
|
-
gap: 10
|
|
294
|
-
},
|
|
295
|
-
"items": [{
|
|
296
|
-
"type": "img",
|
|
297
|
-
"props": {
|
|
298
|
-
"value": "http://image.spocoo.com/a5160c8d2dc02477ba82dd4f41b9cc6bjpg",
|
|
299
|
-
"width": 50
|
|
300
221
|
}
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
|
|
222
|
+
}
|
|
223
|
+
}, {
|
|
224
|
+
type: 'link',
|
|
225
|
+
props: {
|
|
226
|
+
label: 'ssss',
|
|
227
|
+
value: 'http://',
|
|
228
|
+
action: 'custom'
|
|
229
|
+
}
|
|
230
|
+
}]
|
|
231
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
232
|
+
children: "-------------------------------------"
|
|
233
|
+
}), /*#__PURE__*/_jsx(DataCell, {
|
|
234
|
+
items: [{
|
|
235
|
+
type: 'icon',
|
|
236
|
+
props: {
|
|
237
|
+
label: 'iconify',
|
|
238
|
+
value: 'svg-spinners:ring-resize'
|
|
239
|
+
}
|
|
240
|
+
}]
|
|
241
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
242
|
+
children: "-------------------------------------"
|
|
243
|
+
}), /*#__PURE__*/_jsx(DataCell, {
|
|
244
|
+
items: [{
|
|
245
|
+
type: 'link-group',
|
|
246
|
+
props: {
|
|
247
|
+
items: [{
|
|
248
|
+
label: 'ssss',
|
|
249
|
+
value: 'http://',
|
|
250
|
+
action: 'url',
|
|
304
251
|
style: {
|
|
305
|
-
|
|
252
|
+
color: 'red'
|
|
306
253
|
},
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
254
|
+
tooltip: '进7天数据'
|
|
255
|
+
}, {
|
|
256
|
+
label: 'ssss',
|
|
257
|
+
value: 'http://',
|
|
258
|
+
action: 'url'
|
|
259
|
+
}]
|
|
260
|
+
}
|
|
261
|
+
}]
|
|
262
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
263
|
+
children: "-------------------------------------"
|
|
264
|
+
}), /*#__PURE__*/_jsx(DataCell, {
|
|
265
|
+
items: [{
|
|
266
|
+
type: 'group',
|
|
267
|
+
props: {
|
|
268
|
+
style: {
|
|
269
|
+
display: 'inline-flex',
|
|
270
|
+
flexDirection: 'column',
|
|
271
|
+
gap: 10
|
|
272
|
+
},
|
|
273
|
+
items: [{
|
|
274
|
+
type: 'icon',
|
|
275
|
+
props: {
|
|
276
|
+
label: 'iconify',
|
|
277
|
+
value: 'svg-spinners:ring-resize'
|
|
278
|
+
}
|
|
279
|
+
}, {
|
|
280
|
+
type: 'text',
|
|
281
|
+
props: {
|
|
282
|
+
label: '中文',
|
|
283
|
+
value: 1075
|
|
284
|
+
}
|
|
285
|
+
}, {
|
|
286
|
+
type: 'link-group',
|
|
287
|
+
props: {
|
|
288
|
+
items: [{
|
|
289
|
+
label: 'ssss',
|
|
290
|
+
value: 'http://',
|
|
291
|
+
action: 'url',
|
|
292
|
+
style: {
|
|
293
|
+
color: 'red'
|
|
294
|
+
},
|
|
295
|
+
tooltip: '进7天数据'
|
|
296
|
+
}, {
|
|
297
|
+
label: 'ssss',
|
|
298
|
+
value: 'http://',
|
|
299
|
+
action: 'url'
|
|
300
|
+
}]
|
|
301
|
+
}
|
|
302
|
+
}]
|
|
303
|
+
}
|
|
304
|
+
}, {
|
|
305
|
+
type: 'group',
|
|
306
|
+
props: {
|
|
307
|
+
style: {
|
|
308
|
+
display: 'inline-flex',
|
|
309
|
+
alignItems: 'center',
|
|
310
|
+
gap: 10
|
|
311
|
+
},
|
|
312
|
+
items: [{
|
|
313
|
+
type: 'img',
|
|
314
|
+
props: {
|
|
315
|
+
value: 'http://image.spocoo.com/a5160c8d2dc02477ba82dd4f41b9cc6bjpg',
|
|
316
|
+
width: 50
|
|
317
|
+
}
|
|
318
|
+
}, {
|
|
319
|
+
type: 'group',
|
|
320
|
+
props: {
|
|
321
|
+
style: {
|
|
322
|
+
width: 140
|
|
323
|
+
},
|
|
324
|
+
items: [{
|
|
325
|
+
type: 'text',
|
|
326
|
+
props: {
|
|
327
|
+
label: '类目',
|
|
328
|
+
value: '-',
|
|
329
|
+
width: 200
|
|
330
|
+
}
|
|
331
|
+
}, {
|
|
332
|
+
type: 'text',
|
|
333
|
+
props: {
|
|
334
|
+
label: '开发员',
|
|
335
|
+
value: '0 (陈梦珂)'
|
|
336
|
+
}
|
|
337
|
+
}, {
|
|
338
|
+
type: 'text',
|
|
339
|
+
props: {
|
|
340
|
+
label: '发布',
|
|
341
|
+
value: '2024-05-21'
|
|
342
|
+
}
|
|
343
|
+
}]
|
|
344
|
+
}
|
|
345
|
+
}]
|
|
346
|
+
}
|
|
347
|
+
}]
|
|
348
|
+
})]
|
|
349
|
+
});
|
|
332
350
|
});
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import React from
|
|
2
|
-
import {
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IDataCellProps, TDataCellType, TGroupV2 } from '../types';
|
|
3
3
|
export declare const cellItemMap: Record<TDataCellType, (item: IDataCellProps['items'][number], click?: (rawItem: IDataCellProps['items'][number], subItem?: Exclude<TGroupV2['props'], undefined>['items'][number]) => void) => React.ReactNode>;
|