rayyy-vue-table-components 2.0.46 → 2.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +636 -632
- package/dist/index.umd.js +1 -1
- package/dist/rayyy-vue-table-components.css +1 -1
- package/dist/src/components/tables/SortTable.vue.d.ts +1 -0
- package/dist/src/components/tables/TitleTable.vue.d.ts +1 -0
- package/dist/src/types/components.d.ts +4 -0
- package/package.json +1 -1
- package/src/components/items/SearchBar.vue +1 -1
- package/src/components/tables/SortTable.vue +2 -0
- package/src/components/tables/TitleTable.vue +2 -0
- package/src/types/components.d.ts +4 -0
|
@@ -15,6 +15,7 @@ declare const _default: <T extends Record<string, unknown>>(__VLS_props: NonNull
|
|
|
15
15
|
columns: TableColumn<T>[];
|
|
16
16
|
tableTitle?: string;
|
|
17
17
|
showSelection?: boolean;
|
|
18
|
+
showIndex?: boolean;
|
|
18
19
|
loading?: boolean;
|
|
19
20
|
showSummary?: boolean;
|
|
20
21
|
showOverFlowTooltip?: boolean;
|
|
@@ -70,6 +70,8 @@ export interface SortTableProps<T extends Record<string, unknown> = Record<strin
|
|
|
70
70
|
tableTitle?: string
|
|
71
71
|
/** 是否顯示選擇列 */
|
|
72
72
|
showSelection?: boolean
|
|
73
|
+
/** 是否顯示索引列 */
|
|
74
|
+
showIndex?: boolean
|
|
73
75
|
/** 是否顯示加載狀態 */
|
|
74
76
|
loading?: boolean
|
|
75
77
|
/** 是否顯示匯總行 */
|
|
@@ -129,6 +131,8 @@ export interface TitleTableProps<T extends Record<string, unknown> = Record<stri
|
|
|
129
131
|
propIsEditable?: boolean
|
|
130
132
|
/** 是否顯示選擇列 */
|
|
131
133
|
showSelection?: boolean
|
|
134
|
+
/** 是否顯示索引列 */
|
|
135
|
+
showIndex?: boolean
|
|
132
136
|
/** 是否只顯示刪除按鈕(隱藏新增按鈕) */
|
|
133
137
|
onlyDelete?: boolean
|
|
134
138
|
/** 是否顯示刪除按鈕 */
|
package/package.json
CHANGED
|
@@ -10,6 +10,7 @@ defineProps<{
|
|
|
10
10
|
columns: TableColumn<T>[]
|
|
11
11
|
tableTitle?: string
|
|
12
12
|
showSelection?: boolean
|
|
13
|
+
showIndex?: boolean
|
|
13
14
|
loading?: boolean
|
|
14
15
|
showSummary?: boolean
|
|
15
16
|
showOverFlowTooltip?: boolean
|
|
@@ -106,6 +107,7 @@ const state = reactive({
|
|
|
106
107
|
:show-over-flow-tooltip="showOverFlowTooltip"
|
|
107
108
|
:summary-method="summaryMethod"
|
|
108
109
|
:show-selection="showSelection"
|
|
110
|
+
:show-index="showIndex"
|
|
109
111
|
:base-table-row-class-name="sortTableRowClassName"
|
|
110
112
|
:show-check-btn="showCheckBtn"
|
|
111
113
|
:show-edit-btn="showEditBtn"
|
|
@@ -14,6 +14,7 @@ defineProps<{
|
|
|
14
14
|
tableTitle?: string
|
|
15
15
|
propIsEditable?: boolean
|
|
16
16
|
showSelection?: boolean
|
|
17
|
+
showIndex?: boolean
|
|
17
18
|
onlyDelete?: boolean
|
|
18
19
|
showDelete?: boolean
|
|
19
20
|
loading?: boolean
|
|
@@ -96,6 +97,7 @@ const handleEditClick = (row: T) => {
|
|
|
96
97
|
:show-summary="showSummary"
|
|
97
98
|
:summary-method="summaryMethod"
|
|
98
99
|
:show-selection="propIsEditable || showSelection"
|
|
100
|
+
:show-index="showIndex"
|
|
99
101
|
:show-over-flow-tooltip="showOverFlowTooltip"
|
|
100
102
|
:show-check-btn="showCheckBtn"
|
|
101
103
|
:show-edit-btn="showEditBtn"
|
|
@@ -71,6 +71,8 @@ export interface SortTableProps<T extends Record<string, unknown> = Record<strin
|
|
|
71
71
|
tableTitle?: string
|
|
72
72
|
/** 是否顯示選擇列 */
|
|
73
73
|
showSelection?: boolean
|
|
74
|
+
/** 是否顯示索引列 */
|
|
75
|
+
showIndex?: boolean
|
|
74
76
|
/** 是否顯示加載狀態 */
|
|
75
77
|
loading?: boolean
|
|
76
78
|
/** 是否顯示匯總行 */
|
|
@@ -130,6 +132,8 @@ export interface TitleTableProps<T extends Record<string, unknown> = Record<stri
|
|
|
130
132
|
propIsEditable?: boolean
|
|
131
133
|
/** 是否顯示選擇列 */
|
|
132
134
|
showSelection?: boolean
|
|
135
|
+
/** 是否顯示索引列 */
|
|
136
|
+
showIndex?: boolean
|
|
133
137
|
/** 是否只顯示刪除按鈕(隱藏新增按鈕) */
|
|
134
138
|
onlyDelete?: boolean
|
|
135
139
|
/** 是否顯示刪除按鈕 */
|