@varlet/ui 2.12.3 → 2.13.0-alpha.1689346411483

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "2.12.3",
3
+ "version": "2.13.0-alpha.1689346411483",
4
4
  "description": "A material like components library",
5
5
  "main": "lib/varlet.cjs.js",
6
6
  "module": "es/index.mjs",
@@ -46,9 +46,9 @@
46
46
  "@popperjs/core": "^2.11.6",
47
47
  "dayjs": "^1.10.4",
48
48
  "decimal.js": "^10.2.1",
49
- "@varlet/shared": "2.12.3",
50
- "@varlet/icons": "2.12.3",
51
- "@varlet/use": "2.12.3"
49
+ "@varlet/use": "2.13.0-alpha.1689346411483",
50
+ "@varlet/shared": "2.13.0-alpha.1689346411483",
51
+ "@varlet/icons": "2.13.0-alpha.1689346411483"
52
52
  },
53
53
  "devDependencies": {
54
54
  "@vue/runtime-core": "3.3.4",
@@ -63,8 +63,8 @@
63
63
  "typescript": "^5.1.5",
64
64
  "vue": "3.3.4",
65
65
  "vue-router": "4.2.0",
66
- "@varlet/cli": "2.12.3",
67
- "@varlet/touch-emulator": "2.12.3"
66
+ "@varlet/cli": "2.13.0-alpha.1689346411483",
67
+ "@varlet/touch-emulator": "2.13.0-alpha.1689346411483"
68
68
  },
69
69
  "browserslist": [
70
70
  "Chrome >= 54",
@@ -0,0 +1,36 @@
1
+ import { VarComponent, BasicAttributes } from './varComponent'
2
+ import { TeleportProps, VNode } from 'vue'
3
+
4
+ export type DragDirection = 'x' | 'y' | 'xy'
5
+
6
+ export type DragAttraction = 'x' | 'y' | 'xy'
7
+
8
+ export interface DragBoundary {
9
+ top?: number | string
10
+ bottom?: number | string
11
+ left?: number | string
12
+ right?: number | string
13
+ }
14
+
15
+ export declare const dragProps: Record<string, any>
16
+
17
+ export interface DragProps extends BasicAttributes {
18
+ direction?: DragDirection
19
+ attraction?: DragAttraction
20
+ disabled?: boolean
21
+ boundary?: DragBoundary
22
+ zIndex?: string | number
23
+ teleport?: TeleportProps['to']
24
+ }
25
+
26
+ export class Drag extends VarComponent {
27
+ $props: DragProps
28
+
29
+ $slots: {
30
+ default(): VNode[]
31
+ }
32
+
33
+ resize(): void
34
+ }
35
+
36
+ export class _DragComponent extends Drag {}
package/types/index.d.ts CHANGED
@@ -29,6 +29,7 @@ export * from './counter'
29
29
  export * from './datePicker'
30
30
  export * from './dialog'
31
31
  export * from './divider'
32
+ export * from './drag'
32
33
  export * from './ellipsis'
33
34
  export * from './fab'
34
35
  export * from './form'
@@ -114,6 +115,7 @@ declare module 'vue' {
114
115
  VarDatePicker: typeof import('@varlet/ui')['_DatePickerComponent']
115
116
  VarDialog: typeof import('@varlet/ui')['_DialogComponent']
116
117
  VarDivider: typeof import('@varlet/ui')['_DividerComponent']
118
+ VarDrag: typeof import('@varlet/ui')['_DragComponent']
117
119
  VarEllipsis: typeof import('@varlet/ui')['_EllipsisComponent']
118
120
  VarFab: typeof import('@varlet/ui')['_FabComponent']
119
121
  VarForm: typeof import('@varlet/ui')['_FormComponent']
package/types/input.d.ts CHANGED
@@ -45,6 +45,7 @@ export class Input extends VarComponent {
45
45
  $slots: {
46
46
  'prepend-icon'(): VNode[]
47
47
  'append-icon'(): VNode[]
48
+ 'extra-message'(): VNode[]
48
49
  }
49
50
 
50
51
  focus(): void
@@ -57,6 +57,7 @@ export class Uploader extends VarComponent {
57
57
 
58
58
  $slots: {
59
59
  default(): VNode[]
60
+ 'extra-message'(): VNode[]
60
61
  }
61
62
 
62
63
  getLoading(): VarFile[]