diff --git a/src/components/table/defaultAttribute.ts b/src/components/table/defaultAttribute.ts new file mode 100644 index 0000000..0761d93 --- /dev/null +++ b/src/components/table/defaultAttribute.ts @@ -0,0 +1,11 @@ +export const defaultAttribute = { + align: 'center', + class: 'ba-data-table w100', + headerCellClassName: 'table-header-cell', + border: true, + stripe: true, + size: 'small', + columnConfig: { resizable: true }, + rowConfig: { isCurrent: true, isHover: true }, + scrollX: { scrollToLeftOnChange: true }, +} \ No newline at end of file diff --git a/src/components/table/index.vue b/src/components/table/index.vue index ef688ce..8aa4b9c 100644 --- a/src/components/table/index.vue +++ b/src/components/table/index.vue @@ -1,18 +1,9 @@