@farm-investimentos/front-mfe-components 2.2.0 → 2.2.1
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/dist/front-mfe-components.common.js +51 -51
- package/dist/front-mfe-components.common.js.map +1 -1
- package/dist/front-mfe-components.css +1 -1
- package/dist/front-mfe-components.umd.js +51 -51
- package/dist/front-mfe-components.umd.js.map +1 -1
- package/dist/front-mfe-components.umd.min.js +1 -1
- package/dist/front-mfe-components.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/src/components/DataTableHeader/DataTableHeader.stories.js +33 -0
- package/src/components/DataTableHeader/DataTableHeader.vue +1 -1
- package/src/components/DataTablePaginator/DataTablePaginator.stories.js +1 -1
package/package.json
CHANGED
|
@@ -5,4 +5,37 @@ export default {
|
|
|
5
5
|
component: DataTableHeader,
|
|
6
6
|
};
|
|
7
7
|
|
|
8
|
+
export const Primary = () => ({
|
|
9
|
+
components: { DataTableHeader },
|
|
10
|
+
data() {
|
|
11
|
+
return {
|
|
12
|
+
headers: [
|
|
13
|
+
{
|
|
14
|
+
text: 'Grupo',
|
|
15
|
+
sortable: true,
|
|
16
|
+
value: 'name',
|
|
17
|
+
align: 'left',
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
text: 'Aprovado',
|
|
21
|
+
sortable: true,
|
|
22
|
+
value: 'approvedAmount',
|
|
23
|
+
align: 'center',
|
|
24
|
+
width: 160,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
text: 'Disponível',
|
|
28
|
+
sortable: false,
|
|
29
|
+
value: 'availableAmount',
|
|
30
|
+
align: 'center',
|
|
31
|
+
width: 160,
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
sortClick: [],
|
|
35
|
+
firstSelected: false,
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
template: `<DataTableHeader :headers="headers" :sortClick="sortClick" :firstSelected="firstSelected" />`,
|
|
39
|
+
});
|
|
40
|
+
|
|
8
41
|
Primary.storyName = 'Básico';
|
|
@@ -29,4 +29,4 @@ export const CustomPerPage = () => ({
|
|
|
29
29
|
Primary.storyName = 'Básico';
|
|
30
30
|
Secondary.storyName = 'Sem limite por páginas';
|
|
31
31
|
Disabled.storyName = 'Desabilitado';
|
|
32
|
-
CustomPerPage.storyName = 'Lista de
|
|
32
|
+
CustomPerPage.storyName = 'Lista de registros por página customizada';
|