bkui-vue 2.0.1-beta.15.table.6 → 2.0.1-beta.15.table.7

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/lib/index.js CHANGED
@@ -4,5 +4,5 @@ export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
6
  export * as plugins from './plugins';
7
- export const version = "2.0.1-beta.15.table.6";
7
+ export const version = "2.0.1-beta.15.table.7";
8
8
  window.__bkui_vue_version__ = version;
@@ -0,0 +1,20 @@
1
+ import { SetupContext } from 'vue';
2
+ import { Column, TablePropTypes } from '../props';
3
+ import { UseColumns } from './use-columns';
4
+ import { UseRows } from './use-rows';
5
+ import { UseMultiShiftKey } from './use-shift-key';
6
+ type CellRenderArgsType = {
7
+ props: TablePropTypes;
8
+ rows: UseRows;
9
+ ctx: SetupContext;
10
+ columns: UseColumns;
11
+ row: any;
12
+ index: number;
13
+ column: Column;
14
+ isChild: boolean;
15
+ multiShiftKey: UseMultiShiftKey;
16
+ };
17
+ declare const _default: ({ props, rows, ctx, columns, row, index, column, isChild, multiShiftKey, }: CellRenderArgsType) => {
18
+ renderCell: () => any;
19
+ };
20
+ export default _default;
@@ -2,7 +2,7 @@ import { Ref } from 'vue';
2
2
  import { TablePropTypes } from '../props';
3
3
  declare const _default: (props: TablePropTypes, ctx: any) => {
4
4
  renderContainer: (childrend: any) => JSX.Element;
5
- renderHeader: (childrend?: any, settings?: any) => JSX.Element;
5
+ renderHeader: (childrend?: any, settings?: any, fixedRows?: any) => JSX.Element;
6
6
  renderBody: (list: any, childrend?: any, fixedRows?: any, loadingRow?: any) => JSX.Element;
7
7
  renderFooter: (childrend?: any) => JSX.Element;
8
8
  setBodyHeight: (height: number | string) => void;
@@ -12,8 +12,9 @@ declare const _default: (props: TablePropTypes, ctx: any) => {
12
12
  setFixedColumns: (values: any[]) => void;
13
13
  setOffsetRight: () => void;
14
14
  setLineHeight: (val: number) => void;
15
- refRoot: Ref<any>;
16
- refHead: Ref<any>;
15
+ initRootStyleVars: () => void;
16
+ refRoot: Ref<HTMLElement>;
17
+ refHead: Ref<HTMLElement>;
17
18
  refBody: Ref<any>;
18
19
  refFooter: Ref<any>;
19
20
  };
@@ -1,5 +1,5 @@
1
1
  import { TablePropTypes } from '../props';
2
- declare const _default: (props: TablePropTypes) => {
2
+ declare const multiShiftKey: (props: TablePropTypes) => {
3
3
  isShiftKeyDown: import("vue").Ref<boolean>;
4
4
  setStore: (row: any, index: number) => boolean;
5
5
  getStore: () => {
@@ -9,5 +9,7 @@ declare const _default: (props: TablePropTypes) => {
9
9
  clearStore: () => void;
10
10
  setStoreStart: (row?: any, index?: any) => void;
11
11
  clearStoreStart: () => void;
12
+ removeMultiCheckedEvents: () => void;
12
13
  };
13
- export default _default;
14
+ export type UseMultiShiftKey = ReturnType<typeof multiShiftKey>;
15
+ export default multiShiftKey;