@varlet/ui 2.8.1 → 2.8.2
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/button/Button.mjs +39 -4
- package/es/button/props.mjs +0 -2
- package/es/button/provide.mjs +16 -0
- package/es/button-group/ButtonGroup.mjs +45 -0
- package/es/button-group/ButtonGroupSfc.css +0 -0
- package/es/button-group/buttonGroup.css +1 -0
- package/es/button-group/index.mjs +9 -0
- package/es/button-group/props.mjs +43 -0
- package/es/button-group/provide.mjs +17 -0
- package/es/button-group/style/index.mjs +4 -0
- package/es/index.bundle.mjs +7 -1
- package/es/index.mjs +6 -1
- package/es/paper/Paper.mjs +1 -1
- package/es/style.css +1 -1
- package/es/style.mjs +1 -0
- package/es/varlet.esm.js +3851 -3713
- package/highlight/web-types.en-US.json +82 -7
- package/highlight/web-types.zh-CN.json +82 -7
- package/lib/style.css +1 -1
- package/lib/varlet.cjs.js +342 -192
- package/package.json +5 -5
- package/types/buttonGroup.d.ts +25 -0
- package/types/index.d.ts +2 -0
- package/umd/varlet.js +6 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@varlet/ui",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.2",
|
|
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.8.
|
|
50
|
-
"@varlet/shared": "2.8.
|
|
49
|
+
"@varlet/icons": "2.8.2",
|
|
50
|
+
"@varlet/shared": "2.8.2"
|
|
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.8.
|
|
66
|
-
"@varlet/touch-emulator": "2.8.
|
|
65
|
+
"@varlet/cli": "2.8.2",
|
|
66
|
+
"@varlet/touch-emulator": "2.8.2"
|
|
67
67
|
},
|
|
68
68
|
"browserslist": [
|
|
69
69
|
"Chrome >= 54",
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { VNode } from 'vue'
|
|
2
|
+
import { VarComponent, BasicAttributes, Type as ButtonGroupType, Size as ButtonGroupSize } from './varComponent'
|
|
3
|
+
|
|
4
|
+
export declare const buttonGroupProps: Record<string, any>
|
|
5
|
+
|
|
6
|
+
export type ButtonGroupMode = 'normal' | 'text' | 'outline'
|
|
7
|
+
|
|
8
|
+
export interface ButtonGroupProps extends BasicAttributes {
|
|
9
|
+
type?: ButtonGroupType
|
|
10
|
+
size?: ButtonGroupSize
|
|
11
|
+
color?: string
|
|
12
|
+
textColor?: string
|
|
13
|
+
mode?: ButtonGroupMode
|
|
14
|
+
vertical?: boolean
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export class ButtonGroup extends VarComponent {
|
|
18
|
+
$props: ButtonGroupProps
|
|
19
|
+
|
|
20
|
+
$slots: {
|
|
21
|
+
default(): VNode[]
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class _ButtonGroupComponent extends ButtonGroup {}
|
package/types/index.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './bottomNavigationItem'
|
|
|
14
14
|
export * from './breadcrumb'
|
|
15
15
|
export * from './breadcrumbs'
|
|
16
16
|
export * from './button'
|
|
17
|
+
export * from './buttonGroup'
|
|
17
18
|
export * from './card'
|
|
18
19
|
export * from './cell'
|
|
19
20
|
export * from './checkbox'
|
|
@@ -94,6 +95,7 @@ declare module 'vue' {
|
|
|
94
95
|
VarBreadcrumb: typeof import('@varlet/ui')['_BreadcrumbComponent']
|
|
95
96
|
VarBreadcrumbs: typeof import('@varlet/ui')['_BreadcrumbsComponent']
|
|
96
97
|
VarButton: typeof import('@varlet/ui')['_ButtonComponent']
|
|
98
|
+
VarButtonGroup: typeof import('@varlet/ui')['_ButtonGroupComponent']
|
|
97
99
|
VarCard: typeof import('@varlet/ui')['_CardComponent']
|
|
98
100
|
VarCell: typeof import('@varlet/ui')['_CellComponent']
|
|
99
101
|
VarCheckbox: typeof import('@varlet/ui')['_CheckboxComponent']
|