x-next 0.0.0-alpha.50 → 0.0.0-alpha.52

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.
Files changed (91) hide show
  1. package/README.md +28 -16
  2. package/dist/_hooks/_types.d.ts +6 -0
  3. package/dist/_hooks/use-children-components.d.ts +5 -0
  4. package/dist/_hooks/use-size.d.ts +7 -0
  5. package/dist/_hooks/use-trigger.d.ts +13 -0
  6. package/dist/_utils/vue-eco.d.ts +6 -0
  7. package/dist/components/button/Button.d.ts +11 -5
  8. package/dist/components/button/ButtonGroup.vue.d.ts +90 -0
  9. package/dist/components/button/context.d.ts +11 -0
  10. package/dist/components/button/index.d.ts +143 -29
  11. package/dist/components/button/props.d.ts +10 -6
  12. package/dist/components/dialog/Dialog.d.ts +3 -3
  13. package/dist/components/dialog/index.d.ts +11 -11
  14. package/dist/components/drawer/index.d.ts +225 -133
  15. package/dist/components/drawer/src/Drawer.vue.d.ts +111 -65
  16. package/dist/components/dropdown/Dropdown.vue.d.ts +1143 -0
  17. package/dist/components/dropdown/DropdownButton.vue.d.ts +1612 -0
  18. package/dist/components/dropdown/DropdownGroup.vue.d.ts +21 -0
  19. package/dist/components/dropdown/DropdownOption.vue.d.ts +63 -0
  20. package/dist/components/dropdown/DropdownSubmenu.vue.d.ts +1234 -0
  21. package/dist/components/dropdown/context.d.ts +6 -0
  22. package/dist/components/dropdown/dropdown-panel.vue.d.ts +432 -0
  23. package/dist/components/dropdown/index.d.ts +7614 -0
  24. package/dist/components/dropdown/interface.d.ts +33 -0
  25. package/dist/components/dropdown/utils.d.ts +5 -0
  26. package/dist/components/empty/Empty.d.ts +44 -0
  27. package/dist/components/empty/index.d.ts +43 -0
  28. package/dist/components/image/Image.vue.d.ts +2179 -0
  29. package/dist/components/image/ImagePreview.vue.d.ts +1879 -0
  30. package/dist/components/image/ImagePreviewAction.d.ts +15 -15
  31. package/dist/components/image/ImagePreviewGroup.vue.d.ts +1975 -0
  32. package/dist/components/image/index.d.ts +14126 -0
  33. package/dist/components/image/interface.d.ts +8 -0
  34. package/dist/components/image/preview-toolbar.vue.d.ts +16 -22
  35. package/dist/components/index.d.ts +4 -1
  36. package/dist/components/input/Input.d.ts +16 -16
  37. package/dist/components/input/index.d.ts +41 -41
  38. package/dist/components/input/props.d.ts +2 -2
  39. package/dist/components/message/Message.d.ts +1 -1
  40. package/dist/components/message/MessageVue.vue.d.ts +1 -1
  41. package/dist/components/message/index.d.ts +5 -5
  42. package/dist/components/message-box/index.d.ts +2 -2
  43. package/dist/components/notification/index.d.ts +2 -2
  44. package/dist/components/popconfirm/index.d.ts +8 -8
  45. package/dist/components/popconfirm/src/Popconfirm.d.ts +2 -2
  46. package/dist/components/popconfirm/src/popup.vue.d.ts +18 -9
  47. package/dist/components/popup/Popup.d.ts +3 -3
  48. package/dist/components/popup/index.d.ts +11 -11
  49. package/dist/components/{scrollbar/src → scrollbar-v2}/Scrollbar.vue.d.ts +96 -28
  50. package/dist/components/{scrollbar → scrollbar-v2}/index.d.ts +94 -57
  51. package/dist/components/{scrollbar/src/types.d.ts → scrollbar-v2/interface.d.ts} +0 -2
  52. package/dist/components/scrollbar-v2/thumb.vue.d.ts +62 -0
  53. package/dist/components/space/index.d.ts +2 -2
  54. package/dist/components/tabs/TabPane.vue.d.ts +78 -0
  55. package/dist/components/tabs/Tabs.d.ts +349 -0
  56. package/dist/components/tabs/context.d.ts +11 -0
  57. package/dist/components/tabs/index.d.ts +400 -0
  58. package/dist/components/tabs/interface.d.ts +12 -0
  59. package/dist/components/tabs/tabs-button.d.ts +43 -0
  60. package/dist/components/tabs/tabs-nav-ink.vue.d.ts +36 -0
  61. package/dist/components/tabs/tabs-nav.d.ts +110 -0
  62. package/dist/components/tabs/tabs-tab.vue.d.ts +129 -0
  63. package/dist/components/tabs/utils.d.ts +13 -0
  64. package/dist/components/tag/index.d.ts +2 -2
  65. package/dist/components/timeline/index.d.ts +2 -2
  66. package/dist/components/timeline-item/index.d.ts +2 -2
  67. package/dist/components/tooltip/Tooltip.vue.d.ts +7 -7
  68. package/dist/components/tooltip/index.d.ts +17 -17
  69. package/dist/components/trend-chart/index.d.ts +2 -2
  70. package/dist/components/trigger/index.d.ts +6 -6
  71. package/dist/components/trigger/src/trigger.d.ts +2 -2
  72. package/dist/components/trigger-v2/index.d.ts +6 -6
  73. package/dist/components/trigger-v2/trigger.d.ts +2 -2
  74. package/dist/icons/_self/down.d.ts +50 -0
  75. package/dist/icons/_self/empty-better.d.ts +50 -0
  76. package/dist/icons/_self/empty.d.ts +50 -0
  77. package/dist/icons/_self/left.d.ts +50 -0
  78. package/dist/icons/_self/more-dot.d.ts +50 -0
  79. package/dist/icons/_self/plus.d.ts +50 -0
  80. package/dist/icons/_self/right.d.ts +50 -0
  81. package/dist/icons/_self/up.d.ts +50 -0
  82. package/dist/index.es.js +4424 -2677
  83. package/dist/index.umd.js +1 -1
  84. package/dist/style.css +1 -1
  85. package/dist/types.d.ts +28 -19
  86. package/package.json +2 -2
  87. package/volar.d.ts +28 -19
  88. package/dist/components/scrollbar/src/constant.d.ts +0 -1
  89. package/dist/components/scrollbar/src/scrollbar.d.ts +0 -24
  90. package/dist/components/scrollbar/src/thumb.d.ts +0 -20
  91. package/dist/components/scrollbar/src/thumb.vue.d.ts +0 -47
@@ -1,4 +1,4 @@
1
- export declare const XScrollbar: {
1
+ export declare const Scrollbar: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
3
  type: {
4
4
  type: import('vue').PropType<"track" | "embed">;
@@ -21,29 +21,28 @@ export declare const XScrollbar: {
21
21
  default: boolean;
22
22
  };
23
23
  }>> & Readonly<{
24
- onScroll?: ((...args: any[]) => any) | undefined;
24
+ onScroll?: ((ev: Event) => any) | undefined;
25
25
  }>, {
26
- ns: string;
27
26
  className: {
28
27
  block: string;
29
28
  element: (className: string) => string;
30
29
  modifier: (className: string) => string;
31
30
  is: (className: string) => string;
32
31
  };
33
- cls: import('vue').ComputedRef<(string | false | Record<string, any> | unknown[] | undefined)[]>;
34
- style: import('vue').ComputedRef<(string | false | import('vue').CSSProperties | import('vue').StyleValue[])[]>;
32
+ cls: import('vue').ComputedRef<(string | Record<string, any> | unknown[] | undefined)[]>;
33
+ style: import('vue').ComputedRef<import('vue').StyleValue[]>;
35
34
  containerRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
36
35
  horizontalThumbRef: import('vue').Ref<any, any>;
37
36
  verticalThumbRef: import('vue').Ref<any, any>;
38
- horizontalData: import('vue').Ref<import('./src/types').ThumbData | undefined, import('./src/types').ThumbData | undefined>;
39
- verticalData: import('vue').Ref<import('./src/types').ThumbData | undefined, import('./src/types').ThumbData | undefined>;
37
+ horizontalData: import('vue').Ref<import('./interface').ThumbData | undefined, import('./interface').ThumbData | undefined>;
38
+ verticalData: import('vue').Ref<import('./interface').ThumbData | undefined, import('./interface').ThumbData | undefined>;
40
39
  isBoth: import('vue').Ref<boolean, boolean>;
41
40
  hasHorizontalScrollbar: import('vue').ComputedRef<boolean>;
42
41
  hasVerticalScrollbar: import('vue').ComputedRef<boolean>;
42
+ handleResize: () => void;
43
43
  handleScroll: (ev: Event) => void;
44
44
  handleHorizontalScroll: (offset: number) => void;
45
45
  handleVerticalScroll: (offset: number) => void;
46
- handleResize: () => void;
47
46
  }, {}, {}, {
48
47
  scrollTo(options?: number | {
49
48
  left?: number;
@@ -51,18 +50,31 @@ export declare const XScrollbar: {
51
50
  }, y?: number): void;
52
51
  scrollTop(top: number): void;
53
52
  scrollLeft(left: number): void;
54
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "scroll"[], import('vue').PublicProps, {
53
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
54
+ scroll: (ev: Event) => true;
55
+ }, import('vue').PublicProps, {
55
56
  type: "embed" | "track";
56
57
  hide: boolean;
57
58
  disableHorizontal: boolean;
58
59
  disableVertical: boolean;
59
60
  }, true, {}, {}, {
61
+ ResizeObserver: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
62
+ watchOnUpdated: BooleanConstructor;
63
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
64
+ [key: string]: any;
65
+ }>[] | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "resize"[], "resize", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
66
+ watchOnUpdated: BooleanConstructor;
67
+ }>> & Readonly<{
68
+ onResize?: ((...args: any[]) => any) | undefined;
69
+ }>, {
70
+ watchOnUpdated: boolean;
71
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
60
72
  Thumb: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
61
73
  data: {
62
- type: import('vue').PropType<import('./src/types').ThumbData>;
74
+ type: import('vue').PropType<import('./interface').ThumbData>;
63
75
  };
64
76
  direction: {
65
- type: import('vue').PropType<import('./src/types').Direction>;
77
+ type: import('vue').PropType<import('../../_utils/constant').Direction>;
66
78
  default: string;
67
79
  };
68
80
  alwaysShow: {
@@ -74,15 +86,30 @@ export declare const XScrollbar: {
74
86
  default: boolean;
75
87
  };
76
88
  }>, {
89
+ visible: import('vue').Ref<boolean, boolean>;
90
+ trackRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
91
+ thumbRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
92
+ className: {
93
+ block: string;
94
+ element: (className: string) => string;
95
+ modifier: (className: string) => string;
96
+ is: (className: string) => string;
97
+ };
98
+ thumbCls: import('vue').ComputedRef<(string | {
99
+ [x: string]: boolean;
100
+ })[]>;
101
+ thumbStyle: import('vue').ComputedRef<{
102
+ [x: string]: string;
103
+ }>;
104
+ handleThumbMouseDown: (ev: MouseEvent) => void;
105
+ handleTrackClick: (ev: MouseEvent) => void;
77
106
  setOffset: (_offset: number) => void;
78
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
79
- scroll: (...args: any[]) => void;
80
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
107
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "scroll"[], "scroll", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
81
108
  data: {
82
- type: import('vue').PropType<import('./src/types').ThumbData>;
109
+ type: import('vue').PropType<import('./interface').ThumbData>;
83
110
  };
84
111
  direction: {
85
- type: import('vue').PropType<import('./src/types').Direction>;
112
+ type: import('vue').PropType<import('../../_utils/constant').Direction>;
86
113
  default: string;
87
114
  };
88
115
  alwaysShow: {
@@ -99,15 +126,7 @@ export declare const XScrollbar: {
99
126
  direction: "horizontal" | "vertical";
100
127
  both: boolean;
101
128
  alwaysShow: boolean;
102
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
103
- trackRef: HTMLDivElement;
104
- thumbRef: HTMLDivElement;
105
- }, HTMLDivElement>;
106
- ResizeObserver: import('vue').DefineComponent<{}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
107
- [key: string]: any;
108
- }>[] | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "resize"[], "resize", import('vue').PublicProps, Readonly<{}> & Readonly<{
109
- onResize?: ((...args: any[]) => any) | undefined;
110
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
129
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
111
130
  } & import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
112
131
  P: {};
113
132
  B: {};
@@ -137,29 +156,28 @@ export declare const XScrollbar: {
137
156
  default: boolean;
138
157
  };
139
158
  }>> & Readonly<{
140
- onScroll?: ((...args: any[]) => any) | undefined;
159
+ onScroll?: ((ev: Event) => any) | undefined;
141
160
  }>, {
142
- ns: string;
143
161
  className: {
144
162
  block: string;
145
163
  element: (className: string) => string;
146
164
  modifier: (className: string) => string;
147
165
  is: (className: string) => string;
148
166
  };
149
- cls: import('vue').ComputedRef<(string | false | Record<string, any> | unknown[] | undefined)[]>;
150
- style: import('vue').ComputedRef<(string | false | import('vue').CSSProperties | import('vue').StyleValue[])[]>;
167
+ cls: import('vue').ComputedRef<(string | Record<string, any> | unknown[] | undefined)[]>;
168
+ style: import('vue').ComputedRef<import('vue').StyleValue[]>;
151
169
  containerRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
152
170
  horizontalThumbRef: import('vue').Ref<any, any>;
153
171
  verticalThumbRef: import('vue').Ref<any, any>;
154
- horizontalData: import('vue').Ref<import('./src/types').ThumbData | undefined, import('./src/types').ThumbData | undefined>;
155
- verticalData: import('vue').Ref<import('./src/types').ThumbData | undefined, import('./src/types').ThumbData | undefined>;
172
+ horizontalData: import('vue').Ref<import('./interface').ThumbData | undefined, import('./interface').ThumbData | undefined>;
173
+ verticalData: import('vue').Ref<import('./interface').ThumbData | undefined, import('./interface').ThumbData | undefined>;
156
174
  isBoth: import('vue').Ref<boolean, boolean>;
157
175
  hasHorizontalScrollbar: import('vue').ComputedRef<boolean>;
158
176
  hasVerticalScrollbar: import('vue').ComputedRef<boolean>;
177
+ handleResize: () => void;
159
178
  handleScroll: (ev: Event) => void;
160
179
  handleHorizontalScroll: (offset: number) => void;
161
180
  handleVerticalScroll: (offset: number) => void;
162
- handleResize: () => void;
163
181
  }, {}, {}, {
164
182
  scrollTo(options?: number | {
165
183
  left?: number;
@@ -198,29 +216,28 @@ export declare const XScrollbar: {
198
216
  default: boolean;
199
217
  };
200
218
  }>> & Readonly<{
201
- onScroll?: ((...args: any[]) => any) | undefined;
219
+ onScroll?: ((ev: Event) => any) | undefined;
202
220
  }>, {
203
- ns: string;
204
221
  className: {
205
222
  block: string;
206
223
  element: (className: string) => string;
207
224
  modifier: (className: string) => string;
208
225
  is: (className: string) => string;
209
226
  };
210
- cls: import('vue').ComputedRef<(string | false | Record<string, any> | unknown[] | undefined)[]>;
211
- style: import('vue').ComputedRef<(string | false | import('vue').CSSProperties | import('vue').StyleValue[])[]>;
227
+ cls: import('vue').ComputedRef<(string | Record<string, any> | unknown[] | undefined)[]>;
228
+ style: import('vue').ComputedRef<import('vue').StyleValue[]>;
212
229
  containerRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
213
230
  horizontalThumbRef: import('vue').Ref<any, any>;
214
231
  verticalThumbRef: import('vue').Ref<any, any>;
215
- horizontalData: import('vue').Ref<import('./src/types').ThumbData | undefined, import('./src/types').ThumbData | undefined>;
216
- verticalData: import('vue').Ref<import('./src/types').ThumbData | undefined, import('./src/types').ThumbData | undefined>;
232
+ horizontalData: import('vue').Ref<import('./interface').ThumbData | undefined, import('./interface').ThumbData | undefined>;
233
+ verticalData: import('vue').Ref<import('./interface').ThumbData | undefined, import('./interface').ThumbData | undefined>;
217
234
  isBoth: import('vue').Ref<boolean, boolean>;
218
235
  hasHorizontalScrollbar: import('vue').ComputedRef<boolean>;
219
236
  hasVerticalScrollbar: import('vue').ComputedRef<boolean>;
237
+ handleResize: () => void;
220
238
  handleScroll: (ev: Event) => void;
221
239
  handleHorizontalScroll: (offset: number) => void;
222
240
  handleVerticalScroll: (offset: number) => void;
223
- handleResize: () => void;
224
241
  }, {}, {}, {
225
242
  scrollTo(options?: number | {
226
243
  left?: number;
@@ -228,18 +245,31 @@ export declare const XScrollbar: {
228
245
  }, y?: number): void;
229
246
  scrollTop(top: number): void;
230
247
  scrollLeft(left: number): void;
231
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "scroll"[], "scroll", {
248
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
249
+ scroll: (ev: Event) => true;
250
+ }, string, {
232
251
  type: "embed" | "track";
233
252
  hide: boolean;
234
253
  disableHorizontal: boolean;
235
254
  disableVertical: boolean;
236
255
  }, {}, string, {}, {
256
+ ResizeObserver: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
257
+ watchOnUpdated: BooleanConstructor;
258
+ }>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
259
+ [key: string]: any;
260
+ }>[] | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "resize"[], "resize", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
261
+ watchOnUpdated: BooleanConstructor;
262
+ }>> & Readonly<{
263
+ onResize?: ((...args: any[]) => any) | undefined;
264
+ }>, {
265
+ watchOnUpdated: boolean;
266
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
237
267
  Thumb: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
238
268
  data: {
239
- type: import('vue').PropType<import('./src/types').ThumbData>;
269
+ type: import('vue').PropType<import('./interface').ThumbData>;
240
270
  };
241
271
  direction: {
242
- type: import('vue').PropType<import('./src/types').Direction>;
272
+ type: import('vue').PropType<import('../../_utils/constant').Direction>;
243
273
  default: string;
244
274
  };
245
275
  alwaysShow: {
@@ -251,15 +281,30 @@ export declare const XScrollbar: {
251
281
  default: boolean;
252
282
  };
253
283
  }>, {
284
+ visible: import('vue').Ref<boolean, boolean>;
285
+ trackRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
286
+ thumbRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
287
+ className: {
288
+ block: string;
289
+ element: (className: string) => string;
290
+ modifier: (className: string) => string;
291
+ is: (className: string) => string;
292
+ };
293
+ thumbCls: import('vue').ComputedRef<(string | {
294
+ [x: string]: boolean;
295
+ })[]>;
296
+ thumbStyle: import('vue').ComputedRef<{
297
+ [x: string]: string;
298
+ }>;
299
+ handleThumbMouseDown: (ev: MouseEvent) => void;
300
+ handleTrackClick: (ev: MouseEvent) => void;
254
301
  setOffset: (_offset: number) => void;
255
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
256
- scroll: (...args: any[]) => void;
257
- }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
302
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "scroll"[], "scroll", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
258
303
  data: {
259
- type: import('vue').PropType<import('./src/types').ThumbData>;
304
+ type: import('vue').PropType<import('./interface').ThumbData>;
260
305
  };
261
306
  direction: {
262
- type: import('vue').PropType<import('./src/types').Direction>;
307
+ type: import('vue').PropType<import('../../_utils/constant').Direction>;
263
308
  default: string;
264
309
  };
265
310
  alwaysShow: {
@@ -276,16 +321,8 @@ export declare const XScrollbar: {
276
321
  direction: "horizontal" | "vertical";
277
322
  both: boolean;
278
323
  alwaysShow: boolean;
279
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
280
- trackRef: HTMLDivElement;
281
- thumbRef: HTMLDivElement;
282
- }, HTMLDivElement>;
283
- ResizeObserver: import('vue').DefineComponent<{}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
284
- [key: string]: any;
285
- }>[] | undefined, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "resize"[], "resize", import('vue').PublicProps, Readonly<{}> & Readonly<{
286
- onResize?: ((...args: any[]) => any) | undefined;
287
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
324
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
288
325
  } & import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
289
326
  install(app: import('vue').App): void;
290
327
  };
291
- export { XScrollbar as default };
328
+ export { Scrollbar as default };
@@ -1,5 +1,3 @@
1
- export declare const DIRECTIONS: readonly ["horizontal", "vertical"];
2
- export type Direction = (typeof DIRECTIONS)[number];
3
1
  export interface ThumbData {
4
2
  ratio: number;
5
3
  thumbSize: number;
@@ -0,0 +1,62 @@
1
+ import { PropType } from 'vue';
2
+ import { ThumbData } from './interface';
3
+ import { Direction } from '../../_utils/constant';
4
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
5
+ data: {
6
+ type: PropType<ThumbData>;
7
+ };
8
+ direction: {
9
+ type: PropType<Direction>;
10
+ default: string;
11
+ };
12
+ alwaysShow: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ both: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ }>, {
21
+ visible: import('vue').Ref<boolean, boolean>;
22
+ trackRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
23
+ thumbRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
24
+ className: {
25
+ block: string;
26
+ element: (className: string) => string;
27
+ modifier: (className: string) => string;
28
+ is: (className: string) => string;
29
+ };
30
+ thumbCls: import('vue').ComputedRef<(string | {
31
+ [x: string]: boolean;
32
+ })[]>;
33
+ thumbStyle: import('vue').ComputedRef<{
34
+ [x: string]: string;
35
+ }>;
36
+ handleThumbMouseDown: (ev: MouseEvent) => void;
37
+ handleTrackClick: (ev: MouseEvent) => void;
38
+ setOffset: (_offset: number) => void;
39
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "scroll"[], "scroll", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
40
+ data: {
41
+ type: PropType<ThumbData>;
42
+ };
43
+ direction: {
44
+ type: PropType<Direction>;
45
+ default: string;
46
+ };
47
+ alwaysShow: {
48
+ type: BooleanConstructor;
49
+ default: boolean;
50
+ };
51
+ both: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ };
55
+ }>> & Readonly<{
56
+ onScroll?: ((...args: any[]) => any) | undefined;
57
+ }>, {
58
+ direction: "horizontal" | "vertical";
59
+ both: boolean;
60
+ alwaysShow: boolean;
61
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
62
+ export default _default;
@@ -1,4 +1,4 @@
1
- export declare const XSpace: {
1
+ export declare const Space: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
3
  direction: {
4
4
  type: import('vue').PropType<"horizontal" | "vertical">;
@@ -79,4 +79,4 @@ export declare const XSpace: {
79
79
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
80
80
  install(app: import('vue').App): void;
81
81
  };
82
- export { XSpace as default };
82
+ export { Space as default };
@@ -0,0 +1,78 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ /**
3
+ * @zh 选项卡的标题
4
+ * @en Title of the tab
5
+ */
6
+ title: StringConstructor;
7
+ /**
8
+ * @zh 是否禁用
9
+ * @en Whether to disable
10
+ */
11
+ disabled: {
12
+ type: BooleanConstructor;
13
+ default: boolean;
14
+ };
15
+ /**
16
+ * @zh 是否允许关闭此选项卡(仅在可编辑模式生效)
17
+ * @en Whether to allow this tab to be closed (only effective in editable mode)
18
+ */
19
+ closable: {
20
+ type: BooleanConstructor;
21
+ default: boolean;
22
+ };
23
+ /**
24
+ * @zh 是否在不显示标签时销毁内容
25
+ * @en Whether to destroy the content when the label is not displayed
26
+ * @version 2.27.0
27
+ */
28
+ destroyOnHide: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
31
+ };
32
+ }>, {
33
+ className: {
34
+ block: string;
35
+ element: (className: string) => string;
36
+ modifier: (className: string) => string;
37
+ is: (className: string) => string;
38
+ };
39
+ active: import('vue').ComputedRef<boolean>;
40
+ itemRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
41
+ mounted: import('vue').Ref<boolean, boolean>;
42
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
43
+ /**
44
+ * @zh 选项卡的标题
45
+ * @en Title of the tab
46
+ */
47
+ title: StringConstructor;
48
+ /**
49
+ * @zh 是否禁用
50
+ * @en Whether to disable
51
+ */
52
+ disabled: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ /**
57
+ * @zh 是否允许关闭此选项卡(仅在可编辑模式生效)
58
+ * @en Whether to allow this tab to be closed (only effective in editable mode)
59
+ */
60
+ closable: {
61
+ type: BooleanConstructor;
62
+ default: boolean;
63
+ };
64
+ /**
65
+ * @zh 是否在不显示标签时销毁内容
66
+ * @en Whether to destroy the content when the label is not displayed
67
+ * @version 2.27.0
68
+ */
69
+ destroyOnHide: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
72
+ };
73
+ }>> & Readonly<{}>, {
74
+ disabled: boolean;
75
+ closable: boolean;
76
+ destroyOnHide: boolean;
77
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
78
+ export default _default;