stk-table-vue 0.8.13 → 0.8.14

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/README.md CHANGED
@@ -31,11 +31,6 @@
31
31
  ## Demo
32
32
  [<span style="font-size: 16px;font-weight: bold;">Online Demo in stackblitz</span>](https://stackblitz.com/edit/vitejs-vite-ad91hh?file=src%2FDemo%2Findex.vue)
33
33
 
34
- ## Compare
35
- Compare performance with other vue table [vue-table-compare](https://github.com/ja-plus/vue-table-compare)
36
-
37
-
38
-
39
34
  ## Usage
40
35
  > npm install stk-table-vue
41
36
 
@@ -88,23 +83,17 @@ const dataSource = [
88
83
  [Vue2.7 Usage](https://ja-plus.github.io/stk-table-vue/main/start/vue2-usage.html)
89
84
 
90
85
  ## API
91
- ### Props
92
- [Props 表格配置](https://ja-plus.github.io/stk-table-vue/main/api/table-props.html)
86
+ * [Props](https://ja-plus.github.io/stk-table-vue/main/api/table-props.html)
93
87
 
94
- ### Emits
95
- [Emits 事件](https://ja-plus.github.io/stk-table-vue/main/api/emits.html)
88
+ * [Emits](https://ja-plus.github.io/stk-table-vue/main/api/emits.html)
96
89
 
97
- ### Slots
98
- [Slots 插槽](https://ja-plus.github.io/stk-table-vue/main/api/slots.html)
90
+ * [Slots](https://ja-plus.github.io/stk-table-vue/main/api/slots.html)
99
91
 
100
- ### Expose
101
- [Expose 实例方法](https://ja-plus.github.io/stk-table-vue/main/api/expose.html)
92
+ * [Expose](https://ja-plus.github.io/stk-table-vue/main/api/expose.html)
102
93
 
103
- ### StkTableColumn 列配置
104
- [StkTableColumn 列配置](https://ja-plus.github.io/stk-table-vue/main/api/stk-table-column.html)
94
+ * [StkTableColumn: Define column type](https://ja-plus.github.io/stk-table-vue/main/api/stk-table-column.html)
105
95
 
106
- ### setHighlightDimCell & setHighlightDimRow
107
- [Highlight 高亮](https://ja-plus.github.io/stk-table-vue/main/api/expose.html#sethighlightdimcell)
96
+ * [Highlight: setHighlightDimCell & setHighlightDimRow](https://ja-plus.github.io/stk-table-vue/main/api/expose.html#sethighlightdimcell)
108
97
 
109
98
 
110
99
  ### Example
@@ -175,6 +164,9 @@ const dataSource = [
175
164
  </script>
176
165
  ```
177
166
 
167
+ ## Compare
168
+ Compare performance with other vue table [vue-table-compare](https://github.com/ja-plus/vue-table-compare)
169
+
178
170
 
179
171
  ## Other
180
172
  * `$*$`
@@ -4,6 +4,8 @@ import { AutoRowHeightConfig, ColResizableConfig, DragRowConfig, ExpandConfig, H
4
4
  type DT = any & PrivateRowDT;
5
5
  /**
6
6
  * 选中一行
7
+ *
8
+ * en: Select a row
7
9
  * @param {string} rowKeyOrRow selected rowKey, undefined to unselect
8
10
  * @param {boolean} option.silent if set true not emit `current-change`. default:false
9
11
  * @param {boolean} option.deep if set true, deep search in children. default:false
@@ -680,6 +682,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
680
682
  minWidth: string;
681
683
  maxWidth: string;
682
684
  sortConfig: SortConfig<DT>;
685
+ colKey: UniqKeyProp;
683
686
  rowHeight: number;
684
687
  headless: boolean;
685
688
  autoRowHeight: boolean | AutoRowHeightConfig<DT>;
@@ -687,7 +690,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
687
690
  optimizeVue2Scroll: boolean;
688
691
  rowKey: UniqKeyProp;
689
692
  headerRowHeight: number | string | null;
690
- colKey: UniqKeyProp;
691
693
  fixedMode: boolean;
692
694
  theme: "light" | "dark";
693
695
  rowHover: boolean;
@@ -51,3 +51,6 @@ export declare function howDeepTheHeader(arr: StkTableColumn<any>[], level?: num
51
51
  export declare function transformWidthToStr(width?: string | number): string | undefined;
52
52
  export declare function getBrowsersVersion(browserName: string): number;
53
53
  export declare function pureCellKeyGen(rowKey: UniqKey, colKey: UniqKey): string;
54
+ export declare function getClosestTr(e: MouseEvent): HTMLTableRowElement | null;
55
+ export declare function getClosestTrIndex(e: MouseEvent): number;
56
+ export declare function getClosestColKey(e: MouseEvent): string | undefined;