bkui-vue 0.0.2-beta.8 → 0.0.2-table-refactor.1
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 +70 -62
- package/dist/index.esm.js +16711 -16319
- package/dist/index.umd.js +72 -64
- package/dist/locale/en.esm.js +1 -1
- package/dist/locale/en.esm.js.map +1 -1
- package/dist/locale/en.umd.js +1 -1
- package/dist/locale/en.umd.js.map +1 -1
- package/dist/locale/zh-cn.esm.js +1 -1
- package/dist/locale/zh-cn.esm.js.map +1 -1
- package/dist/locale/zh-cn.umd.js +1 -1
- package/dist/locale/zh-cn.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/affix.d.ts +1 -1
- package/lib/affix/index.d.ts +4 -4
- package/lib/alert/alert.css +7 -0
- package/lib/alert/alert.d.ts +5 -5
- package/lib/alert/alert.less +16 -6
- package/lib/alert/alert.variable.css +7 -0
- package/lib/alert/index.d.ts +10 -10
- package/lib/animate-number/index.d.ts +1 -1
- package/lib/backtop/index.d.ts +1 -1
- package/lib/badge/badge.d.ts +2 -2
- package/lib/badge/index.d.ts +7 -7
- package/lib/breadcrumb/index.d.ts +2 -2
- package/lib/button/button.css +20 -0
- package/lib/button/button.less +105 -94
- package/lib/button/button.variable.css +20 -0
- package/lib/button/index.d.ts +2 -2
- package/lib/card/card.d.ts +1 -1
- package/lib/card/index.d.ts +4 -4
- package/lib/cascader/cascader.d.ts +1 -0
- package/lib/cascader/index.d.ts +5 -2
- package/lib/cascader/index.js +1 -1
- package/lib/cascader/interface.d.ts +1 -1
- package/lib/checkbox/checkbox-group.d.ts +6 -3
- package/lib/checkbox/checkbox.d.ts +4 -4
- package/lib/checkbox/index.d.ts +22 -19
- package/lib/checkbox/index.js +1 -1
- package/lib/code-diff/index.d.ts +1 -1
- package/lib/collapse/index.d.ts +2 -2
- package/lib/collapse-transition/index.d.ts +128 -2
- package/lib/collapse-transition/index.js +1 -1
- package/lib/color-picker/color-picker.d.ts +16 -0
- package/lib/color-picker/components/recommend-colors.d.ts +16 -0
- package/lib/color-picker/index.d.ts +19 -1
- package/lib/color-picker/index.js +1 -1
- package/lib/components.d.ts +1 -1
- package/lib/config-provider/config-provider.d.ts +3 -0
- package/lib/config-provider/index.d.ts +5 -1
- package/lib/config-provider/index.js +1 -1
- package/lib/config-provider/token.d.ts +1 -0
- package/lib/config-provider/use-global-config.d.ts +2 -0
- package/lib/config-provider/use-prefix.d.ts +2 -0
- package/lib/container/index.d.ts +2 -2
- package/lib/container/index.js +1 -1
- package/lib/date-picker/date-picker.d.ts +3 -1
- package/lib/date-picker/index.d.ts +12 -5
- package/lib/date-picker/index.js +1 -1
- package/lib/date-picker/panel/date-range.d.ts +2 -1
- package/lib/dialog/index.d.ts +1 -1
- package/lib/directives/index.js +1 -1
- package/lib/directives/tooltips.d.ts +3 -2
- package/lib/divider/index.d.ts +1 -1
- package/lib/dropdown/dropdown.css +1 -0
- package/lib/dropdown/dropdown.d.ts +1 -1
- package/lib/dropdown/dropdown.variable.css +1 -0
- package/lib/dropdown/index.d.ts +7 -7
- package/lib/exception/index.d.ts +2 -2
- package/lib/fixed-navbar/index.d.ts +1 -1
- package/lib/form/index.d.ts +3 -3
- package/lib/form/index.js +1 -1
- package/lib/hooks.d.ts +1 -1
- package/lib/hooks.js +1 -1
- package/lib/icon/assistant.d.ts +4 -0
- package/lib/icon/assistant.js +1 -0
- package/lib/icon/index.d.ts +1 -0
- package/lib/icon/index.js +1 -1
- package/lib/image/index.d.ts +1 -1
- package/lib/image/index.js +1 -1
- package/lib/info-box/index.js +1 -1
- package/lib/input/index.d.ts +146 -50
- package/lib/input/index.js +2 -1
- package/lib/input/index.js.LICENSE.txt +1 -0
- package/lib/input/input.css +34 -6
- package/lib/input/input.d.ts +100 -11
- package/lib/input/input.less +53 -14
- package/lib/input/input.variable.css +34 -6
- package/lib/input/util.d.ts +6 -0
- package/lib/link/index.d.ts +4 -4
- package/lib/link/link.d.ts +1 -1
- package/lib/loading/index.d.ts +2 -2
- package/lib/locale/index.js +1 -1
- package/lib/locale/lang/en.d.ts +1 -0
- package/lib/menu/index.d.ts +2 -2
- package/lib/message/index.js +1 -1
- package/lib/message/message.css +33 -9
- package/lib/message/message.less +78 -54
- package/lib/message/message.variable.css +33 -9
- package/lib/message/messageConstructor.d.ts +30 -8
- package/lib/modal/index.d.ts +2 -2
- package/lib/modal/index.js +1 -1
- package/lib/navigation/index.d.ts +4 -1
- package/lib/navigation/index.js +1 -1
- package/lib/navigation/navigation.d.ts +1 -0
- package/lib/notify/index.js +1 -1
- package/lib/notify/notifyConstructor.d.ts +1 -1
- package/lib/overflow-title/components/overflow-title.d.ts +257 -1
- package/lib/overflow-title/index.d.ts +387 -2
- package/lib/overflow-title/index.js +1 -1
- package/lib/overflow-title/props.d.ts +129 -0
- package/lib/pagination/index.d.ts +2 -2
- package/lib/plugin-popover/index.js +1 -1
- package/lib/pop-confirm/index.d.ts +1 -1
- package/lib/popover/const.d.ts +22 -9
- package/lib/popover/content.d.ts +33 -0
- package/lib/popover/index.d.ts +154 -61
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.css +1 -0
- package/lib/popover/popover.d.ts +64 -23
- package/lib/popover/popover.less +3 -2
- package/lib/popover/popover.variable.css +1 -0
- package/lib/popover/props.d.ts +29 -4
- package/lib/popover/use-floating.d.ts +2 -2
- package/lib/popover/use-popover-init.d.ts +2 -1
- package/lib/popover2/index.d.ts +1 -1
- package/lib/preset.d.ts +2 -0
- package/lib/process/index.d.ts +1 -1
- package/lib/progress/index.d.ts +1 -1
- package/lib/radio/index.d.ts +23 -23
- package/lib/radio/radio-button.d.ts +4 -4
- package/lib/radio/radio-group.d.ts +4 -4
- package/lib/radio/radio.d.ts +4 -4
- package/lib/rate/index.d.ts +8 -4
- package/lib/rate/index.js +1 -1
- package/lib/rate/rate.d.ts +2 -1
- package/lib/resize-layout/index.d.ts +4 -4
- package/lib/resize-layout/index.js +1 -1
- package/lib/resize-layout/resize-layout.css +12 -0
- package/lib/resize-layout/resize-layout.d.ts +1 -1
- package/lib/resize-layout/resize-layout.less +12 -0
- package/lib/resize-layout/resize-layout.variable.css +12 -0
- package/lib/search-select/index.d.ts +62 -29
- package/lib/search-select/index.js +1 -1
- package/lib/search-select/input.d.ts +5 -1
- package/lib/search-select/menu.d.ts +33 -2
- package/lib/search-select/search-select.css +31 -11
- package/lib/search-select/search-select.d.ts +23 -20
- package/lib/search-select/search-select.less +29 -10
- package/lib/search-select/search-select.variable.css +31 -11
- package/lib/search-select/selected.d.ts +5 -1
- package/lib/search-select/utils.d.ts +13 -5
- package/lib/select/index.d.ts +180 -84
- package/lib/select/index.js +1 -1
- package/lib/select/option.d.ts +11 -0
- package/lib/select/select.css +9 -1
- package/lib/select/select.d.ts +75 -37
- package/lib/select/select.less +11 -1
- package/lib/select/select.variable.css +9 -1
- package/lib/select/selectTagInput.d.ts +8 -5
- package/lib/shared/helper.d.ts +1 -1
- package/lib/shared/index.js +1 -1
- package/lib/shared/mask-manager.d.ts +3 -4
- package/lib/shared/pop-manager.d.ts +6 -2
- package/lib/shared/popover.d.ts +2 -2
- package/lib/shared/vue-types.d.ts +3 -2
- package/lib/sideslider/index.d.ts +1 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/slider/index.js +1 -1
- package/lib/steps/index.d.ts +1 -1
- package/lib/steps/index.js +1 -1
- package/lib/styles/mixins/popper.less +6 -5
- package/lib/swiper/index.d.ts +1 -1
- package/lib/swiper/index.js +1 -1
- package/lib/swiper/swiper.css +0 -6
- package/lib/swiper/swiper.less +0 -8
- package/lib/swiper/swiper.variable.css +0 -6
- package/lib/switcher/index.d.ts +30 -16
- package/lib/switcher/index.js +1 -1
- package/lib/switcher/switcher.d.ts +74 -5
- package/lib/tab/index.d.ts +3 -3
- package/lib/tab/tab-nav.d.ts +12 -2
- package/lib/tab/tab-panel.d.ts +1 -1
- package/lib/table/components/table-cell.d.ts +22 -15
- package/lib/table/components/table-column.d.ts +154 -219
- package/lib/table/const.d.ts +34 -56
- package/lib/table/events.d.ts +180 -0
- package/lib/table/index.d.ts +746 -440
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/head-filter.css +3 -0
- package/lib/table/plugins/head-filter.d.ts +3 -7
- package/lib/table/plugins/head-filter.less +3 -0
- package/lib/table/plugins/head-filter.variable.css +3 -0
- package/lib/table/plugins/head-sort.d.ts +3 -7
- package/lib/table/plugins/settings.d.ts +12 -26
- package/lib/table/plugins/use-column-resize.d.ts +30 -10
- package/lib/table/plugins/use-fixed-column.d.ts +7 -5
- package/lib/table/plugins/use-pagination.d.ts +7 -4
- package/lib/table/props.d.ts +219 -181
- package/lib/table/render.d.ts +12 -20
- package/lib/table/table.css +85 -5
- package/lib/table/table.d.ts +227 -104
- package/lib/table/table.less +75 -8
- package/lib/table/table.variable.css +85 -5
- package/lib/table/use-attributes.d.ts +55 -0
- package/lib/table/use-column.d.ts +175 -3
- package/lib/table/use-common.d.ts +1609 -76
- package/lib/table/use-render.d.ts +11 -0
- package/lib/table/utils.d.ts +30 -28
- package/lib/table-column/index.d.ts +237 -527
- package/lib/table-column/index.js +1 -1
- package/lib/tag/index.d.ts +10 -10
- package/lib/tag/index.js +1 -1
- package/lib/tag/tag.d.ts +5 -5
- package/lib/tag-input/index.d.ts +49 -13
- package/lib/tag-input/index.js +1 -1
- package/lib/tag-input/tag-input.css +6 -1
- package/lib/tag-input/tag-input.d.ts +46 -10
- package/lib/tag-input/tag-input.less +9 -4
- package/lib/tag-input/tag-input.variable.css +6 -1
- package/lib/tag-input/tag-props.d.ts +16 -4
- package/lib/time-picker/index.d.ts +1 -1
- package/lib/timeline/index.d.ts +1 -1
- package/lib/transfer/index.d.ts +1 -1
- package/lib/tree/constant.d.ts +2 -2
- package/lib/tree/index.d.ts +37 -7
- package/lib/tree/index.js +1 -1
- package/lib/tree/props.d.ts +8 -1
- package/lib/tree/tree.d.ts +20 -2
- package/lib/tree/use-node-action.d.ts +3 -2
- package/lib/tree/use-node-attribute.d.ts +15 -8
- package/lib/tree/use-tree-init.d.ts +1 -2
- package/lib/tree/util.d.ts +7 -2
- package/lib/upload/index.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +43 -1
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +15 -0
- package/lib/virtual-render/v-virtual-render.d.ts +1 -0
- package/lib/virtual-render/virtual-render.d.ts +27 -2
- package/lib/volar.components.d.ts +24 -24
- package/package.json +17 -16
@@ -1,18 +1,60 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
1
2
|
import { Column } from '../props';
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
3
|
+
declare const TableColumnProp: {
|
4
|
+
label: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
5
|
+
field: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
6
|
+
render: import("vue-types").VueTypeDef<import("../props").RenderFunctionString>;
|
7
|
+
width: import("vue-types").VueTypeDef<string | number>;
|
8
|
+
minWidth: import("vue-types").VueTypeDef<string | number> & {
|
9
|
+
default: string | number;
|
10
|
+
};
|
11
|
+
columnKey: import("vue-types").VueTypeValidableDef<string> & {
|
12
|
+
default: string;
|
13
|
+
} & {
|
14
|
+
default: string;
|
15
|
+
};
|
16
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp>;
|
17
|
+
type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
|
18
|
+
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
19
|
+
default: boolean;
|
20
|
+
} & {
|
21
|
+
default: boolean;
|
22
|
+
};
|
23
|
+
fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
|
24
|
+
default: boolean | "right" | "left";
|
25
|
+
};
|
26
|
+
sort: import("vue-types").VueTypeDef<import("../props").ISortPropShape>;
|
27
|
+
filter: import("vue-types").VueTypeDef<import("../props").IFilterPropShape>;
|
28
|
+
colspan: import("vue-types").VueTypeDef<import("../props").SpanFunctionString> & {
|
29
|
+
default: (({ column, colIndex, row, rowIndex }: {
|
30
|
+
column: any;
|
31
|
+
colIndex: any;
|
32
|
+
row: any;
|
33
|
+
rowIndex: any;
|
34
|
+
}) => number) | (() => Number);
|
35
|
+
};
|
36
|
+
rowspan: import("vue-types").VueTypeDef<import("../props").SpanFunctionString> & {
|
37
|
+
default: (({ column, colIndex, row, rowIndex }: {
|
38
|
+
column: any;
|
39
|
+
colIndex: any;
|
40
|
+
row: any;
|
41
|
+
rowIndex: any;
|
42
|
+
}) => number) | (() => Number);
|
43
|
+
};
|
44
|
+
align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
|
45
|
+
className: import("vue-types").VueTypeDef<import("../props").RowClassFunctionString>;
|
46
|
+
prop: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
8
47
|
index: import("vue-types").VueTypeValidableDef<number> & {
|
9
48
|
default: number;
|
10
49
|
} & {
|
11
50
|
default: number;
|
12
51
|
};
|
13
|
-
|
14
|
-
|
15
|
-
|
52
|
+
};
|
53
|
+
export type ITableColumn = Partial<ExtractPropTypes<typeof TableColumnProp>>;
|
54
|
+
declare const _default: import("vue").DefineComponent<{
|
55
|
+
label: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
56
|
+
field: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
57
|
+
render: import("vue-types").VueTypeDef<import("../props").RenderFunctionString>;
|
16
58
|
width: import("vue-types").VueTypeDef<string | number>;
|
17
59
|
minWidth: import("vue-types").VueTypeDef<string | number> & {
|
18
60
|
default: string | number;
|
@@ -22,9 +64,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
22
64
|
} & {
|
23
65
|
default: string;
|
24
66
|
};
|
25
|
-
showOverflowTooltip: import("vue-types").VueTypeDef<
|
26
|
-
default: boolean | (() => import("../props").IOverflowTooltip);
|
27
|
-
};
|
67
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp>;
|
28
68
|
type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
|
29
69
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
30
70
|
default: boolean;
|
@@ -34,72 +74,49 @@ declare const _default: import("vue").DefineComponent<{
|
|
34
74
|
fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
|
35
75
|
default: boolean | "right" | "left";
|
36
76
|
};
|
37
|
-
sort: import("vue-types").VueTypeDef<
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
55
|
-
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
56
|
-
}> & {
|
57
|
-
default: string | boolean | (() => {
|
58
|
-
list: any[] | (object & (() => any[]));
|
59
|
-
filterFn: any;
|
60
|
-
match: "full" | "fuzzy";
|
61
|
-
checked: any[] | (object & (() => any[]));
|
62
|
-
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
63
|
-
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
64
|
-
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
65
|
-
});
|
77
|
+
sort: import("vue-types").VueTypeDef<import("../props").ISortPropShape>;
|
78
|
+
filter: import("vue-types").VueTypeDef<import("../props").IFilterPropShape>;
|
79
|
+
colspan: import("vue-types").VueTypeDef<import("../props").SpanFunctionString> & {
|
80
|
+
default: (({ column, colIndex, row, rowIndex }: {
|
81
|
+
column: any;
|
82
|
+
colIndex: any;
|
83
|
+
row: any;
|
84
|
+
rowIndex: any;
|
85
|
+
}) => number) | (() => Number);
|
86
|
+
};
|
87
|
+
rowspan: import("vue-types").VueTypeDef<import("../props").SpanFunctionString> & {
|
88
|
+
default: (({ column, colIndex, row, rowIndex }: {
|
89
|
+
column: any;
|
90
|
+
colIndex: any;
|
91
|
+
row: any;
|
92
|
+
rowIndex: any;
|
93
|
+
}) => number) | (() => Number);
|
66
94
|
};
|
67
|
-
colspan: import("vue-types").VueTypeDef<any>;
|
68
|
-
rowspan: import("vue-types").VueTypeDef<any>;
|
69
95
|
align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
|
70
|
-
className: import("vue-types").VueTypeDef<
|
96
|
+
className: import("vue-types").VueTypeDef<import("../props").RowClassFunctionString>;
|
97
|
+
prop: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
98
|
+
index: import("vue-types").VueTypeValidableDef<number> & {
|
99
|
+
default: number;
|
100
|
+
} & {
|
101
|
+
default: number;
|
102
|
+
};
|
71
103
|
}, {
|
72
|
-
initColumns: (_col:
|
104
|
+
initColumns: (_col: Column | Column[], _rm?: boolean) => void;
|
73
105
|
bkTableCache: {
|
74
106
|
queueStack: (_: any, fn: any) => any;
|
75
107
|
};
|
76
108
|
column: {
|
77
|
-
|
78
|
-
label: string | Function;
|
79
|
-
render?: string | Function | import("vue").Slot<any>;
|
80
|
-
width?: string | number;
|
109
|
+
fixed?: boolean | "right" | "left";
|
81
110
|
minWidth?: string | number;
|
82
|
-
columnKey?: string;
|
83
|
-
showOverflowTooltip?: boolean | {
|
84
|
-
content: string | Function;
|
85
|
-
disabled?: boolean;
|
86
|
-
watchCellResize?: boolean;
|
87
|
-
mode?: "auto" | "static";
|
88
|
-
};
|
89
|
-
type?: string;
|
90
|
-
fixed?: string | boolean;
|
91
111
|
resizable?: boolean;
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
checked?: any;
|
101
|
-
};
|
102
|
-
colspan?: Function | {
|
112
|
+
index?: number;
|
113
|
+
columnKey?: string;
|
114
|
+
colspan?: (({ column, colIndex, row, rowIndex }: {
|
115
|
+
column: any;
|
116
|
+
colIndex: any;
|
117
|
+
row: any;
|
118
|
+
rowIndex: any;
|
119
|
+
}) => number) | {
|
103
120
|
toString: (radix?: number) => string;
|
104
121
|
toFixed: (fractionDigits?: number) => string;
|
105
122
|
toExponential: (fractionDigits?: number) => string;
|
@@ -110,7 +127,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
110
127
|
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
111
128
|
};
|
112
129
|
};
|
113
|
-
rowspan?:
|
130
|
+
rowspan?: (({ column, colIndex, row, rowIndex }: {
|
131
|
+
column: any;
|
132
|
+
colIndex: any;
|
133
|
+
row: any;
|
134
|
+
rowIndex: any;
|
135
|
+
}) => number) | {
|
114
136
|
toString: (radix?: number) => string;
|
115
137
|
toFixed: (fractionDigits?: number) => string;
|
116
138
|
toExponential: (fractionDigits?: number) => string;
|
@@ -121,110 +143,46 @@ declare const _default: import("vue").DefineComponent<{
|
|
121
143
|
(locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
122
144
|
};
|
123
145
|
};
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
concat: (...strings: string[]) => string;
|
130
|
-
indexOf: (searchString: string, position?: number) => number;
|
131
|
-
lastIndexOf: (searchString: string, position?: number) => number;
|
132
|
-
localeCompare: {
|
133
|
-
(that: string): number;
|
134
|
-
(that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
|
135
|
-
};
|
136
|
-
match: {
|
137
|
-
(regexp: string | RegExp): RegExpMatchArray;
|
138
|
-
(matcher: {
|
139
|
-
[Symbol.match](string: string): RegExpMatchArray;
|
140
|
-
}): RegExpMatchArray;
|
141
|
-
};
|
142
|
-
replace: {
|
143
|
-
(searchValue: string | RegExp, replaceValue: string): string;
|
144
|
-
(searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
|
145
|
-
(searchValue: {
|
146
|
-
[Symbol.replace](string: string, replaceValue: string): string;
|
147
|
-
}, replaceValue: string): string;
|
148
|
-
(searchValue: {
|
149
|
-
[Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
|
150
|
-
}, replacer: (substring: string, ...args: any[]) => string): string;
|
151
|
-
};
|
152
|
-
search: {
|
153
|
-
(regexp: string | RegExp): number;
|
154
|
-
(searcher: {
|
155
|
-
[Symbol.search](string: string): number;
|
156
|
-
}): number;
|
157
|
-
};
|
158
|
-
slice: (start?: number, end?: number) => string;
|
159
|
-
split: {
|
160
|
-
(separator: string | RegExp, limit?: number): string[];
|
161
|
-
(splitter: {
|
162
|
-
[Symbol.split](string: string, limit?: number): string[];
|
163
|
-
}, limit?: number): string[];
|
164
|
-
};
|
165
|
-
substring: (start: number, end?: number) => string;
|
166
|
-
toLowerCase: () => string;
|
167
|
-
toLocaleLowerCase: (locales?: string | string[]) => string;
|
168
|
-
toUpperCase: () => string;
|
169
|
-
toLocaleUpperCase: (locales?: string | string[]) => string;
|
170
|
-
trim: () => string;
|
171
|
-
readonly length: number;
|
172
|
-
substr: (from: number, length?: number) => string;
|
173
|
-
valueOf: () => string;
|
174
|
-
codePointAt: (pos: number) => number;
|
175
|
-
includes: (searchString: string, position?: number) => boolean;
|
176
|
-
endsWith: (searchString: string, endPosition?: number) => boolean;
|
177
|
-
normalize: {
|
178
|
-
(form: "NFC" | "NFD" | "NFKC" | "NFKD"): string;
|
179
|
-
(form?: string): string;
|
180
|
-
};
|
181
|
-
repeat: (count: number) => string;
|
182
|
-
startsWith: (searchString: string, position?: number) => boolean;
|
183
|
-
anchor: (name: string) => string;
|
184
|
-
big: () => string;
|
185
|
-
blink: () => string;
|
186
|
-
bold: () => string;
|
187
|
-
fixed: () => string;
|
188
|
-
fontcolor: (color: string) => string;
|
189
|
-
fontsize: {
|
190
|
-
(size: number): string;
|
191
|
-
(size: string): string;
|
192
|
-
};
|
193
|
-
italics: () => string;
|
194
|
-
link: (url: string) => string;
|
195
|
-
small: () => string;
|
196
|
-
strike: () => string;
|
197
|
-
sub: () => string;
|
198
|
-
sup: () => string;
|
199
|
-
padStart: (maxLength: number, fillString?: string) => string;
|
200
|
-
padEnd: (maxLength: number, fillString?: string) => string;
|
201
|
-
trimEnd: () => string;
|
202
|
-
trimStart: () => string;
|
203
|
-
trimLeft: () => string;
|
204
|
-
trimRight: () => string;
|
205
|
-
matchAll: (regexp: RegExp) => IterableIterator<RegExpMatchArray>;
|
206
|
-
[Symbol.iterator]: () => IterableIterator<string>;
|
207
|
-
at: (index: number) => string;
|
146
|
+
render?: import("../props").RenderFunctionString;
|
147
|
+
sort?: string | boolean | {
|
148
|
+
sortFn?: Function;
|
149
|
+
sortScope?: import("../props").SortScope;
|
150
|
+
value?: import("../const").SORT_OPTION;
|
208
151
|
};
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
152
|
+
filter?: string | boolean | {
|
153
|
+
list: any[];
|
154
|
+
filterFn?: Function;
|
155
|
+
match?: import("../props").FullEnum;
|
156
|
+
checked?: any[];
|
157
|
+
filterScope?: import("../props").SortScope;
|
158
|
+
btnSave?: string | boolean;
|
159
|
+
btnReset?: string | boolean;
|
160
|
+
maxHeight?: number;
|
161
|
+
};
|
162
|
+
type?: "none" | "selection" | "index" | "expand";
|
163
|
+
label?: import("../props").LabelFunctionString;
|
164
|
+
width?: string | number;
|
165
|
+
className?: import("../props").RowClassFunctionString;
|
166
|
+
align?: "" | "right" | "left" | "center";
|
167
|
+
showOverflowTooltip?: boolean | {
|
168
|
+
content: string | Function;
|
169
|
+
disabled?: (col: Column, row: any) => boolean;
|
170
|
+
watchCellResize?: boolean;
|
171
|
+
mode?: "auto" | "static";
|
172
|
+
popoverOption?: any;
|
173
|
+
resizerWay?: import("../props").ResizerWay;
|
174
|
+
};
|
175
|
+
field: import("../props").LabelFunctionString;
|
176
|
+
prop?: import("../props").LabelFunctionString;
|
213
177
|
};
|
214
178
|
}, unknown, {}, {
|
215
179
|
updateColumnDefine(unmounted?: boolean): void;
|
216
180
|
updateColumnDefineByParent(): void;
|
217
181
|
updateColumnDefineByIndex(unmounted?: boolean): void;
|
218
|
-
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
} & {
|
223
|
-
default: number;
|
224
|
-
};
|
225
|
-
label: import("vue-types").VueTypeDef<any>;
|
226
|
-
field: import("vue-types").VueTypeDef<any>;
|
227
|
-
render: import("vue-types").VueTypeDef<any>;
|
182
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
183
|
+
label: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
184
|
+
field: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
185
|
+
render: import("vue-types").VueTypeDef<import("../props").RenderFunctionString>;
|
228
186
|
width: import("vue-types").VueTypeDef<string | number>;
|
229
187
|
minWidth: import("vue-types").VueTypeDef<string | number> & {
|
230
188
|
default: string | number;
|
@@ -234,9 +192,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
234
192
|
} & {
|
235
193
|
default: string;
|
236
194
|
};
|
237
|
-
showOverflowTooltip: import("vue-types").VueTypeDef<
|
238
|
-
default: boolean | (() => import("../props").IOverflowTooltip);
|
239
|
-
};
|
195
|
+
showOverflowTooltip: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp>;
|
240
196
|
type: import("vue-types").VueTypeDef<"none" | "selection" | "index" | "expand">;
|
241
197
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
242
198
|
default: boolean;
|
@@ -246,60 +202,39 @@ declare const _default: import("vue").DefineComponent<{
|
|
246
202
|
fixed: import("vue-types").VueTypeDef<boolean | "right" | "left"> & {
|
247
203
|
default: boolean | "right" | "left";
|
248
204
|
};
|
249
|
-
sort: import("vue-types").VueTypeDef<
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
205
|
+
sort: import("vue-types").VueTypeDef<import("../props").ISortPropShape>;
|
206
|
+
filter: import("vue-types").VueTypeDef<import("../props").IFilterPropShape>;
|
207
|
+
colspan: import("vue-types").VueTypeDef<import("../props").SpanFunctionString> & {
|
208
|
+
default: (({ column, colIndex, row, rowIndex }: {
|
209
|
+
column: any;
|
210
|
+
colIndex: any;
|
211
|
+
row: any;
|
212
|
+
rowIndex: any;
|
213
|
+
}) => number) | (() => Number);
|
214
|
+
};
|
215
|
+
rowspan: import("vue-types").VueTypeDef<import("../props").SpanFunctionString> & {
|
216
|
+
default: (({ column, colIndex, row, rowIndex }: {
|
217
|
+
column: any;
|
218
|
+
colIndex: any;
|
219
|
+
row: any;
|
220
|
+
rowIndex: any;
|
221
|
+
}) => number) | (() => Number);
|
259
222
|
};
|
260
|
-
filter: import("vue-types").VueTypeDef<string | boolean | {
|
261
|
-
list: any[] | (object & (() => any[]));
|
262
|
-
filterFn: any;
|
263
|
-
match: "full" | "fuzzy";
|
264
|
-
checked: any[] | (object & (() => any[]));
|
265
|
-
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
266
|
-
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
267
|
-
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
268
|
-
}> & {
|
269
|
-
default: string | boolean | (() => {
|
270
|
-
list: any[] | (object & (() => any[]));
|
271
|
-
filterFn: any;
|
272
|
-
match: "full" | "fuzzy";
|
273
|
-
checked: any[] | (object & (() => any[]));
|
274
|
-
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
275
|
-
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
276
|
-
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
277
|
-
});
|
278
|
-
};
|
279
|
-
colspan: import("vue-types").VueTypeDef<any>;
|
280
|
-
rowspan: import("vue-types").VueTypeDef<any>;
|
281
223
|
align: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
|
282
|
-
className: import("vue-types").VueTypeDef<
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
};
|
289
|
-
filter: string | boolean | {
|
290
|
-
list: any[] | (object & (() => any[]));
|
291
|
-
filterFn: any;
|
292
|
-
match: "full" | "fuzzy";
|
293
|
-
checked: any[] | (object & (() => any[]));
|
294
|
-
filterScope: (object | "all" | "current" | (() => "all" | "current") | ((props: Record<string, unknown>) => "all" | "current")) & ("all" | "current");
|
295
|
-
btnSave: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
296
|
-
btnReset: (string | boolean | object | (() => string | boolean) | ((props: Record<string, unknown>) => string | boolean)) & (string | boolean);
|
224
|
+
className: import("vue-types").VueTypeDef<import("../props").RowClassFunctionString>;
|
225
|
+
prop: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
226
|
+
index: import("vue-types").VueTypeValidableDef<number> & {
|
227
|
+
default: number;
|
228
|
+
} & {
|
229
|
+
default: number;
|
297
230
|
};
|
231
|
+
}>>, {
|
298
232
|
fixed: boolean | "right" | "left";
|
299
233
|
minWidth: string | number;
|
234
|
+
resizable: boolean;
|
300
235
|
index: number;
|
301
236
|
columnKey: string;
|
302
|
-
|
303
|
-
|
237
|
+
colspan: import("../props").SpanFunctionString;
|
238
|
+
rowspan: import("../props").SpanFunctionString;
|
304
239
|
}, {}>;
|
305
240
|
export default _default;
|
package/lib/table/const.d.ts
CHANGED
@@ -19,60 +19,6 @@ export declare const ROW_HOVER_OPTIONS: ROW_HOVER[];
|
|
19
19
|
* 边框配置可选项
|
20
20
|
*/
|
21
21
|
export declare const BORDER_OPTIONS: BORDER_OPTION[];
|
22
|
-
export declare const enum EVENTS {
|
23
|
-
/** 点击排序事件 */
|
24
|
-
ON_SORT_BY_CLICK = "onSortByClick",
|
25
|
-
ON_FILTER_CLICK = "onFilterClick",
|
26
|
-
ON_SETTING_CHANGE = "onSettingChange",
|
27
|
-
ON_ROW_EXPAND_CLICK = "onRowExpandClick",
|
28
|
-
ON_ROW_CHECK = "onRowCheck"
|
29
|
-
}
|
30
|
-
export declare const enum EMIT_EVENTS {
|
31
|
-
COLUMN_PICK = "columnPick",
|
32
|
-
COLUMN_SORT = "columnSort",
|
33
|
-
COLUMN_FILTER = "columnFilter",
|
34
|
-
COLUMN_FILTER_SAVE = "colFilterSave",
|
35
|
-
ROW_CLICK = "rowClick",
|
36
|
-
ROW_DBL_CLICK = "rowDblclick",
|
37
|
-
ROW_EXPAND_CLICK = "rowExpand",
|
38
|
-
ROW_MOUSE_ENTER = "rowMouseEnter",
|
39
|
-
ROW_MOUSE_LEAVE = "rowMouseLeave",
|
40
|
-
PAGE_LIMIT_CHANGE = "pageLimitChange",
|
41
|
-
PAGE_VALUE_CHANGE = "pageValueChange",
|
42
|
-
SETTING_CHANGE = "settingChange",
|
43
|
-
SCROLL_BOTTOM = "scrollBottom",
|
44
|
-
ROW_SELECT = "select",
|
45
|
-
ROW_SELECT_ALL = "selectAll",
|
46
|
-
ROW_SELECT_CHANGE = "selectionChange",
|
47
|
-
CELL_CLICK = "cellClick",
|
48
|
-
CELL_DBL_CLICK = "cellDblclick",
|
49
|
-
NATIVE_CLICK = "click",
|
50
|
-
NATIVE_DBL_CLICK = "dblclick"
|
51
|
-
}
|
52
|
-
export declare const EMIT_EVENT_TYPES: {
|
53
|
-
columnPick: (..._args: any[]) => boolean;
|
54
|
-
columnFilter: (..._args: any[]) => boolean;
|
55
|
-
columnSort: (..._args: any[]) => boolean;
|
56
|
-
colFilterSave: (..._args: any[]) => boolean;
|
57
|
-
rowClick: (..._args: any[]) => boolean;
|
58
|
-
rowDblclick: (..._args: any[]) => boolean;
|
59
|
-
rowExpand: (..._args: any[]) => boolean;
|
60
|
-
select: (..._args: any[]) => boolean;
|
61
|
-
selectAll: (..._args: any[]) => boolean;
|
62
|
-
selectionChange: (..._args: any[]) => boolean;
|
63
|
-
pageLimitChange: (..._args: any[]) => boolean;
|
64
|
-
pageValueChange: (..._args: any[]) => boolean;
|
65
|
-
settingChange: (..._args: any[]) => boolean;
|
66
|
-
scrollBottom: (..._args: any[]) => boolean;
|
67
|
-
cellClick: (..._args: any[]) => boolean;
|
68
|
-
cellDblclick: (..._args: any[]) => boolean;
|
69
|
-
rowMouseEnter: (..._args: any[]) => boolean;
|
70
|
-
rowMouseLeave: (..._args: any[]) => boolean;
|
71
|
-
};
|
72
|
-
export declare const CELL_EVENT_TYPES: {
|
73
|
-
click: (..._args: any[]) => boolean;
|
74
|
-
dblclick: (..._args: any[]) => boolean;
|
75
|
-
};
|
76
22
|
/**
|
77
23
|
* Table Row Attributes
|
78
24
|
*/
|
@@ -81,7 +27,6 @@ export declare const TABLE_ROW_ATTRIBUTE: {
|
|
81
27
|
ROW_UID: string;
|
82
28
|
ROW_EXPAND: string;
|
83
29
|
ROW_SELECTION: string;
|
84
|
-
ROW_SELECTION_ALL: string;
|
85
30
|
ROW_SELECTION_INDETERMINATE: string;
|
86
31
|
ROW_SOURCE_DATA: string;
|
87
32
|
ROW_SKIP_CFG: string;
|
@@ -89,7 +34,19 @@ export declare const TABLE_ROW_ATTRIBUTE: {
|
|
89
34
|
export declare const COLUMN_ATTRIBUTE: {
|
90
35
|
COL_UID: string;
|
91
36
|
COL_SOURCE_DATA: string;
|
92
|
-
|
37
|
+
COL_MIN_WIDTH: string;
|
38
|
+
COL_SORT_ACTIVE: string;
|
39
|
+
COL_SORT_TYPE: string;
|
40
|
+
COL_SORT_FN: string;
|
41
|
+
COL_SORT_SCOPE: string;
|
42
|
+
COL_FILTER_FN: string;
|
43
|
+
COL_FILTER_SCOPE: string;
|
44
|
+
COL_IS_DRAG: string;
|
45
|
+
WIDTH: string;
|
46
|
+
CALC_WIDTH: string;
|
47
|
+
RESIZE_WIDTH: string;
|
48
|
+
LISTENERS: string;
|
49
|
+
IS_HIDDEN: string;
|
93
50
|
};
|
94
51
|
/**
|
95
52
|
* Y 轴滚动条宽度
|
@@ -99,6 +56,17 @@ export declare const SCROLLY_WIDTH = 6;
|
|
99
56
|
* 默认行高
|
100
57
|
*/
|
101
58
|
export declare const LINE_HEIGHT = 42;
|
59
|
+
export declare enum IHeadColor {
|
60
|
+
DEF1 = "def1",
|
61
|
+
DEF2 = "def2"
|
62
|
+
}
|
63
|
+
/**
|
64
|
+
* 根据表格的使用场景,表头支持颜色自定义,默认提供的选项:FAFBFD、F0F1F5,尽量一个项目选用同一种颜色。
|
65
|
+
*/
|
66
|
+
export declare const DEF_COLOR: {
|
67
|
+
def1: string;
|
68
|
+
def2: string;
|
69
|
+
};
|
102
70
|
export declare const SETTING_SIZE: {
|
103
71
|
large: number;
|
104
72
|
medium: number;
|
@@ -115,6 +83,11 @@ export declare const createDefaultSizeList: (t: ComputedRef<Language['table']>)
|
|
115
83
|
export declare const PROVIDE_KEY_INIT_COL = "InitColumns";
|
116
84
|
export declare const PROVIDE_KEY_TB_CACHE = "BKTableCahce";
|
117
85
|
export declare const BK_COLUMN_UPDATE_DEFINE = "Bk_COlumn_Update_Define";
|
86
|
+
/**
|
87
|
+
* 表格底部高度
|
88
|
+
* 分页组件
|
89
|
+
*/
|
90
|
+
export declare const TB_FOOT_HEIGHT = 60;
|
118
91
|
/**
|
119
92
|
* 排序可选择项
|
120
93
|
*/
|
@@ -129,3 +102,8 @@ export declare const SORT_OPTIONS: SORT_OPTION[];
|
|
129
102
|
* 列宽最小设置
|
130
103
|
*/
|
131
104
|
export declare const COL_MIN_WIDTH = 80;
|
105
|
+
export type ICheckAllEmptyObject = {};
|
106
|
+
/**
|
107
|
+
* 全选对象
|
108
|
+
*/
|
109
|
+
export declare const CHECK_ALL_OBJ: ICheckAllEmptyObject;
|