Loading src/components/Table/Table.stories.ts +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ const meta: Meta = { }, }, argTypes: { data: { control: 'object' }, columns: { control: 'text' }, fontSize: { control: 'text' }, gap: { control: 'text' }, Loading src/components/Table/Table.vue +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ const sortState = computed<string[]>(() => { }); const rows = computed<ITableItem[][]>(() => calcRows( data.value!, data.value ?? props.data, sortStateActive.value, props.multipleSort, columnToFilter.value, Loading src/components/Table/helpers.ts +2 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ import type { ITableColumn, ITableItem, TTableColumnType } from '@interfaces/com import type { TSize } from '@interfaces/common'; export const calcRows = ( initRows: ITableItem[][], initRows: ITableItem[][] | undefined, sortStateActive: [number, string] | [], multipleSort: boolean, columnToFilter: number, Loading @@ -10,6 +10,7 @@ export const calcRows = ( filterValue: string, isRegisterSensitive: boolean, ) => { if (!initRows?.length) return []; // ['up', 'down', ...] let rows = [...initRows]; Loading Loading
src/components/Table/Table.stories.ts +1 −0 Original line number Diff line number Diff line Loading @@ -14,6 +14,7 @@ const meta: Meta = { }, }, argTypes: { data: { control: 'object' }, columns: { control: 'text' }, fontSize: { control: 'text' }, gap: { control: 'text' }, Loading
src/components/Table/Table.vue +1 −1 Original line number Diff line number Diff line Loading @@ -45,7 +45,7 @@ const sortState = computed<string[]>(() => { }); const rows = computed<ITableItem[][]>(() => calcRows( data.value!, data.value ?? props.data, sortStateActive.value, props.multipleSort, columnToFilter.value, Loading
src/components/Table/helpers.ts +2 −1 Original line number Diff line number Diff line Loading @@ -2,7 +2,7 @@ import type { ITableColumn, ITableItem, TTableColumnType } from '@interfaces/com import type { TSize } from '@interfaces/common'; export const calcRows = ( initRows: ITableItem[][], initRows: ITableItem[][] | undefined, sortStateActive: [number, string] | [], multipleSort: boolean, columnToFilter: number, Loading @@ -10,6 +10,7 @@ export const calcRows = ( filterValue: string, isRegisterSensitive: boolean, ) => { if (!initRows?.length) return []; // ['up', 'down', ...] let rows = [...initRows]; Loading