vant 4.9.6 → 4.9.7
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/dropdown-item/DropdownItem.mjs +1 -0
- package/es/dropdown-menu/DropdownMenu.mjs +1 -0
- package/es/empty/Empty.mjs +39 -18
- package/es/field/Field.mjs +2 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/search/Search.mjs +2 -1
- package/es/tab/Tab.mjs +4 -2
- package/es/tab/TabTitle.mjs +2 -1
- package/lib/dropdown-item/DropdownItem.js +1 -0
- package/lib/dropdown-menu/DropdownMenu.js +1 -0
- package/lib/empty/Empty.js +39 -18
- package/lib/field/Field.js +2 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/search/Search.js +2 -1
- package/lib/tab/Tab.js +4 -2
- package/lib/tab/TabTitle.js +2 -1
- package/lib/vant.cjs.js +52 -23
- package/lib/vant.es.js +52 -23
- package/lib/vant.js +52 -23
- package/lib/vant.min.js +2 -2
- package/lib/web-types.json +1 -1
- package/package.json +6 -6
@@ -165,6 +165,7 @@ var stdin_default = defineComponent({
|
|
165
165
|
position: "absolute"
|
166
166
|
},
|
167
167
|
"aria-labelledby": `${parent.id}-${index.value}`,
|
168
|
+
"data-allow-mismatch": "attribute",
|
168
169
|
"closeOnClickOverlay": closeOnClickOverlay,
|
169
170
|
"onOpen": onOpen,
|
170
171
|
"onClose": onClose,
|
package/es/empty/Empty.mjs
CHANGED
@@ -44,22 +44,26 @@ var stdin_default = defineComponent({
|
|
44
44
|
"fx": "50%",
|
45
45
|
"fy": "54%",
|
46
46
|
"r": "297%",
|
47
|
-
"gradientTransform": "matrix(-.16 0 0 -.33 .58 .72)"
|
47
|
+
"gradientTransform": "matrix(-.16 0 0 -.33 .58 .72)",
|
48
|
+
"data-allow-mismatch": "attribute"
|
48
49
|
}, [renderStop("#EBEDF0", 0), renderStop("#F2F3F5", 100, 0.3)])]), _createVNode("ellipse", {
|
49
50
|
"fill": getUrlById(id),
|
50
51
|
"opacity": ".8",
|
51
52
|
"cx": "80",
|
52
53
|
"cy": "140",
|
53
54
|
"rx": "46",
|
54
|
-
"ry": "8"
|
55
|
+
"ry": "8",
|
56
|
+
"data-allow-mismatch": "attribute"
|
55
57
|
}, null)];
|
56
58
|
const renderBuilding = () => [_createVNode("defs", null, [_createVNode("linearGradient", {
|
57
59
|
"id": getId("a"),
|
58
60
|
"x1": "64%",
|
59
61
|
"y1": "100%",
|
60
|
-
"x2": "64%"
|
62
|
+
"x2": "64%",
|
63
|
+
"data-allow-mismatch": "attribute"
|
61
64
|
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)])]), _createVNode("g", {
|
62
|
-
"opacity": ".8"
|
65
|
+
"opacity": ".8",
|
66
|
+
"data-allow-mismatch": "children"
|
63
67
|
}, [_createVNode("path", {
|
64
68
|
"d": "M36 131V53H16v20H2v58h34z",
|
65
69
|
"fill": getUrlById("a")
|
@@ -72,9 +76,11 @@ var stdin_default = defineComponent({
|
|
72
76
|
"x1": "64%",
|
73
77
|
"y1": "97%",
|
74
78
|
"x2": "64%",
|
75
|
-
"y2": "0%"
|
79
|
+
"y2": "0%",
|
80
|
+
"data-allow-mismatch": "attribute"
|
76
81
|
}, [renderStop("#F2F3F5", 0, 0.3), renderStop("#F2F3F5", 100)])]), _createVNode("g", {
|
77
|
-
"opacity": ".8"
|
82
|
+
"opacity": ".8",
|
83
|
+
"data-allow-mismatch": "children"
|
78
84
|
}, [_createVNode("path", {
|
79
85
|
"d": "M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",
|
80
86
|
"fill": getUrlById("b")
|
@@ -84,7 +90,9 @@ var stdin_default = defineComponent({
|
|
84
90
|
}, null)])];
|
85
91
|
const renderNetwork = () => _createVNode("svg", {
|
86
92
|
"viewBox": "0 0 160 160"
|
87
|
-
}, [_createVNode("defs",
|
93
|
+
}, [_createVNode("defs", {
|
94
|
+
"data-allow-mismatch": "children"
|
95
|
+
}, [_createVNode("linearGradient", {
|
88
96
|
"id": getId(1),
|
89
97
|
"x1": "64%",
|
90
98
|
"y1": "100%",
|
@@ -111,14 +119,17 @@ var stdin_default = defineComponent({
|
|
111
119
|
"fill": "none"
|
112
120
|
}, [renderBuilding(), _createVNode("path", {
|
113
121
|
"fill": getUrlById(4),
|
114
|
-
"d": "M0 139h160v21H0z"
|
122
|
+
"d": "M0 139h160v21H0z",
|
123
|
+
"data-allow-mismatch": "attribute"
|
115
124
|
}, null), _createVNode("path", {
|
116
125
|
"d": "M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",
|
117
|
-
"fill": getUrlById(2)
|
126
|
+
"fill": getUrlById(2),
|
127
|
+
"data-allow-mismatch": "attribute"
|
118
128
|
}, null), _createVNode("g", {
|
119
129
|
"opacity": ".6",
|
120
130
|
"stroke-linecap": "round",
|
121
|
-
"stroke-width": "7"
|
131
|
+
"stroke-width": "7",
|
132
|
+
"data-allow-mismatch": "children"
|
122
133
|
}, [_createVNode("path", {
|
123
134
|
"d": "M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",
|
124
135
|
"stroke": getUrlById(3)
|
@@ -155,7 +166,9 @@ var stdin_default = defineComponent({
|
|
155
166
|
}, null)])])]);
|
156
167
|
const renderMaterial = () => _createVNode("svg", {
|
157
168
|
"viewBox": "0 0 160 160"
|
158
|
-
}, [_createVNode("defs",
|
169
|
+
}, [_createVNode("defs", {
|
170
|
+
"data-allow-mismatch": "children"
|
171
|
+
}, [_createVNode("linearGradient", {
|
159
172
|
"x1": "50%",
|
160
173
|
"x2": "50%",
|
161
174
|
"y2": "100%",
|
@@ -188,7 +201,8 @@ var stdin_default = defineComponent({
|
|
188
201
|
"fill": getUrlById(5),
|
189
202
|
"width": "64",
|
190
203
|
"height": "66",
|
191
|
-
"rx": "2"
|
204
|
+
"rx": "2",
|
205
|
+
"data-allow-mismatch": "attribute"
|
192
206
|
}, null), _createVNode("rect", {
|
193
207
|
"fill": "#FFF",
|
194
208
|
"x": "6",
|
@@ -198,7 +212,8 @@ var stdin_default = defineComponent({
|
|
198
212
|
"rx": "1"
|
199
213
|
}, null), _createVNode("g", {
|
200
214
|
"transform": "translate(15 17)",
|
201
|
-
"fill": getUrlById(6)
|
215
|
+
"fill": getUrlById(6),
|
216
|
+
"data-allow-mismatch": "attribute"
|
202
217
|
}, [_createVNode("rect", {
|
203
218
|
"width": "34",
|
204
219
|
"height": "6",
|
@@ -215,7 +230,8 @@ var stdin_default = defineComponent({
|
|
215
230
|
"y": "61",
|
216
231
|
"width": "88",
|
217
232
|
"height": "28",
|
218
|
-
"rx": "1"
|
233
|
+
"rx": "1",
|
234
|
+
"data-allow-mismatch": "attribute"
|
219
235
|
}, null), _createVNode("rect", {
|
220
236
|
"fill": "#F7F8FA",
|
221
237
|
"x": "29",
|
@@ -230,14 +246,18 @@ var stdin_default = defineComponent({
|
|
230
246
|
"x1": "50%",
|
231
247
|
"x2": "50%",
|
232
248
|
"y2": "100%",
|
233
|
-
"id": getId(8)
|
249
|
+
"id": getId(8),
|
250
|
+
"data-allow-mismatch": "attribute"
|
234
251
|
}, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), renderShadow("c"), _createVNode("path", {
|
235
252
|
"d": "m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",
|
236
|
-
"fill": getUrlById(8)
|
253
|
+
"fill": getUrlById(8),
|
254
|
+
"data-allow-mismatch": "attribute"
|
237
255
|
}, null)]);
|
238
256
|
const renderSearch = () => _createVNode("svg", {
|
239
257
|
"viewBox": "0 0 160 160"
|
240
|
-
}, [_createVNode("defs",
|
258
|
+
}, [_createVNode("defs", {
|
259
|
+
"data-allow-mismatch": "children"
|
260
|
+
}, [_createVNode("linearGradient", {
|
241
261
|
"x1": "50%",
|
242
262
|
"y1": "100%",
|
243
263
|
"x2": "50%",
|
@@ -259,7 +279,8 @@ var stdin_default = defineComponent({
|
|
259
279
|
"id": getId(12)
|
260
280
|
}, [renderStops("#FFF", "#F7F8FA")])]), renderBuilding(), renderCloud(), renderShadow("d"), _createVNode("g", {
|
261
281
|
"transform": "rotate(-45 113 -4)",
|
262
|
-
"fill": "none"
|
282
|
+
"fill": "none",
|
283
|
+
"data-allow-mismatch": "children"
|
263
284
|
}, [_createVNode("rect", {
|
264
285
|
"fill": getUrlById(9),
|
265
286
|
"x": "24",
|
package/es/field/Field.mjs
CHANGED
@@ -377,6 +377,7 @@ var stdin_default = defineComponent({
|
|
377
377
|
enterkeyhint: props.enterkeyhint,
|
378
378
|
spellcheck: props.spellcheck,
|
379
379
|
"aria-labelledby": props.label ? `${id}-label` : void 0,
|
380
|
+
"data-allow-mismatch": "attribute",
|
380
381
|
onBlur,
|
381
382
|
onFocus,
|
382
383
|
onInput,
|
@@ -451,6 +452,7 @@ var stdin_default = defineComponent({
|
|
451
452
|
return _createVNode("label", {
|
452
453
|
"id": `${id}-label`,
|
453
454
|
"for": slots.input ? void 0 : getInputId(),
|
455
|
+
"data-allow-mismatch": "attribute",
|
454
456
|
"onClick": (event) => {
|
455
457
|
preventDefault(event);
|
456
458
|
focus();
|
package/es/index.d.ts
CHANGED
package/es/index.mjs
CHANGED
@@ -99,7 +99,7 @@ import { Toast } from "./toast/index.mjs";
|
|
99
99
|
import { TreeSelect } from "./tree-select/index.mjs";
|
100
100
|
import { Uploader } from "./uploader/index.mjs";
|
101
101
|
import { Watermark } from "./watermark/index.mjs";
|
102
|
-
const version = "4.9.
|
102
|
+
const version = "4.9.7";
|
103
103
|
function install(app) {
|
104
104
|
const components = [
|
105
105
|
ActionBar,
|
package/es/search/Search.mjs
CHANGED
@@ -43,7 +43,8 @@ var stdin_default = defineComponent({
|
|
43
43
|
if (slots.label || props.label) {
|
44
44
|
return _createVNode("label", {
|
45
45
|
"class": bem("label"),
|
46
|
-
"for": getInputId()
|
46
|
+
"for": getInputId(),
|
47
|
+
"data-allow-mismatch": "attribute"
|
47
48
|
}, [slots.label ? slots.label() : props.label]);
|
48
49
|
}
|
49
50
|
};
|
package/es/tab/Tab.mjs
CHANGED
@@ -124,7 +124,8 @@ var stdin_default = defineComponent({
|
|
124
124
|
}),
|
125
125
|
"tabindex": active.value ? 0 : -1,
|
126
126
|
"aria-hidden": !active.value,
|
127
|
-
"aria-labelledby": label
|
127
|
+
"aria-labelledby": label,
|
128
|
+
"data-allow-mismatch": "attribute"
|
128
129
|
}, {
|
129
130
|
default: () => {
|
130
131
|
var _a2;
|
@@ -141,7 +142,8 @@ var stdin_default = defineComponent({
|
|
141
142
|
"role": "tabpanel",
|
142
143
|
"class": bem("panel"),
|
143
144
|
"tabindex": show ? 0 : -1,
|
144
|
-
"aria-labelledby": label
|
145
|
+
"aria-labelledby": label,
|
146
|
+
"data-allow-mismatch": "attribute"
|
145
147
|
}, [Content]), [[_vShow, show]]);
|
146
148
|
};
|
147
149
|
}
|
package/es/tab/TabTitle.mjs
CHANGED
@@ -80,7 +80,8 @@ const TabTitle = defineComponent({
|
|
80
80
|
"tabindex": props.disabled ? void 0 : props.isActive ? 0 : -1,
|
81
81
|
"aria-selected": props.isActive,
|
82
82
|
"aria-disabled": props.disabled || void 0,
|
83
|
-
"aria-controls": props.controls
|
83
|
+
"aria-controls": props.controls,
|
84
|
+
"data-allow-mismatch": "attribute"
|
84
85
|
}, [renderText()]);
|
85
86
|
}
|
86
87
|
});
|
@@ -188,6 +188,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
188
188
|
position: "absolute"
|
189
189
|
},
|
190
190
|
"aria-labelledby": `${parent.id}-${index.value}`,
|
191
|
+
"data-allow-mismatch": "attribute",
|
191
192
|
"closeOnClickOverlay": closeOnClickOverlay,
|
192
193
|
"onOpen": onOpen,
|
193
194
|
"onClose": onClose,
|
package/lib/empty/Empty.js
CHANGED
@@ -67,22 +67,26 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
67
67
|
"fx": "50%",
|
68
68
|
"fy": "54%",
|
69
69
|
"r": "297%",
|
70
|
-
"gradientTransform": "matrix(-.16 0 0 -.33 .58 .72)"
|
70
|
+
"gradientTransform": "matrix(-.16 0 0 -.33 .58 .72)",
|
71
|
+
"data-allow-mismatch": "attribute"
|
71
72
|
}, [renderStop("#EBEDF0", 0), renderStop("#F2F3F5", 100, 0.3)])]), (0, import_vue.createVNode)("ellipse", {
|
72
73
|
"fill": getUrlById(id),
|
73
74
|
"opacity": ".8",
|
74
75
|
"cx": "80",
|
75
76
|
"cy": "140",
|
76
77
|
"rx": "46",
|
77
|
-
"ry": "8"
|
78
|
+
"ry": "8",
|
79
|
+
"data-allow-mismatch": "attribute"
|
78
80
|
}, null)];
|
79
81
|
const renderBuilding = () => [(0, import_vue.createVNode)("defs", null, [(0, import_vue.createVNode)("linearGradient", {
|
80
82
|
"id": getId("a"),
|
81
83
|
"x1": "64%",
|
82
84
|
"y1": "100%",
|
83
|
-
"x2": "64%"
|
85
|
+
"x2": "64%",
|
86
|
+
"data-allow-mismatch": "attribute"
|
84
87
|
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)])]), (0, import_vue.createVNode)("g", {
|
85
|
-
"opacity": ".8"
|
88
|
+
"opacity": ".8",
|
89
|
+
"data-allow-mismatch": "children"
|
86
90
|
}, [(0, import_vue.createVNode)("path", {
|
87
91
|
"d": "M36 131V53H16v20H2v58h34z",
|
88
92
|
"fill": getUrlById("a")
|
@@ -95,9 +99,11 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
95
99
|
"x1": "64%",
|
96
100
|
"y1": "97%",
|
97
101
|
"x2": "64%",
|
98
|
-
"y2": "0%"
|
102
|
+
"y2": "0%",
|
103
|
+
"data-allow-mismatch": "attribute"
|
99
104
|
}, [renderStop("#F2F3F5", 0, 0.3), renderStop("#F2F3F5", 100)])]), (0, import_vue.createVNode)("g", {
|
100
|
-
"opacity": ".8"
|
105
|
+
"opacity": ".8",
|
106
|
+
"data-allow-mismatch": "children"
|
101
107
|
}, [(0, import_vue.createVNode)("path", {
|
102
108
|
"d": "M87 6c3 0 7 3 8 6a8 8 0 1 1-1 16H80a7 7 0 0 1-8-6c0-4 3-7 6-7 0-5 4-9 9-9Z",
|
103
109
|
"fill": getUrlById("b")
|
@@ -107,7 +113,9 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
107
113
|
}, null)])];
|
108
114
|
const renderNetwork = () => (0, import_vue.createVNode)("svg", {
|
109
115
|
"viewBox": "0 0 160 160"
|
110
|
-
}, [(0, import_vue.createVNode)("defs",
|
116
|
+
}, [(0, import_vue.createVNode)("defs", {
|
117
|
+
"data-allow-mismatch": "children"
|
118
|
+
}, [(0, import_vue.createVNode)("linearGradient", {
|
111
119
|
"id": getId(1),
|
112
120
|
"x1": "64%",
|
113
121
|
"y1": "100%",
|
@@ -134,14 +142,17 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
134
142
|
"fill": "none"
|
135
143
|
}, [renderBuilding(), (0, import_vue.createVNode)("path", {
|
136
144
|
"fill": getUrlById(4),
|
137
|
-
"d": "M0 139h160v21H0z"
|
145
|
+
"d": "M0 139h160v21H0z",
|
146
|
+
"data-allow-mismatch": "attribute"
|
138
147
|
}, null), (0, import_vue.createVNode)("path", {
|
139
148
|
"d": "M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",
|
140
|
-
"fill": getUrlById(2)
|
149
|
+
"fill": getUrlById(2),
|
150
|
+
"data-allow-mismatch": "attribute"
|
141
151
|
}, null), (0, import_vue.createVNode)("g", {
|
142
152
|
"opacity": ".6",
|
143
153
|
"stroke-linecap": "round",
|
144
|
-
"stroke-width": "7"
|
154
|
+
"stroke-width": "7",
|
155
|
+
"data-allow-mismatch": "children"
|
145
156
|
}, [(0, import_vue.createVNode)("path", {
|
146
157
|
"d": "M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",
|
147
158
|
"stroke": getUrlById(3)
|
@@ -178,7 +189,9 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
178
189
|
}, null)])])]);
|
179
190
|
const renderMaterial = () => (0, import_vue.createVNode)("svg", {
|
180
191
|
"viewBox": "0 0 160 160"
|
181
|
-
}, [(0, import_vue.createVNode)("defs",
|
192
|
+
}, [(0, import_vue.createVNode)("defs", {
|
193
|
+
"data-allow-mismatch": "children"
|
194
|
+
}, [(0, import_vue.createVNode)("linearGradient", {
|
182
195
|
"x1": "50%",
|
183
196
|
"x2": "50%",
|
184
197
|
"y2": "100%",
|
@@ -211,7 +224,8 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
211
224
|
"fill": getUrlById(5),
|
212
225
|
"width": "64",
|
213
226
|
"height": "66",
|
214
|
-
"rx": "2"
|
227
|
+
"rx": "2",
|
228
|
+
"data-allow-mismatch": "attribute"
|
215
229
|
}, null), (0, import_vue.createVNode)("rect", {
|
216
230
|
"fill": "#FFF",
|
217
231
|
"x": "6",
|
@@ -221,7 +235,8 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
221
235
|
"rx": "1"
|
222
236
|
}, null), (0, import_vue.createVNode)("g", {
|
223
237
|
"transform": "translate(15 17)",
|
224
|
-
"fill": getUrlById(6)
|
238
|
+
"fill": getUrlById(6),
|
239
|
+
"data-allow-mismatch": "attribute"
|
225
240
|
}, [(0, import_vue.createVNode)("rect", {
|
226
241
|
"width": "34",
|
227
242
|
"height": "6",
|
@@ -238,7 +253,8 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
238
253
|
"y": "61",
|
239
254
|
"width": "88",
|
240
255
|
"height": "28",
|
241
|
-
"rx": "1"
|
256
|
+
"rx": "1",
|
257
|
+
"data-allow-mismatch": "attribute"
|
242
258
|
}, null), (0, import_vue.createVNode)("rect", {
|
243
259
|
"fill": "#F7F8FA",
|
244
260
|
"x": "29",
|
@@ -253,14 +269,18 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
253
269
|
"x1": "50%",
|
254
270
|
"x2": "50%",
|
255
271
|
"y2": "100%",
|
256
|
-
"id": getId(8)
|
272
|
+
"id": getId(8),
|
273
|
+
"data-allow-mismatch": "attribute"
|
257
274
|
}, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), renderShadow("c"), (0, import_vue.createVNode)("path", {
|
258
275
|
"d": "m59 60 21 21 21-21h3l9 9v3L92 93l21 21v3l-9 9h-3l-21-21-21 21h-3l-9-9v-3l21-21-21-21v-3l9-9h3Z",
|
259
|
-
"fill": getUrlById(8)
|
276
|
+
"fill": getUrlById(8),
|
277
|
+
"data-allow-mismatch": "attribute"
|
260
278
|
}, null)]);
|
261
279
|
const renderSearch = () => (0, import_vue.createVNode)("svg", {
|
262
280
|
"viewBox": "0 0 160 160"
|
263
|
-
}, [(0, import_vue.createVNode)("defs",
|
281
|
+
}, [(0, import_vue.createVNode)("defs", {
|
282
|
+
"data-allow-mismatch": "children"
|
283
|
+
}, [(0, import_vue.createVNode)("linearGradient", {
|
264
284
|
"x1": "50%",
|
265
285
|
"y1": "100%",
|
266
286
|
"x2": "50%",
|
@@ -282,7 +302,8 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
282
302
|
"id": getId(12)
|
283
303
|
}, [renderStops("#FFF", "#F7F8FA")])]), renderBuilding(), renderCloud(), renderShadow("d"), (0, import_vue.createVNode)("g", {
|
284
304
|
"transform": "rotate(-45 113 -4)",
|
285
|
-
"fill": "none"
|
305
|
+
"fill": "none",
|
306
|
+
"data-allow-mismatch": "children"
|
286
307
|
}, [(0, import_vue.createVNode)("rect", {
|
287
308
|
"fill": getUrlById(9),
|
288
309
|
"x": "24",
|
package/lib/field/Field.js
CHANGED
@@ -401,6 +401,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
401
401
|
enterkeyhint: props.enterkeyhint,
|
402
402
|
spellcheck: props.spellcheck,
|
403
403
|
"aria-labelledby": props.label ? `${id}-label` : void 0,
|
404
|
+
"data-allow-mismatch": "attribute",
|
404
405
|
onBlur,
|
405
406
|
onFocus,
|
406
407
|
onInput,
|
@@ -475,6 +476,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
475
476
|
return (0, import_vue.createVNode)("label", {
|
476
477
|
"id": `${id}-label`,
|
477
478
|
"for": slots.input ? void 0 : getInputId(),
|
479
|
+
"data-allow-mismatch": "attribute",
|
478
480
|
"onClick": (event) => {
|
479
481
|
(0, import_utils.preventDefault)(event);
|
480
482
|
focus();
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
@@ -226,7 +226,7 @@ __reExport(stdin_exports, require("./toast"), module.exports);
|
|
226
226
|
__reExport(stdin_exports, require("./tree-select"), module.exports);
|
227
227
|
__reExport(stdin_exports, require("./uploader"), module.exports);
|
228
228
|
__reExport(stdin_exports, require("./watermark"), module.exports);
|
229
|
-
const version = "4.9.
|
229
|
+
const version = "4.9.7";
|
230
230
|
function install(app) {
|
231
231
|
const components = [
|
232
232
|
import_action_bar.ActionBar,
|
package/lib/search/Search.js
CHANGED
@@ -66,7 +66,8 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
66
66
|
if (slots.label || props.label) {
|
67
67
|
return (0, import_vue.createVNode)("label", {
|
68
68
|
"class": bem("label"),
|
69
|
-
"for": getInputId()
|
69
|
+
"for": getInputId(),
|
70
|
+
"data-allow-mismatch": "attribute"
|
70
71
|
}, [slots.label ? slots.label() : props.label]);
|
71
72
|
}
|
72
73
|
};
|
package/lib/tab/Tab.js
CHANGED
@@ -147,7 +147,8 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
147
147
|
}),
|
148
148
|
"tabindex": active.value ? 0 : -1,
|
149
149
|
"aria-hidden": !active.value,
|
150
|
-
"aria-labelledby": label
|
150
|
+
"aria-labelledby": label,
|
151
|
+
"data-allow-mismatch": "attribute"
|
151
152
|
}, {
|
152
153
|
default: () => {
|
153
154
|
var _a2;
|
@@ -164,7 +165,8 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
164
165
|
"role": "tabpanel",
|
165
166
|
"class": bem("panel"),
|
166
167
|
"tabindex": show ? 0 : -1,
|
167
|
-
"aria-labelledby": label
|
168
|
+
"aria-labelledby": label,
|
169
|
+
"data-allow-mismatch": "attribute"
|
168
170
|
}, [Content]), [[import_vue.vShow, show]]);
|
169
171
|
};
|
170
172
|
}
|
package/lib/tab/TabTitle.js
CHANGED
@@ -102,7 +102,8 @@ const TabTitle = (0, import_vue.defineComponent)({
|
|
102
102
|
"tabindex": props.disabled ? void 0 : props.isActive ? 0 : -1,
|
103
103
|
"aria-selected": props.isActive,
|
104
104
|
"aria-disabled": props.disabled || void 0,
|
105
|
-
"aria-controls": props.controls
|
105
|
+
"aria-controls": props.controls,
|
106
|
+
"data-allow-mismatch": "attribute"
|
106
107
|
}, [renderText()]);
|
107
108
|
}
|
108
109
|
});
|