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.
@@ -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;
@@ -15,6 +15,7 @@ declare const _default: <T extends Record<string, unknown>>(__VLS_props: NonNull
15
15
  tableTitle?: string;
16
16
  propIsEditable?: boolean;
17
17
  showSelection?: boolean;
18
+ showIndex?: boolean;
18
19
  onlyDelete?: boolean;
19
20
  showDelete?: boolean;
20
21
  loading?: 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rayyy-vue-table-components",
3
- "version": "2.0.46",
3
+ "version": "2.0.48",
4
4
  "description": "Vue 3 + Element Plus 表格組件庫",
5
5
  "type": "module",
6
6
  "main": "./dist/index.umd.js",
@@ -21,7 +21,7 @@ const attrs = useAttrs()
21
21
  const keyword = ref('')
22
22
 
23
23
  const doSearch = () => {
24
- emits('keydown:enter', keyword.value)
24
+ emits('keydown:enter', keyword.value.trim())
25
25
  }
26
26
  const clearableClick = () => {
27
27
  emits('update:clear')
@@ -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
  /** 是否顯示刪除按鈕 */