@varlet/ui 2.0.2 → 2.0.3

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 (57) hide show
  1. package/es/snackbar/style/index.js +1 -1
  2. package/highlight/attributes.json +2 -2
  3. package/highlight/web-types.json +12 -15
  4. package/package.json +5 -5
  5. package/types/actionSheet.d.ts +7 -0
  6. package/types/appBar.d.ts +7 -0
  7. package/types/backTop.d.ts +5 -0
  8. package/types/badge.d.ts +5 -0
  9. package/types/bottomNavigation.d.ts +5 -0
  10. package/types/bottomNavigationItem.d.ts +10 -0
  11. package/types/button.d.ts +5 -0
  12. package/types/card.d.ts +11 -0
  13. package/types/cell.d.ts +8 -0
  14. package/types/checkbox.d.ts +7 -0
  15. package/types/checkboxGroup.d.ts +5 -0
  16. package/types/chip.d.ts +7 -0
  17. package/types/col.d.ts +5 -0
  18. package/types/collapse.d.ts +5 -0
  19. package/types/collapseItem.d.ts +7 -0
  20. package/types/countdown.d.ts +7 -2
  21. package/types/datePicker.d.ts +30 -0
  22. package/types/dialog.d.ts +6 -1
  23. package/types/divider.d.ts +5 -0
  24. package/types/form.d.ts +5 -0
  25. package/types/imagePreview.d.ts +7 -1
  26. package/types/indexAnchor.d.ts +5 -0
  27. package/types/indexBar.d.ts +5 -0
  28. package/types/input.d.ts +6 -0
  29. package/types/list.d.ts +8 -0
  30. package/types/loading.d.ts +6 -0
  31. package/types/menu.d.ts +6 -1
  32. package/types/option.d.ts +5 -0
  33. package/types/pagination.d.ts +6 -0
  34. package/types/picker.d.ts +7 -0
  35. package/types/popup.d.ts +5 -0
  36. package/types/progress.d.ts +5 -0
  37. package/types/pullRefresh.d.ts +5 -0
  38. package/types/radio.d.ts +7 -0
  39. package/types/radioGroup.d.ts +5 -0
  40. package/types/row.d.ts +5 -0
  41. package/types/select.d.ts +6 -0
  42. package/types/skeleton.d.ts +5 -0
  43. package/types/slider.d.ts +9 -0
  44. package/types/snackbar.d.ts +6 -1
  45. package/types/space.d.ts +5 -0
  46. package/types/step.d.ts +5 -0
  47. package/types/steps.d.ts +5 -0
  48. package/types/sticky.d.ts +5 -0
  49. package/types/styleProvider.d.ts +5 -0
  50. package/types/swipe.d.ts +11 -0
  51. package/types/swipeItem.d.ts +5 -0
  52. package/types/tab.d.ts +5 -0
  53. package/types/tabItem.d.ts +5 -0
  54. package/types/table.d.ts +6 -0
  55. package/types/tabs.d.ts +5 -0
  56. package/types/tabsItems.d.ts +5 -0
  57. package/types/uploader.d.ts +5 -0
@@ -1,8 +1,8 @@
1
1
  import '../../styles/common.css'
2
- import '../SnackbarSfc.css'
3
2
  import '../../styles/elevation.css'
4
3
  import '../../loading/loading.css'
5
4
  import '../../button/button.css'
6
5
  import '../../icon/icon.css'
7
6
  import '../snackbar.css'
8
7
  import '../coreSfc.css'
8
+ import '../SnackbarSfc.css'
@@ -1716,8 +1716,8 @@
1716
1716
  "description": "是否禁用选项卡 默认值:false"
1717
1717
  },
1718
1718
  "var-tab-item/name": {
1719
- "type": "string | number",
1720
- "description": "视图的名字 默认值:index"
1719
+ "type": "string \\",
1720
+ "description": "视图的名字 默认值:number_"
1721
1721
  },
1722
1722
  "var-table/full-width": {
1723
1723
  "type": "string | number",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "2.0.1",
4
+ "version": "2.0.2",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -1328,15 +1328,7 @@
1328
1328
  "slots": [
1329
1329
  {
1330
1330
  "name": "default",
1331
- "description": "面板的内容"
1332
- },
1333
- {
1334
- "name": "title",
1335
- "description": "面板的标题"
1336
- },
1337
- {
1338
- "name": "icon",
1339
- "description": "自定义右侧 icon"
1331
+ "description": "折叠面板的内容"
1340
1332
  }
1341
1333
  ]
1342
1334
  },
@@ -2541,7 +2533,7 @@
2541
2533
  "slots": [
2542
2534
  {
2543
2535
  "name": "default",
2544
- "description": "自定义索引字符"
2536
+ "description": "索引栏内容"
2545
2537
  }
2546
2538
  ]
2547
2539
  },
@@ -4725,7 +4717,7 @@
4725
4717
  "slots": [
4726
4718
  {
4727
4719
  "name": "default",
4728
- "description": "step 的内容"
4720
+ "description": "steps 的内容"
4729
4721
  }
4730
4722
  ]
4731
4723
  },
@@ -4915,7 +4907,12 @@
4915
4907
  "name": "var-swipe-item",
4916
4908
  "attributes": [],
4917
4909
  "events": [],
4918
- "slots": []
4910
+ "slots": [
4911
+ {
4912
+ "name": "default",
4913
+ "description": "轮播项内容"
4914
+ }
4915
+ ]
4919
4916
  },
4920
4917
  {
4921
4918
  "name": "var-switch",
@@ -5082,9 +5079,9 @@
5082
5079
  {
5083
5080
  "name": "name",
5084
5081
  "description": "视图的名字",
5085
- "default": "index",
5082
+ "default": "number_",
5086
5083
  "value": {
5087
- "type": "string | number",
5084
+ "type": "string \\",
5088
5085
  "kind": "expression"
5089
5086
  }
5090
5087
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "A material like components library",
5
5
  "module": "es/index.js",
6
6
  "main": "lib/index.js",
@@ -46,16 +46,16 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@popperjs/core": "^2.11.6",
49
- "@varlet/icons": "2.0.2",
50
- "@varlet/shared": "2.0.2",
49
+ "@varlet/icons": "2.0.3",
50
+ "@varlet/shared": "2.0.3",
51
51
  "dayjs": "^1.10.4",
52
52
  "decimal.js": "^10.2.1"
53
53
  },
54
54
  "devDependencies": {
55
55
  "@types/jest": "^26.0.15",
56
56
  "@types/node": "^18.7.18",
57
- "@varlet/cli": "2.0.2",
58
- "@varlet/touch-emulator": "2.0.2",
57
+ "@varlet/cli": "2.0.3",
58
+ "@varlet/touch-emulator": "2.0.3",
59
59
  "@vue/runtime-core": "3.2.25",
60
60
  "@vue/test-utils": "^2.0.2",
61
61
  "clipboard": "^2.0.6",
@@ -1,5 +1,6 @@
1
1
  import type { App, TeleportProps } from 'vue'
2
2
  import { VarComponent, BasicAttributes } from './varComponent'
3
+ import { VNode } from 'vue'
3
4
 
4
5
  export interface ActionSheetProps extends BasicAttributes {
5
6
  actions?: ActionItem[]
@@ -50,6 +51,12 @@ export interface ActionSheetOptions {
50
51
 
51
52
  export class ActionSheetComponent extends VarComponent {
52
53
  $props: ActionSheetProps
54
+
55
+ $slots: {
56
+ default(): VNode[]
57
+ title(): VNode[]
58
+ actions(): VNode[]
59
+ }
53
60
  }
54
61
 
55
62
  export type ActionSheetActions = ActionItem | 'close'
package/types/appBar.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 AppBarTitlePosition = 'left' | 'center' | 'right'
4
5
 
@@ -12,6 +13,12 @@ export interface AppBarProps extends BasicAttributes {
12
13
 
13
14
  export class AppBar extends VarComponent {
14
15
  $props: AppBarProps
16
+
17
+ $slots: {
18
+ default(): VNode[]
19
+ left(): VNode[]
20
+ right(): VNode[]
21
+ }
15
22
  }
16
23
 
17
24
  export class _AppBarComponent extends AppBar {}
@@ -1,4 +1,5 @@
1
1
  import { VarComponent, BasicAttributes } from './varComponent'
2
+ import { VNode } from 'vue'
2
3
 
3
4
  export interface BackTopProps extends BasicAttributes {
4
5
  visibilityHeight?: number | string
@@ -11,6 +12,10 @@ export interface BackTopProps extends BasicAttributes {
11
12
 
12
13
  export class BackTop extends VarComponent {
13
14
  $props: BackTopProps
15
+
16
+ $slots: {
17
+ default(): VNode[]
18
+ }
14
19
  }
15
20
 
16
21
  export class _BackTopComponent extends BackTop {}
package/types/badge.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { VarComponent, BasicAttributes, Type as BadgeType } from './varComponent'
2
+ import { VNode } from 'vue'
2
3
 
3
4
  export type BadgePosition = 'right-top' | 'right-bottom' | 'left-top' | 'left-bottom'
4
5
 
@@ -17,6 +18,10 @@ export interface BadgeProps extends BasicAttributes {
17
18
 
18
19
  export class Badge extends VarComponent {
19
20
  $props: BadgeProps
21
+
22
+ $slots: {
23
+ default(): VNode[]
24
+ }
20
25
  }
21
26
 
22
27
  export class _BadgeComponent extends Badge {}
@@ -1,5 +1,6 @@
1
1
  import { VarComponent, BasicAttributes } from './varComponent'
2
2
  import { ButtonProps } from './button'
3
+ import { VNode } from 'vue'
3
4
 
4
5
  export interface BottomNavigationProps extends BasicAttributes {
5
6
  active?: number | string
@@ -18,6 +19,10 @@ export interface BottomNavigationProps extends BasicAttributes {
18
19
 
19
20
  export class BottomNavigation extends VarComponent {
20
21
  $props: BottomNavigationProps
22
+
23
+ $slots: {
24
+ fab(): VNode[]
25
+ }
21
26
  }
22
27
 
23
28
  export class _BottomNavigationComponent extends BottomNavigation {}
@@ -1,5 +1,6 @@
1
1
  import { VarComponent, BasicAttributes } from './varComponent'
2
2
  import { BadgeProps } from './badge'
3
+ import { VNode } from 'vue'
3
4
 
4
5
  export interface BottomNavigationItemProps extends BasicAttributes {
5
6
  name?: string
@@ -10,8 +11,17 @@ export interface BottomNavigationItemProps extends BasicAttributes {
10
11
  onClick?: (active: string | number) => void
11
12
  }
12
13
 
14
+ export interface BottomNavigationItemIcon {
15
+ active: boolean
16
+ }
17
+
13
18
  export class BottomNavigationItem extends VarComponent {
14
19
  $props: BottomNavigationItemProps
20
+
21
+ $slots: {
22
+ default(): VNode[]
23
+ icon(data: BottomNavigationItemIcon): VNode[]
24
+ }
15
25
  }
16
26
 
17
27
  export class _BottomNavigationItemComponent extends BottomNavigationItem {}
package/types/button.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { VarComponent, BasicAttributes, Type as ButtonType, Size as ButtonSize } from './varComponent'
2
2
  import { LoadingType, LoadingSize } from './loading'
3
+ import { VNode } from 'vue'
3
4
 
4
5
  export { ButtonType, ButtonSize }
5
6
 
@@ -26,6 +27,10 @@ export interface ButtonProps extends BasicAttributes {
26
27
 
27
28
  export class Button extends VarComponent {
28
29
  $props: ButtonProps
30
+
31
+ $slots: {
32
+ default(): VNode[]
33
+ }
29
34
  }
30
35
 
31
36
  export class _ButtonComponent extends Button {}
package/types/card.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 CardFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'
4
5
 
@@ -24,6 +25,16 @@ export interface CardProps extends BasicAttributes {
24
25
 
25
26
  export class Card extends VarComponent {
26
27
  $props: CardProps
28
+
29
+ $slots: {
30
+ image(): VNode[]
31
+ title(): VNode[]
32
+ subtitle(): VNode[]
33
+ description(): VNode[]
34
+ extra(): VNode[]
35
+ 'close-button'(): VNode[]
36
+ 'floating-content'(): VNode[]
37
+ }
27
38
  }
28
39
 
29
40
  export class _CardComponent extends Card {}
package/types/cell.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 CellProps extends BasicAttributes {
4
5
  title?: string | number
@@ -13,6 +14,13 @@ export interface CellProps extends BasicAttributes {
13
14
 
14
15
  export class Cell extends VarComponent {
15
16
  $props: CellProps
17
+
18
+ $slots: {
19
+ default(): VNode[]
20
+ icon(): VNode[]
21
+ description(): VNode[]
22
+ extra(): VNode[]
23
+ }
16
24
  }
17
25
 
18
26
  export class _CellComponent extends Cell {}
@@ -1,4 +1,5 @@
1
1
  import { VarComponent, BasicAttributes } from './varComponent'
2
+ import { VNode } from 'vue'
2
3
 
3
4
  export type CheckboxValidateTriggers = 'onChange'
4
5
 
@@ -22,6 +23,12 @@ export interface CheckboxProps extends BasicAttributes {
22
23
  export class Checkbox extends VarComponent {
23
24
  $props: CheckboxProps
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
@@ -1,4 +1,5 @@
1
1
  import { VarComponent, BasicAttributes, Direction as CheckboxGroupDirection } from './varComponent'
2
+ import { VNode } from 'vue'
2
3
 
3
4
  export type CheckboxGroupValidateTrigger = 'onChange'
4
5
 
@@ -17,6 +18,10 @@ export interface CheckboxGroupProps extends BasicAttributes {
17
18
  export class CheckboxGroup extends VarComponent {
18
19
  $props: CheckboxGroupProps
19
20
 
21
+ $slots: {
22
+ default(): VNode[]
23
+ }
24
+
20
25
  validate(): Promise<boolean>
21
26
 
22
27
  resetValidation(): void
package/types/chip.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { VarComponent, BasicAttributes, Type as ChipType, Size as ChipSize } from './varComponent'
2
+ import { VNode } from 'vue'
2
3
 
3
4
  export { ChipType, ChipSize }
4
5
 
@@ -17,6 +18,12 @@ export interface ChipProps extends BasicAttributes {
17
18
 
18
19
  export class Chip extends VarComponent {
19
20
  $props: ChipProps
21
+
22
+ $slots: {
23
+ default(): VNode[]
24
+ left(): VNode[]
25
+ right(): VNode[]
26
+ }
20
27
  }
21
28
 
22
29
  export class _ChipComponent extends Chip {}
package/types/col.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 ColSizeDescriptor = {
4
5
  span?: number | string
@@ -21,6 +22,10 @@ export interface ColProps extends BasicAttributes {
21
22
 
22
23
  export class Col extends VarComponent {
23
24
  $props: ColProps
25
+
26
+ $slots: {
27
+ default(): VNode[]
28
+ }
24
29
  }
25
30
 
26
31
  export class _ColComponent extends Col {}
@@ -1,4 +1,5 @@
1
1
  import { VarComponent, BasicAttributes } from './varComponent'
2
+ import { VNode } from 'vue'
2
3
 
3
4
  export type CollapseModelValue = null | string | number | Array<string | number>
4
5
 
@@ -12,6 +13,10 @@ export interface CollapseProps extends BasicAttributes {
12
13
 
13
14
  export class Collapse extends VarComponent {
14
15
  $props: CollapseProps
16
+
17
+ $slots: {
18
+ default(): VNode[]
19
+ }
15
20
  }
16
21
 
17
22
  export class _CollapseComponent extends Collapse {}
@@ -1,4 +1,5 @@
1
1
  import { VarComponent, BasicAttributes } from './varComponent'
2
+ import { VNode } from 'vue'
2
3
 
3
4
  export interface CollapseItemProps extends BasicAttributes {
4
5
  name?: string | number
@@ -9,6 +10,12 @@ export interface CollapseItemProps extends BasicAttributes {
9
10
 
10
11
  export class CollapseItem extends VarComponent {
11
12
  $props: CollapseItemProps
13
+
14
+ $slots: {
15
+ default(): VNode[]
16
+ title(): VNode[]
17
+ icon(): VNode[]
18
+ }
12
19
  }
13
20
 
14
21
  export class _CollapseItemComponent extends CollapseItem {}
@@ -1,6 +1,7 @@
1
1
  import { VarComponent, BasicAttributes } from './varComponent'
2
+ import { VNode } from 'vue'
2
3
 
3
- export type TimeData = {
4
+ export interface CountdownTimeData {
4
5
  days: number
5
6
  hours: number
6
7
  minutes: number
@@ -13,12 +14,16 @@ export interface CountdownProps extends BasicAttributes {
13
14
  format?: string
14
15
  autoStart?: boolean
15
16
  onEnd?: () => void
16
- onChange?: (value: TimeData) => void
17
+ onChange?: (value: CountdownTimeData) => void
17
18
  }
18
19
 
19
20
  export class Countdown extends VarComponent {
20
21
  $props: CountdownProps
21
22
 
23
+ $slots: {
24
+ default(data: CountdownTimeData): VNode[]
25
+ }
26
+
22
27
  start(): void
23
28
 
24
29
  pause(): void
@@ -1,4 +1,5 @@
1
1
  import { VarComponent, BasicAttributes } from './varComponent'
2
+ import { VNode } from 'vue'
2
3
 
3
4
  export type DatePickerType = 'date' | 'month'
4
5
 
@@ -22,8 +23,37 @@ export interface DatePickerProps extends BasicAttributes {
22
23
  'onUpdate:modelValue'?: (value: string | string[]) => void
23
24
  }
24
25
 
26
+ export interface DatePickerYear {
27
+ year: string
28
+ }
29
+
30
+ export interface DatePickerMonth extends DatePickerYear {
31
+ month: string
32
+ }
33
+
34
+ export interface DatePickerDate extends DatePickerMonth {
35
+ date: string
36
+ week: string
37
+ }
38
+
39
+ export interface DatePickerRange {
40
+ choose: [string, string]
41
+ }
42
+
43
+ export interface DatePickerMultiple {
44
+ choose: Array<string>
45
+ }
46
+
25
47
  export class DatePicker extends VarComponent {
26
48
  $props: DatePickerProps
49
+
50
+ $slots: {
51
+ year(data: DatePickerYear): VNode[]
52
+ month(data: DatePickerMonth): VNode[]
53
+ date(data: DatePickerDate): VNode[]
54
+ range(data: DatePickerRange): VNode[]
55
+ multiple(data: DatePickerMultiple): VNode[]
56
+ }
27
57
  }
28
58
 
29
59
  export class _DatePickerComponent extends DatePicker {}
package/types/dialog.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { VarComponent, BasicAttributes } from './varComponent'
2
- import type { App, TeleportProps } from 'vue'
2
+ import type { App, TeleportProps, VNode } from 'vue'
3
3
 
4
4
  export type DialogTypeMessageAlign = 'left' | 'center' | 'right'
5
5
 
@@ -38,6 +38,11 @@ export interface DialogProps extends BasicAttributes {
38
38
 
39
39
  export class DialogComponent extends VarComponent {
40
40
  $props: DialogProps
41
+
42
+ $slots: {
43
+ default(): VNode[]
44
+ title(): VNode[]
45
+ }
41
46
  }
42
47
 
43
48
  export type DialogActions = 'confirm' | 'cancel' | 'close'
@@ -1,4 +1,5 @@
1
1
  import { VarComponent, BasicAttributes } from './varComponent'
2
+ import { VNode } from 'vue'
2
3
 
3
4
  export interface DividerProps extends BasicAttributes {
4
5
  inset?: boolean | number
@@ -10,6 +11,10 @@ export interface DividerProps extends BasicAttributes {
10
11
 
11
12
  export class Divider extends VarComponent {
12
13
  $props: DividerProps
14
+
15
+ $slots: {
16
+ default(): VNode[]
17
+ }
13
18
  }
14
19
 
15
20
  export class _DividerComponent extends Divider {}
package/types/form.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 FormProps extends BasicAttributes {
4
5
  disabled?: boolean
@@ -8,6 +9,10 @@ export interface FormProps extends BasicAttributes {
8
9
  export class Form extends VarComponent {
9
10
  $props: FormProps
10
11
 
12
+ $slots: {
13
+ default(): VNode[]
14
+ }
15
+
11
16
  validate(): Promise<boolean>
12
17
 
13
18
  resetValidation(): void
@@ -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 {
@@ -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 {}
@@ -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 {}
@@ -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 {}
@@ -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 {}
@@ -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 {}
@@ -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
@@ -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
@@ -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 {}
@@ -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 {}
@@ -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
@@ -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 {}
@@ -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
 
@@ -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
 
@@ -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[]