bkui-vue 1.0.3-beta.46 → 1.0.3-beta.47.scrollbar.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 +206 -154
- package/dist/index.esm.js +17889 -15285
- package/dist/index.umd.js +207 -155
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/table/index.js +4 -0
- package/lib/table/table.css +4 -15
- package/lib/table/table.less +6 -19
- package/lib/table/table.variable.css +4 -15
- package/lib/virtual-render/index.d.ts +4 -0
- package/lib/virtual-render/index.js +4607 -125
- package/lib/virtual-render/props.d.ts +8 -0
- package/lib/virtual-render/use-fix-top.d.ts +2 -7
- package/lib/virtual-render/use-scrollbar.d.ts +8 -0
- package/lib/virtual-render/v-virtual-render.d.ts +2 -1
- package/lib/virtual-render/virtual-render.d.ts +2 -0
- package/package.json +2 -1
@@ -1,4 +1,8 @@
|
|
1
1
|
import { ExtractPropTypes } from 'vue';
|
2
|
+
export type IScrollbarOption = {
|
3
|
+
enabled: boolean;
|
4
|
+
keepStruct: boolean;
|
5
|
+
};
|
2
6
|
export declare const virtualRenderProps: {
|
3
7
|
onContentScroll: FunctionConstructor;
|
4
8
|
/** 传入原始数据源 */
|
@@ -181,6 +185,10 @@ export declare const virtualRenderProps: {
|
|
181
185
|
} & {
|
182
186
|
default: boolean;
|
183
187
|
};
|
188
|
+
/**
|
189
|
+
* 是否允许滚动条改变原有DOM结构
|
190
|
+
*/
|
191
|
+
scrollbar: import("vue-types").VueTypeDef<IScrollbarOption>;
|
184
192
|
/**
|
185
193
|
* 数据监听改变时,是否自动重置位置到[0, 0]
|
186
194
|
*/
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import { Ref } from 'vue';
|
2
1
|
import { VirtualRenderProps } from './props';
|
3
2
|
type IFixToTopParams = {
|
4
3
|
index?: number;
|
@@ -8,11 +7,7 @@ type IFixToTopParams = {
|
|
8
7
|
};
|
9
8
|
position: number[];
|
10
9
|
};
|
11
|
-
declare const _default: (props: VirtualRenderProps,
|
12
|
-
fixToTop: (params: IFixToTopParams) =>
|
13
|
-
scrollTo: (option?: {
|
14
|
-
left: number;
|
15
|
-
top: number;
|
16
|
-
}) => void;
|
10
|
+
declare const _default: (props: VirtualRenderProps, scrollTo: (x: any, y: any) => void) => {
|
11
|
+
fixToTop: (params: IFixToTopParams) => any;
|
17
12
|
};
|
18
13
|
export default _default;
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { Ref } from 'vue';
|
2
|
+
import { VirtualRenderProps } from './props';
|
3
|
+
declare const _default: (target: Ref<HTMLElement>, props: VirtualRenderProps) => {
|
4
|
+
init: (scrollFn?: any) => void;
|
5
|
+
instance: any;
|
6
|
+
scrollTo: (x: any, y: any) => void;
|
7
|
+
};
|
8
|
+
export default _default;
|
@@ -3,7 +3,7 @@ export declare function getMatchedIndex(maxCount: number, maxHeight: number, gro
|
|
3
3
|
height: number;
|
4
4
|
diffHeight: number;
|
5
5
|
};
|
6
|
-
export declare function computedVirtualIndex(lineHeight: any, callback: any, pagination: any,
|
6
|
+
export declare function computedVirtualIndex(lineHeight: any, callback: any, pagination: any, wrapper: any, event: any): {
|
7
7
|
targetStartIndex: number;
|
8
8
|
targetEndIndex: number;
|
9
9
|
elScrollTop: any;
|
@@ -20,6 +20,7 @@ export declare class VisibleRender {
|
|
20
20
|
install(): void;
|
21
21
|
uninstall(): void;
|
22
22
|
setBinding(binding: any): void;
|
23
|
+
private getEvent;
|
23
24
|
}
|
24
25
|
declare const _default: {
|
25
26
|
mounted(el: any, binding: any): void;
|
@@ -129,6 +129,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
129
129
|
} & {
|
130
130
|
default: boolean;
|
131
131
|
};
|
132
|
+
scrollbar: import("vue-types").VueTypeDef<import("./props").IScrollbarOption>;
|
132
133
|
autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
|
133
134
|
default: boolean;
|
134
135
|
} & {
|
@@ -264,6 +265,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
264
265
|
} & {
|
265
266
|
default: boolean;
|
266
267
|
};
|
268
|
+
scrollbar: import("vue-types").VueTypeDef<import("./props").IScrollbarOption>;
|
267
269
|
autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
|
268
270
|
default: boolean;
|
269
271
|
} & {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "bkui-vue",
|
3
|
-
"version": "1.0.3-beta.
|
3
|
+
"version": "1.0.3-beta.47.scrollbar.1",
|
4
4
|
"workspaces": {
|
5
5
|
"packages": [
|
6
6
|
"packages/!(**.bak)*",
|
@@ -153,6 +153,7 @@
|
|
153
153
|
"dependencies": {
|
154
154
|
"@floating-ui/dom": "~1.5.0",
|
155
155
|
"@popperjs/core": "~2.11.8",
|
156
|
+
"bk-smooth-scrollbar": "0.0.7-beta-2",
|
156
157
|
"date-fns": "~2.30.0",
|
157
158
|
"js-calendar": "~1.2.3",
|
158
159
|
"json-formatter-js": "~2.3.4",
|