vant 4.0.10 → 4.1.0
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 +15 -10
- package/es/back-top/BackTop.d.ts +3 -0
- package/es/back-top/BackTop.mjs +3 -2
- package/es/back-top/index.css +1 -1
- package/es/back-top/index.d.ts +2 -0
- package/es/back-top/types.d.ts +3 -0
- package/es/dropdown-item/DropdownItem.mjs +1 -0
- package/es/dropdown-menu/DropdownMenu.mjs +2 -2
- package/es/dropdown-menu/types.d.ts +1 -0
- package/es/field/index.css +1 -1
- package/es/index.d.ts +2 -1
- package/es/index.mjs +4 -1
- package/es/locale/lang/uk-UA.mjs +15 -15
- package/es/picker/PickerColumn.mjs +1 -1
- package/es/picker-group/PickerGroup.mjs +5 -4
- package/es/popover/Popover.mjs +9 -1
- package/es/popover/index.css +1 -1
- package/es/space/Space.mjs +2 -2
- package/es/swipe/Swipe.mjs +6 -2
- package/es/tabs/Tabs.mjs +2 -0
- package/es/text-ellipsis/TextEllipsis.d.ts +63 -0
- package/es/text-ellipsis/TextEllipsis.mjs +108 -0
- package/es/text-ellipsis/index.css +1 -0
- package/es/text-ellipsis/index.d.ts +51 -0
- package/es/text-ellipsis/index.mjs +10 -0
- package/es/text-ellipsis/style/index.d.ts +1 -0
- package/es/text-ellipsis/style/index.mjs +2 -0
- package/es/text-ellipsis/types.d.ts +3 -0
- package/es/text-ellipsis/types.mjs +0 -0
- package/es/tree-select/TreeSelect.mjs +3 -2
- package/lib/back-top/BackTop.d.ts +3 -0
- package/lib/back-top/BackTop.js +2 -1
- package/lib/back-top/index.css +1 -1
- package/lib/back-top/index.d.ts +2 -0
- package/lib/back-top/types.d.ts +3 -0
- package/lib/dropdown-item/DropdownItem.js +1 -0
- package/lib/dropdown-menu/DropdownMenu.js +2 -2
- package/lib/dropdown-menu/types.d.ts +1 -0
- package/lib/field/index.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.js +4 -1
- package/lib/locale/lang/uk-UA.js +15 -15
- package/lib/picker/PickerColumn.js +1 -1
- package/lib/picker-group/PickerGroup.js +3 -2
- package/lib/popover/Popover.js +8 -0
- package/lib/popover/index.css +1 -1
- package/lib/space/Space.js +1 -1
- package/lib/swipe/Swipe.js +6 -2
- package/lib/tabs/Tabs.js +2 -0
- package/lib/text-ellipsis/TextEllipsis.d.ts +63 -0
- package/lib/text-ellipsis/TextEllipsis.js +127 -0
- package/lib/text-ellipsis/index.css +1 -0
- package/lib/text-ellipsis/index.d.ts +51 -0
- package/lib/text-ellipsis/index.js +35 -0
- package/lib/text-ellipsis/style/index.d.ts +1 -0
- package/lib/text-ellipsis/style/index.js +2 -0
- package/lib/text-ellipsis/types.d.ts +3 -0
- package/lib/text-ellipsis/types.js +15 -0
- package/lib/tree-select/TreeSelect.js +3 -2
- package/lib/vant.cjs.js +970 -849
- package/lib/vant.es.js +966 -845
- package/lib/vant.js +984 -850
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +2 -2
@@ -0,0 +1,108 @@
|
|
1
|
+
import { createVNode as _createVNode } from "vue";
|
2
|
+
import { ref, watch, onMounted, defineComponent } from "vue";
|
3
|
+
import { useEventListener } from "@vant/use";
|
4
|
+
import { makeNumericProp, makeStringProp, createNamespace } from "../utils/index.mjs";
|
5
|
+
const [name, bem] = createNamespace("text-ellipsis");
|
6
|
+
const textEllipsisProps = {
|
7
|
+
rows: makeNumericProp(1),
|
8
|
+
content: makeStringProp(""),
|
9
|
+
expandText: makeStringProp(""),
|
10
|
+
collapseText: makeStringProp("")
|
11
|
+
};
|
12
|
+
var stdin_default = defineComponent({
|
13
|
+
name,
|
14
|
+
props: textEllipsisProps,
|
15
|
+
emits: ["clickAction"],
|
16
|
+
setup(props, {
|
17
|
+
emit
|
18
|
+
}) {
|
19
|
+
const text = ref("");
|
20
|
+
const expanded = ref(false);
|
21
|
+
const hasAction = ref(false);
|
22
|
+
const root = ref();
|
23
|
+
const pxToNum = (value) => {
|
24
|
+
if (!value)
|
25
|
+
return 0;
|
26
|
+
const match = value.match(/^\d*(\.\d*)?/);
|
27
|
+
return match ? Number(match[0]) : 0;
|
28
|
+
};
|
29
|
+
const calcEllipsised = () => {
|
30
|
+
const cloneContainer = () => {
|
31
|
+
if (!root.value)
|
32
|
+
return;
|
33
|
+
const originStyle = window.getComputedStyle(root.value);
|
34
|
+
const container2 = document.createElement("div");
|
35
|
+
const styleNames = Array.prototype.slice.apply(originStyle);
|
36
|
+
styleNames.forEach((name2) => {
|
37
|
+
container2.style.setProperty(name2, originStyle.getPropertyValue(name2));
|
38
|
+
});
|
39
|
+
container2.style.position = "fixed";
|
40
|
+
container2.style.zIndex = "-9999";
|
41
|
+
container2.style.top = "-9999px";
|
42
|
+
container2.style.height = "auto";
|
43
|
+
container2.style.minHeight = "auto";
|
44
|
+
container2.style.maxHeight = "auto";
|
45
|
+
container2.innerText = props.content;
|
46
|
+
document.body.appendChild(container2);
|
47
|
+
return container2;
|
48
|
+
};
|
49
|
+
const calcEllipsisText = (container2, maxHeight2) => {
|
50
|
+
const {
|
51
|
+
content,
|
52
|
+
expandText
|
53
|
+
} = props;
|
54
|
+
const dot = "...";
|
55
|
+
let left = 0;
|
56
|
+
let right = content.length;
|
57
|
+
let res = -1;
|
58
|
+
while (left <= right) {
|
59
|
+
const mid = Math.floor((left + right) / 2);
|
60
|
+
container2.innerText = content.slice(0, mid) + dot + expandText;
|
61
|
+
if (container2.offsetHeight <= maxHeight2) {
|
62
|
+
left = mid + 1;
|
63
|
+
res = mid;
|
64
|
+
} else {
|
65
|
+
right = mid - 1;
|
66
|
+
}
|
67
|
+
}
|
68
|
+
return content.slice(0, res) + dot;
|
69
|
+
};
|
70
|
+
const container = cloneContainer();
|
71
|
+
if (!container)
|
72
|
+
return;
|
73
|
+
const {
|
74
|
+
paddingBottom,
|
75
|
+
paddingTop,
|
76
|
+
lineHeight
|
77
|
+
} = container.style;
|
78
|
+
const maxHeight = (Number(props.rows) + 0.5) * pxToNum(lineHeight) + pxToNum(paddingTop) + pxToNum(paddingBottom);
|
79
|
+
if (maxHeight < container.offsetHeight) {
|
80
|
+
hasAction.value = true;
|
81
|
+
text.value = calcEllipsisText(container, maxHeight);
|
82
|
+
} else {
|
83
|
+
hasAction.value = false;
|
84
|
+
text.value = props.content;
|
85
|
+
}
|
86
|
+
document.body.removeChild(container);
|
87
|
+
};
|
88
|
+
const onClickAction = (event) => {
|
89
|
+
expanded.value = !expanded.value;
|
90
|
+
emit("clickAction", event);
|
91
|
+
};
|
92
|
+
const renderAction = () => _createVNode("span", {
|
93
|
+
"class": bem("action"),
|
94
|
+
"onClick": onClickAction
|
95
|
+
}, [expanded.value ? props.collapseText : props.expandText]);
|
96
|
+
onMounted(calcEllipsised);
|
97
|
+
watch(() => [props.content, props.rows], calcEllipsised);
|
98
|
+
useEventListener("resize", calcEllipsised);
|
99
|
+
return () => _createVNode("div", {
|
100
|
+
"ref": root,
|
101
|
+
"class": bem()
|
102
|
+
}, [expanded.value ? props.content : text.value, hasAction.value ? renderAction() : null]);
|
103
|
+
}
|
104
|
+
});
|
105
|
+
export {
|
106
|
+
stdin_default as default,
|
107
|
+
textEllipsisProps
|
108
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
:root{--van-text-ellipsis-line-height: 1.6;--van-text-ellipsis-action-color: var(--van-blue)}.van-text-ellipsis{line-height:var(--van-text-ellipsis-line-height);white-space:pre-wrap}.van-text-ellipsis__action{cursor:pointer;color:var(--van-text-ellipsis-action-color)}.van-text-ellipsis__action:active{opacity:var(--van-active-opacity)}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
export declare const TextEllipsis: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
|
+
rows: {
|
3
|
+
type: (NumberConstructor | StringConstructor)[];
|
4
|
+
default: number;
|
5
|
+
};
|
6
|
+
content: {
|
7
|
+
type: import("vue").PropType<string>;
|
8
|
+
default: string;
|
9
|
+
};
|
10
|
+
expandText: {
|
11
|
+
type: import("vue").PropType<string>;
|
12
|
+
default: string;
|
13
|
+
};
|
14
|
+
collapseText: {
|
15
|
+
type: import("vue").PropType<string>;
|
16
|
+
default: string;
|
17
|
+
};
|
18
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clickAction"[], "clickAction", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
19
|
+
rows: {
|
20
|
+
type: (NumberConstructor | StringConstructor)[];
|
21
|
+
default: number;
|
22
|
+
};
|
23
|
+
content: {
|
24
|
+
type: import("vue").PropType<string>;
|
25
|
+
default: string;
|
26
|
+
};
|
27
|
+
expandText: {
|
28
|
+
type: import("vue").PropType<string>;
|
29
|
+
default: string;
|
30
|
+
};
|
31
|
+
collapseText: {
|
32
|
+
type: import("vue").PropType<string>;
|
33
|
+
default: string;
|
34
|
+
};
|
35
|
+
}>> & {
|
36
|
+
onClickAction?: ((...args: any[]) => any) | undefined;
|
37
|
+
}, {
|
38
|
+
content: string;
|
39
|
+
rows: string | number;
|
40
|
+
expandText: string;
|
41
|
+
collapseText: string;
|
42
|
+
}>>;
|
43
|
+
export default TextEllipsis;
|
44
|
+
export { textEllipsisProps } from './TextEllipsis';
|
45
|
+
export type { TextEllipsisProps } from './TextEllipsis';
|
46
|
+
export type { TextEllipsisThemeVars } from './types';
|
47
|
+
declare module 'vue' {
|
48
|
+
interface GlobalComponents {
|
49
|
+
VanTextEllipsis: typeof TextEllipsis;
|
50
|
+
}
|
51
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { withInstall } from "../utils/index.mjs";
|
2
|
+
import _TextEllipsis from "./TextEllipsis.mjs";
|
3
|
+
const TextEllipsis = withInstall(_TextEllipsis);
|
4
|
+
var stdin_default = TextEllipsis;
|
5
|
+
import { textEllipsisProps } from "./TextEllipsis.mjs";
|
6
|
+
export {
|
7
|
+
TextEllipsis,
|
8
|
+
stdin_default as default,
|
9
|
+
textEllipsisProps
|
10
|
+
};
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
File without changes
|
@@ -64,12 +64,13 @@ var stdin_default = defineComponent({
|
|
64
64
|
const renderSidebar = () => {
|
65
65
|
const Items = props.items.map((item) => _createVNode(SidebarItem, {
|
66
66
|
"dot": item.dot,
|
67
|
-
"title": item.text,
|
68
67
|
"badge": item.badge,
|
69
68
|
"class": [bem("nav-item"), item.className],
|
70
69
|
"disabled": item.disabled,
|
71
70
|
"onClick": onClickSidebarItem
|
72
|
-
},
|
71
|
+
}, {
|
72
|
+
title: () => slots["nav-text"] ? slots["nav-text"](item) : item.text
|
73
|
+
}));
|
73
74
|
return _createVNode(Sidebar, {
|
74
75
|
"class": bem("nav"),
|
75
76
|
"modelValue": props.mainActiveIndex,
|
@@ -2,6 +2,7 @@ import { type PropType, type ExtractPropTypes } from 'vue';
|
|
2
2
|
export declare const backTopProps: {
|
3
3
|
right: (NumberConstructor | StringConstructor)[];
|
4
4
|
bottom: (NumberConstructor | StringConstructor)[];
|
5
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
5
6
|
target: PropType<string | import("vue").RendererElement | null | undefined>;
|
6
7
|
offset: {
|
7
8
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -17,6 +18,7 @@ export type BackTopProps = ExtractPropTypes<typeof backTopProps>;
|
|
17
18
|
declare const _default: import("vue").DefineComponent<{
|
18
19
|
right: (NumberConstructor | StringConstructor)[];
|
19
20
|
bottom: (NumberConstructor | StringConstructor)[];
|
21
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
20
22
|
target: PropType<string | import("vue").RendererElement | null | undefined>;
|
21
23
|
offset: {
|
22
24
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -30,6 +32,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
30
32
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
31
33
|
right: (NumberConstructor | StringConstructor)[];
|
32
34
|
bottom: (NumberConstructor | StringConstructor)[];
|
35
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
33
36
|
target: PropType<string | import("vue").RendererElement | null | undefined>;
|
34
37
|
offset: {
|
35
38
|
type: (NumberConstructor | StringConstructor)[];
|
package/lib/back-top/BackTop.js
CHANGED
@@ -31,6 +31,7 @@ const [name, bem] = (0, import_utils.createNamespace)("back-top");
|
|
31
31
|
const backTopProps = {
|
32
32
|
right: import_utils.numericProp,
|
33
33
|
bottom: import_utils.numericProp,
|
34
|
+
zIndex: import_utils.numericProp,
|
34
35
|
target: [String, Object],
|
35
36
|
offset: (0, import_utils.makeNumericProp)(200),
|
36
37
|
immediate: Boolean,
|
@@ -52,7 +53,7 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
52
53
|
const show = (0, import_vue2.ref)(false);
|
53
54
|
const root = (0, import_vue2.ref)();
|
54
55
|
const scrollParent = (0, import_vue2.ref)();
|
55
|
-
const style = (0, import_vue2.computed)(() => ({
|
56
|
+
const style = (0, import_vue2.computed)(() => (0, import_utils.extend)((0, import_utils.getZIndexStyle)(props.zIndex), {
|
56
57
|
right: (0, import_utils.addUnit)(props.right),
|
57
58
|
bottom: (0, import_utils.addUnit)(props.bottom)
|
58
59
|
}));
|
package/lib/back-top/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-back-top-size: 40px;--van-back-top-right: 30px;--van-back-top-bottom: 40px;--van-back-top-icon-size: 20px;--van-back-top-text-color: #fff;--van-back-top-background: var(--van-blue)}.van-back-top{position:fixed;display:flex;align-items:center;justify-content:center;width:var(--van-back-top-size);height:var(--van-back-top-size);right:var(--van-back-top-right);bottom:var(--van-back-top-bottom);cursor:pointer;color:var(--van-back-top-text-color);border-radius:var(--van-radius-max);box-shadow:0 2px 8px rgba(0,0,0,.12);transform:scale(0);transition:var(--van-duration-base) cubic-bezier(.25,.8,.5,1);background-color:var(--van-back-top-background)}.van-back-top:active{opacity:var(--van-active-opacity)}.van-back-top--active{transform:scale(1)}.van-back-top__icon{font-size:var(--van-back-top-icon-size);font-weight:var(--van-font-bold)}
|
1
|
+
:root{--van-back-top-size: 40px;--van-back-top-right: 30px;--van-back-top-bottom: 40px;--van-back-top-z-index: 100;--van-back-top-icon-size: 20px;--van-back-top-text-color: #fff;--van-back-top-background: var(--van-blue)}.van-back-top{position:fixed;display:flex;align-items:center;justify-content:center;width:var(--van-back-top-size);height:var(--van-back-top-size);right:var(--van-back-top-right);bottom:var(--van-back-top-bottom);z-index:var(--van-back-top-z-index);cursor:pointer;color:var(--van-back-top-text-color);border-radius:var(--van-radius-max);box-shadow:0 2px 8px rgba(0,0,0,.12);transform:scale(0);transition:var(--van-duration-base) cubic-bezier(.25,.8,.5,1);background-color:var(--van-back-top-background)}.van-back-top:active{opacity:var(--van-active-opacity)}.van-back-top--active{transform:scale(1)}.van-back-top__icon{font-size:var(--van-back-top-icon-size);font-weight:var(--van-font-bold)}
|
package/lib/back-top/index.d.ts
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
export declare const BackTop: import("../utils").WithInstall<import("vue").DefineComponent<{
|
2
2
|
right: (NumberConstructor | StringConstructor)[];
|
3
3
|
bottom: (NumberConstructor | StringConstructor)[];
|
4
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
4
5
|
target: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
5
6
|
offset: {
|
6
7
|
type: (NumberConstructor | StringConstructor)[];
|
@@ -14,6 +15,7 @@ export declare const BackTop: import("../utils").WithInstall<import("vue").Defin
|
|
14
15
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
15
16
|
right: (NumberConstructor | StringConstructor)[];
|
16
17
|
bottom: (NumberConstructor | StringConstructor)[];
|
18
|
+
zIndex: (NumberConstructor | StringConstructor)[];
|
17
19
|
target: import("vue").PropType<string | import("vue").RendererElement | null | undefined>;
|
18
20
|
offset: {
|
19
21
|
type: (NumberConstructor | StringConstructor)[];
|
package/lib/back-top/types.d.ts
CHANGED
@@ -86,7 +86,6 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
86
86
|
const toggleItem = (active) => {
|
87
87
|
children.forEach((item, index) => {
|
88
88
|
if (index === active) {
|
89
|
-
updateOffset();
|
90
89
|
item.toggle();
|
91
90
|
} else if (item.state.showPopup) {
|
92
91
|
item.toggle(false, {
|
@@ -132,7 +131,8 @@ var stdin_default = (0, import_vue2.defineComponent)({
|
|
132
131
|
linkChildren({
|
133
132
|
id,
|
134
133
|
props,
|
135
|
-
offset
|
134
|
+
offset,
|
135
|
+
updateOffset
|
136
136
|
});
|
137
137
|
(0, import_use.useClickAway)(root, onClickAway);
|
138
138
|
(0, import_use.useEventListener)("scroll", onScroll, {
|
package/lib/field/index.css
CHANGED
@@ -1 +1 @@
|
|
1
|
-
:root{--van-field-label-width: 6.2em;--van-field-label-color: var(--van-text-color);--van-field-label-margin-right: var(--van-padding-sm);--van-field-input-text-color: var(--van-text-color);--van-field-input-error-text-color: var(--van-danger-color);--van-field-input-disabled-text-color: var(--van-text-color-3);--van-field-placeholder-text-color: var(--van-text-color-3);--van-field-icon-size: 16px;--van-field-clear-icon-size: 16px;--van-field-clear-icon-color: var(--van-gray-5);--van-field-right-icon-color: var(--van-gray-6);--van-field-error-message-color: var(--van-danger-color);--van-field-error-message-font-size: 12px;--van-field-text-area-min-height: 60px;--van-field-word-limit-color: var(--van-gray-7);--van-field-word-limit-font-size: var(--van-font-size-sm);--van-field-word-limit-line-height: 16px;--van-field-disabled-text-color: var(--van-text-color-3);--van-field-required-mark-color: var(--van-red)}.van-field{flex-wrap:wrap}.van-field__label{flex:none;box-sizing:border-box;width:var(--van-field-label-width);margin-right:var(--van-field-label-margin-right);color:var(--van-field-label-color);text-align:left;word-wrap:break-word}.van-field__label--center{text-align:center}.van-field__label--right{text-align:right}.van-field__label--top{
|
1
|
+
:root{--van-field-label-width: 6.2em;--van-field-label-color: var(--van-text-color);--van-field-label-margin-right: var(--van-padding-sm);--van-field-input-text-color: var(--van-text-color);--van-field-input-error-text-color: var(--van-danger-color);--van-field-input-disabled-text-color: var(--van-text-color-3);--van-field-placeholder-text-color: var(--van-text-color-3);--van-field-icon-size: 16px;--van-field-clear-icon-size: 16px;--van-field-clear-icon-color: var(--van-gray-5);--van-field-right-icon-color: var(--van-gray-6);--van-field-error-message-color: var(--van-danger-color);--van-field-error-message-font-size: 12px;--van-field-text-area-min-height: 60px;--van-field-word-limit-color: var(--van-gray-7);--van-field-word-limit-font-size: var(--van-font-size-sm);--van-field-word-limit-line-height: 16px;--van-field-disabled-text-color: var(--van-text-color-3);--van-field-required-mark-color: var(--van-red)}.van-field{flex-wrap:wrap}.van-field--label-top .van-field__value{flex:none;width:100%}.van-field__label{flex:none;box-sizing:border-box;width:var(--van-field-label-width);margin-right:var(--van-field-label-margin-right);color:var(--van-field-label-color);text-align:left;word-wrap:break-word}.van-field__label--center{text-align:center}.van-field__label--right{text-align:right}.van-field__label--top{margin-bottom:var(--van-padding-base)}.van-field__label--required:before{margin-right:2px;color:var(--van-field-required-mark-color);content:"*"}.van-field--disabled .van-field__label{color:var(--van-field-disabled-text-color)}.van-field__value{overflow:visible}.van-field__body{display:flex;align-items:center}.van-field__control{display:block;box-sizing:border-box;width:100%;min-width:0;margin:0;padding:0;color:var(--van-field-input-text-color);line-height:inherit;text-align:left;background-color:transparent;border:0;resize:none;-webkit-user-select:auto;user-select:auto}.van-field__control::-webkit-input-placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control::placeholder{color:var(--van-field-placeholder-text-color)}.van-field__control:disabled{color:var(--van-field-input-disabled-text-color);cursor:not-allowed;opacity:1;-webkit-text-fill-color:var(--van-field-input-disabled-text-color)}.van-field__control:read-only{cursor:default}.van-field__control--center{justify-content:center;text-align:center}.van-field__control--right{justify-content:flex-end;text-align:right}.van-field__control--custom{display:flex;align-items:center;min-height:var(--van-cell-line-height)}.van-field__control--error::-webkit-input-placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--error,.van-field__control--error::placeholder{color:var(--van-field-input-error-text-color);-webkit-text-fill-color:currentColor}.van-field__control--min-height{min-height:var(--van-field-text-area-min-height)}.van-field__control[type=date],.van-field__control[type=time],.van-field__control[type=datetime-local]{min-height:var(--van-cell-line-height)}.van-field__control[type=search]{-webkit-appearance:none}.van-field__clear,.van-field__icon,.van-field__button,.van-field__right-icon{flex-shrink:0}.van-field__clear,.van-field__right-icon{margin-right:calc(var(--van-padding-xs) * -1);padding:0 var(--van-padding-xs);line-height:inherit}.van-field__clear{color:var(--van-field-clear-icon-color);font-size:var(--van-field-clear-icon-size);cursor:pointer}.van-field__left-icon .van-icon,.van-field__right-icon .van-icon{display:block;font-size:var(--van-field-icon-size);line-height:inherit}.van-field__left-icon{margin-right:var(--van-padding-base)}.van-field__right-icon{color:var(--van-field-right-icon-color)}.van-field__button{padding-left:var(--van-padding-xs)}.van-field__error-message{color:var(--van-field-error-message-color);font-size:var(--van-field-error-message-font-size);text-align:left}.van-field__error-message--center{text-align:center}.van-field__error-message--right{text-align:right}.van-field__word-limit{margin-top:var(--van-padding-base);color:var(--van-field-word-limit-color);font-size:var(--van-field-word-limit-font-size);line-height:var(--van-field-word-limit-line-height);text-align:right}
|