| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- import type { FormProps } from '../Form/types/form';
- import type { tableProp } from './types';
- export const basicProps = {
- showTableAction: {
- type: Boolean,
- default: true
- },
- api: {
- type: Function as PropType<tableProp['api']>,
- default: () => Promise.resolve()
- },
- columns: {
- type: Array as PropType<tableProp['columns']>,
- default: () => []
- },
- searchFormConfig: {
- type: Object as PropType<FormProps>,
- default: {
- labelWidth: 120,
- layout: 'horizontal',
- gridProps: {
- cols: '1 xl:4 s:1 l:3',
- itemResponsive: true
- },
- collapsedRows: 1
- }
- },
- tableConfig: {
- type: Object as PropType<tableProp>,
- default: {
- opWdith: 130,
- title: '',
- showDeleteButton: false,
- showAddButton: true,
- keyField: 'id',
- scrollX: 1000,
- showTableHeaderAction: true,
- showSearch: true
- }
- }
- };
|