index.d.ts 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584
  1. export declare const ElScrollbar: import("element-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
  2. readonly ariaLabel: StringConstructor;
  3. readonly ariaOrientation: {
  4. readonly type: import("vue").PropType<string>;
  5. readonly required: false;
  6. readonly validator: ((val: unknown) => boolean) | undefined;
  7. __epPropKey: true;
  8. };
  9. readonly height: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
  10. readonly maxHeight: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
  11. readonly native: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  12. readonly wrapStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown, "", boolean>;
  13. readonly wrapClass: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
  14. readonly viewClass: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
  15. readonly viewStyle: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown, "", boolean>;
  16. readonly noresize: BooleanConstructor;
  17. readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
  18. readonly always: BooleanConstructor;
  19. readonly minSize: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
  20. readonly id: StringConstructor;
  21. readonly role: StringConstructor;
  22. }, {
  23. COMPONENT_NAME: string;
  24. props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
  25. readonly ariaLabel: StringConstructor;
  26. readonly ariaOrientation: {
  27. readonly type: import("vue").PropType<string>;
  28. readonly required: false;
  29. readonly validator: ((val: unknown) => boolean) | undefined;
  30. __epPropKey: true;
  31. };
  32. readonly height: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
  33. readonly maxHeight: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
  34. readonly native: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  35. readonly wrapStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown, "", boolean>;
  36. readonly wrapClass: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
  37. readonly viewClass: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
  38. readonly viewStyle: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown, "", boolean>;
  39. readonly noresize: BooleanConstructor;
  40. readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
  41. readonly always: BooleanConstructor;
  42. readonly minSize: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
  43. readonly id: StringConstructor;
  44. readonly role: StringConstructor;
  45. }>> & {
  46. onScroll?: ((args_0: {
  47. scrollTop: number;
  48. scrollLeft: number;
  49. }) => any) | undefined;
  50. }>>;
  51. emit: (event: "scroll", args_0: {
  52. scrollTop: number;
  53. scrollLeft: number;
  54. }) => void;
  55. ns: {
  56. namespace: import("vue").ComputedRef<string>;
  57. b: (blockSuffix?: string) => string;
  58. e: (element?: string | undefined) => string;
  59. m: (modifier?: string | undefined) => string;
  60. be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
  61. em: (element?: string | undefined, modifier?: string | undefined) => string;
  62. bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
  63. bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
  64. is: {
  65. (name: string, state: boolean | undefined): string;
  66. (name: string): string;
  67. };
  68. cssVar: (object: Record<string, string>) => Record<string, string>;
  69. cssVarName: (name: string) => string;
  70. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  71. cssVarBlockName: (name: string) => string;
  72. };
  73. stopResizeObserver: undefined;
  74. stopResizeListener: undefined;
  75. scrollbarRef: import("vue").Ref<HTMLDivElement | undefined>;
  76. wrapRef: import("vue").Ref<HTMLDivElement | undefined>;
  77. resizeRef: import("vue").Ref<HTMLElement | undefined>;
  78. barRef: import("vue").Ref<({
  79. $: import("vue").ComponentInternalInstance;
  80. $data: {};
  81. $props: Partial<{
  82. readonly always: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
  83. }> & Omit<Readonly<import("vue").ExtractPropTypes<{
  84. readonly always: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  85. readonly minSize: {
  86. readonly type: import("vue").PropType<number>;
  87. readonly required: true;
  88. readonly validator: ((val: unknown) => boolean) | undefined;
  89. __epPropKey: true;
  90. };
  91. }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "always">;
  92. $attrs: {
  93. [x: string]: unknown;
  94. };
  95. $refs: {
  96. [x: string]: unknown;
  97. };
  98. $slots: Readonly<{
  99. [name: string]: import("vue").Slot | undefined;
  100. }>;
  101. $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
  102. $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
  103. $emit: (event: string, ...args: any[]) => void;
  104. $el: any;
  105. $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
  106. readonly always: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  107. readonly minSize: {
  108. readonly type: import("vue").PropType<number>;
  109. readonly required: true;
  110. readonly validator: ((val: unknown) => boolean) | undefined;
  111. __epPropKey: true;
  112. };
  113. }>>, {
  114. props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
  115. readonly always: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  116. readonly minSize: {
  117. readonly type: import("vue").PropType<number>;
  118. readonly required: true;
  119. readonly validator: ((val: unknown) => boolean) | undefined;
  120. __epPropKey: true;
  121. };
  122. }>> & {
  123. [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
  124. }>>;
  125. scrollbar: import("./src/constants").ScrollbarContext | undefined;
  126. moveX: import("vue").Ref<number>;
  127. moveY: import("vue").Ref<number>;
  128. sizeWidth: import("vue").Ref<string>;
  129. sizeHeight: import("vue").Ref<string>;
  130. ratioY: import("vue").Ref<number>;
  131. ratioX: import("vue").Ref<number>;
  132. handleScroll: (wrap: HTMLDivElement) => void;
  133. update: () => void;
  134. Thumb: import("vue").DefineComponent<{
  135. readonly vertical: BooleanConstructor;
  136. readonly size: StringConstructor;
  137. readonly move: NumberConstructor;
  138. readonly ratio: {
  139. readonly type: import("vue").PropType<number>;
  140. readonly required: true;
  141. readonly validator: ((val: unknown) => boolean) | undefined;
  142. __epPropKey: true;
  143. };
  144. readonly always: BooleanConstructor;
  145. }, {
  146. COMPONENT_NAME: string;
  147. props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
  148. readonly vertical: BooleanConstructor;
  149. readonly size: StringConstructor;
  150. readonly move: NumberConstructor;
  151. readonly ratio: {
  152. readonly type: import("vue").PropType<number>;
  153. readonly required: true;
  154. readonly validator: ((val: unknown) => boolean) | undefined;
  155. __epPropKey: true;
  156. };
  157. readonly always: BooleanConstructor;
  158. }>> & {
  159. [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
  160. }>>;
  161. scrollbar: import("./src/constants").ScrollbarContext;
  162. ns: {
  163. namespace: import("vue").ComputedRef<string>;
  164. b: (blockSuffix?: string) => string;
  165. e: (element?: string | undefined) => string;
  166. m: (modifier?: string | undefined) => string;
  167. be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
  168. em: (element?: string | undefined, modifier?: string | undefined) => string;
  169. bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
  170. bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
  171. is: {
  172. (name: string, state: boolean | undefined): string;
  173. (name: string): string;
  174. };
  175. cssVar: (object: Record<string, string>) => Record<string, string>;
  176. cssVarName: (name: string) => string;
  177. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  178. cssVarBlockName: (name: string) => string;
  179. };
  180. instance: import("vue").Ref<HTMLDivElement | undefined>;
  181. thumb: import("vue").Ref<HTMLDivElement | undefined>;
  182. thumbState: import("vue").Ref<{
  183. X?: number | undefined;
  184. Y?: number | undefined;
  185. }>;
  186. visible: import("vue").Ref<boolean>;
  187. cursorDown: boolean;
  188. cursorLeave: boolean;
  189. originalOnSelectStart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  190. bar: import("vue").ComputedRef<{
  191. readonly offset: "offsetHeight";
  192. readonly scroll: "scrollTop";
  193. readonly scrollSize: "scrollHeight";
  194. readonly size: "height";
  195. readonly key: "vertical";
  196. readonly axis: "Y";
  197. readonly client: "clientY";
  198. readonly direction: "top";
  199. } | {
  200. readonly offset: "offsetWidth";
  201. readonly scroll: "scrollLeft";
  202. readonly scrollSize: "scrollWidth";
  203. readonly size: "width";
  204. readonly key: "horizontal";
  205. readonly axis: "X";
  206. readonly client: "clientX";
  207. readonly direction: "left";
  208. }>;
  209. thumbStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
  210. offsetRatio: import("vue").ComputedRef<number>;
  211. clickThumbHandler: (e: MouseEvent) => void;
  212. clickTrackHandler: (e: MouseEvent) => void;
  213. startDrag: (e: MouseEvent) => void;
  214. mouseMoveDocumentHandler: (e: MouseEvent) => void;
  215. mouseUpDocumentHandler: () => void;
  216. mouseMoveScrollbarHandler: () => void;
  217. mouseLeaveScrollbarHandler: () => void;
  218. restoreOnselectstart: () => void;
  219. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  220. readonly vertical: BooleanConstructor;
  221. readonly size: StringConstructor;
  222. readonly move: NumberConstructor;
  223. readonly ratio: {
  224. readonly type: import("vue").PropType<number>;
  225. readonly required: true;
  226. readonly validator: ((val: unknown) => boolean) | undefined;
  227. __epPropKey: true;
  228. };
  229. readonly always: BooleanConstructor;
  230. }>>, {
  231. readonly vertical: boolean;
  232. readonly always: boolean;
  233. }>;
  234. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
  235. readonly always: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
  236. }> & {
  237. beforeCreate?: ((() => void) | (() => void)[]) | undefined;
  238. created?: ((() => void) | (() => void)[]) | undefined;
  239. beforeMount?: ((() => void) | (() => void)[]) | undefined;
  240. mounted?: ((() => void) | (() => void)[]) | undefined;
  241. beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
  242. updated?: ((() => void) | (() => void)[]) | undefined;
  243. activated?: ((() => void) | (() => void)[]) | undefined;
  244. deactivated?: ((() => void) | (() => void)[]) | undefined;
  245. beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
  246. beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
  247. destroyed?: ((() => void) | (() => void)[]) | undefined;
  248. unmounted?: ((() => void) | (() => void)[]) | undefined;
  249. renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
  250. renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
  251. errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
  252. };
  253. $forceUpdate: () => void;
  254. $nextTick: typeof import("vue").nextTick;
  255. $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
  256. } & Readonly<import("vue").ExtractPropTypes<{
  257. readonly always: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  258. readonly minSize: {
  259. readonly type: import("vue").PropType<number>;
  260. readonly required: true;
  261. readonly validator: ((val: unknown) => boolean) | undefined;
  262. __epPropKey: true;
  263. };
  264. }>> & import("vue").ShallowUnwrapRef<{
  265. props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
  266. readonly always: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  267. readonly minSize: {
  268. readonly type: import("vue").PropType<number>;
  269. readonly required: true;
  270. readonly validator: ((val: unknown) => boolean) | undefined;
  271. __epPropKey: true;
  272. };
  273. }>> & {
  274. [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
  275. }>>;
  276. scrollbar: import("./src/constants").ScrollbarContext | undefined;
  277. moveX: import("vue").Ref<number>;
  278. moveY: import("vue").Ref<number>;
  279. sizeWidth: import("vue").Ref<string>;
  280. sizeHeight: import("vue").Ref<string>;
  281. ratioY: import("vue").Ref<number>;
  282. ratioX: import("vue").Ref<number>;
  283. handleScroll: (wrap: HTMLDivElement) => void;
  284. update: () => void;
  285. Thumb: import("vue").DefineComponent<{
  286. readonly vertical: BooleanConstructor;
  287. readonly size: StringConstructor;
  288. readonly move: NumberConstructor;
  289. readonly ratio: {
  290. readonly type: import("vue").PropType<number>;
  291. readonly required: true;
  292. readonly validator: ((val: unknown) => boolean) | undefined;
  293. __epPropKey: true;
  294. };
  295. readonly always: BooleanConstructor;
  296. }, {
  297. COMPONENT_NAME: string;
  298. props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
  299. readonly vertical: BooleanConstructor;
  300. readonly size: StringConstructor;
  301. readonly move: NumberConstructor;
  302. readonly ratio: {
  303. readonly type: import("vue").PropType<number>;
  304. readonly required: true;
  305. readonly validator: ((val: unknown) => boolean) | undefined;
  306. __epPropKey: true;
  307. };
  308. readonly always: BooleanConstructor;
  309. }>> & {
  310. [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
  311. }>>;
  312. scrollbar: import("./src/constants").ScrollbarContext;
  313. ns: {
  314. namespace: import("vue").ComputedRef<string>;
  315. b: (blockSuffix?: string) => string;
  316. e: (element?: string | undefined) => string;
  317. m: (modifier?: string | undefined) => string;
  318. be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
  319. em: (element?: string | undefined, modifier?: string | undefined) => string;
  320. bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
  321. bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
  322. is: {
  323. (name: string, state: boolean | undefined): string;
  324. (name: string): string;
  325. };
  326. cssVar: (object: Record<string, string>) => Record<string, string>;
  327. cssVarName: (name: string) => string;
  328. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  329. cssVarBlockName: (name: string) => string;
  330. };
  331. instance: import("vue").Ref<HTMLDivElement | undefined>;
  332. thumb: import("vue").Ref<HTMLDivElement | undefined>;
  333. thumbState: import("vue").Ref<{
  334. X?: number | undefined;
  335. Y?: number | undefined;
  336. }>;
  337. visible: import("vue").Ref<boolean>;
  338. cursorDown: boolean;
  339. cursorLeave: boolean;
  340. originalOnSelectStart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  341. bar: import("vue").ComputedRef<{
  342. readonly offset: "offsetHeight";
  343. readonly scroll: "scrollTop";
  344. readonly scrollSize: "scrollHeight";
  345. readonly size: "height";
  346. readonly key: "vertical";
  347. readonly axis: "Y";
  348. readonly client: "clientY";
  349. readonly direction: "top";
  350. } | {
  351. readonly offset: "offsetWidth";
  352. readonly scroll: "scrollLeft";
  353. readonly scrollSize: "scrollWidth";
  354. readonly size: "width";
  355. readonly key: "horizontal";
  356. readonly axis: "X";
  357. readonly client: "clientX";
  358. readonly direction: "left";
  359. }>;
  360. thumbStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
  361. offsetRatio: import("vue").ComputedRef<number>;
  362. clickThumbHandler: (e: MouseEvent) => void;
  363. clickTrackHandler: (e: MouseEvent) => void;
  364. startDrag: (e: MouseEvent) => void;
  365. mouseMoveDocumentHandler: (e: MouseEvent) => void;
  366. mouseUpDocumentHandler: () => void;
  367. mouseMoveScrollbarHandler: () => void;
  368. mouseLeaveScrollbarHandler: () => void;
  369. restoreOnselectstart: () => void;
  370. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  371. readonly vertical: BooleanConstructor;
  372. readonly size: StringConstructor;
  373. readonly move: NumberConstructor;
  374. readonly ratio: {
  375. readonly type: import("vue").PropType<number>;
  376. readonly required: true;
  377. readonly validator: ((val: unknown) => boolean) | undefined;
  378. __epPropKey: true;
  379. };
  380. readonly always: BooleanConstructor;
  381. }>>, {
  382. readonly vertical: boolean;
  383. readonly always: boolean;
  384. }>;
  385. }> & {} & import("vue").ComponentCustomProperties) | undefined>;
  386. wrapStyle: import("vue").ComputedRef<import("vue").StyleValue>;
  387. wrapKls: import("vue").ComputedRef<(string | unknown[] | {
  388. [x: string]: boolean;
  389. })[]>;
  390. resizeKls: import("vue").ComputedRef<import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>[]>;
  391. handleScroll: () => void;
  392. scrollTo: (arg1: unknown, arg2?: number | undefined) => void;
  393. setScrollTop: (value: number) => void;
  394. setScrollLeft: (value: number) => void;
  395. update: () => void;
  396. Bar: import("vue").DefineComponent<{
  397. readonly always: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  398. readonly minSize: {
  399. readonly type: import("vue").PropType<number>;
  400. readonly required: true;
  401. readonly validator: ((val: unknown) => boolean) | undefined;
  402. __epPropKey: true;
  403. };
  404. }, {
  405. props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
  406. readonly always: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  407. readonly minSize: {
  408. readonly type: import("vue").PropType<number>;
  409. readonly required: true;
  410. readonly validator: ((val: unknown) => boolean) | undefined;
  411. __epPropKey: true;
  412. };
  413. }>> & {
  414. [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
  415. }>>;
  416. scrollbar: import("./src/constants").ScrollbarContext | undefined;
  417. moveX: import("vue").Ref<number>;
  418. moveY: import("vue").Ref<number>;
  419. sizeWidth: import("vue").Ref<string>;
  420. sizeHeight: import("vue").Ref<string>;
  421. ratioY: import("vue").Ref<number>;
  422. ratioX: import("vue").Ref<number>;
  423. handleScroll: (wrap: HTMLDivElement) => void;
  424. update: () => void;
  425. Thumb: import("vue").DefineComponent<{
  426. readonly vertical: BooleanConstructor;
  427. readonly size: StringConstructor;
  428. readonly move: NumberConstructor;
  429. readonly ratio: {
  430. readonly type: import("vue").PropType<number>;
  431. readonly required: true;
  432. readonly validator: ((val: unknown) => boolean) | undefined;
  433. __epPropKey: true;
  434. };
  435. readonly always: BooleanConstructor;
  436. }, {
  437. COMPONENT_NAME: string;
  438. props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
  439. readonly vertical: BooleanConstructor;
  440. readonly size: StringConstructor;
  441. readonly move: NumberConstructor;
  442. readonly ratio: {
  443. readonly type: import("vue").PropType<number>;
  444. readonly required: true;
  445. readonly validator: ((val: unknown) => boolean) | undefined;
  446. __epPropKey: true;
  447. };
  448. readonly always: BooleanConstructor;
  449. }>> & {
  450. [x: string & `on${string}`]: ((...args: any[]) => any) | ((...args: unknown[]) => any) | undefined;
  451. }>>;
  452. scrollbar: import("./src/constants").ScrollbarContext;
  453. ns: {
  454. namespace: import("vue").ComputedRef<string>;
  455. b: (blockSuffix?: string) => string;
  456. e: (element?: string | undefined) => string;
  457. m: (modifier?: string | undefined) => string;
  458. be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
  459. em: (element?: string | undefined, modifier?: string | undefined) => string;
  460. bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
  461. bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
  462. is: {
  463. (name: string, state: boolean | undefined): string;
  464. (name: string): string;
  465. };
  466. cssVar: (object: Record<string, string>) => Record<string, string>;
  467. cssVarName: (name: string) => string;
  468. cssVarBlock: (object: Record<string, string>) => Record<string, string>;
  469. cssVarBlockName: (name: string) => string;
  470. };
  471. instance: import("vue").Ref<HTMLDivElement | undefined>;
  472. thumb: import("vue").Ref<HTMLDivElement | undefined>;
  473. thumbState: import("vue").Ref<{
  474. X?: number | undefined;
  475. Y?: number | undefined;
  476. }>;
  477. visible: import("vue").Ref<boolean>;
  478. cursorDown: boolean;
  479. cursorLeave: boolean;
  480. originalOnSelectStart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
  481. bar: import("vue").ComputedRef<{
  482. readonly offset: "offsetHeight";
  483. readonly scroll: "scrollTop";
  484. readonly scrollSize: "scrollHeight";
  485. readonly size: "height";
  486. readonly key: "vertical";
  487. readonly axis: "Y";
  488. readonly client: "clientY";
  489. readonly direction: "top";
  490. } | {
  491. readonly offset: "offsetWidth";
  492. readonly scroll: "scrollLeft";
  493. readonly scrollSize: "scrollWidth";
  494. readonly size: "width";
  495. readonly key: "horizontal";
  496. readonly axis: "X";
  497. readonly client: "clientX";
  498. readonly direction: "left";
  499. }>;
  500. thumbStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
  501. offsetRatio: import("vue").ComputedRef<number>;
  502. clickThumbHandler: (e: MouseEvent) => void;
  503. clickTrackHandler: (e: MouseEvent) => void;
  504. startDrag: (e: MouseEvent) => void;
  505. mouseMoveDocumentHandler: (e: MouseEvent) => void;
  506. mouseUpDocumentHandler: () => void;
  507. mouseMoveScrollbarHandler: () => void;
  508. mouseLeaveScrollbarHandler: () => void;
  509. restoreOnselectstart: () => void;
  510. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  511. readonly vertical: BooleanConstructor;
  512. readonly size: StringConstructor;
  513. readonly move: NumberConstructor;
  514. readonly ratio: {
  515. readonly type: import("vue").PropType<number>;
  516. readonly required: true;
  517. readonly validator: ((val: unknown) => boolean) | undefined;
  518. __epPropKey: true;
  519. };
  520. readonly always: BooleanConstructor;
  521. }>>, {
  522. readonly vertical: boolean;
  523. readonly always: boolean;
  524. }>;
  525. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  526. readonly always: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
  527. readonly minSize: {
  528. readonly type: import("vue").PropType<number>;
  529. readonly required: true;
  530. readonly validator: ((val: unknown) => boolean) | undefined;
  531. __epPropKey: true;
  532. };
  533. }>>, {
  534. readonly always: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
  535. }>;
  536. }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
  537. scroll: ({ scrollTop, scrollLeft, }: {
  538. scrollTop: number;
  539. scrollLeft: number;
  540. }) => boolean;
  541. }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
  542. readonly ariaLabel: StringConstructor;
  543. readonly ariaOrientation: {
  544. readonly type: import("vue").PropType<string>;
  545. readonly required: false;
  546. readonly validator: ((val: unknown) => boolean) | undefined;
  547. __epPropKey: true;
  548. };
  549. readonly height: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
  550. readonly maxHeight: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, NumberConstructor], unknown, unknown, "", boolean>;
  551. readonly native: import("element-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
  552. readonly wrapStyle: import("element-plus/es/utils").EpPropFinalized<(new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue) | ((new (...args: any[]) => import("vue").StyleValue & {}) | (() => import("vue").StyleValue))[], unknown, unknown, "", boolean>;
  553. readonly wrapClass: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
  554. readonly viewClass: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor], unknown, unknown, "", boolean>;
  555. readonly viewStyle: import("element-plus/es/utils").EpPropFinalized<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown, "", boolean>;
  556. readonly noresize: BooleanConstructor;
  557. readonly tag: import("element-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "div", boolean>;
  558. readonly always: BooleanConstructor;
  559. readonly minSize: import("element-plus/es/utils").EpPropFinalized<NumberConstructor, unknown, unknown, 20, boolean>;
  560. readonly id: StringConstructor;
  561. readonly role: StringConstructor;
  562. }>> & {
  563. onScroll?: ((args_0: {
  564. scrollTop: number;
  565. scrollLeft: number;
  566. }) => any) | undefined;
  567. }, {
  568. readonly height: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
  569. readonly always: boolean;
  570. readonly maxHeight: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, NumberConstructor], unknown, unknown>;
  571. readonly native: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
  572. readonly wrapStyle: import("vue").StyleValue;
  573. readonly wrapClass: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
  574. readonly viewClass: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, ArrayConstructor], unknown, unknown>;
  575. readonly viewStyle: import("element-plus/es/utils").EpPropMergeType<readonly [StringConstructor, ArrayConstructor, ObjectConstructor], unknown, unknown>;
  576. readonly tag: string;
  577. readonly minSize: number;
  578. readonly noresize: boolean;
  579. }>> & Record<string, any>;
  580. export default ElScrollbar;
  581. export * from './src/util';
  582. export * from './src/scrollbar';
  583. export * from './src/thumb';
  584. export * from './src/constants';