stk-table-vue 0.6.7 → 0.6.9

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.
@@ -1,4 +1,5 @@
1
1
  import { Component, ConcreteComponent } from 'vue';
2
+
2
3
  /** 排序方式,asc-正序,desc-倒序,null-默认顺序 */
3
4
  export type Order = null | 'asc' | 'desc';
4
5
  type Sorter<T> = boolean | ((data: T[], option: {
@@ -1,4 +1,5 @@
1
1
  import { Ref } from 'vue';
2
+
2
3
  type Options = {
3
4
  props: any;
4
5
  tableContainerRef: Ref<HTMLElement | undefined>;
@@ -1,5 +1,6 @@
1
1
  import { ComputedRef, Ref, ShallowRef } from 'vue';
2
2
  import { StkTableColumn, UniqKey } from './types';
3
+
3
4
  type Params<DT extends Record<string, any>> = {
4
5
  props: any;
5
6
  emits: any;
@@ -1,6 +1,7 @@
1
1
  import { ComputedRef, Ref, ShallowRef } from 'vue';
2
2
  import { StkTableColumn, UniqKey } from './types';
3
3
  import { VirtualScrollXStore } from './useVirtualScroll';
4
+
4
5
  type Params<T extends Record<string, any>> = {
5
6
  props: any;
6
7
  colKeyGen: ComputedRef<(col: StkTableColumn<T>) => UniqKey>;
@@ -1,6 +1,7 @@
1
1
  import { CSSProperties, ComputedRef, Ref } from 'vue';
2
2
  import { StkTableColumn, TagType } from './types';
3
3
  import { VirtualScrollStore, VirtualScrollXStore } from './useVirtualScroll';
4
+
4
5
  type Options<T extends Record<string, any>> = {
5
6
  props: any;
6
7
  isRelativeMode: Ref<boolean>;
@@ -1,5 +1,6 @@
1
1
  import { ComputedRef, ShallowRef } from 'vue';
2
2
  import { StkTableColumn, UniqKey } from './types';
3
+
3
4
  type Params<T extends Record<string, any>> = {
4
5
  colKeyGen: ComputedRef<(col: StkTableColumn<T>) => UniqKey>;
5
6
  tableHeadersForCalc: ShallowRef<StkTableColumn<T>[][]>;
@@ -1,6 +1,7 @@
1
1
  import { Ref } from 'vue';
2
2
  import { UniqKey } from './types';
3
3
  import { HighlightDimCellOption, HighlightDimRowOption } from './types/highlightDimOptions';
4
+
4
5
  type Params = {
5
6
  props: any;
6
7
  stkTableId: string;
@@ -1,6 +1,7 @@
1
1
  import { ComputedRef, Ref, ShallowRef } from 'vue';
2
2
  import { StkTableColumn } from './types';
3
3
  import { VirtualScrollStore, VirtualScrollXStore } from './useVirtualScroll';
4
+
4
5
  type Options<DT extends Record<string, any>> = {
5
6
  props: any;
6
7
  scrollTo: (y: number | null, x: number | null) => void;
@@ -1,5 +1,6 @@
1
1
  import { ComputedRef } from 'vue';
2
2
  import { StkTableColumn, UniqKey } from './types';
3
+
3
4
  type Params<T extends Record<string, any>> = {
4
5
  props: any;
5
6
  emits: any;
@@ -1,5 +1,6 @@
1
1
  import { ShallowRef } from 'vue';
2
2
  import { DragRowConfig } from './types';
3
+
3
4
  type Params = {
4
5
  props: any;
5
6
  emits: any;
@@ -1,5 +1,6 @@
1
1
  import { Ref, ShallowRef } from 'vue';
2
2
  import { StkTableColumn, UniqKey } from './types';
3
+
3
4
  type Option<DT extends Record<string, any>> = {
4
5
  props: any;
5
6
  tableContainerRef: Ref<HTMLElement | undefined>;
@@ -1,4 +1,5 @@
1
1
  import { PrivateStkTableColumn, StkTableColumn } from '../types';
2
+
2
3
  /**
3
4
  * 获取列宽
4
5
  *
@@ -1,4 +1,5 @@
1
1
  import { Order, SortConfig, SortOption, SortState, StkTableColumn } from '../types';
2
+
2
3
  /** 是否空值 */
3
4
  export declare function isEmptyValue(val: any, isNumber?: boolean): boolean;
4
5
  /**
@@ -1,4 +1,5 @@
1
1
  import { Ref } from 'vue';
2
+
2
3
  type UseTriggerRef<T> = {
3
4
  getRef: () => Ref<T>;
4
5
  getValue: () => T;