@varlet/ui 2.7.5 → 2.8.0-alpha.1676455225773
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/README.md +3 -1
- package/README.zh-CN.md +6 -4
- package/es/app-bar/AppBar.mjs +30 -6
- package/es/app-bar/appBar.css +1 -1
- package/es/app-bar/props.mjs +6 -0
- package/es/avatar/Avatar.mjs +148 -0
- package/es/avatar/AvatarSfc.css +0 -0
- package/es/avatar/avatar.css +1 -0
- package/es/avatar/index.mjs +9 -0
- package/es/avatar/props.mjs +53 -0
- package/es/avatar/style/index.mjs +3 -0
- package/es/avatar-group/AvatarGroup.mjs +46 -0
- package/es/avatar-group/AvatarGroupSfc.css +0 -0
- package/es/avatar-group/avatarGroup.css +1 -0
- package/es/avatar-group/index.mjs +9 -0
- package/es/avatar-group/props.mjs +9 -0
- package/es/avatar-group/style/index.mjs +3 -0
- package/es/badge/Badge.mjs +3 -2
- package/es/cell/Cell.mjs +59 -31
- package/es/cell/cell.css +1 -1
- package/es/cell/props.mjs +10 -1
- package/es/collapse/Collapse.mjs +2 -2
- package/es/ellipsis/Ellipsis.mjs +106 -0
- package/es/ellipsis/EllipsisSfc.css +0 -0
- package/es/ellipsis/ellipsis.css +1 -0
- package/es/ellipsis/index.mjs +8 -0
- package/es/ellipsis/props.mjs +16 -0
- package/es/ellipsis/style/index.mjs +4 -0
- package/es/index.bundle.mjs +25 -1
- package/es/index.mjs +21 -1
- package/es/paper/Paper.mjs +55 -0
- package/es/paper/PaperSfc.css +0 -0
- package/es/paper/index.mjs +9 -0
- package/es/paper/paper.css +1 -0
- package/es/paper/props.mjs +28 -0
- package/es/paper/style/index.mjs +4 -0
- package/es/ripple/index.mjs +2 -2
- package/es/snackbar/style/index.mjs +1 -1
- package/es/style.css +1 -1
- package/es/style.mjs +4 -0
- package/es/tabs/Tabs.mjs +5 -4
- package/es/themes/dark/avatar.mjs +4 -0
- package/es/themes/dark/index.mjs +2 -1
- package/es/tooltip/Tooltip.mjs +6 -1
- package/es/tooltip/props.mjs +4 -0
- package/es/tooltip/tooltip.css +1 -1
- package/es/varlet.esm.js +7878 -7400
- package/highlight/web-types.en-US.json +294 -2
- package/highlight/web-types.zh-CN.json +294 -2
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +6012 -5455
- package/package.json +5 -5
- package/types/appBar.d.ts +2 -0
- package/types/avatar.d.ts +29 -0
- package/types/avatarGroup.d.ts +14 -0
- package/types/cell.d.ts +4 -1
- package/types/ellipsis.d.ts +23 -0
- package/types/index.d.ts +8 -0
- package/types/paper.d.ts +25 -0
- package/types/tooltip.d.ts +1 -0
- package/umd/style.css +1 -1
- package/umd/varlet.js +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.8.0-alpha.1676455225773",
|
|
4
4
|
"description": "A material like components library",
|
|
5
5
|
"main": "lib/varlet.cjs.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"@popperjs/core": "^2.11.6",
|
|
47
47
|
"dayjs": "^1.10.4",
|
|
48
48
|
"decimal.js": "^10.2.1",
|
|
49
|
-
"@varlet/icons": "2.
|
|
50
|
-
"@varlet/shared": "2.
|
|
49
|
+
"@varlet/icons": "2.8.0-alpha.1676455225773",
|
|
50
|
+
"@varlet/shared": "2.8.0-alpha.1676455225773"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/jest": "^26.0.15",
|
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"typescript": "^4.4.4",
|
|
63
63
|
"vue": "3.2.25",
|
|
64
64
|
"vue-router": "4.0.12",
|
|
65
|
-
"@varlet/cli": "2.
|
|
66
|
-
"@varlet/touch-emulator": "2.
|
|
65
|
+
"@varlet/cli": "2.8.0-alpha.1676455225773",
|
|
66
|
+
"@varlet/touch-emulator": "2.8.0-alpha.1676455225773"
|
|
67
67
|
},
|
|
68
68
|
"browserslist": [
|
|
69
69
|
"Chrome >= 54",
|
package/types/appBar.d.ts
CHANGED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { VarComponent, BasicAttributes, ListenerProp } from './varComponent'
|
|
2
|
+
|
|
3
|
+
export declare const avatarProps: Record<string, any>
|
|
4
|
+
|
|
5
|
+
export type AvatarFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down'
|
|
6
|
+
|
|
7
|
+
export type AvatarSize = 'mini' | 'small' | 'normal' | 'large' | number | string
|
|
8
|
+
|
|
9
|
+
export interface AvatarProps extends BasicAttributes {
|
|
10
|
+
round?: boolean
|
|
11
|
+
size?: AvatarSize
|
|
12
|
+
color?: string
|
|
13
|
+
src?: string
|
|
14
|
+
fit?: AvatarFit
|
|
15
|
+
bordered?: boolean
|
|
16
|
+
borderColor?: string
|
|
17
|
+
loading?: string
|
|
18
|
+
error?: string
|
|
19
|
+
lazy?: boolean
|
|
20
|
+
onClick?: ListenerProp<(e: Event) => void>
|
|
21
|
+
onLoad?: ListenerProp<(e: Event) => void>
|
|
22
|
+
onError?: ListenerProp<(e: Event) => void>
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class Avatar extends VarComponent {
|
|
26
|
+
$props: AvatarProps
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export class _AvatarComponent extends Avatar {}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { VarComponent, BasicAttributes } from './varComponent'
|
|
2
|
+
|
|
3
|
+
export declare const avatarGroupProps: Record<string, any>
|
|
4
|
+
|
|
5
|
+
export interface AvatarGroupProps extends BasicAttributes {
|
|
6
|
+
offset?: number | string
|
|
7
|
+
vertical?: boolean
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export class AvatarGroup extends VarComponent {
|
|
11
|
+
$props: AvatarGroupProps
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class _AvatarGroupComponent extends AvatarGroup {}
|
package/types/cell.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { VarComponent, BasicAttributes } from './varComponent'
|
|
1
|
+
import { VarComponent, BasicAttributes, ListenerProp } from './varComponent'
|
|
2
2
|
import { VNode } from 'vue'
|
|
3
3
|
|
|
4
4
|
export declare const cellProps: Record<string, any>
|
|
@@ -8,10 +8,13 @@ export interface CellProps extends BasicAttributes {
|
|
|
8
8
|
icon?: string
|
|
9
9
|
description?: string
|
|
10
10
|
border?: boolean
|
|
11
|
+
borderOffset?: number | string
|
|
11
12
|
iconClass?: string
|
|
12
13
|
titleClass?: string
|
|
13
14
|
descriptionClass?: string
|
|
14
15
|
extraClass?: string
|
|
16
|
+
ripple?: boolean
|
|
17
|
+
onClick?: ListenerProp<(e: Event) => void>
|
|
15
18
|
}
|
|
16
19
|
|
|
17
20
|
export class Cell extends VarComponent {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { TooltipProps } from './tooltip'
|
|
2
|
+
import { VarComponent, BasicAttributes } from './varComponent'
|
|
3
|
+
|
|
4
|
+
export declare const ellipsisProps: Record<string, any>
|
|
5
|
+
|
|
6
|
+
export type EllipsisExpandTrigger = 'click'
|
|
7
|
+
|
|
8
|
+
export interface EllipsisProps extends BasicAttributes {
|
|
9
|
+
expandTrigger?: EllipsisExpandTrigger
|
|
10
|
+
lineClamp?: string | number
|
|
11
|
+
tooltip?: boolean | TooltipProps
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export class Ellipsis extends VarComponent {
|
|
15
|
+
$props: EllipsisProps
|
|
16
|
+
|
|
17
|
+
$slots: {
|
|
18
|
+
default(): VNode[]
|
|
19
|
+
'tooltip-content'(): VNode[]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export class _EllipsisComponent extends Ellipsis {}
|
package/types/index.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export const install: (app: App) => void
|
|
|
5
5
|
|
|
6
6
|
export * from './actionSheet'
|
|
7
7
|
export * from './appBar'
|
|
8
|
+
export * from './avatar'
|
|
9
|
+
export * from './avatarGroup'
|
|
8
10
|
export * from './backTop'
|
|
9
11
|
export * from './badge'
|
|
10
12
|
export * from './bottomNavigation'
|
|
@@ -25,6 +27,7 @@ export * from './counter'
|
|
|
25
27
|
export * from './datePicker'
|
|
26
28
|
export * from './dialog'
|
|
27
29
|
export * from './divider'
|
|
30
|
+
export * from './ellipsis'
|
|
28
31
|
export * from './form'
|
|
29
32
|
export * from './formDetails'
|
|
30
33
|
export * from './icon'
|
|
@@ -43,6 +46,7 @@ export * from './menu'
|
|
|
43
46
|
export * from './option'
|
|
44
47
|
export * from './overlay'
|
|
45
48
|
export * from './pagination'
|
|
49
|
+
export * from './paper'
|
|
46
50
|
export * from './picker'
|
|
47
51
|
export * from './popup'
|
|
48
52
|
export * from './progress'
|
|
@@ -81,6 +85,8 @@ declare module 'vue' {
|
|
|
81
85
|
export interface GlobalComponents {
|
|
82
86
|
VarActionSheet: typeof import('@varlet/ui')['_ActionSheetComponent']
|
|
83
87
|
VarAppBar: typeof import('@varlet/ui')['_AppBarComponent']
|
|
88
|
+
VarAvatar: typeof import('@varlet/ui')['_AvatarComponent']
|
|
89
|
+
VarAvatarGroup: typeof import('@varlet/ui')['_AvatarGroupComponent']
|
|
84
90
|
VarBackTop: typeof import('@varlet/ui')['_BackTopComponent']
|
|
85
91
|
VarBadge: typeof import('@varlet/ui')['_BadgeComponent']
|
|
86
92
|
VarBottomNavigation: typeof import('@varlet/ui')['_BottomNavigationComponent']
|
|
@@ -101,6 +107,7 @@ declare module 'vue' {
|
|
|
101
107
|
VarDatePicker: typeof import('@varlet/ui')['_DatePickerComponent']
|
|
102
108
|
VarDialog: typeof import('@varlet/ui')['_DialogComponent']
|
|
103
109
|
VarDivider: typeof import('@varlet/ui')['_DividerComponent']
|
|
110
|
+
VarEllipsis: typeof import('@varlet/ui')['_EllipsisComponent']
|
|
104
111
|
VarForm: typeof import('@varlet/ui')['_FormComponent']
|
|
105
112
|
VarFormDetails: typeof import('@varlet/ui')['_FormDetailsComponent']
|
|
106
113
|
VarIcon: typeof import('@varlet/ui')['_IconComponent']
|
|
@@ -119,6 +126,7 @@ declare module 'vue' {
|
|
|
119
126
|
VarOption: typeof import('@varlet/ui')['_OptionComponent']
|
|
120
127
|
VarOverlay: typeof import('@varlet/ui')['_OverlayComponent']
|
|
121
128
|
VarPagination: typeof import('@varlet/ui')['_PaginationComponent']
|
|
129
|
+
VarPaper: typeof import('@varlet/ui')['_PaperComponent']
|
|
122
130
|
VarPicker: typeof import('@varlet/ui')['_PickerComponent']
|
|
123
131
|
VarPopup: typeof import('@varlet/ui')['_PopupComponent']
|
|
124
132
|
VarProgress: typeof import('@varlet/ui')['_ProgressComponent']
|
package/types/paper.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { VarComponent, BasicAttributes, ListenerProp } from './varComponent'
|
|
2
|
+
import { VNode } from 'vue'
|
|
3
|
+
|
|
4
|
+
export declare const paperProps: Record<string, any>
|
|
5
|
+
|
|
6
|
+
export interface PaperProps extends BasicAttributes {
|
|
7
|
+
elevation?: string | number
|
|
8
|
+
ripple?: boolean
|
|
9
|
+
radius?: string | number
|
|
10
|
+
width?: string | number
|
|
11
|
+
height?: string | number
|
|
12
|
+
round?: boolean
|
|
13
|
+
inline?: boolean
|
|
14
|
+
onClick?: ListenerProp<(e: Event) => void>
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class Paper extends VarComponent {
|
|
18
|
+
$props: PaperProps
|
|
19
|
+
|
|
20
|
+
$slots: {
|
|
21
|
+
default(): VNode[]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class _PaperComponent extends Paper {}
|
package/types/tooltip.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export interface TooltipProps extends BasicAttributes {
|
|
|
23
23
|
offsetX?: string | number
|
|
24
24
|
offsetY?: string | number
|
|
25
25
|
teleport?: TeleportProps['to']
|
|
26
|
+
sameWidth?: boolean
|
|
26
27
|
onOpen?: ListenerProp<() => void>
|
|
27
28
|
onOpened?: ListenerProp<() => void>
|
|
28
29
|
onClose?: ListenerProp<() => void>
|