bkui-vue 0.0.2-beta.120 → 0.0.2-beta.122

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.
@@ -0,0 +1,7 @@
1
+ import { SetupContext } from 'vue';
2
+ import { Column } from '../props';
3
+ import { ITableResponse } from '../use-attributes';
4
+ declare const _default: (props: any, context: SetupContext<any>, column: Column, tableResp: ITableResponse) => {
5
+ getTH: (classList: any, style: any, index: any) => JSX.Element;
6
+ };
7
+ export default _default;
@@ -11,7 +11,8 @@ declare const _default: (props: TablePropTypes) => {
11
11
  pageData: any[];
12
12
  indexData: import("vue").ComputedRef<any[]>;
13
13
  localPagination: any;
14
- resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any) => void;
14
+ resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
15
+ resolvePageDataBySortList: (multiCol?: any) => void;
15
16
  resetStartEndIndex: () => void;
16
17
  multiFilter: (filterFnList: ((row: any, index: any, data: any) => void)[]) => void;
17
18
  sort: (sourceData: any[], sortFn: any, column: Column, type: string, sortScope: SortScope) => void;
@@ -102,6 +102,7 @@ export type Settings = {
102
102
  size?: string;
103
103
  sizeList?: SizeItem[];
104
104
  showLineHeight?: boolean;
105
+ trigger: 'manual';
105
106
  };
106
107
  export type ISettingPropType = Settings | boolean;
107
108
  export type Field = {
@@ -1417,8 +1417,8 @@
1417
1417
  }
1418
1418
  .bk-table .bk-table-head .table-head-settings > span {
1419
1419
  display: flex;
1420
- width: 1rem;
1421
- height: 1rem;
1420
+ width: 1em;
1421
+ height: 1em;
1422
1422
  }
1423
1423
  .bk-table .bk-table-footer {
1424
1424
  display: flex;
@@ -343,8 +343,8 @@
343
343
 
344
344
  > span {
345
345
  display: flex;
346
- width: 1rem;
347
- height: 1rem;
346
+ width: 1em;
347
+ height: 1em;
348
348
  }
349
349
  }
350
350
  }
@@ -1786,8 +1786,8 @@
1786
1786
  }
1787
1787
  .bk-table .bk-table-head .table-head-settings > span {
1788
1788
  display: flex;
1789
- width: 1rem;
1790
- height: 1rem;
1789
+ width: 1em;
1790
+ height: 1em;
1791
1791
  }
1792
1792
  .bk-table .bk-table-footer {
1793
1793
  display: flex;
@@ -33,6 +33,7 @@ export type ITableResponse = {
33
33
  isActiveColumn: (col: Column) => boolean;
34
34
  isHiddenColumn: (col: Column) => boolean;
35
35
  resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: SortScope) => void;
36
+ resolveByDefColumns: () => void;
36
37
  resetStartEndIndex: () => void;
37
38
  toggleRowSelection: (row: any) => void;
38
39
  toggleAllSelection: (value?: boolean) => void;
@@ -114,20 +114,22 @@ export declare const resolveCellSpan: (column: Column, colIndex: number, row: an
114
114
  export declare const skipThisColumn: (columns: Column[], colIndex: number, row: any, rowIndex: number) => boolean;
115
115
  export declare const getSortFn: (column: any, sortType: any) => ((_a: any, _b: any) => boolean) | ((_a: any, _b: any) => number);
116
116
  export declare const getNextSortType: (sortType: string) => string;
117
- export declare const resolveSort: (sort: ISortPropShape) => import("./props").ISortShape | {
117
+ export declare const resolveSort: (sort: ISortPropShape, column: any) => ({
118
+ sortFn: ((_a: any, _b: any) => boolean) | ((_a: any, _b: any) => number);
119
+ } & import("./props").ISortShape) | {
118
120
  sortFn?: Function;
119
121
  sortScope?: import("./props").SortScope;
120
122
  value: string;
121
123
  };
122
124
  export declare const isRowSelectEnable: (props: any, { row, index, isCheckAll }: {
123
125
  row: any;
124
- index: any;
125
- isCheckAll: any;
126
+ index?: number;
127
+ isCheckAll?: boolean;
126
128
  }) => any;
127
129
  export declare const getRowId: (row: any, defVal: any, props: any) => any;
128
130
  export declare const resolveColumnSortProp: (col: Column, props: TablePropTypes) => {
129
131
  type: string;
130
- fn: Function;
132
+ fn: Function | ((((_a: any, _b: any) => boolean) | ((_a: any, _b: any) => number)) & Function);
131
133
  scope: import("./props").SortScope;
132
134
  active: boolean;
133
135
  };
package/lib/tree/index.js CHANGED
@@ -802,7 +802,6 @@ var getTreeStyle = function getTreeStyle(item, props) {
802
802
  '--offset-left': "".concat(props.offsetLeft, "px")
803
803
  };
804
804
  };
805
- console.log(11);
806
805
  /**
807
806
  * 获取节点样式配置
808
807
  * @param item
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "0.0.2-beta.120",
3
+ "version": "0.0.2-beta.122",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",