bkui-vue 2.0.1-beta.15.table.1 → 2.0.1-beta.15.table.11
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 +40 -40
- package/dist/index.esm.js +13786 -13670
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/checkbox/checkbox.d.ts +7 -7
- package/lib/checkbox/index.d.ts +11 -11
- package/lib/checkbox/index.js +9 -1
- package/lib/date-picker/date-picker.d.ts +0 -1
- package/lib/date-picker/index.d.ts +0 -3
- package/lib/date-picker/index.js +34 -13
- package/lib/dialog/dialog.d.ts +7 -2
- package/lib/dialog/index.d.ts +15 -4
- package/lib/dialog/props.d.ts +3 -1
- package/lib/index.js +1 -1
- package/lib/modal/index.d.ts +18 -5
- package/lib/modal/index.js +7 -1
- package/lib/modal/modal.d.ts +7 -2
- package/lib/modal/props.mixin.d.ts +3 -1
- package/lib/radio/index.d.ts +21 -21
- package/lib/radio/index.js +18 -7
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.d.ts +7 -7
- package/lib/scrollbar/index.js +36 -13
- package/lib/scrollbar/scrollbar-core/index.d.ts +2 -1
- package/lib/select/index.d.ts +24 -6
- package/lib/select/index.js +68 -56
- package/lib/select/select.d.ts +10 -2
- package/lib/shared/frame-throttle.d.ts +15 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.js +72 -1
- package/lib/sideslider/index.d.ts +15 -4
- package/lib/sideslider/sideslider.d.ts +7 -2
- package/lib/steps/index.d.ts +3 -3
- package/lib/steps/steps.d.ts +1 -1
- package/lib/table/components/ghost-body.d.ts +2 -0
- package/lib/table/components/table-column.d.ts +3 -44
- package/lib/table/hooks/use-cell.d.ts +20 -0
- package/lib/table/hooks/use-column-resize.d.ts +3 -1
- package/lib/table/hooks/use-column-template.d.ts +2 -3
- package/lib/table/hooks/use-columns.d.ts +3 -2
- package/lib/table/hooks/use-layout.d.ts +7 -5
- package/lib/table/hooks/use-settings.d.ts +1 -1
- package/lib/table/hooks/use-shift-key.d.ts +4 -2
- package/lib/table/index.d.ts +18 -44
- package/lib/table/index.js +844 -595
- package/lib/table/props.d.ts +13 -1
- package/lib/table/table.css +35 -47
- package/lib/table/table.d.ts +7 -0
- package/lib/table/table.less +40 -60
- package/lib/table/table.variable.css +35 -47
- package/lib/table/utils.d.ts +7 -5
- package/lib/table-column/index.d.ts +9 -132
- package/lib/table-column/index.js +17298 -25
- package/lib/virtual-render/index.d.ts +4 -15
- package/lib/virtual-render/index.js +3 -4
- package/lib/virtual-render/props.d.ts +1 -3
- package/lib/virtual-render/virtual-render.d.ts +2 -7
- package/package.json +1 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
2
|
declare const _default: () => {
|
|
3
|
-
resolveColumns: (
|
|
4
|
-
setNodeInstanceId: (column: any, uniqueId: string) => void;
|
|
3
|
+
resolveColumns: (children: VNode[]) => any[];
|
|
5
4
|
};
|
|
6
5
|
export default _default;
|
|
@@ -3,10 +3,9 @@ import { Column, TablePropTypes } from '../props';
|
|
|
3
3
|
declare const useColumns: (props: TablePropTypes) => {
|
|
4
4
|
needColSpan: import("vue").ComputedRef<boolean>;
|
|
5
5
|
needRowSpan: import("vue").ComputedRef<boolean>;
|
|
6
|
-
headHeight: import("vue").ComputedRef<number>;
|
|
7
6
|
tableColumnSchema: WeakMap<object, any> & Omit<WeakMap<object, any>, keyof WeakMap<any, any>>;
|
|
8
7
|
tableColumnList: any[];
|
|
9
|
-
visibleColumns:
|
|
8
|
+
visibleColumns: Column[];
|
|
10
9
|
debounceUpdateColumns: import("lodash").DebouncedFunc<(columns: any) => void>;
|
|
11
10
|
sortColumns: any[];
|
|
12
11
|
filterColumns: any[];
|
|
@@ -32,6 +31,7 @@ declare const useColumns: (props: TablePropTypes) => {
|
|
|
32
31
|
getColumnRect: (column: Column) => any;
|
|
33
32
|
getColumnCustomClass: (column: any, row?: any) => any;
|
|
34
33
|
getColumnRefAttribute: (col: Column | IEmptyObject, attributeName: string) => any;
|
|
34
|
+
getColumnCalcWidth: (column: Column) => any;
|
|
35
35
|
resolveEventListener: (col: Column) => any;
|
|
36
36
|
setColumnIsHidden: (column: Column, value?: boolean) => void;
|
|
37
37
|
setColumnResizeWidth: (column: Column, value: number) => void;
|
|
@@ -48,6 +48,7 @@ declare const useColumns: (props: TablePropTypes) => {
|
|
|
48
48
|
height?: number;
|
|
49
49
|
}) => void;
|
|
50
50
|
setVisibleColumns: () => void;
|
|
51
|
+
resolveColsCalcWidth: (width: number) => void;
|
|
51
52
|
};
|
|
52
53
|
export type UseColumns = ReturnType<typeof useColumns>;
|
|
53
54
|
export default useColumns;
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import { SetupContext } from 'vue';
|
|
2
2
|
import { TablePropTypes } from '../props';
|
|
3
3
|
import { UseColumns } from './use-columns';
|
|
4
|
-
declare const useSettings: (props: TablePropTypes, ctx: SetupContext, columns: UseColumns) => {
|
|
4
|
+
declare const useSettings: (props: TablePropTypes, ctx: SetupContext, columns: UseColumns, afterSetting: any) => {
|
|
5
5
|
options: {
|
|
6
6
|
fields: any[];
|
|
7
7
|
checked: any[];
|
|
@@ -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>;
|
|
@@ -862,50 +877,9 @@ declare const BkTable: {
|
|
|
862
877
|
} & {
|
|
863
878
|
default: number;
|
|
864
879
|
};
|
|
865
|
-
}, {
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
resizable?: boolean;
|
|
869
|
-
minWidth?: string | number;
|
|
870
|
-
index?: number;
|
|
871
|
-
columnKey?: string;
|
|
872
|
-
colspan?: import("./props").SpanFunctionString;
|
|
873
|
-
rowspan?: import("./props").SpanFunctionString;
|
|
874
|
-
render?: import("./props").RenderFunctionString;
|
|
875
|
-
sort?: string | boolean | {
|
|
876
|
-
sortFn?: Function;
|
|
877
|
-
sortScope?: import("./props").SortScope;
|
|
878
|
-
value?: import("./const").SORT_OPTION;
|
|
879
|
-
};
|
|
880
|
-
filter?: string | boolean | {
|
|
881
|
-
list: any[];
|
|
882
|
-
filterFn?: Function;
|
|
883
|
-
match?: import("./props").FullEnum;
|
|
884
|
-
checked?: any[];
|
|
885
|
-
filterScope?: import("./props").SortScope;
|
|
886
|
-
btnSave?: string | boolean;
|
|
887
|
-
btnReset?: string | boolean;
|
|
888
|
-
height?: number;
|
|
889
|
-
maxHeight?: number;
|
|
890
|
-
};
|
|
891
|
-
type?: "index" | "expand" | "__COL_TYPE_NONE" | "selection";
|
|
892
|
-
label?: import("./props").LabelFunctionString;
|
|
893
|
-
width?: string | number;
|
|
894
|
-
className?: import("./props").RowClassFunctionString;
|
|
895
|
-
align?: "" | "left" | "right" | "center";
|
|
896
|
-
showOverflowTooltip?: boolean | {
|
|
897
|
-
content: string | ((col: import("./props").Column, row: any) => string);
|
|
898
|
-
disabled?: boolean | ((col: import("./props").Column, row: any) => boolean);
|
|
899
|
-
watchCellResize?: boolean;
|
|
900
|
-
mode?: "auto" | "static";
|
|
901
|
-
popoverOption?: any;
|
|
902
|
-
resizerWay?: import("./props").ResizerWay;
|
|
903
|
-
showHead?: boolean;
|
|
904
|
-
};
|
|
905
|
-
field: import("./props").LabelFunctionString;
|
|
906
|
-
prop?: import("./props").LabelFunctionString;
|
|
907
|
-
};
|
|
908
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
880
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
881
|
+
[key: string]: any;
|
|
882
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
909
883
|
label: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
|
|
910
884
|
field: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
|
|
911
885
|
render: import("vue-types").VueTypeDef<import("./props").RenderFunctionString>;
|