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.
- package/dist/index.cjs.js +48 -48
- package/dist/index.esm.js +7389 -7306
- package/dist/index.umd.js +30 -30
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/cascader/cascader.css +2 -2
- package/lib/cascader/cascader.less +3 -5
- package/lib/cascader/cascader.variable.css +2 -2
- package/lib/cascader/index.js +2 -1
- package/lib/form/form.css +1 -0
- package/lib/form/form.less +1 -0
- package/lib/form/form.variable.css +1 -0
- package/lib/table/index.js +765 -581
- package/lib/table/plugins/use-head-cell.d.ts +7 -0
- package/lib/table/plugins/use-pagination.d.ts +2 -1
- package/lib/table/props.d.ts +1 -0
- package/lib/table/table.css +2 -2
- package/lib/table/table.less +2 -2
- package/lib/table/table.variable.css +2 -2
- package/lib/table/use-attributes.d.ts +1 -0
- package/lib/table/utils.d.ts +6 -4
- package/lib/tree/index.js +0 -1
- package/package.json +1 -1
@@ -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;
|
package/lib/table/props.d.ts
CHANGED
package/lib/table/table.css
CHANGED
package/lib/table/table.less
CHANGED
@@ -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;
|
package/lib/table/utils.d.ts
CHANGED
@@ -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) =>
|
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
|
125
|
-
isCheckAll
|
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