vant 4.6.6 → 4.6.8
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 +1 -1
- package/es/action-sheet/ActionSheet.d.ts +1 -1
- package/es/action-sheet/index.d.ts +1 -1
- package/es/address-edit/AddressEditDetail.d.ts +1 -1
- package/es/address-list/AddressList.d.ts +1 -1
- package/es/address-list/index.d.ts +1 -1
- package/es/button/Button.d.ts +2 -2
- package/es/button/index.d.ts +2 -2
- package/es/calendar/Calendar.d.ts +1 -1
- package/es/calendar/index.d.ts +1 -1
- package/es/cell/Cell.d.ts +1 -1
- package/es/cell/index.css +1 -1
- package/es/cell/index.d.ts +1 -1
- package/es/cell-group/CellGroup.d.ts +1 -1
- package/es/cell-group/index.d.ts +1 -1
- package/es/checkbox/Checkbox.d.ts +13 -0
- package/es/checkbox/Checkbox.mjs +11 -2
- package/es/checkbox/Checker.d.ts +9 -0
- package/es/checkbox/Checker.mjs +10 -4
- package/es/checkbox/index.css +1 -1
- package/es/checkbox/index.d.ts +9 -0
- package/es/collapse-item/CollapseItem.d.ts +1 -1
- package/es/collapse-item/index.d.ts +1 -1
- package/es/config-provider/ConfigProvider.d.ts +14 -0
- package/es/config-provider/ConfigProvider.mjs +35 -2
- package/es/config-provider/index.d.ts +10 -1
- package/es/config-provider/types.d.ts +61 -1
- package/es/contact-list/ContactList.d.ts +1 -1
- package/es/contact-list/index.d.ts +1 -1
- package/es/divider/Divider.d.ts +1 -1
- package/es/divider/index.d.ts +1 -1
- package/es/field/Field.d.ts +1 -1
- package/es/field/index.d.ts +1 -1
- package/es/grid/Grid.d.ts +1 -1
- package/es/grid/index.d.ts +1 -1
- package/es/image/Image.d.ts +1 -1
- package/es/image/index.d.ts +1 -1
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/nav-bar/NavBar.d.ts +8 -0
- package/es/nav-bar/NavBar.mjs +18 -4
- package/es/nav-bar/index.css +1 -1
- package/es/nav-bar/index.d.ts +6 -0
- package/es/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/es/number-keyboard/index.d.ts +2 -2
- package/es/popup/Popup.d.ts +1 -1
- package/es/popup/index.d.ts +1 -1
- package/es/share-sheet/ShareSheet.d.ts +1 -1
- package/es/share-sheet/index.d.ts +1 -1
- package/es/signature/Signature.d.ts +1 -1
- package/es/signature/index.d.ts +1 -1
- package/es/skeleton/Skeleton.d.ts +1 -1
- package/es/skeleton/index.d.ts +1 -1
- package/es/slider/Slider.d.ts +1 -1
- package/es/slider/index.d.ts +1 -1
- package/es/space/Space.d.ts +4 -4
- package/es/space/index.d.ts +3 -3
- package/es/stepper/Stepper.d.ts +2 -2
- package/es/stepper/index.d.ts +2 -2
- package/es/tabs/Tabs.d.ts +1 -1
- package/es/tabs/index.d.ts +1 -1
- package/es/tag/Tag.d.ts +1 -1
- package/es/tag/index.d.ts +1 -1
- package/es/uploader/Uploader.d.ts +1 -1
- package/es/uploader/index.d.ts +1 -1
- package/lib/action-sheet/ActionSheet.d.ts +1 -1
- package/lib/action-sheet/index.d.ts +1 -1
- package/lib/address-edit/AddressEditDetail.d.ts +1 -1
- package/lib/address-list/AddressList.d.ts +1 -1
- package/lib/address-list/index.d.ts +1 -1
- package/lib/button/Button.d.ts +2 -2
- package/lib/button/index.d.ts +2 -2
- package/lib/calendar/Calendar.d.ts +1 -1
- package/lib/calendar/index.d.ts +1 -1
- package/lib/cell/Cell.d.ts +1 -1
- package/lib/cell/index.css +1 -1
- package/lib/cell/index.d.ts +1 -1
- package/lib/cell-group/CellGroup.d.ts +1 -1
- package/lib/cell-group/index.d.ts +1 -1
- package/lib/checkbox/Checkbox.d.ts +13 -0
- package/lib/checkbox/Checkbox.js +11 -2
- package/lib/checkbox/Checker.d.ts +9 -0
- package/lib/checkbox/Checker.js +10 -4
- package/lib/checkbox/index.css +1 -1
- package/lib/checkbox/index.d.ts +9 -0
- package/lib/collapse-item/CollapseItem.d.ts +1 -1
- package/lib/collapse-item/index.d.ts +1 -1
- package/lib/config-provider/ConfigProvider.d.ts +14 -0
- package/lib/config-provider/ConfigProvider.js +35 -2
- package/lib/config-provider/index.d.ts +10 -1
- package/lib/config-provider/types.d.ts +61 -1
- package/lib/contact-list/ContactList.d.ts +1 -1
- package/lib/contact-list/index.d.ts +1 -1
- package/lib/divider/Divider.d.ts +1 -1
- package/lib/divider/index.d.ts +1 -1
- package/lib/field/Field.d.ts +1 -1
- package/lib/field/index.d.ts +1 -1
- package/lib/grid/Grid.d.ts +1 -1
- package/lib/grid/index.d.ts +1 -1
- package/lib/image/Image.d.ts +1 -1
- package/lib/image/index.d.ts +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/nav-bar/NavBar.d.ts +8 -0
- package/lib/nav-bar/NavBar.js +18 -4
- package/lib/nav-bar/index.css +1 -1
- package/lib/nav-bar/index.d.ts +6 -0
- package/lib/number-keyboard/NumberKeyboard.d.ts +2 -2
- package/lib/number-keyboard/index.d.ts +2 -2
- package/lib/popup/Popup.d.ts +1 -1
- package/lib/popup/index.d.ts +1 -1
- package/lib/share-sheet/ShareSheet.d.ts +1 -1
- package/lib/share-sheet/index.d.ts +1 -1
- package/lib/signature/Signature.d.ts +1 -1
- package/lib/signature/index.d.ts +1 -1
- package/lib/skeleton/Skeleton.d.ts +1 -1
- package/lib/skeleton/index.d.ts +1 -1
- package/lib/slider/Slider.d.ts +1 -1
- package/lib/slider/index.d.ts +1 -1
- package/lib/space/Space.d.ts +4 -4
- package/lib/space/index.d.ts +3 -3
- package/lib/stepper/Stepper.d.ts +2 -2
- package/lib/stepper/index.d.ts +2 -2
- package/lib/tabs/Tabs.d.ts +1 -1
- package/lib/tabs/index.d.ts +1 -1
- package/lib/tag/Tag.d.ts +1 -1
- package/lib/tag/index.d.ts +1 -1
- package/lib/uploader/Uploader.d.ts +1 -1
- package/lib/uploader/index.d.ts +1 -1
- package/lib/vant.cjs.js +75 -13
- package/lib/vant.es.js +75 -13
- package/lib/vant.js +75 -13
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +18 -10
package/README.md
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
<p align="center">
|
10
10
|
<img src="https://img.shields.io/npm/v/vant?style=flat-square" alt="npm version" />
|
11
|
-
<img src="https://img.shields.io/codecov/c/github/
|
11
|
+
<img src="https://img.shields.io/codecov/c/github/youzan/vant/main.svg?style=flat-square&color=#4fc08d" alt="Coverage Status" />
|
12
12
|
<img src="https://img.shields.io/npm/dm/vant.svg?style=flat-square&color=#4fc08d" alt="downloads" />
|
13
13
|
<img src="https://img.badgesize.io/https://unpkg.com/vant/lib/vant.min.js?compression=gzip&style=flat-square&label=gzip%20size&color=#4fc08d" alt="Gzip Size" />
|
14
14
|
</p>
|
@@ -178,9 +178,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
178
178
|
onCancel?: ((...args: any[]) => any) | undefined;
|
179
179
|
}, {
|
180
180
|
round: boolean;
|
181
|
-
safeAreaInsetBottom: boolean;
|
182
181
|
overlay: boolean;
|
183
182
|
show: boolean;
|
183
|
+
safeAreaInsetBottom: boolean;
|
184
184
|
lockScroll: boolean;
|
185
185
|
lazyRender: boolean;
|
186
186
|
transitionAppear: boolean;
|
@@ -112,9 +112,9 @@ export declare const ActionSheet: import("../utils").WithInstall<import("vue").D
|
|
112
112
|
onCancel?: ((...args: any[]) => any) | undefined;
|
113
113
|
}, {
|
114
114
|
round: boolean;
|
115
|
-
safeAreaInsetBottom: boolean;
|
116
115
|
overlay: boolean;
|
117
116
|
show: boolean;
|
117
|
+
safeAreaInsetBottom: boolean;
|
118
118
|
lockScroll: boolean;
|
119
119
|
lazyRender: boolean;
|
120
120
|
transitionAppear: boolean;
|
@@ -25,8 +25,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
25
25
|
onInput?: ((...args: any[]) => any) | undefined;
|
26
26
|
onSelectSearch?: ((...args: any[]) => any) | undefined;
|
27
27
|
}, {
|
28
|
-
focused: boolean;
|
29
28
|
show: boolean;
|
29
|
+
focused: boolean;
|
30
30
|
showSearchResult: boolean;
|
31
31
|
}, {}>;
|
32
32
|
export default _default;
|
@@ -52,7 +52,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
52
52
|
type: import("vue").PropType<string>;
|
53
53
|
default: string;
|
54
54
|
};
|
55
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "
|
55
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "add" | "update:modelValue" | "edit" | "clickItem" | "editDisabled" | "selectDisabled")[], "select" | "add" | "update:modelValue" | "edit" | "clickItem" | "editDisabled" | "selectDisabled", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
56
56
|
list: {
|
57
57
|
type: import("vue").PropType<AddressListAddress[]>;
|
58
58
|
default: () => never[];
|
@@ -23,7 +23,7 @@ export declare const AddressList: import("../utils").WithInstall<import("vue").D
|
|
23
23
|
type: import("vue").PropType<string>;
|
24
24
|
default: string;
|
25
25
|
};
|
26
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "
|
26
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "add" | "update:modelValue" | "edit" | "clickItem" | "editDisabled" | "selectDisabled")[], "select" | "add" | "update:modelValue" | "edit" | "clickItem" | "editDisabled" | "selectDisabled", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
27
27
|
list: {
|
28
28
|
type: import("vue").PropType<import("./AddressListItem").AddressListAddress[]>;
|
29
29
|
default: () => never[];
|
package/es/button/Button.d.ts
CHANGED
@@ -128,11 +128,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
128
128
|
tag: keyof HTMLElementTagNameMap;
|
129
129
|
round: boolean;
|
130
130
|
disabled: boolean;
|
131
|
+
block: boolean;
|
131
132
|
size: ButtonSize;
|
133
|
+
square: boolean;
|
132
134
|
loading: boolean;
|
133
|
-
block: boolean;
|
134
135
|
plain: boolean;
|
135
|
-
square: boolean;
|
136
136
|
hairline: boolean;
|
137
137
|
nativeType: ButtonNativeType;
|
138
138
|
iconPosition: ButtonIconPosition;
|
package/es/button/index.d.ts
CHANGED
@@ -84,11 +84,11 @@ export declare const Button: import("../utils").WithInstall<import("vue").Define
|
|
84
84
|
tag: keyof HTMLElementTagNameMap;
|
85
85
|
round: boolean;
|
86
86
|
disabled: boolean;
|
87
|
+
block: boolean;
|
87
88
|
size: import("./types").ButtonSize;
|
89
|
+
square: boolean;
|
88
90
|
loading: boolean;
|
89
|
-
block: boolean;
|
90
91
|
plain: boolean;
|
91
|
-
square: boolean;
|
92
92
|
hairline: boolean;
|
93
93
|
nativeType: import("./types").ButtonNativeType;
|
94
94
|
iconPosition: import("./types").ButtonIconPosition;
|
@@ -270,9 +270,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
270
270
|
type: CalendarType;
|
271
271
|
position: PopupPosition;
|
272
272
|
round: boolean;
|
273
|
+
show: boolean;
|
273
274
|
readonly: boolean;
|
274
275
|
safeAreaInsetBottom: boolean;
|
275
|
-
show: boolean;
|
276
276
|
lazyRender: boolean;
|
277
277
|
closeOnClickOverlay: boolean;
|
278
278
|
closeOnPopstate: boolean;
|
package/es/calendar/index.d.ts
CHANGED
@@ -180,9 +180,9 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
180
180
|
type: import("./types").CalendarType;
|
181
181
|
position: import("..").PopupPosition;
|
182
182
|
round: boolean;
|
183
|
+
show: boolean;
|
183
184
|
readonly: boolean;
|
184
185
|
safeAreaInsetBottom: boolean;
|
185
|
-
show: boolean;
|
186
186
|
lazyRender: boolean;
|
187
187
|
closeOnClickOverlay: boolean;
|
188
188
|
closeOnPopstate: boolean;
|
package/es/cell/Cell.d.ts
CHANGED
@@ -128,8 +128,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
128
128
|
replace: boolean;
|
129
129
|
tag: keyof HTMLElementTagNameMap;
|
130
130
|
center: boolean;
|
131
|
-
isLink: boolean;
|
132
131
|
border: boolean;
|
132
|
+
isLink: boolean;
|
133
133
|
required: boolean;
|
134
134
|
clickable: boolean | null;
|
135
135
|
}, {}>;
|
package/es/cell/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-cell-font-size: var(--van-font-size-md);--van-cell-line-height: 24px;--van-cell-vertical-padding: 10px;--van-cell-horizontal-padding: var(--van-padding-md);--van-cell-text-color: var(--van-text-color);--van-cell-background: var(--van-background-2);--van-cell-border-color: var(--van-border-color);--van-cell-active-color: var(--van-active-color);--van-cell-required-color: var(--van-danger-color);--van-cell-label-color: var(--van-text-color-2);--van-cell-label-font-size: var(--van-font-size-sm);--van-cell-label-line-height: var(--van-line-height-sm);--van-cell-label-margin-top: var(--van-padding-base);--van-cell-value-color: var(--van-text-color-2);--van-cell-icon-size: 16px;--van-cell-right-icon-color: var(--van-gray-6);--van-cell-large-vertical-padding: var(--van-padding-sm);--van-cell-large-title-font-size: var(--van-font-size-lg);--van-cell-large-label-font-size: var(--van-font-size-md)}.van-cell{position:relative;display:flex;box-sizing:border-box;width:100%;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);overflow:hidden;color:var(--van-cell-text-color);font-size:var(--van-cell-font-size);line-height:var(--van-cell-line-height);background:var(--van-cell-background)}.van-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-cell-border-color);transform:scaleY(.5)}.van-cell:last-child:after,.van-cell--borderless:after{display:none}.van-cell__label{margin-top:var(--van-cell-label-margin-top);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__title,.van-cell__value{flex:1}.van-cell__value{position:relative;overflow:hidden;color:var(--van-cell-value-color);text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__left-icon,.van-cell__right-icon{height:var(--van-cell-line-height);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height)}.van-cell__left-icon{margin-right:var(--van-padding-base)}.van-cell__right-icon{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:var(--van-cell-active-color)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;left:var(--van-padding-xs);color:var(--van-cell-required-color);font-size:var(--van-cell-font-size);content:"*"}.van-cell--center{align-items:center}.van-cell--large{padding-top:var(--van-cell-large-vertical-padding);padding-bottom:var(--van-cell-large-vertical-padding)}.van-cell--large .van-cell__title{font-size:var(--van-cell-large-title-font-size)}.van-cell--large .van-cell__label{font-size:var(--van-cell-large-label-font-size)}
|
1
|
+
:root{--van-cell-font-size: var(--van-font-size-md);--van-cell-line-height: 24px;--van-cell-vertical-padding: 10px;--van-cell-horizontal-padding: var(--van-padding-md);--van-cell-text-color: var(--van-text-color);--van-cell-background: var(--van-background-2);--van-cell-border-color: var(--van-border-color);--van-cell-active-color: var(--van-active-color);--van-cell-required-color: var(--van-danger-color);--van-cell-label-color: var(--van-text-color-2);--van-cell-label-font-size: var(--van-font-size-sm);--van-cell-label-line-height: var(--van-line-height-sm);--van-cell-label-margin-top: var(--van-padding-base);--van-cell-value-color: var(--van-text-color-2);--van-cell-value-font-size: inherit;--van-cell-icon-size: 16px;--van-cell-right-icon-color: var(--van-gray-6);--van-cell-large-vertical-padding: var(--van-padding-sm);--van-cell-large-title-font-size: var(--van-font-size-lg);--van-cell-large-label-font-size: var(--van-font-size-md);--van-cell-large-value-font-size: inherit}.van-cell{position:relative;display:flex;box-sizing:border-box;width:100%;padding:var(--van-cell-vertical-padding) var(--van-cell-horizontal-padding);overflow:hidden;color:var(--van-cell-text-color);font-size:var(--van-cell-font-size);line-height:var(--van-cell-line-height);background:var(--van-cell-background)}.van-cell:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;right:var(--van-padding-md);bottom:0;left:var(--van-padding-md);border-bottom:1px solid var(--van-cell-border-color);transform:scaleY(.5)}.van-cell:last-child:after,.van-cell--borderless:after{display:none}.van-cell__label{margin-top:var(--van-cell-label-margin-top);color:var(--van-cell-label-color);font-size:var(--van-cell-label-font-size);line-height:var(--van-cell-label-line-height)}.van-cell__title,.van-cell__value{flex:1}.van-cell__value{position:relative;overflow:hidden;color:var(--van-cell-value-color);font-size:var(--van-cell-value-font-size);text-align:right;vertical-align:middle;word-wrap:break-word}.van-cell__left-icon,.van-cell__right-icon{height:var(--van-cell-line-height);font-size:var(--van-cell-icon-size);line-height:var(--van-cell-line-height)}.van-cell__left-icon{margin-right:var(--van-padding-base)}.van-cell__right-icon{margin-left:var(--van-padding-base);color:var(--van-cell-right-icon-color)}.van-cell--clickable{cursor:pointer}.van-cell--clickable:active{background-color:var(--van-cell-active-color)}.van-cell--required{overflow:visible}.van-cell--required:before{position:absolute;left:var(--van-padding-xs);color:var(--van-cell-required-color);font-size:var(--van-cell-font-size);content:"*"}.van-cell--center{align-items:center}.van-cell--large{padding-top:var(--van-cell-large-vertical-padding);padding-bottom:var(--van-cell-large-vertical-padding)}.van-cell--large .van-cell__title{font-size:var(--van-cell-large-title-font-size)}.van-cell--large .van-cell__label{font-size:var(--van-cell-large-label-font-size)}.van-cell--large .van-cell__value{font-size:var(--van-cell-large-value-font-size)}
|
package/es/cell/index.d.ts
CHANGED
@@ -64,8 +64,8 @@ export declare const Cell: import("../utils").WithInstall<import("vue").DefineCo
|
|
64
64
|
replace: boolean;
|
65
65
|
tag: keyof HTMLElementTagNameMap;
|
66
66
|
center: boolean;
|
67
|
-
isLink: boolean;
|
68
67
|
border: boolean;
|
68
|
+
isLink: boolean;
|
69
69
|
required: boolean;
|
70
70
|
clickable: boolean | null;
|
71
71
|
}, {}>>;
|
package/es/cell-group/index.d.ts
CHANGED
@@ -13,8 +13,8 @@ export declare const CellGroup: import("../utils").WithInstall<import("vue").Def
|
|
13
13
|
default: true;
|
14
14
|
};
|
15
15
|
}>>, {
|
16
|
-
border: boolean;
|
17
16
|
inset: boolean;
|
17
|
+
border: boolean;
|
18
18
|
}, {}>>;
|
19
19
|
export default CellGroup;
|
20
20
|
export { cellGroupProps } from './CellGroup';
|
@@ -14,6 +14,10 @@ export declare const checkboxProps: {
|
|
14
14
|
type: BooleanConstructor;
|
15
15
|
default: true;
|
16
16
|
};
|
17
|
+
indeterminate: {
|
18
|
+
type: PropType<boolean | null>;
|
19
|
+
default: null;
|
20
|
+
};
|
17
21
|
};
|
18
22
|
export type CheckboxProps = ExtractPropTypes<typeof checkboxProps>;
|
19
23
|
declare const _default: import("vue").DefineComponent<{
|
@@ -30,6 +34,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
30
34
|
type: BooleanConstructor;
|
31
35
|
default: true;
|
32
36
|
};
|
37
|
+
indeterminate: {
|
38
|
+
type: PropType<boolean | null>;
|
39
|
+
default: null;
|
40
|
+
};
|
33
41
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
34
42
|
name: PropType<unknown>;
|
35
43
|
disabled: BooleanConstructor;
|
@@ -44,6 +52,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
44
52
|
type: BooleanConstructor;
|
45
53
|
default: true;
|
46
54
|
};
|
55
|
+
indeterminate: {
|
56
|
+
type: PropType<boolean | null>;
|
57
|
+
default: null;
|
58
|
+
};
|
47
59
|
}>> & {
|
48
60
|
onChange?: ((...args: any[]) => any) | undefined;
|
49
61
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
@@ -51,5 +63,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
51
63
|
disabled: boolean;
|
52
64
|
labelDisabled: boolean;
|
53
65
|
bindGroup: boolean;
|
66
|
+
indeterminate: boolean | null;
|
54
67
|
}, {}>;
|
55
68
|
export default _default;
|
package/es/checkbox/Checkbox.mjs
CHANGED
@@ -8,7 +8,11 @@ import Checker, { checkerProps } from "./Checker.mjs";
|
|
8
8
|
const [name, bem] = createNamespace("checkbox");
|
9
9
|
const checkboxProps = extend({}, checkerProps, {
|
10
10
|
shape: String,
|
11
|
-
bindGroup: truthProp
|
11
|
+
bindGroup: truthProp,
|
12
|
+
indeterminate: {
|
13
|
+
type: Boolean,
|
14
|
+
default: null
|
15
|
+
}
|
12
16
|
});
|
13
17
|
var stdin_default = defineComponent({
|
14
18
|
name,
|
@@ -60,8 +64,13 @@ var stdin_default = defineComponent({
|
|
60
64
|
} else {
|
61
65
|
emit("update:modelValue", newValue);
|
62
66
|
}
|
67
|
+
if (props.indeterminate !== null)
|
68
|
+
emit("change", newValue);
|
63
69
|
};
|
64
|
-
watch(() => props.modelValue, (value) =>
|
70
|
+
watch(() => props.modelValue, (value) => {
|
71
|
+
if (props.indeterminate === null)
|
72
|
+
emit("change", value);
|
73
|
+
});
|
65
74
|
useExpose({
|
66
75
|
toggle,
|
67
76
|
props,
|
package/es/checkbox/Checker.d.ts
CHANGED
@@ -45,6 +45,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
45
45
|
type: BooleanConstructor;
|
46
46
|
default: true;
|
47
47
|
};
|
48
|
+
indeterminate: {
|
49
|
+
type: PropType<boolean | null>;
|
50
|
+
default: null;
|
51
|
+
};
|
48
52
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "toggle")[], "click" | "toggle", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
49
53
|
name: PropType<unknown>;
|
50
54
|
disabled: BooleanConstructor;
|
@@ -66,6 +70,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
66
70
|
type: BooleanConstructor;
|
67
71
|
default: true;
|
68
72
|
};
|
73
|
+
indeterminate: {
|
74
|
+
type: PropType<boolean | null>;
|
75
|
+
default: null;
|
76
|
+
};
|
69
77
|
}>> & {
|
70
78
|
onClick?: ((...args: any[]) => any) | undefined;
|
71
79
|
onToggle?: ((...args: any[]) => any) | undefined;
|
@@ -74,5 +82,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
74
82
|
disabled: boolean;
|
75
83
|
labelDisabled: boolean;
|
76
84
|
bindGroup: boolean;
|
85
|
+
indeterminate: boolean | null;
|
77
86
|
}, {}>;
|
78
87
|
export default _default;
|
package/es/checkbox/Checker.mjs
CHANGED
@@ -18,7 +18,11 @@ var stdin_default = defineComponent({
|
|
18
18
|
shape: String,
|
19
19
|
parent: Object,
|
20
20
|
checked: Boolean,
|
21
|
-
bindGroup: truthProp
|
21
|
+
bindGroup: truthProp,
|
22
|
+
indeterminate: {
|
23
|
+
type: Boolean,
|
24
|
+
default: null
|
25
|
+
}
|
22
26
|
}),
|
23
27
|
emits: ["click", "toggle"],
|
24
28
|
setup(props, {
|
@@ -72,14 +76,16 @@ var stdin_default = defineComponent({
|
|
72
76
|
var _a, _b;
|
73
77
|
const {
|
74
78
|
bem,
|
75
|
-
checked
|
79
|
+
checked,
|
80
|
+
indeterminate
|
76
81
|
} = props;
|
77
82
|
const iconSize = props.iconSize || getParentProp("iconSize");
|
78
83
|
return _createVNode("div", {
|
79
84
|
"ref": iconRef,
|
80
85
|
"class": bem("icon", [shape.value, {
|
81
86
|
disabled: disabled.value,
|
82
|
-
checked
|
87
|
+
checked,
|
88
|
+
indeterminate
|
83
89
|
}]),
|
84
90
|
"style": shape.value !== "dot" ? {
|
85
91
|
fontSize: addUnit(iconSize)
|
@@ -92,7 +98,7 @@ var stdin_default = defineComponent({
|
|
92
98
|
checked,
|
93
99
|
disabled: disabled.value
|
94
100
|
}) : shape.value !== "dot" ? _createVNode(Icon, {
|
95
|
-
"name": "success",
|
101
|
+
"name": indeterminate ? "minus" : "success",
|
96
102
|
"style": iconStyle.value
|
97
103
|
}, null) : _createVNode("div", {
|
98
104
|
"class": bem("icon--dot__icon"),
|
package/es/checkbox/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-checkbox-size: 20px;--van-checkbox-border-color: var(--van-gray-5);--van-checkbox-duration: var(--van-duration-fast);--van-checkbox-label-margin: var(--van-padding-xs);--van-checkbox-label-color: var(--van-text-color);--van-checkbox-checked-icon-color: var(--van-primary-color);--van-checkbox-disabled-icon-color: var(--van-gray-5);--van-checkbox-disabled-label-color: var(--van-text-color-3);--van-checkbox-disabled-background: var(--van-border-color)}.van-checkbox{display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none}.van-checkbox--disabled{cursor:not-allowed}.van-checkbox--label-disabled{cursor:default}.van-checkbox--horizontal{margin-right:var(--van-padding-sm)}.van-checkbox__icon{flex:none;height:1em;font-size:var(--van-checkbox-size);line-height:1em;cursor:pointer}.van-checkbox__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:1px solid var(--van-checkbox-border-color);transition-duration:var(--van-checkbox-duration);transition-property:color,border-color,background-color}.van-checkbox__icon--round .van-icon{border-radius:100%}.van-checkbox__icon--checked .van-icon{color:var(--van-white);background-color:var(--van-checkbox-checked-icon-color);border-color:var(--van-checkbox-checked-icon-color)}.van-checkbox__icon--disabled{cursor:not-allowed}.van-checkbox__icon--disabled .van-icon{background-color:var(--van-checkbox-disabled-background);border-color:var(--van-checkbox-disabled-icon-color)}.van-checkbox__icon--disabled.van-checkbox__icon--checked .van-icon{color:var(--van-checkbox-disabled-icon-color)}.van-checkbox__label{margin-left:var(--van-checkbox-label-margin);color:var(--van-checkbox-label-color);line-height:var(--van-checkbox-size)}.van-checkbox__label--left{margin:0 var(--van-checkbox-label-margin) 0 0}.van-checkbox__label--disabled{color:var(--van-checkbox-disabled-label-color)}
|
1
|
+
:root{--van-checkbox-size: 20px;--van-checkbox-border-color: var(--van-gray-5);--van-checkbox-duration: var(--van-duration-fast);--van-checkbox-label-margin: var(--van-padding-xs);--van-checkbox-label-color: var(--van-text-color);--van-checkbox-checked-icon-color: var(--van-primary-color);--van-checkbox-disabled-icon-color: var(--van-gray-5);--van-checkbox-disabled-label-color: var(--van-text-color-3);--van-checkbox-disabled-background: var(--van-border-color)}.van-checkbox{display:flex;align-items:center;overflow:hidden;cursor:pointer;-webkit-user-select:none;user-select:none}.van-checkbox--disabled{cursor:not-allowed}.van-checkbox--label-disabled{cursor:default}.van-checkbox--horizontal{margin-right:var(--van-padding-sm)}.van-checkbox__icon{flex:none;height:1em;font-size:var(--van-checkbox-size);line-height:1em;cursor:pointer}.van-checkbox__icon .van-icon{display:block;box-sizing:border-box;width:1.25em;height:1.25em;color:transparent;font-size:.8em;line-height:1.25;text-align:center;border:1px solid var(--van-checkbox-border-color);transition-duration:var(--van-checkbox-duration);transition-property:color,border-color,background-color}.van-checkbox__icon--round .van-icon{border-radius:100%}.van-checkbox__icon--indeterminate .van-icon{display:flex;align-items:center;justify-content:center;color:var(--van-white);border-color:var(--van-checkbox-checked-icon-color);background-color:var(--van-checkbox-checked-icon-color)}.van-checkbox__icon--checked .van-icon{color:var(--van-white);background-color:var(--van-checkbox-checked-icon-color);border-color:var(--van-checkbox-checked-icon-color)}.van-checkbox__icon--disabled{cursor:not-allowed}.van-checkbox__icon--disabled .van-icon{background-color:var(--van-checkbox-disabled-background);border-color:var(--van-checkbox-disabled-icon-color)}.van-checkbox__icon--disabled.van-checkbox__icon--checked .van-icon{color:var(--van-checkbox-disabled-icon-color)}.van-checkbox__label{margin-left:var(--van-checkbox-label-margin);color:var(--van-checkbox-label-color);line-height:var(--van-checkbox-size)}.van-checkbox__label--left{margin:0 var(--van-checkbox-label-margin) 0 0}.van-checkbox__label--disabled{color:var(--van-checkbox-disabled-label-color)}
|
package/es/checkbox/index.d.ts
CHANGED
@@ -12,6 +12,10 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
|
|
12
12
|
type: BooleanConstructor;
|
13
13
|
default: true;
|
14
14
|
};
|
15
|
+
indeterminate: {
|
16
|
+
type: import("vue").PropType<boolean | null>;
|
17
|
+
default: null;
|
18
|
+
};
|
15
19
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
16
20
|
name: import("vue").PropType<unknown>;
|
17
21
|
disabled: BooleanConstructor;
|
@@ -26,6 +30,10 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
|
|
26
30
|
type: BooleanConstructor;
|
27
31
|
default: true;
|
28
32
|
};
|
33
|
+
indeterminate: {
|
34
|
+
type: import("vue").PropType<boolean | null>;
|
35
|
+
default: null;
|
36
|
+
};
|
29
37
|
}>> & {
|
30
38
|
onChange?: ((...args: any[]) => any) | undefined;
|
31
39
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
@@ -33,6 +41,7 @@ export declare const Checkbox: import("../utils").WithInstall<import("vue").Defi
|
|
33
41
|
disabled: boolean;
|
34
42
|
labelDisabled: boolean;
|
35
43
|
bindGroup: boolean;
|
44
|
+
indeterminate: boolean | null;
|
36
45
|
}, {}>>;
|
37
46
|
export default Checkbox;
|
38
47
|
export { checkboxProps } from './Checkbox';
|
@@ -122,8 +122,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
122
122
|
tag: keyof HTMLElementTagNameMap;
|
123
123
|
center: boolean;
|
124
124
|
disabled: boolean;
|
125
|
-
isLink: boolean;
|
126
125
|
border: boolean;
|
126
|
+
isLink: boolean;
|
127
127
|
required: boolean;
|
128
128
|
clickable: boolean | null;
|
129
129
|
readonly: boolean;
|
@@ -80,8 +80,8 @@ export declare const CollapseItem: import("../utils").WithInstall<import("vue").
|
|
80
80
|
tag: keyof HTMLElementTagNameMap;
|
81
81
|
center: boolean;
|
82
82
|
disabled: boolean;
|
83
|
-
isLink: boolean;
|
84
83
|
border: boolean;
|
84
|
+
isLink: boolean;
|
85
85
|
required: boolean;
|
86
86
|
clickable: boolean | null;
|
87
87
|
readonly: boolean;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { type PropType, type InjectionKey, type ExtractPropTypes } from 'vue';
|
2
2
|
import { type Numeric } from '../utils';
|
3
3
|
export type ConfigProviderTheme = 'light' | 'dark';
|
4
|
+
export type ConfigProviderThemeVarsScope = 'local' | 'global';
|
4
5
|
export type ConfigProviderProvide = {
|
5
6
|
iconPrefix?: string;
|
6
7
|
};
|
@@ -19,6 +20,10 @@ export declare const configProviderProps: {
|
|
19
20
|
themeVars: ThemeVars;
|
20
21
|
themeVarsDark: ThemeVars;
|
21
22
|
themeVarsLight: ThemeVars;
|
23
|
+
themeVarsScope: {
|
24
|
+
type: PropType<ConfigProviderThemeVarsScope>;
|
25
|
+
default: ConfigProviderThemeVarsScope;
|
26
|
+
};
|
22
27
|
iconPrefix: StringConstructor;
|
23
28
|
};
|
24
29
|
export type ConfigProviderProps = ExtractPropTypes<typeof configProviderProps>;
|
@@ -35,6 +40,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
35
40
|
themeVars: ThemeVars;
|
36
41
|
themeVarsDark: ThemeVars;
|
37
42
|
themeVarsLight: ThemeVars;
|
43
|
+
themeVarsScope: {
|
44
|
+
type: PropType<ConfigProviderThemeVarsScope>;
|
45
|
+
default: ConfigProviderThemeVarsScope;
|
46
|
+
};
|
38
47
|
iconPrefix: StringConstructor;
|
39
48
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
40
49
|
tag: {
|
@@ -49,9 +58,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
49
58
|
themeVars: ThemeVars;
|
50
59
|
themeVarsDark: ThemeVars;
|
51
60
|
themeVarsLight: ThemeVars;
|
61
|
+
themeVarsScope: {
|
62
|
+
type: PropType<ConfigProviderThemeVarsScope>;
|
63
|
+
default: ConfigProviderThemeVarsScope;
|
64
|
+
};
|
52
65
|
iconPrefix: StringConstructor;
|
53
66
|
}>>, {
|
54
67
|
tag: keyof HTMLElementTagNameMap;
|
55
68
|
theme: ConfigProviderTheme;
|
69
|
+
themeVarsScope: ConfigProviderThemeVarsScope;
|
56
70
|
}, {}>;
|
57
71
|
export default _default;
|
@@ -11,15 +11,32 @@ const configProviderProps = {
|
|
11
11
|
themeVars: Object,
|
12
12
|
themeVarsDark: Object,
|
13
13
|
themeVarsLight: Object,
|
14
|
+
themeVarsScope: makeStringProp("local"),
|
14
15
|
iconPrefix: String
|
15
16
|
};
|
17
|
+
function insertDash(str) {
|
18
|
+
return str.replace(/([a-zA-Z])(\d)/g, "$1-$2");
|
19
|
+
}
|
16
20
|
function mapThemeVarsToCSSVars(themeVars) {
|
17
21
|
const cssVars = {};
|
18
22
|
Object.keys(themeVars).forEach((key) => {
|
19
|
-
|
23
|
+
const formattedKey = insertDash(kebabCase(key));
|
24
|
+
cssVars[`--van-${formattedKey}`] = themeVars[key];
|
20
25
|
});
|
21
26
|
return cssVars;
|
22
27
|
}
|
28
|
+
function syncThemeVarsOnRoot(newStyle = {}, oldStyle = {}) {
|
29
|
+
Object.keys(newStyle).forEach((key) => {
|
30
|
+
if (newStyle[key] !== oldStyle[key]) {
|
31
|
+
document.documentElement.style.setProperty(key, newStyle[key]);
|
32
|
+
}
|
33
|
+
});
|
34
|
+
Object.keys(oldStyle).forEach((key) => {
|
35
|
+
if (!newStyle[key]) {
|
36
|
+
document.documentElement.style.removeProperty(key);
|
37
|
+
}
|
38
|
+
});
|
39
|
+
}
|
23
40
|
var stdin_default = defineComponent({
|
24
41
|
name,
|
25
42
|
props: configProviderProps,
|
@@ -45,6 +62,22 @@ var stdin_default = defineComponent({
|
|
45
62
|
onActivated(addTheme);
|
46
63
|
onDeactivated(removeTheme);
|
47
64
|
onBeforeUnmount(removeTheme);
|
65
|
+
watch(style, (newStyle, oldStyle) => {
|
66
|
+
if (props.themeVarsScope === "global") {
|
67
|
+
syncThemeVarsOnRoot(newStyle, oldStyle);
|
68
|
+
}
|
69
|
+
});
|
70
|
+
watch(() => props.themeVarsScope, (newScope, oldScope) => {
|
71
|
+
if (oldScope === "global") {
|
72
|
+
syncThemeVarsOnRoot({}, style.value);
|
73
|
+
}
|
74
|
+
if (newScope === "global") {
|
75
|
+
syncThemeVarsOnRoot(style.value, {});
|
76
|
+
}
|
77
|
+
});
|
78
|
+
if (props.themeVarsScope === "global") {
|
79
|
+
syncThemeVarsOnRoot(style.value, {});
|
80
|
+
}
|
48
81
|
}
|
49
82
|
provide(CONFIG_PROVIDER_KEY, props);
|
50
83
|
watchEffect(() => {
|
@@ -54,7 +87,7 @@ var stdin_default = defineComponent({
|
|
54
87
|
});
|
55
88
|
return () => _createVNode(props.tag, {
|
56
89
|
"class": bem(),
|
57
|
-
"style": style.value
|
90
|
+
"style": props.themeVarsScope === "local" ? style.value : void 0
|
58
91
|
}, {
|
59
92
|
default: () => {
|
60
93
|
var _a;
|
@@ -11,6 +11,10 @@ export declare const ConfigProvider: import("../utils").WithInstall<import("vue"
|
|
11
11
|
themeVars: import("./ConfigProvider").ThemeVars;
|
12
12
|
themeVarsDark: import("./ConfigProvider").ThemeVars;
|
13
13
|
themeVarsLight: import("./ConfigProvider").ThemeVars;
|
14
|
+
themeVarsScope: {
|
15
|
+
type: import("vue").PropType<import("./ConfigProvider").ConfigProviderThemeVarsScope>;
|
16
|
+
default: import("./ConfigProvider").ConfigProviderThemeVarsScope;
|
17
|
+
};
|
14
18
|
iconPrefix: StringConstructor;
|
15
19
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
16
20
|
tag: {
|
@@ -25,14 +29,19 @@ export declare const ConfigProvider: import("../utils").WithInstall<import("vue"
|
|
25
29
|
themeVars: import("./ConfigProvider").ThemeVars;
|
26
30
|
themeVarsDark: import("./ConfigProvider").ThemeVars;
|
27
31
|
themeVarsLight: import("./ConfigProvider").ThemeVars;
|
32
|
+
themeVarsScope: {
|
33
|
+
type: import("vue").PropType<import("./ConfigProvider").ConfigProviderThemeVarsScope>;
|
34
|
+
default: import("./ConfigProvider").ConfigProviderThemeVarsScope;
|
35
|
+
};
|
28
36
|
iconPrefix: StringConstructor;
|
29
37
|
}>>, {
|
30
38
|
tag: keyof HTMLElementTagNameMap;
|
31
39
|
theme: import("./ConfigProvider").ConfigProviderTheme;
|
40
|
+
themeVarsScope: import("./ConfigProvider").ConfigProviderThemeVarsScope;
|
32
41
|
}, {}>>;
|
33
42
|
export default ConfigProvider;
|
34
43
|
export { configProviderProps } from './ConfigProvider';
|
35
|
-
export type { ConfigProviderProps, ConfigProviderTheme, } from './ConfigProvider';
|
44
|
+
export type { ConfigProviderProps, ConfigProviderTheme, ConfigProviderThemeVarsScope, } from './ConfigProvider';
|
36
45
|
export type { ConfigProviderThemeVars } from './types';
|
37
46
|
declare module 'vue' {
|
38
47
|
interface GlobalComponents {
|
@@ -1 +1,61 @@
|
|
1
|
-
|
1
|
+
type BaseThemeVars = {
|
2
|
+
black?: string;
|
3
|
+
white?: string;
|
4
|
+
gray1?: string;
|
5
|
+
gray2?: string;
|
6
|
+
gray3?: string;
|
7
|
+
gray4?: string;
|
8
|
+
gray5?: string;
|
9
|
+
gray6?: string;
|
10
|
+
gray7?: string;
|
11
|
+
gray8?: string;
|
12
|
+
red?: string;
|
13
|
+
blue?: string;
|
14
|
+
orange?: string;
|
15
|
+
orangeDark?: string;
|
16
|
+
orangeLight?: string;
|
17
|
+
green?: string;
|
18
|
+
gradientRed?: string;
|
19
|
+
gradientOrange?: string;
|
20
|
+
primaryColor?: string;
|
21
|
+
successColor?: string;
|
22
|
+
dangerColor?: string;
|
23
|
+
warningColor?: string;
|
24
|
+
textColor?: string;
|
25
|
+
textColor2?: string;
|
26
|
+
textColor3?: string;
|
27
|
+
activeColor?: string;
|
28
|
+
activeOpacity?: number;
|
29
|
+
disabledOpacity?: number;
|
30
|
+
background?: string;
|
31
|
+
background2?: string;
|
32
|
+
paddingBase?: string;
|
33
|
+
paddingXs?: string;
|
34
|
+
paddingSm?: string;
|
35
|
+
paddingMd?: string;
|
36
|
+
paddingLg?: string;
|
37
|
+
paddingXl?: string;
|
38
|
+
fontSizeXs?: string;
|
39
|
+
fontSizeSm?: string;
|
40
|
+
fontSizeMd?: string;
|
41
|
+
fontSizeLg?: string;
|
42
|
+
fontBold?: number;
|
43
|
+
lineHeightXs?: string;
|
44
|
+
lineHeightSm?: string;
|
45
|
+
lineHeightMd?: string;
|
46
|
+
lineHeightLg?: string;
|
47
|
+
baseFont?: string;
|
48
|
+
priceFont?: string;
|
49
|
+
durationBase?: string;
|
50
|
+
durationFast?: string;
|
51
|
+
easeOut?: string;
|
52
|
+
easeIn?: string;
|
53
|
+
borderColor?: string;
|
54
|
+
borderWidth?: string;
|
55
|
+
radiusSm?: string;
|
56
|
+
radiusMd?: string;
|
57
|
+
radiusLg?: string;
|
58
|
+
radiusMax?: string;
|
59
|
+
};
|
60
|
+
export type ConfigProviderThemeVars = BaseThemeVars & import('../action-bar').ActionBarThemeVars & import('../action-bar-button').ActionBarButtonThemeVars & import('../action-bar-icon').ActionBarIconThemeVars & import('../action-sheet').ActionSheetThemeVars & import('../address-edit').AddressEditThemeVars & import('../address-list').AddressListThemeVars & import('../badge').BadgeThemeVars & import('../barrage').BarrageThemeVars & import('../button').ButtonThemeVars & import('../calendar').CalendarThemeVars & import('../card').CardThemeVars & import('../cascader').CascaderThemeVars & import('../cell').CellThemeVars & import('../cell-group').CellGroupThemeVars & import('../checkbox').CheckboxThemeVars & import('../circle').CircleThemeVars & import('../collapse-item').CollapseItemThemeVars & import('../contact-card').ContactCardThemeVars & import('../contact-edit').ContactEditThemeVars & import('../contact-list').ContactListThemeVars & import('../count-down').CountDownThemeVars & import('../coupon').CouponThemeVars & import('../coupon-cell').CouponCellThemeVars & import('../coupon-list').CouponListThemeVars & import('../dialog').DialogThemeVars & import('../divider').DividerThemeVars & import('../dropdown-item').DropdownItemThemeVars & import('../dropdown-menu').DropdownMenuThemeVars & import('../empty').EmptyThemeVars & import('../field').FieldThemeVars & import('../floating-bubble').FloatingBubbleThemeVars & import('../floating-panel').FloatingPanelThemeVars & import('../grid-item').GridItemThemeVars & import('../image').ImageThemeVars & import('../image-preview').ImagePreviewThemeVars & import('../index-anchor').IndexAnchorThemeVars & import('../index-bar').IndexBarThemeVars & import('../list').ListThemeVars & import('../loading').LoadingThemeVars & import('../nav-bar').NavBarThemeVars & import('../notice-bar').NoticeBarThemeVars & import('../notify').NotifyThemeVars & import('../number-keyboard').NumberKeyboardThemeVars & import('../overlay').OverlayThemeVars & import('../pagination').PaginationThemeVars & import('../password-input').PasswordInputThemeVars & import('../picker').PickerThemeVars & import('../picker-group').PickerGroupThemeVars & import('../popover').PopoverThemeVars & import('../popup').PopupThemeVars & import('../progress').ProgressThemeVars & import('../pull-refresh').PullRefreshThemeVars & import('../radio').RadioThemeVars & import('../rate').RateThemeVars & import('../rolling-text').RollingTextThemeVars & import('../search').SearchThemeVars & import('../share-sheet').ShareSheetThemeVars & import('../sidebar').SidebarThemeVars & import('../sidebar-item').SidebarItemThemeVars & import('../signature').SignatureThemeVars & import('../skeleton').SkeletonThemeVars & import('../slider').SliderThemeVars & import('../step').StepThemeVars & import('../stepper').StepperThemeVars & import('../steps').StepsThemeVars & import('../sticky').StickyThemeVars & import('../submit-bar').SubmitBarThemeVars & import('../swipe').SwipeThemeVars & import('../switch').SwitchThemeVars & import('../tabbar').TabbarThemeVars & import('../tabbar-item').TabbarItemThemeVars & import('../tabs').TabsThemeVars & import('../tag').TagThemeVars & import('../toast').ToastThemeVars & import('../tree-select').TreeSelectThemeVars & import('../uploader').UploaderThemeVars & import('../watermark').WatermarkThemeVars;
|
61
|
+
export {};
|
@@ -18,7 +18,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
18
18
|
addText: StringConstructor;
|
19
19
|
modelValue: PropType<unknown>;
|
20
20
|
defaultTagText: StringConstructor;
|
21
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "
|
21
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "add" | "update:modelValue" | "edit")[], "select" | "add" | "update:modelValue" | "edit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
22
22
|
list: PropType<ContactListItem[]>;
|
23
23
|
addText: StringConstructor;
|
24
24
|
modelValue: PropType<unknown>;
|
@@ -3,7 +3,7 @@ export declare const ContactList: import("../utils").WithInstall<import("vue").D
|
|
3
3
|
addText: StringConstructor;
|
4
4
|
modelValue: import("vue").PropType<unknown>;
|
5
5
|
defaultTagText: StringConstructor;
|
6
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "
|
6
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "add" | "update:modelValue" | "edit")[], "select" | "add" | "update:modelValue" | "edit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
7
7
|
list: import("vue").PropType<import("./ContactList").ContactListItem[]>;
|
8
8
|
addText: StringConstructor;
|
9
9
|
modelValue: import("vue").PropType<unknown>;
|
package/es/divider/Divider.d.ts
CHANGED
@@ -36,9 +36,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
36
36
|
default: DividerContentPosition;
|
37
37
|
};
|
38
38
|
}>>, {
|
39
|
+
dashed: boolean;
|
39
40
|
vertical: boolean;
|
40
41
|
hairline: boolean;
|
41
|
-
dashed: boolean;
|
42
42
|
contentPosition: DividerContentPosition;
|
43
43
|
}, {}>;
|
44
44
|
export default _default;
|