@omniumretail/component-library 1.1.48 → 1.1.50
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.
|
@@ -41,5 +41,8 @@ export interface ResponsiveTableCustomProps extends TableProps<any> {
|
|
|
41
41
|
columnName: string;
|
|
42
42
|
width: string;
|
|
43
43
|
}[];
|
|
44
|
+
buttonActionName?: string;
|
|
45
|
+
buttonActionMethod?: () => void;
|
|
46
|
+
buttonActionStyle?: string;
|
|
44
47
|
}
|
|
45
48
|
export declare const ResponsiveTable: (props: ResponsiveTableCustomProps) => import("react/jsx-runtime").JSX.Element;
|
package/package.json
CHANGED
|
@@ -5,7 +5,8 @@ import { Menu as MenuAntd} from 'antd';
|
|
|
5
5
|
|
|
6
6
|
export const Menu = (props: MenuProps) => {
|
|
7
7
|
const {
|
|
8
|
-
items
|
|
8
|
+
items,
|
|
9
|
+
mode
|
|
9
10
|
} = props;
|
|
10
11
|
|
|
11
12
|
const onClick: MenuProps['onClick'] = (e) => {
|
|
@@ -15,7 +16,7 @@ export const Menu = (props: MenuProps) => {
|
|
|
15
16
|
return (
|
|
16
17
|
<MenuAntd
|
|
17
18
|
onClick={onClick}
|
|
18
|
-
mode="inline"
|
|
19
|
+
mode={mode || "inline"}
|
|
19
20
|
items={items}
|
|
20
21
|
expandIcon={({ isOpen }) => (isOpen ? <MinusOutlined /> : <PlusOutlined />)}
|
|
21
22
|
/>
|
|
@@ -4,332 +4,336 @@ import { useState } from "react";
|
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
|
|
6
6
|
export default {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
title: 'ResponsiveTable',
|
|
8
|
+
component: ResponsiveTable,
|
|
9
9
|
} as Meta;
|
|
10
10
|
|
|
11
11
|
const Template: Story<ResponsiveTableCustomProps> = (args) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
const { t } = useTranslation();
|
|
13
|
+
const [pageInfo, setPageInfo] = useState<any>({});
|
|
14
|
+
const [rowSelectionInfo, setRowSelectionInfo] = useState<any>({});
|
|
15
|
+
const [sortBy, setSortBy] = useState<string[]>(['id', 'desc']);
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
17
|
+
const handleSortByColumnChange = (sortState: any) => {
|
|
18
|
+
console.log('handleSortChange called with:', sortState);
|
|
19
|
+
// Do something with the new sort state
|
|
20
|
+
// For example, trigger an API call
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
return <ResponsiveTable
|
|
24
|
+
scroll={{ x: 4000 }}
|
|
25
|
+
columnsSortChange={handleSortByColumnChange} paginationInfo={setPageInfo} headingTranslationsKey={'tableHeadings'} rowSelectionInfo={setRowSelectionInfo}
|
|
26
|
+
actionsArray={[
|
|
27
|
+
{
|
|
28
|
+
key: '1', label: `${t('actions.one')}`, onClick: () => {
|
|
29
|
+
console.log('onClick');
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
{ key: '2', label: `${t('actions.two')}` },
|
|
33
|
+
{
|
|
34
|
+
key: '3', label: 'label 3'
|
|
35
|
+
}
|
|
36
|
+
]}
|
|
37
|
+
fixedColumns={[{ dataIndex: 'action', side: 'right' }]} buttonActionName="POG" {...args}>
|
|
38
|
+
</ResponsiveTable>;
|
|
35
39
|
};
|
|
36
40
|
|
|
37
41
|
export const Primary = Template.bind({});
|
|
38
42
|
Primary.args = {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
id: `16`,
|
|
164
|
-
name: `João Cachulo`,
|
|
165
|
-
mecanographicNumber: "232",
|
|
166
|
-
store: `Levi's Sta Catarina`,
|
|
167
|
-
role: `Gerente`,
|
|
168
|
-
type: `Efetivo`
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
id: `17`,
|
|
172
|
-
name: `João Cachulo`,
|
|
173
|
-
mecanographicNumber: "232",
|
|
174
|
-
store: `Levi's Sta Catarina`,
|
|
175
|
-
role: `Gerente`,
|
|
176
|
-
type: `Efetivo`
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
id: `18`,
|
|
180
|
-
name: `João Cachulo`,
|
|
181
|
-
mecanographicNumber: "232",
|
|
182
|
-
store: `Levi's Sta Catarina`,
|
|
183
|
-
role: `Gerente`,
|
|
184
|
-
type: `Efetivo`
|
|
185
|
-
},
|
|
186
|
-
],
|
|
187
|
-
pagination: {
|
|
188
|
-
total: 24,
|
|
189
|
-
pageSize: 4
|
|
43
|
+
selectPlaceholder: 'Order by',
|
|
44
|
+
rowKeyValue: 'mecanographicNumber',
|
|
45
|
+
dataSource: [
|
|
46
|
+
{
|
|
47
|
+
id: `1`,
|
|
48
|
+
name: `João Cachulo`,
|
|
49
|
+
mecanographicNumber: "232",
|
|
50
|
+
store: `Levi's Sta Catarina`,
|
|
51
|
+
role: `Gerente`,
|
|
52
|
+
type: `Efetivo`
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
id: `2`,
|
|
56
|
+
name: `Filipe Martins`,
|
|
57
|
+
mecanographicNumber: "32",
|
|
58
|
+
store: `Levi's Sta Catarina`,
|
|
59
|
+
role: `Comercial`,
|
|
60
|
+
type: `Efetivo`
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: `3`,
|
|
64
|
+
name: `Anna Astori`,
|
|
65
|
+
mecanographicNumber: "3212",
|
|
66
|
+
store: `Levi's Sta Catarina`,
|
|
67
|
+
role: `Funcionário`,
|
|
68
|
+
type: `Efetivo`
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
id: `4`,
|
|
72
|
+
name: `Yield Ona`,
|
|
73
|
+
mecanographicNumber: "21232",
|
|
74
|
+
store: `Adidas Restaurantes`,
|
|
75
|
+
role: `Gerente`,
|
|
76
|
+
type: `Efetivo`
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
id: `5`,
|
|
80
|
+
name: `João Cachulo`,
|
|
81
|
+
mecanographicNumber: "232",
|
|
82
|
+
store: `Levi's Sta Catarina`,
|
|
83
|
+
role: `Gerente`,
|
|
84
|
+
type: `Efetivo`
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
id: `6`,
|
|
88
|
+
name: `Filipe Martins`,
|
|
89
|
+
mecanographicNumber: "32",
|
|
90
|
+
store: `Levi's Sta Catarina`,
|
|
91
|
+
role: `Comercial`,
|
|
92
|
+
type: `Efetivo`
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
id: `7`,
|
|
96
|
+
name: `Anna Astori`,
|
|
97
|
+
mecanographicNumber: "3212",
|
|
98
|
+
store: `Levi's Sta Catarina`,
|
|
99
|
+
role: `Funcionário`,
|
|
100
|
+
type: `Efetivo`
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
id: `8`,
|
|
104
|
+
name: `Yield Ona`,
|
|
105
|
+
mecanographicNumber: "21232",
|
|
106
|
+
store: `Adidas Restaurantes`,
|
|
107
|
+
role: `Gerente`,
|
|
108
|
+
type: `Efetivo`
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
id: `9`,
|
|
112
|
+
name: `João Cachulo`,
|
|
113
|
+
mecanographicNumber: "232",
|
|
114
|
+
store: `Levi's Sta Catarina`,
|
|
115
|
+
role: `Gerente`,
|
|
116
|
+
type: `Efetivo`
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: `10`,
|
|
120
|
+
name: `Filipe Martins`,
|
|
121
|
+
mecanographicNumber: "32",
|
|
122
|
+
store: `Levi's Sta Catarina`,
|
|
123
|
+
role: `Comercial`,
|
|
124
|
+
type: `Efetivo`
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
id: `11`,
|
|
128
|
+
name: `Anna Astori`,
|
|
129
|
+
mecanographicNumber: "3212",
|
|
130
|
+
store: `Levi's Sta Catarina`,
|
|
131
|
+
role: `Funcionário`,
|
|
132
|
+
type: `Efetivo`
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
id: `12`,
|
|
136
|
+
name: `Yield Ona`,
|
|
137
|
+
mecanographicNumber: "21232",
|
|
138
|
+
store: `Adidas Restaurantes`,
|
|
139
|
+
role: `Gerente`,
|
|
140
|
+
type: `Efetivo`
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
id: `13`,
|
|
144
|
+
name: `João Cachulo`,
|
|
145
|
+
mecanographicNumber: "232",
|
|
146
|
+
store: `Levi's Sta Catarina`,
|
|
147
|
+
role: `Gerente`,
|
|
148
|
+
type: `Efetivo`
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
id: `14`,
|
|
152
|
+
name: `João Cachulo`,
|
|
153
|
+
mecanographicNumber: "232",
|
|
154
|
+
store: `Levi's Sta Catarina`,
|
|
155
|
+
role: `Gerente`,
|
|
156
|
+
type: `Efetivo`
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
id: `15`,
|
|
160
|
+
name: `João Cachulo`,
|
|
161
|
+
mecanographicNumber: "232",
|
|
162
|
+
store: `Levi's Sta Catarina`,
|
|
163
|
+
role: `Gerente`,
|
|
164
|
+
type: `Efetivo`
|
|
190
165
|
},
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
166
|
+
{
|
|
167
|
+
id: `16`,
|
|
168
|
+
name: `João Cachulo`,
|
|
169
|
+
mecanographicNumber: "232",
|
|
170
|
+
store: `Levi's Sta Catarina`,
|
|
171
|
+
role: `Gerente`,
|
|
172
|
+
type: `Efetivo`
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
id: `17`,
|
|
176
|
+
name: `João Cachulo`,
|
|
177
|
+
mecanographicNumber: "232",
|
|
178
|
+
store: `Levi's Sta Catarina`,
|
|
179
|
+
role: `Gerente`,
|
|
180
|
+
type: `Efetivo`
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
id: `18`,
|
|
184
|
+
name: `João Cachulo`,
|
|
185
|
+
mecanographicNumber: "232",
|
|
186
|
+
store: `Levi's Sta Catarina`,
|
|
187
|
+
role: `Gerente`,
|
|
188
|
+
type: `Efetivo`
|
|
189
|
+
},
|
|
190
|
+
],
|
|
191
|
+
pagination: {
|
|
192
|
+
total: 24,
|
|
193
|
+
pageSize: 4
|
|
194
|
+
},
|
|
195
|
+
hiddenColumns: ['id'],
|
|
196
|
+
sortByColumns: true,
|
|
197
|
+
columnsToSort: ["name", "mecanographicNumber"]
|
|
194
198
|
};
|
|
195
199
|
|
|
196
200
|
export const Secondary = Template.bind({});
|
|
197
201
|
Secondary.args = {
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
202
|
+
dataSource: [
|
|
203
|
+
{
|
|
204
|
+
key: `1`,
|
|
205
|
+
name: `as John Brown`,
|
|
206
|
+
mecanographicNumber: 232,
|
|
207
|
+
store: `Levi's Sta Catarina`,
|
|
208
|
+
role: `Gerente`,
|
|
209
|
+
type: `Efetivo`
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
key: `2`,
|
|
213
|
+
name: `bv Mary Brown`,
|
|
214
|
+
mecanographicNumber: 32,
|
|
215
|
+
store: `Levi's Sta Catarina`,
|
|
216
|
+
role: `Comercial`,
|
|
217
|
+
type: `Efetivo`
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
key: `3`,
|
|
221
|
+
name: `as Anna Astori`,
|
|
222
|
+
mecanographicNumber: 3212,
|
|
223
|
+
store: `Levi's Sta Catarina`,
|
|
224
|
+
role: `Funcionário`,
|
|
225
|
+
type: `Efetivo`
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
key: `4`,
|
|
229
|
+
name: `bv Yield Ona`,
|
|
230
|
+
mecanographicNumber: 21232,
|
|
231
|
+
store: `Adidas Restaurantes`,
|
|
232
|
+
role: `Gerente`,
|
|
233
|
+
type: `Efetivo`
|
|
234
|
+
},
|
|
235
|
+
],
|
|
236
|
+
pagination: {
|
|
237
|
+
total: 4,
|
|
238
|
+
pageSize: 10
|
|
239
|
+
}
|
|
236
240
|
};
|
|
237
241
|
|
|
238
242
|
export const WithCheckbox = Template.bind({});
|
|
239
243
|
WithCheckbox.args = {
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
244
|
+
dataSource: [
|
|
245
|
+
{
|
|
246
|
+
key: `1`,
|
|
247
|
+
name: `John Brown`,
|
|
248
|
+
mecanographicNumber: 232,
|
|
249
|
+
store: `Levi's Sta Catarina`,
|
|
250
|
+
role: `Gerente`,
|
|
251
|
+
type: `Efetivo`
|
|
252
|
+
},
|
|
253
|
+
{
|
|
254
|
+
key: `2`,
|
|
255
|
+
name: `Mary Brown`,
|
|
256
|
+
mecanographicNumber: 32,
|
|
257
|
+
store: `Levi's Sta Catarina`,
|
|
258
|
+
role: `Comercial`,
|
|
259
|
+
type: `Efetivo`
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
key: `3`,
|
|
263
|
+
name: `Anna Astori`,
|
|
264
|
+
mecanographicNumber: 3212,
|
|
265
|
+
store: `Levi's Sta Catarina`,
|
|
266
|
+
role: `Funcionário`,
|
|
267
|
+
type: `Efetivo`
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
key: `4`,
|
|
271
|
+
name: `Yield Ona`,
|
|
272
|
+
mecanographicNumber: 21232,
|
|
273
|
+
store: `Adidas Restaurantes`,
|
|
274
|
+
role: `Gerente`,
|
|
275
|
+
type: `Efetivo`
|
|
276
|
+
},
|
|
277
|
+
],
|
|
274
278
|
};
|
|
275
279
|
|
|
276
280
|
export const withActions = Template.bind({});
|
|
277
281
|
withActions.args = {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
key: `3`,
|
|
299
|
-
name: `Anna Astori`,
|
|
300
|
-
mecanographicNumber: "3212",
|
|
301
|
-
store: `Levi's Sta Catarina`,
|
|
302
|
-
role: `Funcionário`,
|
|
303
|
-
type: `Efetivo`
|
|
304
|
-
},
|
|
305
|
-
{
|
|
306
|
-
key: `4`,
|
|
307
|
-
name: `Yield Ona`,
|
|
308
|
-
mecanographicNumber: "21232",
|
|
309
|
-
store: `Adidas Restaurantes`,
|
|
310
|
-
role: `Gerente`,
|
|
311
|
-
type: `Efetivo`
|
|
312
|
-
},
|
|
313
|
-
],
|
|
314
|
-
pagination: {
|
|
315
|
-
total: 24,
|
|
316
|
-
pageSize: 4
|
|
282
|
+
fieldsToSort: ['store', 'mecanographicNumber'],
|
|
283
|
+
selectPlaceholder: 'Order by',
|
|
284
|
+
dataSource: [
|
|
285
|
+
{
|
|
286
|
+
key: `1`,
|
|
287
|
+
name: `John Brown`,
|
|
288
|
+
mecanographicNumber: "232",
|
|
289
|
+
store: `Levi's Sta Catarina`,
|
|
290
|
+
role: `Gerente`,
|
|
291
|
+
type: `Efetivo`
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
key: `2`,
|
|
295
|
+
name: `Mary Brown`,
|
|
296
|
+
mecanographicNumber: "32",
|
|
297
|
+
store: `Levi's Sta Catarina`,
|
|
298
|
+
role: `Comercial`,
|
|
299
|
+
type: `Efetivo`
|
|
317
300
|
},
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
301
|
+
{
|
|
302
|
+
key: `3`,
|
|
303
|
+
name: `Anna Astori`,
|
|
304
|
+
mecanographicNumber: "3212",
|
|
305
|
+
store: `Levi's Sta Catarina`,
|
|
306
|
+
role: `Funcionário`,
|
|
307
|
+
type: `Efetivo`
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
key: `4`,
|
|
311
|
+
name: `Yield Ona`,
|
|
312
|
+
mecanographicNumber: "21232",
|
|
313
|
+
store: `Adidas Restaurantes`,
|
|
314
|
+
role: `Gerente`,
|
|
315
|
+
type: `Efetivo`
|
|
316
|
+
},
|
|
317
|
+
],
|
|
318
|
+
pagination: {
|
|
319
|
+
total: 24,
|
|
320
|
+
pageSize: 4
|
|
321
|
+
},
|
|
322
|
+
rowSelection: {
|
|
323
|
+
type: 'checkbox',
|
|
324
|
+
selectedRowKeys: ['1']
|
|
325
|
+
}
|
|
322
326
|
};
|
|
323
327
|
|
|
324
328
|
export const NoData = Template.bind({});
|
|
325
329
|
NoData.args = {
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
330
|
+
fieldsToSort: ['store', 'mecanographicNumber'],
|
|
331
|
+
selectPlaceholder: 'Order by',
|
|
332
|
+
rowKeyValue: 'mecanographicNumber',
|
|
333
|
+
dataSource: undefined,
|
|
334
|
+
pagination: {
|
|
335
|
+
total: 24,
|
|
336
|
+
pageSize: 4
|
|
337
|
+
},
|
|
338
|
+
hiddenColumns: ['id']
|
|
335
339
|
};
|