From 24a4cd43094d85d6e97bde5e422a4f3cb1389bce Mon Sep 17 00:00:00 2001 From: Dahyun Yu Date: Thu, 16 Feb 2023 16:50:08 +0900 Subject: [PATCH] feat(search-table): delete `PSearchTable` component (#302) Signed-off-by: Dahyun Yu --- src/components.ts | 1 - .../tables/search-table/PSearchTable.vue | 183 ------------------ src/data-display/tables/search-table/type.ts | 35 ---- 3 files changed, 219 deletions(-) delete mode 100644 src/data-display/tables/search-table/PSearchTable.vue delete mode 100644 src/data-display/tables/search-table/type.ts diff --git a/src/components.ts b/src/components.ts index 7f0bc3544..3e31a3d9e 100644 --- a/src/components.ts +++ b/src/components.ts @@ -65,7 +65,6 @@ export { default as PQuerySearchTags } from './inputs/search/query-search-tags/P export { default as PFilterableQueryDropdown } from './inputs/dropdown/filterable-query-dropdown/PFilterableQueryDropdown.vue'; export { default as PDataTable } from './data-display/tables/data-table/PDataTable.vue'; export { default as PDefinitionTable } from './data-display/tables/definition-table/PDefinitionTable.vue'; -export { default as PSearchTable } from './data-display/tables/search-table/PSearchTable.vue'; export { default as PToolboxTable } from './data-display/tables/toolbox-table/PToolboxTable.vue'; export { default as PButtonTab } from './navigation/tabs/button-tab/PButtonTab.vue'; export { default as PTab } from './navigation/tabs/tab/PTab.vue'; diff --git a/src/data-display/tables/search-table/PSearchTable.vue b/src/data-display/tables/search-table/PSearchTable.vue deleted file mode 100644 index f3c3f07ac..000000000 --- a/src/data-display/tables/search-table/PSearchTable.vue +++ /dev/null @@ -1,183 +0,0 @@ - - - - - diff --git a/src/data-display/tables/search-table/type.ts b/src/data-display/tables/search-table/type.ts deleted file mode 100644 index e836f786b..000000000 --- a/src/data-display/tables/search-table/type.ts +++ /dev/null @@ -1,35 +0,0 @@ -import type { DataTableFieldType } from '@/data-display/tables/data-table/type'; - -export interface SearchTableProps { - fields: DataTableFieldType[]; - items: any[]; - loading: boolean; - sortBy?: string; // sync - sortDesc?: boolean; // sync - selectIndex?: number[]; // sync - thisPage?: number; // sync - pageSize?: number; // sync - totalCount: number; - searchText?: string; // sync - selectable: boolean; - multiSelect: boolean; - excelVisible: boolean; - pageSizeVisible: boolean; - colCopy: boolean; - searchable: boolean; -} - -export interface Options { - sortBy?: string; - sortDesc?: boolean; - pageStart?: number; - pageLimit?: number; - searchText?: string; -} - -export interface SearchTableListeners { - init?: (options: Readonly) => void|Promise; - change?: (options: Readonly, changedOptions: Partial>) => void|Promise; - export?: () => void|Promise; - select?: (selectIndex: number[]) => void|Promise; -}