@varlet/ui 2.13.1-alpha.1689619056304 → 2.13.1
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/action-sheet/index.mjs +3 -7
- package/es/app-bar/index.mjs +2 -3
- package/es/avatar/index.mjs +2 -3
- package/es/avatar-group/index.mjs +2 -3
- package/es/back-top/index.mjs +2 -3
- package/es/badge/index.mjs +2 -3
- package/es/bottom-navigation/index.mjs +2 -3
- package/es/bottom-navigation-item/index.mjs +2 -3
- package/es/breadcrumb/index.mjs +2 -3
- package/es/breadcrumbs/index.mjs +2 -3
- package/es/button/index.mjs +2 -3
- package/es/button-group/index.mjs +2 -4
- package/es/card/index.mjs +2 -3
- package/es/cell/index.mjs +2 -3
- package/es/checkbox/index.mjs +2 -3
- package/es/checkbox-group/index.mjs +2 -3
- package/es/chip/index.mjs +2 -3
- package/es/col/index.mjs +2 -3
- package/es/collapse/index.mjs +2 -3
- package/es/collapse-item/index.mjs +2 -3
- package/es/countdown/index.mjs +2 -3
- package/es/counter/index.mjs +2 -3
- package/es/date-picker/index.mjs +2 -3
- package/es/dialog/index.mjs +3 -7
- package/es/divider/index.mjs +2 -3
- package/es/drag/index.mjs +2 -3
- package/es/ellipsis/index.mjs +2 -3
- package/es/fab/index.mjs +2 -4
- package/es/form/index.mjs +2 -4
- package/es/form-details/index.mjs +2 -3
- package/es/hover-overlay/index.mjs +2 -3
- package/es/icon/index.mjs +2 -3
- package/es/image/index.mjs +2 -3
- package/es/image-preview/index.mjs +3 -7
- package/es/index-anchor/index.mjs +2 -3
- package/es/index-bar/index.mjs +2 -3
- package/es/index.bundle.mjs +1 -1
- package/es/index.mjs +1 -1
- package/es/input/index.mjs +2 -3
- package/es/link/index.mjs +2 -3
- package/es/list/index.mjs +2 -3
- package/es/loading/index.mjs +2 -3
- package/es/menu/Menu.mjs +3 -1
- package/es/menu/index.mjs +2 -3
- package/es/menu/menu.css +1 -1
- package/es/menu/usePopover.mjs +52 -1
- package/es/option/index.mjs +2 -3
- package/es/overlay/index.mjs +2 -3
- package/es/pagination/index.mjs +2 -3
- package/es/paper/index.mjs +2 -3
- package/es/picker/index.mjs +4 -8
- package/es/popup/index.mjs +2 -3
- package/es/progress/index.mjs +2 -3
- package/es/pull-refresh/index.mjs +2 -3
- package/es/radio/index.mjs +2 -3
- package/es/radio-group/index.mjs +2 -3
- package/es/rate/index.mjs +2 -3
- package/es/result/index.mjs +2 -3
- package/es/row/index.mjs +2 -3
- package/es/select/Select.mjs +1 -1
- package/es/select/index.mjs +2 -3
- package/es/skeleton/index.mjs +2 -3
- package/es/slider/index.mjs +2 -3
- package/es/snackbar/index.mjs +4 -8
- package/es/space/index.mjs +2 -3
- package/es/step/index.mjs +2 -3
- package/es/steps/index.mjs +2 -3
- package/es/sticky/index.mjs +2 -3
- package/es/style-provider/index.mjs +3 -6
- package/es/style.css +1 -1
- package/es/swipe/index.mjs +2 -3
- package/es/swipe-item/index.mjs +2 -3
- package/es/switch/index.mjs +2 -3
- package/es/tab/index.mjs +2 -3
- package/es/tab-item/index.mjs +2 -3
- package/es/table/index.mjs +2 -3
- package/es/tabs/index.mjs +2 -3
- package/es/tabs-items/index.mjs +2 -3
- package/es/time-picker/index.mjs +2 -3
- package/es/tooltip/Tooltip.mjs +3 -1
- package/es/tooltip/index.mjs +2 -3
- package/es/tooltip/tooltip.css +1 -1
- package/es/uploader/index.mjs +2 -3
- package/es/utils/components.mjs +12 -0
- package/es/varlet.esm.js +7052 -7151
- package/highlight/web-types.en-US.json +2 -2
- package/highlight/web-types.zh-CN.json +3 -3
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +154 -247
- package/package.json +6 -6
- package/types/snackbar.d.ts +9 -10
- package/umd/varlet.js +5 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "2.13.1
|
|
3
|
+
"version": "2.13.1",
|
|
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/shared": "2.13.1",
|
|
50
|
+
"@varlet/use": "2.13.1",
|
|
51
|
+
"@varlet/icons": "2.13.1"
|
|
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/
|
|
67
|
-
"@varlet/
|
|
66
|
+
"@varlet/cli": "2.13.1",
|
|
67
|
+
"@varlet/touch-emulator": "2.13.1"
|
|
68
68
|
},
|
|
69
69
|
"browserslist": [
|
|
70
70
|
"Chrome >= 54",
|
package/types/snackbar.d.ts
CHANGED
|
@@ -8,13 +8,9 @@ export type SnackbarType = 'success' | 'warning' | 'info' | 'error' | 'loading'
|
|
|
8
8
|
|
|
9
9
|
export declare const snackbarProps: Record<string, any>
|
|
10
10
|
|
|
11
|
-
export type SlotType = string | VNode | (() => VNode)
|
|
12
|
-
|
|
13
11
|
export interface SnackbarProps extends BasicAttributes {
|
|
14
12
|
type?: SnackbarType
|
|
15
|
-
content?:
|
|
16
|
-
icon?: SlotType
|
|
17
|
-
action?: SlotType
|
|
13
|
+
content?: string
|
|
18
14
|
position?: SnackbarPosition
|
|
19
15
|
loadingType?: LoadingType
|
|
20
16
|
loadingSize?: LoadingSize
|
|
@@ -50,15 +46,18 @@ export interface SnackbarHandel {
|
|
|
50
46
|
|
|
51
47
|
export interface SnackbarOptions {
|
|
52
48
|
type?: SnackbarType
|
|
53
|
-
content?: string
|
|
54
49
|
position?: SnackbarPosition
|
|
50
|
+
content?: string | VNode | (() => VNode)
|
|
51
|
+
icon?: string | VNode | (() => VNode)
|
|
52
|
+
action?: string | VNode | (() => VNode)
|
|
53
|
+
duration?: number
|
|
54
|
+
contentClass?: string
|
|
55
|
+
vertical?: boolean
|
|
55
56
|
loadingType?: string
|
|
56
57
|
loadingSize?: string
|
|
57
|
-
|
|
58
|
+
loadingColor?: string
|
|
59
|
+
loadingRadius?: string
|
|
58
60
|
lockScroll?: boolean
|
|
59
|
-
contentClass?: string
|
|
60
|
-
duration?: number
|
|
61
|
-
vertical?: boolean
|
|
62
61
|
forbidClick?: boolean
|
|
63
62
|
onOpen?: () => void
|
|
64
63
|
onClose?: () => void
|