bkui-vue 1.0.3-beta.47.scrollbar.1 → 1.0.3-beta.48

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.
@@ -1,8 +1,4 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
- export type IScrollbarOption = {
3
- enabled: boolean;
4
- keepStruct: boolean;
5
- };
6
2
  export declare const virtualRenderProps: {
7
3
  onContentScroll: FunctionConstructor;
8
4
  /** 传入原始数据源 */
@@ -185,10 +181,6 @@ export declare const virtualRenderProps: {
185
181
  } & {
186
182
  default: boolean;
187
183
  };
188
- /**
189
- * 是否允许滚动条改变原有DOM结构
190
- */
191
- scrollbar: import("vue-types").VueTypeDef<IScrollbarOption>;
192
184
  /**
193
185
  * 数据监听改变时,是否自动重置位置到[0, 0]
194
186
  */
@@ -1,3 +1,4 @@
1
+ import { Ref } from 'vue';
1
2
  import { VirtualRenderProps } from './props';
2
3
  type IFixToTopParams = {
3
4
  index?: number;
@@ -7,7 +8,11 @@ type IFixToTopParams = {
7
8
  };
8
9
  position: number[];
9
10
  };
10
- declare const _default: (props: VirtualRenderProps, scrollTo: (x: any, y: any) => void) => {
11
- fixToTop: (params: IFixToTopParams) => any;
11
+ declare const _default: (props: VirtualRenderProps, refRoot: Ref<HTMLElement>) => {
12
+ fixToTop: (params: IFixToTopParams) => void;
13
+ scrollTo: (option?: {
14
+ left: number;
15
+ top: number;
16
+ }) => void;
12
17
  };
13
18
  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, wrapper: any, event: any): {
6
+ export declare function computedVirtualIndex(lineHeight: any, callback: any, pagination: any, _el: any, event: any): {
7
7
  targetStartIndex: number;
8
8
  targetEndIndex: number;
9
9
  elScrollTop: any;
@@ -20,7 +20,6 @@ export declare class VisibleRender {
20
20
  install(): void;
21
21
  uninstall(): void;
22
22
  setBinding(binding: any): void;
23
- private getEvent;
24
23
  }
25
24
  declare const _default: {
26
25
  mounted(el: any, binding: any): void;
@@ -129,7 +129,6 @@ declare const _default: import("vue").DefineComponent<{
129
129
  } & {
130
130
  default: boolean;
131
131
  };
132
- scrollbar: import("vue-types").VueTypeDef<import("./props").IScrollbarOption>;
133
132
  autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
134
133
  default: boolean;
135
134
  } & {
@@ -265,7 +264,6 @@ declare const _default: import("vue").DefineComponent<{
265
264
  } & {
266
265
  default: boolean;
267
266
  };
268
- scrollbar: import("vue-types").VueTypeDef<import("./props").IScrollbarOption>;
269
267
  autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
270
268
  default: boolean;
271
269
  } & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "1.0.3-beta.47.scrollbar.1",
3
+ "version": "1.0.3-beta.48",
4
4
  "workspaces": {
5
5
  "packages": [
6
6
  "packages/!(**.bak)*",
@@ -153,7 +153,6 @@
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",
157
156
  "date-fns": "~2.30.0",
158
157
  "js-calendar": "~1.2.3",
159
158
  "json-formatter-js": "~2.3.4",
@@ -1,8 +0,0 @@
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;