vant 3.2.7 → 3.2.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/es/cascader/Cascader.js +7 -3
- 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/index.d.ts +1 -1
- package/es/password-input/PasswordInput.d.ts +20 -0
- package/es/password-input/PasswordInput.js +10 -9
- package/es/password-input/index.d.ts +1 -0
- package/es/progress/Progress.js +2 -2
- package/es/submit-bar/SubmitBar.d.ts +4 -3
- package/es/submit-bar/index.d.ts +3 -2
- package/es/tabs/Tabs.js +7 -6
- package/lib/cascader/Cascader.js +7 -3
- 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/index.d.ts +1 -1
- package/lib/password-input/PasswordInput.d.ts +20 -0
- package/lib/password-input/PasswordInput.js +10 -9
- package/lib/password-input/index.d.ts +1 -0
- package/lib/progress/Progress.js +2 -2
- package/lib/submit-bar/SubmitBar.d.ts +4 -3
- package/lib/submit-bar/index.d.ts +3 -2
- package/lib/tabs/Tabs.js +7 -6
- package/lib/vant.es.js +234 -159
- package/lib/vant.es.min.js +234 -159
- package/lib/vant.js +234 -159
- package/lib/vant.min.js +1 -1
- package/package.json +7 -4
- package/vetur/attributes.json +344 -344
- package/vetur/tags.json +119 -119
- package/vetur/web-types.json +1149 -1145
package/es/cascader/Cascader.js
CHANGED
@@ -190,6 +190,8 @@ export default defineComponent({
|
|
190
190
|
}, [options.map(option => renderOption(option, selectedOption, tabIndex))]);
|
191
191
|
|
192
192
|
var renderTab = (tab, tabIndex) => {
|
193
|
+
var _slots$optionsTop, _slots$optionsBottom;
|
194
|
+
|
193
195
|
var {
|
194
196
|
options,
|
195
197
|
selected
|
@@ -202,9 +204,11 @@ export default defineComponent({
|
|
202
204
|
unselected: !selected
|
203
205
|
})
|
204
206
|
}, {
|
205
|
-
default: () => [slots['options-top'] ? slots
|
206
|
-
tabIndex
|
207
|
-
})
|
207
|
+
default: () => [(_slots$optionsTop = slots['options-top']) == null ? void 0 : _slots$optionsTop.call(slots, {
|
208
|
+
tabIndex
|
209
|
+
}), renderOptions(options, selected, tabIndex), (_slots$optionsBottom = slots['options-bottom']) == null ? void 0 : _slots$optionsBottom.call(slots, {
|
210
|
+
tabIndex
|
211
|
+
})]
|
208
212
|
});
|
209
213
|
};
|
210
214
|
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
@@ -84,7 +84,7 @@ import { Tag } from './tag';
|
|
84
84
|
import { Toast } from './toast';
|
85
85
|
import { TreeSelect } from './tree-select';
|
86
86
|
import { Uploader } from './uploader';
|
87
|
-
var version = '3.2.
|
87
|
+
var version = '3.2.8';
|
88
88
|
|
89
89
|
function install(app) {
|
90
90
|
var components = [ActionBar, ActionBarButton, ActionBarIcon, ActionSheet, AddressEdit, AddressList, Area, Badge, Button, Calendar, Card, Cascader, Cell, CellGroup, Checkbox, CheckboxGroup, Circle, Col, Collapse, CollapseItem, ConfigProvider, ContactCard, ContactEdit, ContactList, CountDown, Coupon, CouponCell, CouponList, DatetimePicker, Dialog, Divider, DropdownItem, DropdownMenu, Empty, Field, Form, Grid, GridItem, Icon, Image, ImagePreview, IndexAnchor, IndexBar, List, Loading, Locale, NavBar, NoticeBar, Notify, NumberKeyboard, Overlay, Pagination, PasswordInput, Picker, Popover, Popup, Progress, PullRefresh, Radio, RadioGroup, Rate, Row, Search, ShareSheet, Sidebar, SidebarItem, Skeleton, Slider, Step, Stepper, Steps, Sticky, SubmitBar, Swipe, SwipeCell, SwipeItem, Switch, Tab, Tabbar, TabbarItem, Tabs, Tag, Toast, TreeSelect, Uploader];
|
package/es/nav-bar/NavBar.d.ts
CHANGED
@@ -13,7 +13,7 @@ declare const navBarProps: {
|
|
13
13
|
placeholder: BooleanConstructor;
|
14
14
|
safeAreaInsetTop: BooleanConstructor;
|
15
15
|
};
|
16
|
-
export declare type
|
16
|
+
export declare type NavBarProps = ExtractPropTypes<typeof navBarProps>;
|
17
17
|
declare const _default: import("vue").DefineComponent<{
|
18
18
|
title: StringConstructor;
|
19
19
|
fixed: BooleanConstructor;
|
package/es/nav-bar/index.d.ts
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
declare const passwordInputProps: {
|
3
|
+
info: StringConstructor;
|
4
|
+
mask: {
|
5
|
+
type: BooleanConstructor;
|
6
|
+
default: true;
|
7
|
+
};
|
8
|
+
value: {
|
9
|
+
type: import("vue").PropType<string>;
|
10
|
+
default: string;
|
11
|
+
};
|
12
|
+
gutter: (NumberConstructor | StringConstructor)[];
|
13
|
+
length: {
|
14
|
+
type: (NumberConstructor | StringConstructor)[];
|
15
|
+
default: number;
|
16
|
+
};
|
17
|
+
focused: BooleanConstructor;
|
18
|
+
errorInfo: StringConstructor;
|
19
|
+
};
|
20
|
+
export declare type PasswordInputProps = ExtractPropTypes<typeof passwordInputProps>;
|
1
21
|
declare const _default: import("vue").DefineComponent<{
|
2
22
|
info: StringConstructor;
|
3
23
|
mask: {
|
@@ -2,17 +2,18 @@ import { createVNode as _createVNode } from "vue";
|
|
2
2
|
import { defineComponent } from 'vue';
|
3
3
|
import { addUnit, truthProp, numericProp, BORDER_LEFT, makeStringProp, BORDER_SURROUND, createNamespace, makeNumericProp } from '../utils';
|
4
4
|
var [name, bem] = createNamespace('password-input');
|
5
|
+
var passwordInputProps = {
|
6
|
+
info: String,
|
7
|
+
mask: truthProp,
|
8
|
+
value: makeStringProp(''),
|
9
|
+
gutter: numericProp,
|
10
|
+
length: makeNumericProp(6),
|
11
|
+
focused: Boolean,
|
12
|
+
errorInfo: String
|
13
|
+
};
|
5
14
|
export default defineComponent({
|
6
15
|
name,
|
7
|
-
props:
|
8
|
-
info: String,
|
9
|
-
mask: truthProp,
|
10
|
-
value: makeStringProp(''),
|
11
|
-
gutter: numericProp,
|
12
|
-
length: makeNumericProp(6),
|
13
|
-
focused: Boolean,
|
14
|
-
errorInfo: String
|
15
|
-
},
|
16
|
+
props: passwordInputProps,
|
16
17
|
emits: ['focus'],
|
17
18
|
|
18
19
|
setup(props, _ref) {
|
package/es/progress/Progress.js
CHANGED
@@ -60,8 +60,8 @@ export default defineComponent({
|
|
60
60
|
height: addUnit(strokeWidth)
|
61
61
|
};
|
62
62
|
var portionStyle = {
|
63
|
-
|
64
|
-
|
63
|
+
width: percentage + "%",
|
64
|
+
background: background.value
|
65
65
|
};
|
66
66
|
return _createVNode("div", {
|
67
67
|
"class": bem(),
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
2
2
|
import { ButtonType } from '../button';
|
3
|
+
export declare type SubmitBarTextAlign = 'left' | 'right';
|
3
4
|
declare const submitBarProps: {
|
4
5
|
tip: StringConstructor;
|
5
6
|
label: StringConstructor;
|
@@ -11,7 +12,7 @@ declare const submitBarProps: {
|
|
11
12
|
default: string;
|
12
13
|
};
|
13
14
|
disabled: BooleanConstructor;
|
14
|
-
textAlign: PropType<
|
15
|
+
textAlign: PropType<SubmitBarTextAlign>;
|
15
16
|
buttonText: StringConstructor;
|
16
17
|
buttonType: {
|
17
18
|
type: PropType<ButtonType>;
|
@@ -40,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
41
|
default: string;
|
41
42
|
};
|
42
43
|
disabled: BooleanConstructor;
|
43
|
-
textAlign: PropType<
|
44
|
+
textAlign: PropType<SubmitBarTextAlign>;
|
44
45
|
buttonText: StringConstructor;
|
45
46
|
buttonType: {
|
46
47
|
type: PropType<ButtonType>;
|
@@ -81,7 +82,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
81
82
|
} & {
|
82
83
|
label?: string | undefined;
|
83
84
|
price?: number | undefined;
|
84
|
-
textAlign?:
|
85
|
+
textAlign?: SubmitBarTextAlign | undefined;
|
85
86
|
tip?: string | undefined;
|
86
87
|
tipIcon?: string | undefined;
|
87
88
|
buttonText?: string | undefined;
|
package/es/submit-bar/index.d.ts
CHANGED
@@ -9,7 +9,7 @@ export declare const SubmitBar: import("../utils").WithInstall<import("vue").Def
|
|
9
9
|
default: string;
|
10
10
|
};
|
11
11
|
disabled: BooleanConstructor;
|
12
|
-
textAlign: import("vue").PropType<import("
|
12
|
+
textAlign: import("vue").PropType<import("./SubmitBar").SubmitBarTextAlign>;
|
13
13
|
buttonText: StringConstructor;
|
14
14
|
buttonType: {
|
15
15
|
type: import("vue").PropType<import("..").ButtonType>;
|
@@ -50,7 +50,7 @@ export declare const SubmitBar: import("../utils").WithInstall<import("vue").Def
|
|
50
50
|
} & {
|
51
51
|
label?: string | undefined;
|
52
52
|
price?: number | undefined;
|
53
|
-
textAlign?: import("
|
53
|
+
textAlign?: import("./SubmitBar").SubmitBarTextAlign | undefined;
|
54
54
|
tip?: string | undefined;
|
55
55
|
tipIcon?: string | undefined;
|
56
56
|
buttonText?: string | undefined;
|
@@ -67,3 +67,4 @@ export declare const SubmitBar: import("../utils").WithInstall<import("vue").Def
|
|
67
67
|
buttonType: import("..").ButtonType;
|
68
68
|
}>>;
|
69
69
|
export default SubmitBar;
|
70
|
+
export type { SubmitBarProps, SubmitBarTextAlign } from './SubmitBar';
|
package/es/tabs/Tabs.js
CHANGED
@@ -224,12 +224,6 @@ export default defineComponent({
|
|
224
224
|
disabled
|
225
225
|
} = children[index];
|
226
226
|
var name = getTabName(children[index], index);
|
227
|
-
emit('click-tab', {
|
228
|
-
name,
|
229
|
-
title,
|
230
|
-
event,
|
231
|
-
disabled
|
232
|
-
});
|
233
227
|
|
234
228
|
if (disabled) {
|
235
229
|
// @deprecated
|
@@ -248,6 +242,13 @@ export default defineComponent({
|
|
248
242
|
emit('click', name, title);
|
249
243
|
route(item);
|
250
244
|
}
|
245
|
+
|
246
|
+
emit('click-tab', {
|
247
|
+
name,
|
248
|
+
title,
|
249
|
+
event,
|
250
|
+
disabled
|
251
|
+
});
|
251
252
|
};
|
252
253
|
|
253
254
|
var onStickyScroll = params => {
|
package/lib/cascader/Cascader.js
CHANGED
@@ -199,6 +199,8 @@ var _default = (0, _vue.defineComponent)({
|
|
199
199
|
}, [options.map(option => renderOption(option, selectedOption, tabIndex))]);
|
200
200
|
|
201
201
|
var renderTab = (tab, tabIndex) => {
|
202
|
+
var _slots$optionsTop, _slots$optionsBottom;
|
203
|
+
|
202
204
|
var {
|
203
205
|
options,
|
204
206
|
selected
|
@@ -211,9 +213,11 @@ var _default = (0, _vue.defineComponent)({
|
|
211
213
|
unselected: !selected
|
212
214
|
})
|
213
215
|
}, {
|
214
|
-
default: () => [slots['options-top'] ? slots
|
215
|
-
tabIndex
|
216
|
-
})
|
216
|
+
default: () => [(_slots$optionsTop = slots['options-top']) == null ? void 0 : _slots$optionsTop.call(slots, {
|
217
|
+
tabIndex
|
218
|
+
}), renderOptions(options, selected, tabIndex), (_slots$optionsBottom = slots['options-bottom']) == null ? void 0 : _slots$optionsBottom.call(slots, {
|
219
|
+
tabIndex
|
220
|
+
})]
|
217
221
|
});
|
218
222
|
};
|
219
223
|
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
@@ -782,7 +782,7 @@ Object.keys(_uploader).forEach(function (key) {
|
|
782
782
|
if (key in exports && exports[key] === _uploader[key]) return;
|
783
783
|
exports[key] = _uploader[key];
|
784
784
|
});
|
785
|
-
var version = '3.2.
|
785
|
+
var version = '3.2.8';
|
786
786
|
exports.version = version;
|
787
787
|
|
788
788
|
function install(app) {
|
package/lib/nav-bar/NavBar.d.ts
CHANGED
@@ -13,7 +13,7 @@ declare const navBarProps: {
|
|
13
13
|
placeholder: BooleanConstructor;
|
14
14
|
safeAreaInsetTop: BooleanConstructor;
|
15
15
|
};
|
16
|
-
export declare type
|
16
|
+
export declare type NavBarProps = ExtractPropTypes<typeof navBarProps>;
|
17
17
|
declare const _default: import("vue").DefineComponent<{
|
18
18
|
title: StringConstructor;
|
19
19
|
fixed: BooleanConstructor;
|
package/lib/nav-bar/index.d.ts
CHANGED
@@ -1,3 +1,23 @@
|
|
1
|
+
import { ExtractPropTypes } from 'vue';
|
2
|
+
declare const passwordInputProps: {
|
3
|
+
info: StringConstructor;
|
4
|
+
mask: {
|
5
|
+
type: BooleanConstructor;
|
6
|
+
default: true;
|
7
|
+
};
|
8
|
+
value: {
|
9
|
+
type: import("vue").PropType<string>;
|
10
|
+
default: string;
|
11
|
+
};
|
12
|
+
gutter: (NumberConstructor | StringConstructor)[];
|
13
|
+
length: {
|
14
|
+
type: (NumberConstructor | StringConstructor)[];
|
15
|
+
default: number;
|
16
|
+
};
|
17
|
+
focused: BooleanConstructor;
|
18
|
+
errorInfo: StringConstructor;
|
19
|
+
};
|
20
|
+
export declare type PasswordInputProps = ExtractPropTypes<typeof passwordInputProps>;
|
1
21
|
declare const _default: import("vue").DefineComponent<{
|
2
22
|
info: StringConstructor;
|
3
23
|
mask: {
|
@@ -8,18 +8,19 @@ var _vue = require("vue");
|
|
8
8
|
var _utils = require("../utils");
|
9
9
|
|
10
10
|
var [name, bem] = (0, _utils.createNamespace)('password-input');
|
11
|
+
var passwordInputProps = {
|
12
|
+
info: String,
|
13
|
+
mask: _utils.truthProp,
|
14
|
+
value: (0, _utils.makeStringProp)(''),
|
15
|
+
gutter: _utils.numericProp,
|
16
|
+
length: (0, _utils.makeNumericProp)(6),
|
17
|
+
focused: Boolean,
|
18
|
+
errorInfo: String
|
19
|
+
};
|
11
20
|
|
12
21
|
var _default = (0, _vue.defineComponent)({
|
13
22
|
name,
|
14
|
-
props:
|
15
|
-
info: String,
|
16
|
-
mask: _utils.truthProp,
|
17
|
-
value: (0, _utils.makeStringProp)(''),
|
18
|
-
gutter: _utils.numericProp,
|
19
|
-
length: (0, _utils.makeNumericProp)(6),
|
20
|
-
focused: Boolean,
|
21
|
-
errorInfo: String
|
22
|
-
},
|
23
|
+
props: passwordInputProps,
|
23
24
|
emits: ['focus'],
|
24
25
|
|
25
26
|
setup(props, _ref) {
|
package/lib/progress/Progress.js
CHANGED
@@ -67,8 +67,8 @@ var _default = (0, _vue.defineComponent)({
|
|
67
67
|
height: (0, _utils.addUnit)(strokeWidth)
|
68
68
|
};
|
69
69
|
var portionStyle = {
|
70
|
-
|
71
|
-
|
70
|
+
width: percentage + "%",
|
71
|
+
background: background.value
|
72
72
|
};
|
73
73
|
return (0, _vue.createVNode)("div", {
|
74
74
|
"class": bem(),
|
@@ -1,5 +1,6 @@
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
2
2
|
import { ButtonType } from '../button';
|
3
|
+
export declare type SubmitBarTextAlign = 'left' | 'right';
|
3
4
|
declare const submitBarProps: {
|
4
5
|
tip: StringConstructor;
|
5
6
|
label: StringConstructor;
|
@@ -11,7 +12,7 @@ declare const submitBarProps: {
|
|
11
12
|
default: string;
|
12
13
|
};
|
13
14
|
disabled: BooleanConstructor;
|
14
|
-
textAlign: PropType<
|
15
|
+
textAlign: PropType<SubmitBarTextAlign>;
|
15
16
|
buttonText: StringConstructor;
|
16
17
|
buttonType: {
|
17
18
|
type: PropType<ButtonType>;
|
@@ -40,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
40
41
|
default: string;
|
41
42
|
};
|
42
43
|
disabled: BooleanConstructor;
|
43
|
-
textAlign: PropType<
|
44
|
+
textAlign: PropType<SubmitBarTextAlign>;
|
44
45
|
buttonText: StringConstructor;
|
45
46
|
buttonType: {
|
46
47
|
type: PropType<ButtonType>;
|
@@ -81,7 +82,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
81
82
|
} & {
|
82
83
|
label?: string | undefined;
|
83
84
|
price?: number | undefined;
|
84
|
-
textAlign?:
|
85
|
+
textAlign?: SubmitBarTextAlign | undefined;
|
85
86
|
tip?: string | undefined;
|
86
87
|
tipIcon?: string | undefined;
|
87
88
|
buttonText?: string | undefined;
|
@@ -9,7 +9,7 @@ export declare const SubmitBar: import("../utils").WithInstall<import("vue").Def
|
|
9
9
|
default: string;
|
10
10
|
};
|
11
11
|
disabled: BooleanConstructor;
|
12
|
-
textAlign: import("vue").PropType<import("
|
12
|
+
textAlign: import("vue").PropType<import("./SubmitBar").SubmitBarTextAlign>;
|
13
13
|
buttonText: StringConstructor;
|
14
14
|
buttonType: {
|
15
15
|
type: import("vue").PropType<import("..").ButtonType>;
|
@@ -50,7 +50,7 @@ export declare const SubmitBar: import("../utils").WithInstall<import("vue").Def
|
|
50
50
|
} & {
|
51
51
|
label?: string | undefined;
|
52
52
|
price?: number | undefined;
|
53
|
-
textAlign?: import("
|
53
|
+
textAlign?: import("./SubmitBar").SubmitBarTextAlign | undefined;
|
54
54
|
tip?: string | undefined;
|
55
55
|
tipIcon?: string | undefined;
|
56
56
|
buttonText?: string | undefined;
|
@@ -67,3 +67,4 @@ export declare const SubmitBar: import("../utils").WithInstall<import("vue").Def
|
|
67
67
|
buttonType: import("..").ButtonType;
|
68
68
|
}>>;
|
69
69
|
export default SubmitBar;
|
70
|
+
export type { SubmitBarProps, SubmitBarTextAlign } from './SubmitBar';
|
package/lib/tabs/Tabs.js
CHANGED
@@ -242,12 +242,6 @@ var _default = (0, _vue.defineComponent)({
|
|
242
242
|
disabled
|
243
243
|
} = children[index];
|
244
244
|
var name = getTabName(children[index], index);
|
245
|
-
emit('click-tab', {
|
246
|
-
name,
|
247
|
-
title,
|
248
|
-
event,
|
249
|
-
disabled
|
250
|
-
});
|
251
245
|
|
252
246
|
if (disabled) {
|
253
247
|
// @deprecated
|
@@ -266,6 +260,13 @@ var _default = (0, _vue.defineComponent)({
|
|
266
260
|
emit('click', name, title);
|
267
261
|
(0, _useRoute.route)(item);
|
268
262
|
}
|
263
|
+
|
264
|
+
emit('click-tab', {
|
265
|
+
name,
|
266
|
+
title,
|
267
|
+
event,
|
268
|
+
disabled
|
269
|
+
});
|
269
270
|
};
|
270
271
|
|
271
272
|
var onStickyScroll = params => {
|