From fb387de29eee217181f62316c6f128d555c94b31 Mon Sep 17 00:00:00 2001 From: tugcekucukoglu Date: Mon, 29 Apr 2024 12:55:47 +0300 Subject: [PATCH 1/2] DataTable edit & filter button props updated --- components/lib/datatable/BaseDataTable.vue | 24 +++- components/lib/datatable/BodyCell.vue | 66 ++++++++--- components/lib/datatable/BodyRow.vue | 5 + components/lib/datatable/ColumnFilter.vue | 80 ++++++++------ components/lib/datatable/DataTable.d.ts | 73 ++++++++++++- components/lib/datatable/DataTable.vue | 24 +++- components/lib/datatable/TableBody.vue | 5 + doc/common/apidoc/index.json | 121 ++++++++++++++++++--- 8 files changed, 319 insertions(+), 79 deletions(-) diff --git a/components/lib/datatable/BaseDataTable.vue b/components/lib/datatable/BaseDataTable.vue index 3c36c72af..c318fbc5f 100644 --- a/components/lib/datatable/BaseDataTable.vue +++ b/components/lib/datatable/BaseDataTable.vue @@ -278,10 +278,26 @@ export default { type: Object, default() { return { - addRule: { severity: 'info', text: true, size: 'small' }, - removeRule: { severity: 'danger', text: true, size: 'small' }, - apply: { size: 'small' }, - clear: { outlined: true, size: 'small' } + filter: { severity: 'secondary', text: true, rounded: true }, + inline: { + clear: { severity: 'secondary', text: true, rounded: true } + }, + popover: { + addRule: { severity: 'info', text: true, size: 'small' }, + removeRule: { severity: 'danger', text: true, size: 'small' }, + apply: { size: 'small' }, + clear: { outlined: true, size: 'small' } + } + }; + } + }, + editButtonProps: { + type: Object, + default() { + return { + init: { severity: 'secondary', text: true, rounded: true }, + save: { severity: 'secondary', text: true, rounded: true }, + cancel: { severity: 'secondary', text: true, rounded: true } }; } } diff --git a/components/lib/datatable/BodyCell.vue b/components/lib/datatable/BodyCell.vue index e0d2b9146..b4718c323 100755 --- a/components/lib/datatable/BodyCell.vue +++ b/components/lib/datatable/BodyCell.vue @@ -83,15 +83,45 @@ @@ -99,6 +129,7 @@