@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/es/drag/Drag.mjs +257 -0
- package/es/drag/DragSfc.css +0 -0
- package/es/drag/drag.css +1 -0
- package/es/drag/index.mjs +7 -0
- package/es/drag/props.mjs +30 -0
- package/es/drag/style/index.mjs +3 -0
- package/es/form-details/FormDetails.mjs +5 -5
- package/es/index.bundle.mjs +7 -1
- package/es/index.mjs +6 -1
- package/es/input/Input.mjs +7 -1
- package/es/popup/props.mjs +1 -1
- package/es/slider/Slider.mjs +1 -1
- package/es/snackbar/props.mjs +1 -14
- package/es/style.css +1 -1
- package/es/style.mjs +1 -0
- package/es/uploader/Uploader.mjs +8 -2
- package/es/varlet.esm.js +5533 -5287
- package/highlight/web-types.en-US.json +101 -3
- package/highlight/web-types.zh-CN.json +121 -14
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +832 -496
- package/package.json +6 -6
- package/types/drag.d.ts +36 -0
- package/types/index.d.ts +2 -0
- package/types/input.d.ts +1 -0
- package/types/uploader.d.ts +1 -0
- package/umd/varlet.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "2.
|
|
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/
|
|
50
|
-
"@varlet/
|
|
51
|
-
"@varlet/
|
|
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.
|
|
67
|
-
"@varlet/touch-emulator": "2.
|
|
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",
|
package/types/drag.d.ts
ADDED
|
@@ -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