bkui-vue 2.0.1-beta.15.table.6 → 2.0.1-beta.15.table.8
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 +33 -33
- package/dist/index.esm.js +6608 -6569
- package/dist/index.umd.js +34 -34
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/index.js +1 -1
- package/lib/table/hooks/use-cell.d.ts +20 -0
- package/lib/table/hooks/use-column-template.d.ts +2 -2
- package/lib/table/hooks/use-layout.d.ts +7 -5
- package/lib/table/hooks/use-shift-key.d.ts +4 -2
- package/lib/table/index.d.ts +15 -0
- package/lib/table/index.js +653 -551
- package/lib/table/props.d.ts +11 -0
- package/lib/table/table.css +25 -24
- package/lib/table/table.d.ts +7 -0
- package/lib/table/table.less +27 -33
- package/lib/table/table.variable.css +25 -24
- package/lib/table-column/index.js +10 -1
- package/lib/virtual-render/index.d.ts +4 -15
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +1 -3
- package/lib/virtual-render/virtual-render.d.ts +2 -7
- package/package.json +2 -1
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.
|
7
|
+
export const version = "2.0.1-beta.15.table.8";
|
8
8
|
window.__bkui_vue_version__ = version;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { Column, TablePropTypes } from '../props';
|
2
|
+
import { SetupContext } from 'vue';
|
3
|
+
import { UseMultiShiftKey } from './use-shift-key';
|
4
|
+
import { UseRows } from './use-rows';
|
5
|
+
import { UseColumns } from './use-columns';
|
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;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { VNode } from 'vue';
|
2
2
|
declare const _default: () => {
|
3
|
-
resolveColumns: (
|
3
|
+
resolveColumns: (children: VNode[]) => any[];
|
4
4
|
setNodeInstanceId: (column: any, uniqueId: string) => void;
|
5
5
|
};
|
6
6
|
export default _default;
|
@@ -2,18 +2,20 @@ 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;
|
6
|
-
renderBody: (list: any, childrend?: any, fixedRows?: any
|
5
|
+
renderHeader: (childrend?: any, settings?: any, fixedRows?: any) => JSX.Element;
|
6
|
+
renderBody: (list: any, childrend?: any, fixedRows?: any) => JSX.Element;
|
7
7
|
renderFooter: (childrend?: any) => JSX.Element;
|
8
|
-
|
8
|
+
renderFixedBottom: () => JSX.Element;
|
9
|
+
setBodyHeight: (height: number) => void;
|
9
10
|
setFootHeight: (height: number) => void;
|
10
11
|
setTranslateX: (val: number) => void;
|
11
12
|
setDragOffsetX: (val: number) => void;
|
12
13
|
setFixedColumns: (values: any[]) => void;
|
13
14
|
setOffsetRight: () => void;
|
14
15
|
setLineHeight: (val: number) => void;
|
15
|
-
|
16
|
-
|
16
|
+
initRootStyleVars: () => void;
|
17
|
+
refRoot: Ref<HTMLElement>;
|
18
|
+
refHead: Ref<HTMLElement>;
|
17
19
|
refBody: Ref<any>;
|
18
20
|
refFooter: Ref<any>;
|
19
21
|
};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TablePropTypes } from '../props';
|
2
|
-
declare const
|
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
|
14
|
+
export type UseMultiShiftKey = ReturnType<typeof multiShiftKey>;
|
15
|
+
export default multiShiftKey;
|
package/lib/table/index.d.ts
CHANGED
@@ -172,6 +172,9 @@ declare const BkTable: {
|
|
172
172
|
} & {
|
173
173
|
default: boolean;
|
174
174
|
};
|
175
|
+
fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
|
176
|
+
default: () => import("./props").FixedBottomOption;
|
177
|
+
};
|
175
178
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, (...args: any[]) => boolean>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<ExtractPropTypes<{
|
176
179
|
data: import("vue-types").VueTypeDef<any[]> & {
|
177
180
|
default: () => any[];
|
@@ -340,6 +343,9 @@ declare const BkTable: {
|
|
340
343
|
} & {
|
341
344
|
default: boolean;
|
342
345
|
};
|
346
|
+
fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
|
347
|
+
default: () => import("./props").FixedBottomOption;
|
348
|
+
};
|
343
349
|
}>>, {
|
344
350
|
data: any[];
|
345
351
|
thead: import("./props").Thead;
|
@@ -385,6 +391,7 @@ declare const BkTable: {
|
|
385
391
|
isFlex: boolean;
|
386
392
|
rowDraggable: any;
|
387
393
|
shiftMultiChecked: boolean;
|
394
|
+
fixedBottom: import("./props").FixedBottomOption;
|
388
395
|
}, true, {}, {}, {
|
389
396
|
P: {};
|
390
397
|
B: {};
|
@@ -560,6 +567,9 @@ declare const BkTable: {
|
|
560
567
|
} & {
|
561
568
|
default: boolean;
|
562
569
|
};
|
570
|
+
fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
|
571
|
+
default: () => import("./props").FixedBottomOption;
|
572
|
+
};
|
563
573
|
}>>, () => JSX.Element, {}, {}, {}, {
|
564
574
|
data: any[];
|
565
575
|
thead: import("./props").Thead;
|
@@ -605,6 +615,7 @@ declare const BkTable: {
|
|
605
615
|
isFlex: boolean;
|
606
616
|
rowDraggable: any;
|
607
617
|
shiftMultiChecked: boolean;
|
618
|
+
fixedBottom: import("./props").FixedBottomOption;
|
608
619
|
}>;
|
609
620
|
__isFragment?: never;
|
610
621
|
__isTeleport?: never;
|
@@ -777,6 +788,9 @@ declare const BkTable: {
|
|
777
788
|
} & {
|
778
789
|
default: boolean;
|
779
790
|
};
|
791
|
+
fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
|
792
|
+
default: () => import("./props").FixedBottomOption;
|
793
|
+
};
|
780
794
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, (...args: any[]) => boolean>, string, {
|
781
795
|
data: any[];
|
782
796
|
thead: import("./props").Thead;
|
@@ -822,6 +836,7 @@ declare const BkTable: {
|
|
822
836
|
isFlex: boolean;
|
823
837
|
rowDraggable: any;
|
824
838
|
shiftMultiChecked: boolean;
|
839
|
+
fixedBottom: import("./props").FixedBottomOption;
|
825
840
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & Readonly<{
|
826
841
|
Column: import("vue").DefineComponent<{
|
827
842
|
label: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
|