@varlet/ui 2.0.1 → 2.0.3-alpha.1665825802777
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/es/image/Image.js +4 -2
- package/es/image/props.js +3 -0
- package/es/varlet.esm.js +6 -1
- package/highlight/attributes.json +7 -3
- package/highlight/tags.json +1 -0
- package/highlight/web-types.json +22 -16
- package/lib/image/Image.js +4 -2
- package/lib/image/props.js +3 -0
- package/package.json +5 -5
- package/types/actionSheet.d.ts +7 -0
- package/types/appBar.d.ts +7 -0
- package/types/backTop.d.ts +5 -0
- package/types/badge.d.ts +5 -0
- package/types/bottomNavigation.d.ts +5 -0
- package/types/bottomNavigationItem.d.ts +10 -0
- package/types/button.d.ts +5 -0
- package/types/card.d.ts +11 -0
- package/types/cell.d.ts +8 -0
- package/types/checkbox.d.ts +7 -0
- package/types/checkboxGroup.d.ts +5 -0
- package/types/chip.d.ts +7 -0
- package/types/col.d.ts +5 -0
- package/types/collapse.d.ts +5 -0
- package/types/collapseItem.d.ts +7 -0
- package/types/countdown.d.ts +7 -2
- package/types/datePicker.d.ts +30 -0
- package/types/dialog.d.ts +6 -1
- package/types/divider.d.ts +5 -0
- package/types/form.d.ts +5 -0
- package/types/image.d.ts +1 -0
- package/types/imagePreview.d.ts +7 -1
- package/types/indexAnchor.d.ts +5 -0
- package/types/indexBar.d.ts +5 -0
- package/types/input.d.ts +6 -0
- package/types/list.d.ts +8 -0
- package/types/loading.d.ts +6 -0
- package/types/menu.d.ts +6 -1
- package/types/option.d.ts +5 -0
- package/types/pagination.d.ts +6 -0
- package/types/picker.d.ts +7 -0
- package/types/popup.d.ts +5 -0
- package/types/progress.d.ts +5 -0
- package/types/pullRefresh.d.ts +5 -0
- package/types/radio.d.ts +7 -0
- package/types/radioGroup.d.ts +5 -0
- package/types/row.d.ts +5 -0
- package/types/select.d.ts +6 -0
- package/types/skeleton.d.ts +5 -0
- package/types/slider.d.ts +9 -0
- package/types/snackbar.d.ts +6 -1
- package/types/space.d.ts +5 -0
- package/types/step.d.ts +5 -0
- package/types/steps.d.ts +5 -0
- package/types/sticky.d.ts +5 -0
- package/types/styleProvider.d.ts +5 -0
- package/types/swipe.d.ts +11 -0
- package/types/swipeItem.d.ts +5 -0
- package/types/tab.d.ts +5 -0
- package/types/tabItem.d.ts +5 -0
- package/types/table.d.ts +6 -0
- package/types/tabs.d.ts +5 -0
- package/types/tabsItems.d.ts +5 -0
- package/types/uploader.d.ts +5 -0
- package/umd/varlet.js +1 -1
package/types/image.d.ts
CHANGED
package/types/imagePreview.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
-
import { App, TeleportProps } from 'vue'
|
|
2
|
+
import { App, TeleportProps, VNode } from 'vue'
|
|
3
3
|
|
|
4
4
|
export interface ImagePreviewProps extends BasicAttributes {
|
|
5
5
|
show?: boolean
|
|
@@ -35,6 +35,12 @@ export interface ImagePreviewOptions {
|
|
|
35
35
|
|
|
36
36
|
export class ImagePreviewComponent extends VarComponent {
|
|
37
37
|
$props: ImagePreviewProps
|
|
38
|
+
|
|
39
|
+
$slots: {
|
|
40
|
+
indicator(): VNode[]
|
|
41
|
+
extra(): VNode[]
|
|
42
|
+
'close-icon'(): VNode[]
|
|
43
|
+
}
|
|
38
44
|
}
|
|
39
45
|
|
|
40
46
|
export interface IImagePreview {
|
package/types/indexAnchor.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export interface IndexAnchorProps extends BasicAttributes {
|
|
4
5
|
index: string | number
|
|
@@ -6,6 +7,10 @@ export interface IndexAnchorProps extends BasicAttributes {
|
|
|
6
7
|
|
|
7
8
|
export class IndexAnchor extends VarComponent {
|
|
8
9
|
$props: IndexAnchorProps
|
|
10
|
+
|
|
11
|
+
$slots: {
|
|
12
|
+
default(): VNode[]
|
|
13
|
+
}
|
|
9
14
|
}
|
|
10
15
|
|
|
11
16
|
export class _IndexAnchorComponent extends IndexAnchor {}
|
package/types/indexBar.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export interface IndexBarProps extends BasicAttributes {
|
|
4
5
|
sticky?: boolean
|
|
@@ -15,6 +16,10 @@ export interface IndexBarProps extends BasicAttributes {
|
|
|
15
16
|
export class IndexBar extends VarComponent {
|
|
16
17
|
$props: IndexBarProps
|
|
17
18
|
|
|
19
|
+
$slots: {
|
|
20
|
+
default(): VNode[]
|
|
21
|
+
}
|
|
22
|
+
|
|
18
23
|
scrollTo: (index: number | string) => void
|
|
19
24
|
}
|
|
20
25
|
|
package/types/input.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export type InputValidateTrigger = 'onFocus' | 'onBlur' | 'onChange' | 'onClick' | 'onClear' | 'onInput'
|
|
4
5
|
|
|
@@ -34,6 +35,11 @@ export interface InputProps extends BasicAttributes {
|
|
|
34
35
|
export class Input extends VarComponent {
|
|
35
36
|
$props: InputProps
|
|
36
37
|
|
|
38
|
+
$slots: {
|
|
39
|
+
'prepend-icon'(): VNode[]
|
|
40
|
+
'append-icon'(): VNode[]
|
|
41
|
+
}
|
|
42
|
+
|
|
37
43
|
focus(): void
|
|
38
44
|
|
|
39
45
|
blur(): void
|
package/types/list.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export interface ListProps extends BasicAttributes {
|
|
4
5
|
loading?: boolean
|
|
@@ -16,6 +17,13 @@ export interface ListProps extends BasicAttributes {
|
|
|
16
17
|
|
|
17
18
|
export class List extends VarComponent {
|
|
18
19
|
$props: ListProps
|
|
20
|
+
|
|
21
|
+
$slots: {
|
|
22
|
+
default(): VNode[]
|
|
23
|
+
loading(): VNode[]
|
|
24
|
+
error(): VNode[]
|
|
25
|
+
finished(): VNode[]
|
|
26
|
+
}
|
|
19
27
|
}
|
|
20
28
|
|
|
21
29
|
export class _ListComponent extends List {}
|
package/types/loading.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes, Size as LoadingSize } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export type LoadingType = 'circle' | 'wave' | 'cube' | 'rect' | 'disappear'
|
|
4
5
|
|
|
@@ -15,6 +16,11 @@ export interface LoadingProps extends BasicAttributes {
|
|
|
15
16
|
|
|
16
17
|
export class Loading extends VarComponent {
|
|
17
18
|
$props: LoadingProps
|
|
19
|
+
|
|
20
|
+
$slots: {
|
|
21
|
+
default(): VNode[]
|
|
22
|
+
description(): VNode[]
|
|
23
|
+
}
|
|
18
24
|
}
|
|
19
25
|
|
|
20
26
|
export class _LoadingComponent extends Loading {}
|
package/types/menu.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
2
|
import { Placement as PopperPlacement } from '@popperjs/core/lib/enums'
|
|
3
|
-
import { TeleportProps } from 'vue'
|
|
3
|
+
import { TeleportProps, VNode } from 'vue'
|
|
4
4
|
|
|
5
5
|
type NeededPopperPlacement = Exclude<PopperPlacement, 'auto' | 'auto-start' | 'auto-end'>
|
|
6
6
|
|
|
@@ -36,6 +36,11 @@ export interface MenuProps extends BasicAttributes {
|
|
|
36
36
|
export class Menu extends VarComponent {
|
|
37
37
|
$props: MenuProps
|
|
38
38
|
|
|
39
|
+
$slots: {
|
|
40
|
+
default(): VNode[]
|
|
41
|
+
menu(): VNode[]
|
|
42
|
+
}
|
|
43
|
+
|
|
39
44
|
open(): void
|
|
40
45
|
|
|
41
46
|
close(): void
|
package/types/option.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export interface OptionProps extends BasicAttributes {
|
|
4
5
|
label?: any
|
|
@@ -7,6 +8,10 @@ export interface OptionProps extends BasicAttributes {
|
|
|
7
8
|
|
|
8
9
|
export class Option extends VarComponent {
|
|
9
10
|
$props: OptionProps
|
|
11
|
+
|
|
12
|
+
$slots: {
|
|
13
|
+
default(): VNode[]
|
|
14
|
+
}
|
|
10
15
|
}
|
|
11
16
|
|
|
12
17
|
export class _OptionComponent extends Option {}
|
package/types/pagination.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
type Range = [number, number]
|
|
4
5
|
|
|
@@ -20,6 +21,11 @@ export interface PaginationProps extends BasicAttributes {
|
|
|
20
21
|
|
|
21
22
|
export class Pagination extends VarComponent {
|
|
22
23
|
$props: PaginationProps
|
|
24
|
+
|
|
25
|
+
$slots: {
|
|
26
|
+
prev(): VNode[]
|
|
27
|
+
next(): VNode[]
|
|
28
|
+
}
|
|
23
29
|
}
|
|
24
30
|
|
|
25
31
|
export class _PaginationComponent extends Pagination {}
|
package/types/picker.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { App } from 'vue'
|
|
2
2
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
3
|
+
import { VNode } from 'vue'
|
|
3
4
|
|
|
4
5
|
export interface NormalColumn extends BasicAttributes {
|
|
5
6
|
texts: Texts
|
|
@@ -35,6 +36,12 @@ export interface PickerProps {
|
|
|
35
36
|
export class PickerComponent extends VarComponent {
|
|
36
37
|
$props: PickerProps
|
|
37
38
|
|
|
39
|
+
$slots: {
|
|
40
|
+
cancel(): VNode[]
|
|
41
|
+
title(): VNode[]
|
|
42
|
+
confirm(): VNode[]
|
|
43
|
+
}
|
|
44
|
+
|
|
38
45
|
confirm(): void
|
|
39
46
|
|
|
40
47
|
cancel(): void
|
package/types/popup.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
2
|
import type { TeleportProps } from 'vue'
|
|
3
|
+
import { VNode } from 'vue'
|
|
3
4
|
|
|
4
5
|
export type PopupPosition = 'top' | 'bottom' | 'right' | 'left' | 'center'
|
|
5
6
|
|
|
@@ -22,6 +23,10 @@ export interface PopupProps extends BasicAttributes {
|
|
|
22
23
|
|
|
23
24
|
export class Popup extends VarComponent {
|
|
24
25
|
$props: PopupProps
|
|
26
|
+
|
|
27
|
+
$slots: {
|
|
28
|
+
default(): VNode[]
|
|
29
|
+
}
|
|
25
30
|
}
|
|
26
31
|
|
|
27
32
|
export class _PopupComponent extends Popup {}
|
package/types/progress.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export type ProgressMode = 'linear' | 'circle'
|
|
4
5
|
|
|
@@ -18,6 +19,10 @@ export interface ProgressProps extends BasicAttributes {
|
|
|
18
19
|
|
|
19
20
|
export class Progress extends VarComponent {
|
|
20
21
|
$props: ProgressProps
|
|
22
|
+
|
|
23
|
+
$slots: {
|
|
24
|
+
default(): VNode[]
|
|
25
|
+
}
|
|
21
26
|
}
|
|
22
27
|
|
|
23
28
|
export class _ProgressComponent extends Progress {}
|
package/types/pullRefresh.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export interface PullRefreshProps extends BasicAttributes {
|
|
4
5
|
modelValue?: boolean
|
|
@@ -15,6 +16,10 @@ export interface PullRefreshProps extends BasicAttributes {
|
|
|
15
16
|
|
|
16
17
|
export class PullRefresh extends VarComponent {
|
|
17
18
|
$props: PullRefreshProps
|
|
19
|
+
|
|
20
|
+
$slots: {
|
|
21
|
+
default(): VNode[]
|
|
22
|
+
}
|
|
18
23
|
}
|
|
19
24
|
|
|
20
25
|
export class _PullRefreshComponent extends PullRefresh {}
|
package/types/radio.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export type RadioValidateTrigger = 'onChange'
|
|
4
5
|
|
|
@@ -22,6 +23,12 @@ export interface RadioProps extends BasicAttributes {
|
|
|
22
23
|
export class Radio extends VarComponent {
|
|
23
24
|
$props: RadioProps
|
|
24
25
|
|
|
26
|
+
$slots: {
|
|
27
|
+
default(): VNode[]
|
|
28
|
+
'checked-icon'(): VNode[]
|
|
29
|
+
'unchecked-icon'(): VNode[]
|
|
30
|
+
}
|
|
31
|
+
|
|
25
32
|
validate(): Promise<boolean>
|
|
26
33
|
|
|
27
34
|
resetValidation(): void
|
package/types/radioGroup.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes, Direction as RadioGroupDirection } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export type RadioGroupValidateTrigger = 'onChange'
|
|
4
5
|
|
|
@@ -16,6 +17,10 @@ export interface RadioGroupProps extends BasicAttributes {
|
|
|
16
17
|
export class RadioGroup extends VarComponent {
|
|
17
18
|
$props: RadioGroupProps
|
|
18
19
|
|
|
20
|
+
$slots: {
|
|
21
|
+
default(): VNode[]
|
|
22
|
+
}
|
|
23
|
+
|
|
19
24
|
validate(): Promise<boolean>
|
|
20
25
|
|
|
21
26
|
resetValidation(): void
|
package/types/row.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export type RowJustify = 'flex-start' | 'flex-end' | 'center' | 'space-between' | 'space-around'
|
|
4
5
|
|
|
@@ -13,6 +14,10 @@ export interface RowProps extends BasicAttributes {
|
|
|
13
14
|
|
|
14
15
|
export class Row extends VarComponent {
|
|
15
16
|
$props: RowProps
|
|
17
|
+
|
|
18
|
+
$slots: {
|
|
19
|
+
default(): VNode[]
|
|
20
|
+
}
|
|
16
21
|
}
|
|
17
22
|
|
|
18
23
|
export class _RowComponent extends Row {}
|
package/types/select.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export type SelectValidateTrigger = 'onFocus' | 'onBlur' | 'onChange' | 'onClick' | 'onClear' | 'onClose'
|
|
4
5
|
|
|
@@ -34,6 +35,11 @@ export interface SelectProps extends BasicAttributes {
|
|
|
34
35
|
export class Select extends VarComponent {
|
|
35
36
|
$props: SelectProps
|
|
36
37
|
|
|
38
|
+
$slots: {
|
|
39
|
+
'prepend-icon'(): VNode[]
|
|
40
|
+
'append-icon'(): VNode[]
|
|
41
|
+
}
|
|
42
|
+
|
|
37
43
|
focus(): void
|
|
38
44
|
|
|
39
45
|
blur(): void
|
package/types/skeleton.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export interface SkeletonProps extends BasicAttributes {
|
|
4
5
|
loading?: boolean
|
|
@@ -16,6 +17,10 @@ export interface SkeletonProps extends BasicAttributes {
|
|
|
16
17
|
|
|
17
18
|
export class Skeleton extends VarComponent {
|
|
18
19
|
$props: SkeletonProps
|
|
20
|
+
|
|
21
|
+
$slots: {
|
|
22
|
+
default(): VNode[]
|
|
23
|
+
}
|
|
19
24
|
}
|
|
20
25
|
|
|
21
26
|
export class _SkeletonComponent extends Skeleton {}
|
package/types/slider.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export type SliderLabelVisible = 'always' | 'normal' | 'never'
|
|
4
5
|
|
|
@@ -23,8 +24,16 @@ export interface SliderProps extends BasicAttributes {
|
|
|
23
24
|
'onUpdate:modelValue'?: (value: number | Array<number>) => void
|
|
24
25
|
}
|
|
25
26
|
|
|
27
|
+
export interface SliderButton {
|
|
28
|
+
currentValue: number | Array<number>
|
|
29
|
+
}
|
|
30
|
+
|
|
26
31
|
export class Slider extends VarComponent {
|
|
27
32
|
$props: SliderProps
|
|
33
|
+
|
|
34
|
+
$slots: {
|
|
35
|
+
button(data: SliderButton): VNode[]
|
|
36
|
+
}
|
|
28
37
|
}
|
|
29
38
|
|
|
30
39
|
export class _SliderComponent extends Slider {}
|
package/types/snackbar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
2
|
import { LoadingType, LoadingSize } from './loading'
|
|
3
|
-
import { App, TeleportProps } from 'vue'
|
|
3
|
+
import { App, TeleportProps, VNode } from 'vue'
|
|
4
4
|
|
|
5
5
|
export type SnackbarPosition = 'top' | 'center' | 'bottom'
|
|
6
6
|
|
|
@@ -30,6 +30,11 @@ export interface SnackbarProps extends BasicAttributes {
|
|
|
30
30
|
|
|
31
31
|
export class SnackbarComponent extends VarComponent {
|
|
32
32
|
$props: SnackbarProps
|
|
33
|
+
|
|
34
|
+
$slots: {
|
|
35
|
+
default(): VNode[]
|
|
36
|
+
action(): VNode[]
|
|
37
|
+
}
|
|
33
38
|
}
|
|
34
39
|
|
|
35
40
|
export interface SnackbarHandel {
|
package/types/space.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export type SpaceAlign = 'stretch' | 'center' | 'start' | 'end' | 'baseline' | 'initial' | 'inherit'
|
|
4
5
|
|
|
@@ -21,6 +22,10 @@ export interface SpaceProps extends BasicAttributes {
|
|
|
21
22
|
|
|
22
23
|
export class Space extends VarComponent {
|
|
23
24
|
$props: SpaceProps
|
|
25
|
+
|
|
26
|
+
$slots: {
|
|
27
|
+
default(): VNode[]
|
|
28
|
+
}
|
|
24
29
|
}
|
|
25
30
|
|
|
26
31
|
export class _SpaceComponent extends Space {}
|
package/types/step.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export interface StepProps extends BasicAttributes {
|
|
4
5
|
activeIcon?: string
|
|
@@ -8,6 +9,10 @@ export interface StepProps extends BasicAttributes {
|
|
|
8
9
|
|
|
9
10
|
export class Step extends VarComponent {
|
|
10
11
|
$props: StepProps
|
|
12
|
+
|
|
13
|
+
$slots: {
|
|
14
|
+
default(): VNode[]
|
|
15
|
+
}
|
|
11
16
|
}
|
|
12
17
|
|
|
13
18
|
export class _StepComponent extends Step {}
|
package/types/steps.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes, Direction as StepsDirection } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export { StepsDirection }
|
|
4
5
|
|
|
@@ -12,6 +13,10 @@ export interface StepsProps extends BasicAttributes {
|
|
|
12
13
|
|
|
13
14
|
export class Steps extends VarComponent {
|
|
14
15
|
$props: StepsProps
|
|
16
|
+
|
|
17
|
+
$slots: {
|
|
18
|
+
default(): VNode[]
|
|
19
|
+
}
|
|
15
20
|
}
|
|
16
21
|
|
|
17
22
|
export class _StepsComponent extends Steps {}
|
package/types/sticky.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export interface StickyProps extends BasicAttributes {
|
|
4
5
|
offsetTop?: string | number
|
|
@@ -10,6 +11,10 @@ export interface StickyProps extends BasicAttributes {
|
|
|
10
11
|
|
|
11
12
|
export class Sticky extends VarComponent {
|
|
12
13
|
$props: StickyProps
|
|
14
|
+
|
|
15
|
+
$slots: {
|
|
16
|
+
default(): VNode[]
|
|
17
|
+
}
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
export class _StickyComponent extends Sticky {}
|
package/types/styleProvider.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { App } from 'vue'
|
|
2
2
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
3
|
+
import { VNode } from 'vue'
|
|
3
4
|
|
|
4
5
|
export type StyleVars = Record<string, string>
|
|
5
6
|
|
|
@@ -10,6 +11,10 @@ export interface StyleProviderProps extends BasicAttributes {
|
|
|
10
11
|
|
|
11
12
|
export class StyleProviderComponent extends VarComponent {
|
|
12
13
|
$props: StyleProviderProps
|
|
14
|
+
|
|
15
|
+
$slots: {
|
|
16
|
+
default(): VNode[]
|
|
17
|
+
}
|
|
13
18
|
}
|
|
14
19
|
|
|
15
20
|
export interface IStyleProvider {
|
package/types/swipe.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export interface SwipeProps extends BasicAttributes {
|
|
4
5
|
loop?: boolean
|
|
@@ -12,9 +13,19 @@ export interface SwipeProps extends BasicAttributes {
|
|
|
12
13
|
onChange?: (index: number) => void
|
|
13
14
|
}
|
|
14
15
|
|
|
16
|
+
export interface SwipeIndicatorData {
|
|
17
|
+
index: number
|
|
18
|
+
length: number
|
|
19
|
+
}
|
|
20
|
+
|
|
15
21
|
export class Swipe extends VarComponent {
|
|
16
22
|
$props: SwipeProps
|
|
17
23
|
|
|
24
|
+
$slots: {
|
|
25
|
+
default(): VNode[]
|
|
26
|
+
indicator(data: SwipeIndicatorData): VNode[]
|
|
27
|
+
}
|
|
28
|
+
|
|
18
29
|
resize(): void
|
|
19
30
|
|
|
20
31
|
prev(): void
|
package/types/swipeItem.d.ts
CHANGED
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export interface SwipeItemProps extends BasicAttributes {}
|
|
4
5
|
|
|
5
6
|
export class SwipeItem extends VarComponent {
|
|
6
7
|
$props: SwipeItemProps
|
|
8
|
+
|
|
9
|
+
$slots: {
|
|
10
|
+
default(): VNode[]
|
|
11
|
+
}
|
|
7
12
|
}
|
|
8
13
|
|
|
9
14
|
export class _SwipeItemComponent extends SwipeItem {}
|
package/types/tab.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export interface TabProps extends BasicAttributes {
|
|
4
5
|
name?: string | number
|
|
@@ -8,6 +9,10 @@ export interface TabProps extends BasicAttributes {
|
|
|
8
9
|
|
|
9
10
|
export class Tab extends VarComponent {
|
|
10
11
|
$props: TabProps
|
|
12
|
+
|
|
13
|
+
$slots: {
|
|
14
|
+
default(): VNode[]
|
|
15
|
+
}
|
|
11
16
|
}
|
|
12
17
|
|
|
13
18
|
export class _TabComponent extends Tab {}
|
package/types/tabItem.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export interface TabItemProps extends BasicAttributes {
|
|
4
5
|
name?: string | number
|
|
@@ -6,6 +7,10 @@ export interface TabItemProps extends BasicAttributes {
|
|
|
6
7
|
|
|
7
8
|
export class TabItem extends VarComponent {
|
|
8
9
|
$props: TabItemProps
|
|
10
|
+
|
|
11
|
+
$slots: {
|
|
12
|
+
default(): VNode[]
|
|
13
|
+
}
|
|
9
14
|
}
|
|
10
15
|
|
|
11
16
|
export class _TabItemComponent extends TabItem {}
|
package/types/table.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export interface TableProps extends BasicAttributes {
|
|
4
5
|
fullWidth?: string | number
|
|
@@ -6,6 +7,11 @@ export interface TableProps extends BasicAttributes {
|
|
|
6
7
|
|
|
7
8
|
export class Table extends VarComponent {
|
|
8
9
|
$props: TableProps
|
|
10
|
+
|
|
11
|
+
$slots: {
|
|
12
|
+
default(): VNode[]
|
|
13
|
+
footer(): VNode[]
|
|
14
|
+
}
|
|
9
15
|
}
|
|
10
16
|
|
|
11
17
|
export class _TableComponent extends Table {}
|
package/types/tabs.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes, Direction as TabsDirection } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export { TabsDirection }
|
|
4
5
|
|
|
@@ -25,6 +26,10 @@ export interface TabsProps extends BasicAttributes {
|
|
|
25
26
|
export class Tabs extends VarComponent {
|
|
26
27
|
$props: TabsProps
|
|
27
28
|
|
|
29
|
+
$slots: {
|
|
30
|
+
default(): VNode[]
|
|
31
|
+
}
|
|
32
|
+
|
|
28
33
|
resize(): void
|
|
29
34
|
}
|
|
30
35
|
|
package/types/tabsItems.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
2
|
import type { Swipe } from './swipe'
|
|
3
|
+
import { VNode } from 'vue'
|
|
3
4
|
|
|
4
5
|
export interface TabsItemsProps extends BasicAttributes {
|
|
5
6
|
active?: string | number
|
|
@@ -9,6 +10,10 @@ export interface TabsItemsProps extends BasicAttributes {
|
|
|
9
10
|
export class TabsItems extends VarComponent {
|
|
10
11
|
$props: TabsItemsProps
|
|
11
12
|
|
|
13
|
+
$slots: {
|
|
14
|
+
default(): VNode[]
|
|
15
|
+
}
|
|
16
|
+
|
|
12
17
|
getSwipe(): Swipe
|
|
13
18
|
}
|
|
14
19
|
|
package/types/uploader.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
2
3
|
|
|
3
4
|
export type VarFileFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'
|
|
4
5
|
|
|
@@ -49,6 +50,10 @@ interface UploaderProps {
|
|
|
49
50
|
export class Uploader extends VarComponent {
|
|
50
51
|
$props: UploaderProps
|
|
51
52
|
|
|
53
|
+
$slots: {
|
|
54
|
+
default(): VNode[]
|
|
55
|
+
}
|
|
56
|
+
|
|
52
57
|
getLoading(): VarFile[]
|
|
53
58
|
|
|
54
59
|
getSuccess(): VarFile[]
|