vant 3.4.5 → 3.4.6
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/changelog.generated.md +92 -0
- package/es/calendar/Calendar.d.ts +4 -0
- package/es/calendar/Calendar.js +2 -0
- package/es/calendar/index.d.ts +3 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/nav-bar/NavBar.d.ts +1 -1
- package/es/nav-bar/NavBar.js +3 -3
- package/es/nav-bar/index.d.ts +1 -1
- package/es/popup/Popup.d.ts +4 -0
- package/es/popup/Popup.js +3 -0
- package/es/popup/index.d.ts +3 -0
- package/es/skeleton/Skeleton.js +6 -4
- package/es/style/base.css +1 -1
- package/es/style/base.less +5 -0
- package/es/swipe-cell/SwipeCell.js +1 -1
- package/es/toast/Toast.js +1 -0
- package/lib/calendar/Calendar.d.ts +4 -0
- package/lib/calendar/Calendar.js +2 -0
- package/lib/calendar/index.d.ts +3 -0
- 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 +1 -1
- package/lib/nav-bar/NavBar.js +3 -3
- package/lib/nav-bar/index.d.ts +1 -1
- package/lib/popup/Popup.d.ts +4 -0
- package/lib/popup/Popup.js +3 -0
- package/lib/popup/index.d.ts +3 -0
- package/lib/skeleton/Skeleton.js +5 -3
- package/lib/style/base.css +1 -1
- package/lib/style/base.less +5 -0
- package/lib/swipe-cell/SwipeCell.js +1 -1
- package/lib/toast/Toast.js +1 -0
- package/lib/vant.cjs.js +16 -8
- package/lib/vant.cjs.min.js +1 -1
- package/lib/vant.es.js +16 -8
- package/lib/vant.es.min.js +16 -8
- package/lib/vant.js +16 -8
- package/lib/vant.min.js +1 -1
- package/package.json +2 -2
- package/vetur/attributes.json +287 -279
- package/vetur/tags.json +90 -88
- package/vetur/web-types.json +937 -917
@@ -0,0 +1,92 @@
|
|
1
|
+
### [v3.4.6](https://github.com/youzan/vant/compare/v3.4.5...v3.4.6)
|
2
|
+
|
3
|
+
`2022-03-13`
|
4
|
+
|
5
|
+
**Bug Fixes**
|
6
|
+
|
7
|
+
- 🐛 修复官网更新日志的版本链接及 issue 链接异常的问题 [#10329](https://github.com/youzan/vant/issues/10329)
|
8
|
+
- cli: issue link in generated changelog [#10337](https://github.com/youzan/vant/issues/10337)
|
9
|
+
- Skeleton: fix non-props attributes warning [#10384](https://github.com/youzan/vant/issues/10384)
|
10
|
+
- SwipeCell: cell should stopPropagation when lockClick is true [#10319](https://github.com/youzan/vant/issues/10319)
|
11
|
+
- Toast: failed to render message after changing type [#10311](https://github.com/youzan/vant/issues/10311)
|
12
|
+
- vant-cli: decamelize ReDoS [#10351](https://github.com/youzan/vant/issues/10351)
|
13
|
+
|
14
|
+
**Document**
|
15
|
+
|
16
|
+
- @vant/use: changelog 1.3.6 [f95239](https://github.com/youzan/vant/commit/f95239006cf23665593c8316258f4cec4237f29a)
|
17
|
+
- add mirror repo description [#10382](https://github.com/youzan/vant/issues/10382)
|
18
|
+
- add Vant 4 link [#10340](https://github.com/youzan/vant/issues/10340)
|
19
|
+
- Calendar: add formatter async usage [#10385](https://github.com/youzan/vant/issues/10385)
|
20
|
+
- changelog: 3.4.5 [0a50e7](https://github.com/youzan/vant/commit/0a50e721aa399b2540474d979e185795790b7a56)
|
21
|
+
- changelog: fix link mistake [#10328](https://github.com/youzan/vant/issues/10328)
|
22
|
+
- Field: add v-model type guide [#10383](https://github.com/youzan/vant/issues/10383)
|
23
|
+
- modify JSX.ELement to JSX.Element [#10344](https://github.com/youzan/vant/issues/10344)
|
24
|
+
- update react-vant address [#10305](https://github.com/youzan/vant/issues/10305)
|
25
|
+
- update vite-plugin-style-import version [#10303](https://github.com/youzan/vant/issues/10303)
|
26
|
+
|
27
|
+
- Update contribution.zh-CN.md (#10314) [#10314](https://github.com/youzan/vant/issues/10314)
|
28
|
+
|
29
|
+
**Feature**
|
30
|
+
|
31
|
+
- add van-safe-area-top class [#10356](https://github.com/youzan/vant/issues/10356)
|
32
|
+
- Calendar: add safe-area-inset-top prop [#10358](https://github.com/youzan/vant/issues/10358)
|
33
|
+
- Popup: add safe-area-inset-top prop [#10357](https://github.com/youzan/vant/issues/10357)
|
34
|
+
|
35
|
+
**release**
|
36
|
+
|
37
|
+
- @vant/cli 4.0.1 [202efb](https://github.com/youzan/vant/commit/202efbbf85ec94f7d804075d1ecbfb71c6824cb4)
|
38
|
+
- @vant/use 1.3.6 [1040af](https://github.com/youzan/vant/commit/1040afdda6e6f8bb98ea36cbc9212b65ecb8c49b)
|
39
|
+
|
40
|
+
**Types**
|
41
|
+
|
42
|
+
- fix missing VisibilityState after typescript 4.6.0 [#10370](https://github.com/youzan/vant/issues/10370)
|
43
|
+
### [v3.4.5](https://github.com/youzan/vant/compare/v3.4.3...v3.4.5)
|
44
|
+
|
45
|
+
`2022-02-14`
|
46
|
+
|
47
|
+
**Bug Fixes**
|
48
|
+
|
49
|
+
- Dialog: skip keyboard events of child elements [#10285](https://github.com/youzan/vant/issues/10285)
|
50
|
+
|
51
|
+
**Document**
|
52
|
+
|
53
|
+
- @vant/cli: changelog 4.0.0 [71eb44](https://github.com/youzan/vant/commit/71eb44b42ef6936353fc4dddc761347b9c7ee0cf)
|
54
|
+
- changelog: 3.4.3 [f65c41](https://github.com/youzan/vant/commit/f65c4198dc22661b26cbfa50e7d8c94ff0271811)
|
55
|
+
- changelog: 3.4.4 [bb500f](https://github.com/youzan/vant/commit/bb500f32872e48b4328c3813fcbf624e5b341505)
|
56
|
+
- fix v2 site link [#10266](https://github.com/youzan/vant/issues/10266)
|
57
|
+
- update CDN link [d6cd92](https://github.com/youzan/vant/commit/d6cd92910ce022168d40b6c7c12055163747ec1a)
|
58
|
+
- update changelog link [f4cbcb](https://github.com/youzan/vant/commit/f4cbcb22a2b4fce4407435b1e9624db86472f484)
|
59
|
+
- update install guide [733a21](https://github.com/youzan/vant/commit/733a2149d65752d38cbfa453edcc888706421982)
|
60
|
+
- update npm shields link [#10268](https://github.com/youzan/vant/issues/10268)
|
61
|
+
- update site folder [98c86d](https://github.com/youzan/vant/commit/98c86dcc0ddaca096a756c4a021e31a080a4f374)
|
62
|
+
- update site subtitle [#10267](https://github.com/youzan/vant/issues/10267)
|
63
|
+
|
64
|
+
**Feature**
|
65
|
+
|
66
|
+
- CollapseItem: add lazy-render prop [#10270](https://github.com/youzan/vant/issues/10270)
|
67
|
+
- copy code to clipboard [#9692](https://github.com/youzan/vant/issues/9692) [#10255](https://github.com/youzan/vant/issues/10255) [#9692](https://github.com/youzan/vant/issues/9692)
|
68
|
+
- create-vant-cli-app: update to cli v4 [8700b8](https://github.com/youzan/vant/commit/8700b86e67503e98cd5563ecfa4cf5fd29864d0a)
|
69
|
+
- Dialog: support enter/esc keyboard event [#10261](https://github.com/youzan/vant/issues/10261)
|
70
|
+
- Locale: add Bangla (Bangladesh) [#10287](https://github.com/youzan/vant/issues/10287)
|
71
|
+
- Locale: add Indonesian translation [#10289](https://github.com/youzan/vant/issues/10289)
|
72
|
+
- Locale: add Italain translation [#10288](https://github.com/youzan/vant/issues/10288)
|
73
|
+
- Locale: add Ukrainian translation [#10291](https://github.com/youzan/vant/issues/10291)
|
74
|
+
- Locale: add Vietnamese translation [#10294](https://github.com/youzan/vant/issues/10294)
|
75
|
+
|
76
|
+
**release**
|
77
|
+
|
78
|
+
- @vant/cli 4.0.0 [5a1dea](https://github.com/youzan/vant/commit/5a1deaf68d072b26748b262af4902b3501dcd532)
|
79
|
+
- 3.4.4 [a5d111](https://github.com/youzan/vant/commit/a5d111d07386ea928aa295a98171a631d559306f)
|
80
|
+
- 3.4.5 [9fa784](https://github.com/youzan/vant/commit/9fa7840c617f55dd782a0f7c78b61d538aee6df7)
|
81
|
+
- create-vant-cli-app 2.0.0 [3d3597](https://github.com/youzan/vant/commit/3d3597c214999834df289f55d982b3d4c506b1b9)
|
82
|
+
|
83
|
+
**style**
|
84
|
+
|
85
|
+
- SubmitBar: using english colon [#10286](https://github.com/youzan/vant/issues/10286)
|
86
|
+
|
87
|
+
**Types**
|
88
|
+
|
89
|
+
- fix ts errors in demo files [#10275](https://github.com/youzan/vant/issues/10275)
|
90
|
+
- IndexBar: index-list prop can includes number [#10273](https://github.com/youzan/vant/issues/10273)
|
91
|
+
- Toast: fix missing teleport prop [#10272](https://github.com/youzan/vant/issues/10272)
|
92
|
+
- Uploader: fix UploaderBeforeRead type [#10274](https://github.com/youzan/vant/issues/10274)
|
@@ -66,6 +66,7 @@ declare const calendarProps: {
|
|
66
66
|
type: BooleanConstructor;
|
67
67
|
default: true;
|
68
68
|
};
|
69
|
+
safeAreaInsetTop: BooleanConstructor;
|
69
70
|
safeAreaInsetBottom: {
|
70
71
|
type: BooleanConstructor;
|
71
72
|
default: true;
|
@@ -152,6 +153,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
152
153
|
type: BooleanConstructor;
|
153
154
|
default: true;
|
154
155
|
};
|
156
|
+
safeAreaInsetTop: BooleanConstructor;
|
155
157
|
safeAreaInsetBottom: {
|
156
158
|
type: BooleanConstructor;
|
157
159
|
default: true;
|
@@ -236,6 +238,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
236
238
|
type: BooleanConstructor;
|
237
239
|
default: true;
|
238
240
|
};
|
241
|
+
safeAreaInsetTop: BooleanConstructor;
|
239
242
|
safeAreaInsetBottom: {
|
240
243
|
type: BooleanConstructor;
|
241
244
|
default: true;
|
@@ -273,6 +276,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
273
276
|
lazyRender: boolean;
|
274
277
|
closeOnClickOverlay: boolean;
|
275
278
|
closeOnPopstate: boolean;
|
279
|
+
safeAreaInsetTop: boolean;
|
276
280
|
minDate: Date;
|
277
281
|
maxDate: Date;
|
278
282
|
poppable: boolean;
|
package/es/calendar/Calendar.js
CHANGED
@@ -36,6 +36,7 @@ const calendarProps = {
|
|
36
36
|
showRangePrompt: truthProp,
|
37
37
|
confirmDisabledText: String,
|
38
38
|
closeOnClickOverlay: truthProp,
|
39
|
+
safeAreaInsetTop: Boolean,
|
39
40
|
safeAreaInsetBottom: truthProp,
|
40
41
|
minDate: {
|
41
42
|
type: Date,
|
@@ -384,6 +385,7 @@ var stdin_default = defineComponent({
|
|
384
385
|
"closeable": props.showTitle || props.showSubtitle,
|
385
386
|
"teleport": props.teleport,
|
386
387
|
"closeOnPopstate": props.closeOnPopstate,
|
388
|
+
"safeAreaInsetTop": props.safeAreaInsetTop,
|
387
389
|
"closeOnClickOverlay": props.closeOnClickOverlay,
|
388
390
|
"onUpdate:show": updateShow
|
389
391
|
}, {
|
package/es/calendar/index.d.ts
CHANGED
@@ -63,6 +63,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
63
63
|
type: BooleanConstructor;
|
64
64
|
default: true;
|
65
65
|
};
|
66
|
+
safeAreaInsetTop: BooleanConstructor;
|
66
67
|
safeAreaInsetBottom: {
|
67
68
|
type: BooleanConstructor;
|
68
69
|
default: true;
|
@@ -147,6 +148,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
147
148
|
type: BooleanConstructor;
|
148
149
|
default: true;
|
149
150
|
};
|
151
|
+
safeAreaInsetTop: BooleanConstructor;
|
150
152
|
safeAreaInsetBottom: {
|
151
153
|
type: BooleanConstructor;
|
152
154
|
default: true;
|
@@ -184,6 +186,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
184
186
|
lazyRender: boolean;
|
185
187
|
closeOnClickOverlay: boolean;
|
186
188
|
closeOnPopstate: boolean;
|
189
|
+
safeAreaInsetTop: boolean;
|
187
190
|
minDate: Date;
|
188
191
|
maxDate: Date;
|
189
192
|
poppable: boolean;
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
@@ -83,7 +83,7 @@ import { Tag } from "./tag";
|
|
83
83
|
import { Toast } from "./toast";
|
84
84
|
import { TreeSelect } from "./tree-select";
|
85
85
|
import { Uploader } from "./uploader";
|
86
|
-
const version = "3.4.
|
86
|
+
const version = "3.4.6";
|
87
87
|
function install(app) {
|
88
88
|
const components = [
|
89
89
|
ActionBar,
|
package/es/nav-bar/NavBar.d.ts
CHANGED
package/es/nav-bar/NavBar.js
CHANGED
@@ -60,10 +60,10 @@ var stdin_default = defineComponent({
|
|
60
60
|
"ref": navBarRef,
|
61
61
|
"style": style,
|
62
62
|
"class": [bem({
|
63
|
-
fixed
|
64
|
-
"safe-area-inset-top": props.safeAreaInsetTop
|
63
|
+
fixed
|
65
64
|
}), {
|
66
|
-
[BORDER_BOTTOM]: border
|
65
|
+
[BORDER_BOTTOM]: border,
|
66
|
+
"van-safe-area-top": props.safeAreaInsetTop
|
67
67
|
}]
|
68
68
|
}, [_createVNode("div", {
|
69
69
|
"class": bem("content")
|
package/es/nav-bar/index.d.ts
CHANGED
@@ -31,8 +31,8 @@ export declare const NavBar: import("../utils").WithInstall<import("vue").Define
|
|
31
31
|
fixed: boolean;
|
32
32
|
border: boolean;
|
33
33
|
placeholder: boolean;
|
34
|
-
leftArrow: boolean;
|
35
34
|
safeAreaInsetTop: boolean;
|
35
|
+
leftArrow: boolean;
|
36
36
|
}>>;
|
37
37
|
export default NavBar;
|
38
38
|
export type { NavBarProps } from './NavBar';
|
package/es/popup/Popup.d.ts
CHANGED
@@ -43,6 +43,7 @@ declare const popupProps: {
|
|
43
43
|
type: import("vue").PropType<PopupCloseIconPosition>;
|
44
44
|
default: PopupCloseIconPosition;
|
45
45
|
};
|
46
|
+
safeAreaInsetTop: BooleanConstructor;
|
46
47
|
safeAreaInsetBottom: BooleanConstructor;
|
47
48
|
};
|
48
49
|
export declare type PopupProps = ExtractPropTypes<typeof popupProps>;
|
@@ -89,6 +90,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
89
90
|
type: import("vue").PropType<PopupCloseIconPosition>;
|
90
91
|
default: PopupCloseIconPosition;
|
91
92
|
};
|
93
|
+
safeAreaInsetTop: BooleanConstructor;
|
92
94
|
safeAreaInsetBottom: BooleanConstructor;
|
93
95
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon")[], "open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
94
96
|
show: BooleanConstructor;
|
@@ -133,6 +135,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
133
135
|
type: import("vue").PropType<PopupCloseIconPosition>;
|
134
136
|
default: PopupCloseIconPosition;
|
135
137
|
};
|
138
|
+
safeAreaInsetTop: BooleanConstructor;
|
136
139
|
safeAreaInsetBottom: BooleanConstructor;
|
137
140
|
}>> & {
|
138
141
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
@@ -157,5 +160,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
157
160
|
closeable: boolean;
|
158
161
|
closeOnPopstate: boolean;
|
159
162
|
closeIconPosition: PopupCloseIconPosition;
|
163
|
+
safeAreaInsetTop: boolean;
|
160
164
|
}>;
|
161
165
|
export default _default;
|
package/es/popup/Popup.js
CHANGED
@@ -18,6 +18,7 @@ const popupProps = extend({}, popupSharedProps, {
|
|
18
18
|
iconPrefix: String,
|
19
19
|
closeOnPopstate: Boolean,
|
20
20
|
closeIconPosition: makeStringProp("top-right"),
|
21
|
+
safeAreaInsetTop: Boolean,
|
21
22
|
safeAreaInsetBottom: Boolean
|
22
23
|
});
|
23
24
|
const [name, bem] = createNamespace("popup");
|
@@ -112,6 +113,7 @@ var stdin_default = defineComponent({
|
|
112
113
|
const {
|
113
114
|
round,
|
114
115
|
position,
|
116
|
+
safeAreaInsetTop,
|
115
117
|
safeAreaInsetBottom
|
116
118
|
} = props;
|
117
119
|
return _withDirectives(_createVNode("div", _mergeProps({
|
@@ -121,6 +123,7 @@ var stdin_default = defineComponent({
|
|
121
123
|
round,
|
122
124
|
[position]: position
|
123
125
|
}), {
|
126
|
+
"van-safe-area-top": safeAreaInsetTop,
|
124
127
|
"van-safe-area-bottom": safeAreaInsetBottom
|
125
128
|
}],
|
126
129
|
"onKeydown": onKeydown
|
package/es/popup/index.d.ts
CHANGED
@@ -41,6 +41,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
41
41
|
type: import("vue").PropType<import("./types").PopupCloseIconPosition>;
|
42
42
|
default: import("./types").PopupCloseIconPosition;
|
43
43
|
};
|
44
|
+
safeAreaInsetTop: BooleanConstructor;
|
44
45
|
safeAreaInsetBottom: BooleanConstructor;
|
45
46
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon")[], "open" | "close" | "keydown" | "opened" | "closed" | "update:show" | "click-overlay" | "click-close-icon", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
46
47
|
show: BooleanConstructor;
|
@@ -85,6 +86,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
85
86
|
type: import("vue").PropType<import("./types").PopupCloseIconPosition>;
|
86
87
|
default: import("./types").PopupCloseIconPosition;
|
87
88
|
};
|
89
|
+
safeAreaInsetTop: BooleanConstructor;
|
88
90
|
safeAreaInsetBottom: BooleanConstructor;
|
89
91
|
}>> & {
|
90
92
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
@@ -109,6 +111,7 @@ export declare const Popup: import("../utils").WithInstall<import("vue").DefineC
|
|
109
111
|
closeable: boolean;
|
110
112
|
closeOnPopstate: boolean;
|
111
113
|
closeIconPosition: import("./types").PopupCloseIconPosition;
|
114
|
+
safeAreaInsetTop: boolean;
|
112
115
|
}>>;
|
113
116
|
export default Popup;
|
114
117
|
export type { PopupProps } from './Popup';
|
package/es/skeleton/Skeleton.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { createVNode as _createVNode } from "vue";
|
1
|
+
import { mergeProps as _mergeProps, createVNode as _createVNode } from "vue";
|
2
2
|
import { defineComponent } from "vue";
|
3
3
|
import { addUnit, truthProp, numericProp, getSizeStyle, makeStringProp, makeNumericProp, createNamespace } from "../utils";
|
4
4
|
const [name, bem] = createNamespace("skeleton");
|
@@ -21,9 +21,11 @@ const skeletonProps = {
|
|
21
21
|
};
|
22
22
|
var stdin_default = defineComponent({
|
23
23
|
name,
|
24
|
+
inheritAttrs: false,
|
24
25
|
props: skeletonProps,
|
25
26
|
setup(props, {
|
26
|
-
slots
|
27
|
+
slots,
|
28
|
+
attrs
|
27
29
|
}) {
|
28
30
|
const renderAvatar = () => {
|
29
31
|
if (props.avatar) {
|
@@ -66,12 +68,12 @@ var stdin_default = defineComponent({
|
|
66
68
|
if (!props.loading) {
|
67
69
|
return (_a = slots.default) == null ? void 0 : _a.call(slots);
|
68
70
|
}
|
69
|
-
return _createVNode("div", {
|
71
|
+
return _createVNode("div", _mergeProps({
|
70
72
|
"class": bem({
|
71
73
|
animate: props.animate,
|
72
74
|
round: props.round
|
73
75
|
})
|
74
|
-
}, [renderAvatar(), _createVNode("div", {
|
76
|
+
}, attrs), [renderAvatar(), _createVNode("div", {
|
75
77
|
"class": bem("content")
|
76
78
|
}, [renderTitle(), renderRows()])]);
|
77
79
|
};
|
package/es/style/base.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-black: #000;--van-white: #fff;--van-gray-1: #f7f8fa;--van-gray-2: #f2f3f5;--van-gray-3: #ebedf0;--van-gray-4: #dcdee0;--van-gray-5: #c8c9cc;--van-gray-6: #969799;--van-gray-7: #646566;--van-gray-8: #323233;--van-red: #ee0a24;--van-blue: #1989fa;--van-orange: #ff976a;--van-orange-dark: #ed6a0c;--van-orange-light: #fffbe8;--van-green: #07c160;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-text-link-color: #576b95;--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background-color: var(--van-gray-1);--van-background-color-light: var(--van-white);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-font-weight-bold: 500;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-base-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;--van-animation-duration-base: .3s;--van-animation-duration-fast: .2s;--van-animation-timing-function-enter: ease-out;--van-animation-timing-function-leave: ease-in;--van-border-color: var(--van-gray-3);--van-border-width-base: 1px;--van-border-radius-sm: 2px;--van-border-radius-md: 4px;--van-border-radius-lg: 8px;--van-border-radius-max: 999px}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Segoe UI,Arial,Roboto,PingFang SC,miui,Hiragino Sans GB,Microsoft Yahei,sans-serif}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translateY(100%)}}@keyframes van-slide-up-leave{to{transform:translateY(100%)}}@keyframes van-slide-down-enter{0%{transform:translateY(-100%)}}@keyframes van-slide-down-leave{to{transform:translateY(-100%)}}@keyframes van-slide-left-enter{0%{transform:translate(-100%)}}@keyframes van-slide-left-leave{to{transform:translate(-100%)}}@keyframes van-slide-right-enter{0%{transform:translate(100%)}}@keyframes van-slide-right-leave{to{transform:translate(100%)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-animation-duration-base) van-fade-in both var(--van-animation-timing-function-enter)}.van-fade-leave-active{animation:var(--van-animation-duration-base) van-fade-out both var(--van-animation-timing-function-leave)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
|
1
|
+
:root{--van-black: #000;--van-white: #fff;--van-gray-1: #f7f8fa;--van-gray-2: #f2f3f5;--van-gray-3: #ebedf0;--van-gray-4: #dcdee0;--van-gray-5: #c8c9cc;--van-gray-6: #969799;--van-gray-7: #646566;--van-gray-8: #323233;--van-red: #ee0a24;--van-blue: #1989fa;--van-orange: #ff976a;--van-orange-dark: #ed6a0c;--van-orange-light: #fffbe8;--van-green: #07c160;--van-gradient-red: linear-gradient(to right, #ff6034, #ee0a24);--van-gradient-orange: linear-gradient(to right, #ffd01e, #ff8917);--van-primary-color: var(--van-blue);--van-success-color: var(--van-green);--van-danger-color: var(--van-red);--van-warning-color: var(--van-orange);--van-text-color: var(--van-gray-8);--van-text-color-2: var(--van-gray-6);--van-text-color-3: var(--van-gray-5);--van-text-link-color: #576b95;--van-active-color: var(--van-gray-2);--van-active-opacity: .6;--van-disabled-opacity: .5;--van-background-color: var(--van-gray-1);--van-background-color-light: var(--van-white);--van-padding-base: 4px;--van-padding-xs: 8px;--van-padding-sm: 12px;--van-padding-md: 16px;--van-padding-lg: 24px;--van-padding-xl: 32px;--van-font-size-xs: 10px;--van-font-size-sm: 12px;--van-font-size-md: 14px;--van-font-size-lg: 16px;--van-font-weight-bold: 500;--van-line-height-xs: 14px;--van-line-height-sm: 18px;--van-line-height-md: 20px;--van-line-height-lg: 22px;--van-base-font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Segoe UI, Arial, Roboto, "PingFang SC", "miui", "Hiragino Sans GB", "Microsoft Yahei", sans-serif;--van-price-integer-font-family: Avenir-Heavy, PingFang SC, Helvetica Neue, Arial, sans-serif;--van-animation-duration-base: .3s;--van-animation-duration-fast: .2s;--van-animation-timing-function-enter: ease-out;--van-animation-timing-function-leave: ease-in;--van-border-color: var(--van-gray-3);--van-border-width-base: 1px;--van-border-radius-sm: 2px;--van-border-radius-md: 4px;--van-border-radius-lg: 8px;--van-border-radius-max: 999px}html{-webkit-tap-highlight-color:transparent}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Segoe UI,Arial,Roboto,PingFang SC,miui,Hiragino Sans GB,Microsoft Yahei,sans-serif}a{text-decoration:none}input,button,textarea{color:inherit;font:inherit}a:focus,input:focus,button:focus,textarea:focus,[class*=van-]:focus{outline:none}ol,ul{margin:0;padding:0;list-style:none}@keyframes van-slide-up-enter{0%{transform:translateY(100%)}}@keyframes van-slide-up-leave{to{transform:translateY(100%)}}@keyframes van-slide-down-enter{0%{transform:translateY(-100%)}}@keyframes van-slide-down-leave{to{transform:translateY(-100%)}}@keyframes van-slide-left-enter{0%{transform:translate(-100%)}}@keyframes van-slide-left-leave{to{transform:translate(-100%)}}@keyframes van-slide-right-enter{0%{transform:translate(100%)}}@keyframes van-slide-right-leave{to{transform:translate(100%)}}@keyframes van-fade-in{0%{opacity:0}to{opacity:1}}@keyframes van-fade-out{0%{opacity:1}to{opacity:0}}@keyframes van-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.van-fade-enter-active{animation:var(--van-animation-duration-base) van-fade-in both var(--van-animation-timing-function-enter)}.van-fade-leave-active{animation:var(--van-animation-duration-base) van-fade-out both var(--van-animation-timing-function-leave)}.van-slide-up-enter-active{animation:van-slide-up-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-up-leave-active{animation:van-slide-up-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-down-enter-active{animation:van-slide-down-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-down-leave-active{animation:van-slide-down-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-left-enter-active{animation:van-slide-left-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-left-leave-active{animation:van-slide-left-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-slide-right-enter-active{animation:van-slide-right-enter var(--van-animation-duration-base) both var(--van-animation-timing-function-enter)}.van-slide-right-leave-active{animation:van-slide-right-leave var(--van-animation-duration-base) both var(--van-animation-timing-function-leave)}.van-clearfix:after{display:table;clear:both;content:""}.van-ellipsis{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.van-multi-ellipsis--l2{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:2;-webkit-box-orient:vertical}.van-multi-ellipsis--l3{display:-webkit-box;overflow:hidden;text-overflow:ellipsis;-webkit-line-clamp:3;-webkit-box-orient:vertical}.van-safe-area-top{padding-top:constant(safe-area-inset-top);padding-top:env(safe-area-inset-top)}.van-safe-area-bottom{padding-bottom:constant(safe-area-inset-bottom);padding-bottom:env(safe-area-inset-bottom)}.van-haptics-feedback{cursor:pointer}.van-haptics-feedback:active{opacity:var(--van-active-opacity)}[class*=van-hairline]:after{position:absolute;box-sizing:border-box;content:" ";pointer-events:none;top:-50%;right:-50%;bottom:-50%;left:-50%;border:0 solid var(--van-border-color);transform:scale(.5)}.van-hairline,.van-hairline--top,.van-hairline--left,.van-hairline--right,.van-hairline--bottom,.van-hairline--surround,.van-hairline--top-bottom{position:relative}.van-hairline--top:after{border-top-width:1px}.van-hairline--left:after{border-left-width:1px}.van-hairline--right:after{border-right-width:1px}.van-hairline--bottom:after{border-bottom-width:1px}.van-hairline--top-bottom:after,.van-hairline-unset--top-bottom:after{border-width:1px 0}.van-hairline--surround:after{border-width:1px}
|
package/es/style/base.less
CHANGED
@@ -26,6 +26,11 @@
|
|
26
26
|
.multi-ellipsis(3);
|
27
27
|
}
|
28
28
|
|
29
|
+
.van-safe-area-top {
|
30
|
+
padding-top: constant(safe-area-inset-top);
|
31
|
+
padding-top: env(safe-area-inset-top);
|
32
|
+
}
|
33
|
+
|
29
34
|
.van-safe-area-bottom {
|
30
35
|
padding-bottom: constant(safe-area-inset-bottom);
|
31
36
|
padding-bottom: env(safe-area-inset-bottom);
|
@@ -143,7 +143,7 @@ var stdin_default = defineComponent({
|
|
143
143
|
return _createVNode("div", {
|
144
144
|
"ref": root,
|
145
145
|
"class": bem(),
|
146
|
-
"onClick": getClickHandler("cell"),
|
146
|
+
"onClick": getClickHandler("cell", lockClick),
|
147
147
|
"onTouchstart": onTouchStart,
|
148
148
|
"onTouchmove": onTouchMove,
|
149
149
|
"onTouchend": onTouchEnd,
|
package/es/toast/Toast.js
CHANGED
@@ -66,6 +66,7 @@ declare const calendarProps: {
|
|
66
66
|
type: BooleanConstructor;
|
67
67
|
default: true;
|
68
68
|
};
|
69
|
+
safeAreaInsetTop: BooleanConstructor;
|
69
70
|
safeAreaInsetBottom: {
|
70
71
|
type: BooleanConstructor;
|
71
72
|
default: true;
|
@@ -152,6 +153,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
152
153
|
type: BooleanConstructor;
|
153
154
|
default: true;
|
154
155
|
};
|
156
|
+
safeAreaInsetTop: BooleanConstructor;
|
155
157
|
safeAreaInsetBottom: {
|
156
158
|
type: BooleanConstructor;
|
157
159
|
default: true;
|
@@ -236,6 +238,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
236
238
|
type: BooleanConstructor;
|
237
239
|
default: true;
|
238
240
|
};
|
241
|
+
safeAreaInsetTop: BooleanConstructor;
|
239
242
|
safeAreaInsetBottom: {
|
240
243
|
type: BooleanConstructor;
|
241
244
|
default: true;
|
@@ -273,6 +276,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
273
276
|
lazyRender: boolean;
|
274
277
|
closeOnClickOverlay: boolean;
|
275
278
|
closeOnPopstate: boolean;
|
279
|
+
safeAreaInsetTop: boolean;
|
276
280
|
minDate: Date;
|
277
281
|
maxDate: Date;
|
278
282
|
poppable: boolean;
|
package/lib/calendar/Calendar.js
CHANGED
@@ -67,6 +67,7 @@ const calendarProps = {
|
|
67
67
|
showRangePrompt: import_utils.truthProp,
|
68
68
|
confirmDisabledText: String,
|
69
69
|
closeOnClickOverlay: import_utils.truthProp,
|
70
|
+
safeAreaInsetTop: Boolean,
|
70
71
|
safeAreaInsetBottom: import_utils.truthProp,
|
71
72
|
minDate: {
|
72
73
|
type: Date,
|
@@ -415,6 +416,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
415
416
|
"closeable": props.showTitle || props.showSubtitle,
|
416
417
|
"teleport": props.teleport,
|
417
418
|
"closeOnPopstate": props.closeOnPopstate,
|
419
|
+
"safeAreaInsetTop": props.safeAreaInsetTop,
|
418
420
|
"closeOnClickOverlay": props.closeOnClickOverlay,
|
419
421
|
"onUpdate:show": updateShow
|
420
422
|
}, {
|
package/lib/calendar/index.d.ts
CHANGED
@@ -63,6 +63,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
63
63
|
type: BooleanConstructor;
|
64
64
|
default: true;
|
65
65
|
};
|
66
|
+
safeAreaInsetTop: BooleanConstructor;
|
66
67
|
safeAreaInsetBottom: {
|
67
68
|
type: BooleanConstructor;
|
68
69
|
default: true;
|
@@ -147,6 +148,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
147
148
|
type: BooleanConstructor;
|
148
149
|
default: true;
|
149
150
|
};
|
151
|
+
safeAreaInsetTop: BooleanConstructor;
|
150
152
|
safeAreaInsetBottom: {
|
151
153
|
type: BooleanConstructor;
|
152
154
|
default: true;
|
@@ -184,6 +186,7 @@ export declare const Calendar: import("../utils").WithInstall<import("vue").Defi
|
|
184
186
|
lazyRender: boolean;
|
185
187
|
closeOnClickOverlay: boolean;
|
186
188
|
closeOnPopstate: boolean;
|
189
|
+
safeAreaInsetTop: boolean;
|
187
190
|
minDate: Date;
|
188
191
|
maxDate: Date;
|
189
192
|
poppable: boolean;
|