vant 4.9.6 → 4.9.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/calendar/Calendar.mjs +1 -1
- package/es/calendar/CalendarDay.mjs +5 -3
- package/es/calendar/CalendarMonth.mjs +1 -1
- package/es/date-picker/DatePicker.d.ts +3 -3
- package/es/date-picker/DatePicker.mjs +9 -8
- package/es/date-picker/index.d.ts +2 -2
- package/es/date-picker/utils.d.ts +2 -4
- package/es/date-picker/utils.mjs +1 -6
- 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 +3 -1
- 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/es/time-picker/TimePicker.d.ts +3 -7
- package/es/time-picker/TimePicker.mjs +1 -2
- package/es/time-picker/index.d.ts +2 -4
- package/lib/calendar/Calendar.js +1 -1
- package/lib/calendar/CalendarDay.js +5 -3
- package/lib/calendar/CalendarMonth.js +1 -1
- package/lib/date-picker/DatePicker.d.ts +3 -3
- package/lib/date-picker/DatePicker.js +9 -8
- package/lib/date-picker/index.d.ts +2 -2
- package/lib/date-picker/utils.d.ts +2 -4
- 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 +3 -1
- 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/time-picker/TimePicker.d.ts +3 -7
- package/lib/time-picker/TimePicker.js +1 -2
- package/lib/time-picker/index.d.ts +2 -4
- package/lib/vant.cjs.js +70 -39
- package/lib/vant.es.js +70 -39
- package/lib/vant.js +71 -40
- package/lib/vant.min.js +3 -3
- package/lib/web-types.json +1 -1
- package/package.json +14 -14
package/lib/vant.cjs.js
CHANGED
@@ -3056,7 +3056,8 @@ const TabTitle = vue.defineComponent({
|
|
3056
3056
|
"tabindex": props2.disabled ? void 0 : props2.isActive ? 0 : -1,
|
3057
3057
|
"aria-selected": props2.isActive,
|
3058
3058
|
"aria-disabled": props2.disabled || void 0,
|
3059
|
-
"aria-controls": props2.controls
|
3059
|
+
"aria-controls": props2.controls,
|
3060
|
+
"data-allow-mismatch": "attribute"
|
3060
3061
|
}, [renderText()]);
|
3061
3062
|
}
|
3062
3063
|
});
|
@@ -3249,7 +3250,8 @@ var stdin_default$1B = vue.defineComponent({
|
|
3249
3250
|
}),
|
3250
3251
|
"tabindex": active.value ? 0 : -1,
|
3251
3252
|
"aria-hidden": !active.value,
|
3252
|
-
"aria-labelledby": label
|
3253
|
+
"aria-labelledby": label,
|
3254
|
+
"data-allow-mismatch": "attribute"
|
3253
3255
|
}, {
|
3254
3256
|
default: () => {
|
3255
3257
|
var _a2;
|
@@ -3266,7 +3268,8 @@ var stdin_default$1B = vue.defineComponent({
|
|
3266
3268
|
"role": "tabpanel",
|
3267
3269
|
"class": bem$1m("panel"),
|
3268
3270
|
"tabindex": show ? 0 : -1,
|
3269
|
-
"aria-labelledby": label
|
3271
|
+
"aria-labelledby": label,
|
3272
|
+
"data-allow-mismatch": "attribute"
|
3270
3273
|
}, [Content]), [[vue.vShow, show]]);
|
3271
3274
|
};
|
3272
3275
|
}
|
@@ -4280,7 +4283,7 @@ var stdin_default$1v = vue.defineComponent({
|
|
4280
4283
|
if (props2.type === "number" || props2.type === "digit") {
|
4281
4284
|
const isNumber = props2.type === "number";
|
4282
4285
|
value = formatNumber(value, isNumber, isNumber);
|
4283
|
-
if (trigger === "onBlur" && value !== "") {
|
4286
|
+
if (trigger === "onBlur" && value !== "" && (props2.min !== void 0 || props2.max !== void 0)) {
|
4284
4287
|
const adjustedValue = clamp(+value, (_a = props2.min) != null ? _a : -Infinity, (_b = props2.max) != null ? _b : Infinity);
|
4285
4288
|
value = adjustedValue.toString();
|
4286
4289
|
}
|
@@ -4435,6 +4438,7 @@ var stdin_default$1v = vue.defineComponent({
|
|
4435
4438
|
enterkeyhint: props2.enterkeyhint,
|
4436
4439
|
spellcheck: props2.spellcheck,
|
4437
4440
|
"aria-labelledby": props2.label ? `${id}-label` : void 0,
|
4441
|
+
"data-allow-mismatch": "attribute",
|
4438
4442
|
onBlur,
|
4439
4443
|
onFocus,
|
4440
4444
|
onInput,
|
@@ -4509,6 +4513,7 @@ var stdin_default$1v = vue.defineComponent({
|
|
4509
4513
|
return vue.createVNode("label", {
|
4510
4514
|
"id": `${id}-label`,
|
4511
4515
|
"for": slots.input ? void 0 : getInputId(),
|
4516
|
+
"data-allow-mismatch": "attribute",
|
4512
4517
|
"onClick": (event) => {
|
4513
4518
|
preventDefault(event);
|
4514
4519
|
focus();
|
@@ -6492,6 +6497,9 @@ var stdin_default$1g = vue.defineComponent({
|
|
6492
6497
|
}, [slots["bottom-info"] ? slots["bottom-info"](props2.item) : bottomInfo]);
|
6493
6498
|
}
|
6494
6499
|
};
|
6500
|
+
const renderText = () => {
|
6501
|
+
return slots.text ? slots.text(props2.item) : props2.item.text;
|
6502
|
+
};
|
6495
6503
|
const renderContent = () => {
|
6496
6504
|
const {
|
6497
6505
|
item,
|
@@ -6499,10 +6507,9 @@ var stdin_default$1g = vue.defineComponent({
|
|
6499
6507
|
rowHeight
|
6500
6508
|
} = props2;
|
6501
6509
|
const {
|
6502
|
-
type
|
6503
|
-
text
|
6510
|
+
type
|
6504
6511
|
} = item;
|
6505
|
-
const Nodes = [renderTopInfo(),
|
6512
|
+
const Nodes = [renderTopInfo(), renderText(), renderBottomInfo()];
|
6506
6513
|
if (type === "selected") {
|
6507
6514
|
return vue.createVNode("div", {
|
6508
6515
|
"class": bem$13("selected-day"),
|
@@ -6719,7 +6726,7 @@ var stdin_default$1f = vue.defineComponent({
|
|
6719
6726
|
"rowHeight": rowHeight.value,
|
6720
6727
|
"onClick": (item2) => emit("click", item2),
|
6721
6728
|
"onClickDisabledDate": (item2) => emit("clickDisabledDate", item2)
|
6722
|
-
}, pick(slots, ["top-info", "bottom-info"]));
|
6729
|
+
}, pick(slots, ["top-info", "bottom-info", "text"]));
|
6723
6730
|
const renderDays = () => vue.createVNode("div", {
|
6724
6731
|
"ref": daysRef,
|
6725
6732
|
"role": "grid",
|
@@ -7193,7 +7200,7 @@ var stdin_default$1d = vue.defineComponent({
|
|
7193
7200
|
}, pick(props2, ["type", "color", "showMark", "formatter", "rowHeight", "showSubtitle", "allowSameDay"]), {
|
7194
7201
|
"onClick": onClickDay,
|
7195
7202
|
"onClickDisabledDate": (item) => emit("clickDisabledDate", item)
|
7196
|
-
}), pick(slots, ["top-info", "bottom-info", "month-title"]));
|
7203
|
+
}), pick(slots, ["top-info", "bottom-info", "month-title", "text"]));
|
7197
7204
|
};
|
7198
7205
|
const renderFooterButton = () => {
|
7199
7206
|
if (slots.footer) {
|
@@ -8875,22 +8882,26 @@ var stdin_default$Z = vue.defineComponent({
|
|
8875
8882
|
"fx": "50%",
|
8876
8883
|
"fy": "54%",
|
8877
8884
|
"r": "297%",
|
8878
|
-
"gradientTransform": "matrix(-.16 0 0 -.33 .58 .72)"
|
8885
|
+
"gradientTransform": "matrix(-.16 0 0 -.33 .58 .72)",
|
8886
|
+
"data-allow-mismatch": "attribute"
|
8879
8887
|
}, [renderStop("#EBEDF0", 0), renderStop("#F2F3F5", 100, 0.3)])]), vue.createVNode("ellipse", {
|
8880
8888
|
"fill": getUrlById(id),
|
8881
8889
|
"opacity": ".8",
|
8882
8890
|
"cx": "80",
|
8883
8891
|
"cy": "140",
|
8884
8892
|
"rx": "46",
|
8885
|
-
"ry": "8"
|
8893
|
+
"ry": "8",
|
8894
|
+
"data-allow-mismatch": "attribute"
|
8886
8895
|
}, null)];
|
8887
8896
|
const renderBuilding = () => [vue.createVNode("defs", null, [vue.createVNode("linearGradient", {
|
8888
8897
|
"id": getId("a"),
|
8889
8898
|
"x1": "64%",
|
8890
8899
|
"y1": "100%",
|
8891
|
-
"x2": "64%"
|
8900
|
+
"x2": "64%",
|
8901
|
+
"data-allow-mismatch": "attribute"
|
8892
8902
|
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)])]), vue.createVNode("g", {
|
8893
|
-
"opacity": ".8"
|
8903
|
+
"opacity": ".8",
|
8904
|
+
"data-allow-mismatch": "children"
|
8894
8905
|
}, [vue.createVNode("path", {
|
8895
8906
|
"d": "M36 131V53H16v20H2v58h34z",
|
8896
8907
|
"fill": getUrlById("a")
|
@@ -8903,9 +8914,11 @@ var stdin_default$Z = vue.defineComponent({
|
|
8903
8914
|
"x1": "64%",
|
8904
8915
|
"y1": "97%",
|
8905
8916
|
"x2": "64%",
|
8906
|
-
"y2": "0%"
|
8917
|
+
"y2": "0%",
|
8918
|
+
"data-allow-mismatch": "attribute"
|
8907
8919
|
}, [renderStop("#F2F3F5", 0, 0.3), renderStop("#F2F3F5", 100)])]), vue.createVNode("g", {
|
8908
|
-
"opacity": ".8"
|
8920
|
+
"opacity": ".8",
|
8921
|
+
"data-allow-mismatch": "children"
|
8909
8922
|
}, [vue.createVNode("path", {
|
8910
8923
|
"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",
|
8911
8924
|
"fill": getUrlById("b")
|
@@ -8915,7 +8928,9 @@ var stdin_default$Z = vue.defineComponent({
|
|
8915
8928
|
}, null)])];
|
8916
8929
|
const renderNetwork = () => vue.createVNode("svg", {
|
8917
8930
|
"viewBox": "0 0 160 160"
|
8918
|
-
}, [vue.createVNode("defs",
|
8931
|
+
}, [vue.createVNode("defs", {
|
8932
|
+
"data-allow-mismatch": "children"
|
8933
|
+
}, [vue.createVNode("linearGradient", {
|
8919
8934
|
"id": getId(1),
|
8920
8935
|
"x1": "64%",
|
8921
8936
|
"y1": "100%",
|
@@ -8942,14 +8957,17 @@ var stdin_default$Z = vue.defineComponent({
|
|
8942
8957
|
"fill": "none"
|
8943
8958
|
}, [renderBuilding(), vue.createVNode("path", {
|
8944
8959
|
"fill": getUrlById(4),
|
8945
|
-
"d": "M0 139h160v21H0z"
|
8960
|
+
"d": "M0 139h160v21H0z",
|
8961
|
+
"data-allow-mismatch": "attribute"
|
8946
8962
|
}, null), vue.createVNode("path", {
|
8947
8963
|
"d": "M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",
|
8948
|
-
"fill": getUrlById(2)
|
8964
|
+
"fill": getUrlById(2),
|
8965
|
+
"data-allow-mismatch": "attribute"
|
8949
8966
|
}, null), vue.createVNode("g", {
|
8950
8967
|
"opacity": ".6",
|
8951
8968
|
"stroke-linecap": "round",
|
8952
|
-
"stroke-width": "7"
|
8969
|
+
"stroke-width": "7",
|
8970
|
+
"data-allow-mismatch": "children"
|
8953
8971
|
}, [vue.createVNode("path", {
|
8954
8972
|
"d": "M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",
|
8955
8973
|
"stroke": getUrlById(3)
|
@@ -8986,7 +9004,9 @@ var stdin_default$Z = vue.defineComponent({
|
|
8986
9004
|
}, null)])])]);
|
8987
9005
|
const renderMaterial = () => vue.createVNode("svg", {
|
8988
9006
|
"viewBox": "0 0 160 160"
|
8989
|
-
}, [vue.createVNode("defs",
|
9007
|
+
}, [vue.createVNode("defs", {
|
9008
|
+
"data-allow-mismatch": "children"
|
9009
|
+
}, [vue.createVNode("linearGradient", {
|
8990
9010
|
"x1": "50%",
|
8991
9011
|
"x2": "50%",
|
8992
9012
|
"y2": "100%",
|
@@ -9019,7 +9039,8 @@ var stdin_default$Z = vue.defineComponent({
|
|
9019
9039
|
"fill": getUrlById(5),
|
9020
9040
|
"width": "64",
|
9021
9041
|
"height": "66",
|
9022
|
-
"rx": "2"
|
9042
|
+
"rx": "2",
|
9043
|
+
"data-allow-mismatch": "attribute"
|
9023
9044
|
}, null), vue.createVNode("rect", {
|
9024
9045
|
"fill": "#FFF",
|
9025
9046
|
"x": "6",
|
@@ -9029,7 +9050,8 @@ var stdin_default$Z = vue.defineComponent({
|
|
9029
9050
|
"rx": "1"
|
9030
9051
|
}, null), vue.createVNode("g", {
|
9031
9052
|
"transform": "translate(15 17)",
|
9032
|
-
"fill": getUrlById(6)
|
9053
|
+
"fill": getUrlById(6),
|
9054
|
+
"data-allow-mismatch": "attribute"
|
9033
9055
|
}, [vue.createVNode("rect", {
|
9034
9056
|
"width": "34",
|
9035
9057
|
"height": "6",
|
@@ -9046,7 +9068,8 @@ var stdin_default$Z = vue.defineComponent({
|
|
9046
9068
|
"y": "61",
|
9047
9069
|
"width": "88",
|
9048
9070
|
"height": "28",
|
9049
|
-
"rx": "1"
|
9071
|
+
"rx": "1",
|
9072
|
+
"data-allow-mismatch": "attribute"
|
9050
9073
|
}, null), vue.createVNode("rect", {
|
9051
9074
|
"fill": "#F7F8FA",
|
9052
9075
|
"x": "29",
|
@@ -9061,14 +9084,18 @@ var stdin_default$Z = vue.defineComponent({
|
|
9061
9084
|
"x1": "50%",
|
9062
9085
|
"x2": "50%",
|
9063
9086
|
"y2": "100%",
|
9064
|
-
"id": getId(8)
|
9087
|
+
"id": getId(8),
|
9088
|
+
"data-allow-mismatch": "attribute"
|
9065
9089
|
}, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), renderShadow("c"), vue.createVNode("path", {
|
9066
9090
|
"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",
|
9067
|
-
"fill": getUrlById(8)
|
9091
|
+
"fill": getUrlById(8),
|
9092
|
+
"data-allow-mismatch": "attribute"
|
9068
9093
|
}, null)]);
|
9069
9094
|
const renderSearch = () => vue.createVNode("svg", {
|
9070
9095
|
"viewBox": "0 0 160 160"
|
9071
|
-
}, [vue.createVNode("defs",
|
9096
|
+
}, [vue.createVNode("defs", {
|
9097
|
+
"data-allow-mismatch": "children"
|
9098
|
+
}, [vue.createVNode("linearGradient", {
|
9072
9099
|
"x1": "50%",
|
9073
9100
|
"y1": "100%",
|
9074
9101
|
"x2": "50%",
|
@@ -9090,7 +9117,8 @@ var stdin_default$Z = vue.defineComponent({
|
|
9090
9117
|
"id": getId(12)
|
9091
9118
|
}, [renderStops("#FFF", "#F7F8FA")])]), renderBuilding(), renderCloud(), renderShadow("d"), vue.createVNode("g", {
|
9092
9119
|
"transform": "rotate(-45 113 -4)",
|
9093
|
-
"fill": "none"
|
9120
|
+
"fill": "none",
|
9121
|
+
"data-allow-mismatch": "children"
|
9094
9122
|
}, [vue.createVNode("rect", {
|
9095
9123
|
"fill": getUrlById(9),
|
9096
9124
|
"x": "24",
|
@@ -9360,11 +9388,7 @@ var stdin_default$X = vue.defineComponent({
|
|
9360
9388
|
const currentValues = vue.ref(props2.modelValue);
|
9361
9389
|
const updatedByExternalSources = vue.ref(false);
|
9362
9390
|
const pickerRef = vue.ref();
|
9363
|
-
const
|
9364
|
-
const minYear = props2.minDate.getFullYear();
|
9365
|
-
const maxYear = props2.maxDate.getFullYear();
|
9366
|
-
return genOptions(minYear, maxYear, "year", props2.formatter, props2.filter);
|
9367
|
-
};
|
9391
|
+
const computedValues = vue.computed(() => updatedByExternalSources.value ? props2.modelValue : currentValues.value);
|
9368
9392
|
const isMinYear = (year) => year === props2.minDate.getFullYear();
|
9369
9393
|
const isMaxYear = (year) => year === props2.maxDate.getFullYear();
|
9370
9394
|
const isMinMonth = (month) => month === props2.minDate.getMonth() + 1;
|
@@ -9375,7 +9399,7 @@ var stdin_default$X = vue.defineComponent({
|
|
9375
9399
|
columnsType
|
9376
9400
|
} = props2;
|
9377
9401
|
const index = columnsType.indexOf(type);
|
9378
|
-
const value =
|
9402
|
+
const value = computedValues.value[index];
|
9379
9403
|
if (value) {
|
9380
9404
|
return +value;
|
9381
9405
|
}
|
@@ -9388,18 +9412,23 @@ var stdin_default$X = vue.defineComponent({
|
|
9388
9412
|
return minDate.getDate();
|
9389
9413
|
}
|
9390
9414
|
};
|
9415
|
+
const genYearOptions = () => {
|
9416
|
+
const minYear = props2.minDate.getFullYear();
|
9417
|
+
const maxYear = props2.maxDate.getFullYear();
|
9418
|
+
return genOptions(minYear, maxYear, "year", props2.formatter, props2.filter, computedValues.value);
|
9419
|
+
};
|
9391
9420
|
const genMonthOptions = () => {
|
9392
9421
|
const year = getValue2("year");
|
9393
9422
|
const minMonth = isMinYear(year) ? props2.minDate.getMonth() + 1 : 1;
|
9394
9423
|
const maxMonth = isMaxYear(year) ? props2.maxDate.getMonth() + 1 : 12;
|
9395
|
-
return genOptions(minMonth, maxMonth, "month", props2.formatter, props2.filter);
|
9424
|
+
return genOptions(minMonth, maxMonth, "month", props2.formatter, props2.filter, computedValues.value);
|
9396
9425
|
};
|
9397
9426
|
const genDayOptions = () => {
|
9398
9427
|
const year = getValue2("year");
|
9399
9428
|
const month = getValue2("month");
|
9400
9429
|
const minDate = isMinYear(year) && isMinMonth(month) ? props2.minDate.getDate() : 1;
|
9401
9430
|
const maxDate = isMaxYear(year) && isMaxMonth(month) ? props2.maxDate.getDate() : getMonthEndDay(year, month);
|
9402
|
-
return genOptions(minDate, maxDate, "day", props2.formatter, props2.filter);
|
9431
|
+
return genOptions(minDate, maxDate, "day", props2.formatter, props2.filter, computedValues.value);
|
9403
9432
|
};
|
9404
9433
|
const confirm = () => {
|
9405
9434
|
var _a;
|
@@ -9849,6 +9878,7 @@ var stdin_default$U = vue.defineComponent({
|
|
9849
9878
|
"id": `${id}-${index}`,
|
9850
9879
|
"role": "button",
|
9851
9880
|
"tabindex": disabled ? void 0 : 0,
|
9881
|
+
"data-allow-mismatch": "attribute",
|
9852
9882
|
"class": [bem$L("item", {
|
9853
9883
|
disabled,
|
9854
9884
|
grow: scrollable.value
|
@@ -10061,6 +10091,7 @@ var stdin_default$T = vue.defineComponent({
|
|
10061
10091
|
position: "absolute"
|
10062
10092
|
},
|
10063
10093
|
"aria-labelledby": `${parent.id}-${index.value}`,
|
10094
|
+
"data-allow-mismatch": "attribute",
|
10064
10095
|
"closeOnClickOverlay": closeOnClickOverlay,
|
10065
10096
|
"onOpen": onOpen,
|
10066
10097
|
"onClose": onClose,
|
@@ -13396,7 +13427,8 @@ var stdin_default$v = vue.defineComponent({
|
|
13396
13427
|
if (slots.label || props2.label) {
|
13397
13428
|
return vue.createVNode("label", {
|
13398
13429
|
"class": bem$m("label"),
|
13399
|
-
"for": getInputId()
|
13430
|
+
"for": getInputId(),
|
13431
|
+
"data-allow-mismatch": "attribute"
|
13400
13432
|
}, [slots.label ? slots.label() : props2.label]);
|
13401
13433
|
}
|
13402
13434
|
};
|
@@ -15391,8 +15423,7 @@ const timePickerProps = extend({}, sharedProps, {
|
|
15391
15423
|
columnsType: {
|
15392
15424
|
type: Array,
|
15393
15425
|
default: () => ["hour", "minute"]
|
15394
|
-
}
|
15395
|
-
filter: Function
|
15426
|
+
}
|
15396
15427
|
});
|
15397
15428
|
var stdin_default$8 = vue.defineComponent({
|
15398
15429
|
name: name$3,
|
@@ -17026,7 +17057,7 @@ const Lazyload = {
|
|
17026
17057
|
});
|
17027
17058
|
}
|
17028
17059
|
};
|
17029
|
-
const version = "4.9.
|
17060
|
+
const version = "4.9.8";
|
17030
17061
|
function install(app) {
|
17031
17062
|
const components = [
|
17032
17063
|
ActionBar,
|
package/lib/vant.es.js
CHANGED
@@ -3054,7 +3054,8 @@ const TabTitle = defineComponent({
|
|
3054
3054
|
"tabindex": props2.disabled ? void 0 : props2.isActive ? 0 : -1,
|
3055
3055
|
"aria-selected": props2.isActive,
|
3056
3056
|
"aria-disabled": props2.disabled || void 0,
|
3057
|
-
"aria-controls": props2.controls
|
3057
|
+
"aria-controls": props2.controls,
|
3058
|
+
"data-allow-mismatch": "attribute"
|
3058
3059
|
}, [renderText()]);
|
3059
3060
|
}
|
3060
3061
|
});
|
@@ -3247,7 +3248,8 @@ var stdin_default$1B = defineComponent({
|
|
3247
3248
|
}),
|
3248
3249
|
"tabindex": active.value ? 0 : -1,
|
3249
3250
|
"aria-hidden": !active.value,
|
3250
|
-
"aria-labelledby": label
|
3251
|
+
"aria-labelledby": label,
|
3252
|
+
"data-allow-mismatch": "attribute"
|
3251
3253
|
}, {
|
3252
3254
|
default: () => {
|
3253
3255
|
var _a2;
|
@@ -3264,7 +3266,8 @@ var stdin_default$1B = defineComponent({
|
|
3264
3266
|
"role": "tabpanel",
|
3265
3267
|
"class": bem$1m("panel"),
|
3266
3268
|
"tabindex": show ? 0 : -1,
|
3267
|
-
"aria-labelledby": label
|
3269
|
+
"aria-labelledby": label,
|
3270
|
+
"data-allow-mismatch": "attribute"
|
3268
3271
|
}, [Content]), [[vShow, show]]);
|
3269
3272
|
};
|
3270
3273
|
}
|
@@ -4278,7 +4281,7 @@ var stdin_default$1v = defineComponent({
|
|
4278
4281
|
if (props2.type === "number" || props2.type === "digit") {
|
4279
4282
|
const isNumber = props2.type === "number";
|
4280
4283
|
value = formatNumber(value, isNumber, isNumber);
|
4281
|
-
if (trigger === "onBlur" && value !== "") {
|
4284
|
+
if (trigger === "onBlur" && value !== "" && (props2.min !== void 0 || props2.max !== void 0)) {
|
4282
4285
|
const adjustedValue = clamp(+value, (_a = props2.min) != null ? _a : -Infinity, (_b = props2.max) != null ? _b : Infinity);
|
4283
4286
|
value = adjustedValue.toString();
|
4284
4287
|
}
|
@@ -4433,6 +4436,7 @@ var stdin_default$1v = defineComponent({
|
|
4433
4436
|
enterkeyhint: props2.enterkeyhint,
|
4434
4437
|
spellcheck: props2.spellcheck,
|
4435
4438
|
"aria-labelledby": props2.label ? `${id}-label` : void 0,
|
4439
|
+
"data-allow-mismatch": "attribute",
|
4436
4440
|
onBlur,
|
4437
4441
|
onFocus,
|
4438
4442
|
onInput,
|
@@ -4507,6 +4511,7 @@ var stdin_default$1v = defineComponent({
|
|
4507
4511
|
return createVNode("label", {
|
4508
4512
|
"id": `${id}-label`,
|
4509
4513
|
"for": slots.input ? void 0 : getInputId(),
|
4514
|
+
"data-allow-mismatch": "attribute",
|
4510
4515
|
"onClick": (event) => {
|
4511
4516
|
preventDefault(event);
|
4512
4517
|
focus();
|
@@ -6490,6 +6495,9 @@ var stdin_default$1g = defineComponent({
|
|
6490
6495
|
}, [slots["bottom-info"] ? slots["bottom-info"](props2.item) : bottomInfo]);
|
6491
6496
|
}
|
6492
6497
|
};
|
6498
|
+
const renderText = () => {
|
6499
|
+
return slots.text ? slots.text(props2.item) : props2.item.text;
|
6500
|
+
};
|
6493
6501
|
const renderContent = () => {
|
6494
6502
|
const {
|
6495
6503
|
item,
|
@@ -6497,10 +6505,9 @@ var stdin_default$1g = defineComponent({
|
|
6497
6505
|
rowHeight
|
6498
6506
|
} = props2;
|
6499
6507
|
const {
|
6500
|
-
type
|
6501
|
-
text
|
6508
|
+
type
|
6502
6509
|
} = item;
|
6503
|
-
const Nodes = [renderTopInfo(),
|
6510
|
+
const Nodes = [renderTopInfo(), renderText(), renderBottomInfo()];
|
6504
6511
|
if (type === "selected") {
|
6505
6512
|
return createVNode("div", {
|
6506
6513
|
"class": bem$13("selected-day"),
|
@@ -6717,7 +6724,7 @@ var stdin_default$1f = defineComponent({
|
|
6717
6724
|
"rowHeight": rowHeight.value,
|
6718
6725
|
"onClick": (item2) => emit("click", item2),
|
6719
6726
|
"onClickDisabledDate": (item2) => emit("clickDisabledDate", item2)
|
6720
|
-
}, pick(slots, ["top-info", "bottom-info"]));
|
6727
|
+
}, pick(slots, ["top-info", "bottom-info", "text"]));
|
6721
6728
|
const renderDays = () => createVNode("div", {
|
6722
6729
|
"ref": daysRef,
|
6723
6730
|
"role": "grid",
|
@@ -7191,7 +7198,7 @@ var stdin_default$1d = defineComponent({
|
|
7191
7198
|
}, pick(props2, ["type", "color", "showMark", "formatter", "rowHeight", "showSubtitle", "allowSameDay"]), {
|
7192
7199
|
"onClick": onClickDay,
|
7193
7200
|
"onClickDisabledDate": (item) => emit("clickDisabledDate", item)
|
7194
|
-
}), pick(slots, ["top-info", "bottom-info", "month-title"]));
|
7201
|
+
}), pick(slots, ["top-info", "bottom-info", "month-title", "text"]));
|
7195
7202
|
};
|
7196
7203
|
const renderFooterButton = () => {
|
7197
7204
|
if (slots.footer) {
|
@@ -8873,22 +8880,26 @@ var stdin_default$Z = defineComponent({
|
|
8873
8880
|
"fx": "50%",
|
8874
8881
|
"fy": "54%",
|
8875
8882
|
"r": "297%",
|
8876
|
-
"gradientTransform": "matrix(-.16 0 0 -.33 .58 .72)"
|
8883
|
+
"gradientTransform": "matrix(-.16 0 0 -.33 .58 .72)",
|
8884
|
+
"data-allow-mismatch": "attribute"
|
8877
8885
|
}, [renderStop("#EBEDF0", 0), renderStop("#F2F3F5", 100, 0.3)])]), createVNode("ellipse", {
|
8878
8886
|
"fill": getUrlById(id),
|
8879
8887
|
"opacity": ".8",
|
8880
8888
|
"cx": "80",
|
8881
8889
|
"cy": "140",
|
8882
8890
|
"rx": "46",
|
8883
|
-
"ry": "8"
|
8891
|
+
"ry": "8",
|
8892
|
+
"data-allow-mismatch": "attribute"
|
8884
8893
|
}, null)];
|
8885
8894
|
const renderBuilding = () => [createVNode("defs", null, [createVNode("linearGradient", {
|
8886
8895
|
"id": getId("a"),
|
8887
8896
|
"x1": "64%",
|
8888
8897
|
"y1": "100%",
|
8889
|
-
"x2": "64%"
|
8898
|
+
"x2": "64%",
|
8899
|
+
"data-allow-mismatch": "attribute"
|
8890
8900
|
}, [renderStop("#FFF", 0, 0.5), renderStop("#F2F3F5", 100)])]), createVNode("g", {
|
8891
|
-
"opacity": ".8"
|
8901
|
+
"opacity": ".8",
|
8902
|
+
"data-allow-mismatch": "children"
|
8892
8903
|
}, [createVNode("path", {
|
8893
8904
|
"d": "M36 131V53H16v20H2v58h34z",
|
8894
8905
|
"fill": getUrlById("a")
|
@@ -8901,9 +8912,11 @@ var stdin_default$Z = defineComponent({
|
|
8901
8912
|
"x1": "64%",
|
8902
8913
|
"y1": "97%",
|
8903
8914
|
"x2": "64%",
|
8904
|
-
"y2": "0%"
|
8915
|
+
"y2": "0%",
|
8916
|
+
"data-allow-mismatch": "attribute"
|
8905
8917
|
}, [renderStop("#F2F3F5", 0, 0.3), renderStop("#F2F3F5", 100)])]), createVNode("g", {
|
8906
|
-
"opacity": ".8"
|
8918
|
+
"opacity": ".8",
|
8919
|
+
"data-allow-mismatch": "children"
|
8907
8920
|
}, [createVNode("path", {
|
8908
8921
|
"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",
|
8909
8922
|
"fill": getUrlById("b")
|
@@ -8913,7 +8926,9 @@ var stdin_default$Z = defineComponent({
|
|
8913
8926
|
}, null)])];
|
8914
8927
|
const renderNetwork = () => createVNode("svg", {
|
8915
8928
|
"viewBox": "0 0 160 160"
|
8916
|
-
}, [createVNode("defs",
|
8929
|
+
}, [createVNode("defs", {
|
8930
|
+
"data-allow-mismatch": "children"
|
8931
|
+
}, [createVNode("linearGradient", {
|
8917
8932
|
"id": getId(1),
|
8918
8933
|
"x1": "64%",
|
8919
8934
|
"y1": "100%",
|
@@ -8940,14 +8955,17 @@ var stdin_default$Z = defineComponent({
|
|
8940
8955
|
"fill": "none"
|
8941
8956
|
}, [renderBuilding(), createVNode("path", {
|
8942
8957
|
"fill": getUrlById(4),
|
8943
|
-
"d": "M0 139h160v21H0z"
|
8958
|
+
"d": "M0 139h160v21H0z",
|
8959
|
+
"data-allow-mismatch": "attribute"
|
8944
8960
|
}, null), createVNode("path", {
|
8945
8961
|
"d": "M80 54a7 7 0 0 1 3 13v27l-2 2h-2a2 2 0 0 1-2-2V67a7 7 0 0 1 3-13z",
|
8946
|
-
"fill": getUrlById(2)
|
8962
|
+
"fill": getUrlById(2),
|
8963
|
+
"data-allow-mismatch": "attribute"
|
8947
8964
|
}, null), createVNode("g", {
|
8948
8965
|
"opacity": ".6",
|
8949
8966
|
"stroke-linecap": "round",
|
8950
|
-
"stroke-width": "7"
|
8967
|
+
"stroke-width": "7",
|
8968
|
+
"data-allow-mismatch": "children"
|
8951
8969
|
}, [createVNode("path", {
|
8952
8970
|
"d": "M64 47a19 19 0 0 0-5 13c0 5 2 10 5 13",
|
8953
8971
|
"stroke": getUrlById(3)
|
@@ -8984,7 +9002,9 @@ var stdin_default$Z = defineComponent({
|
|
8984
9002
|
}, null)])])]);
|
8985
9003
|
const renderMaterial = () => createVNode("svg", {
|
8986
9004
|
"viewBox": "0 0 160 160"
|
8987
|
-
}, [createVNode("defs",
|
9005
|
+
}, [createVNode("defs", {
|
9006
|
+
"data-allow-mismatch": "children"
|
9007
|
+
}, [createVNode("linearGradient", {
|
8988
9008
|
"x1": "50%",
|
8989
9009
|
"x2": "50%",
|
8990
9010
|
"y2": "100%",
|
@@ -9017,7 +9037,8 @@ var stdin_default$Z = defineComponent({
|
|
9017
9037
|
"fill": getUrlById(5),
|
9018
9038
|
"width": "64",
|
9019
9039
|
"height": "66",
|
9020
|
-
"rx": "2"
|
9040
|
+
"rx": "2",
|
9041
|
+
"data-allow-mismatch": "attribute"
|
9021
9042
|
}, null), createVNode("rect", {
|
9022
9043
|
"fill": "#FFF",
|
9023
9044
|
"x": "6",
|
@@ -9027,7 +9048,8 @@ var stdin_default$Z = defineComponent({
|
|
9027
9048
|
"rx": "1"
|
9028
9049
|
}, null), createVNode("g", {
|
9029
9050
|
"transform": "translate(15 17)",
|
9030
|
-
"fill": getUrlById(6)
|
9051
|
+
"fill": getUrlById(6),
|
9052
|
+
"data-allow-mismatch": "attribute"
|
9031
9053
|
}, [createVNode("rect", {
|
9032
9054
|
"width": "34",
|
9033
9055
|
"height": "6",
|
@@ -9044,7 +9066,8 @@ var stdin_default$Z = defineComponent({
|
|
9044
9066
|
"y": "61",
|
9045
9067
|
"width": "88",
|
9046
9068
|
"height": "28",
|
9047
|
-
"rx": "1"
|
9069
|
+
"rx": "1",
|
9070
|
+
"data-allow-mismatch": "attribute"
|
9048
9071
|
}, null), createVNode("rect", {
|
9049
9072
|
"fill": "#F7F8FA",
|
9050
9073
|
"x": "29",
|
@@ -9059,14 +9082,18 @@ var stdin_default$Z = defineComponent({
|
|
9059
9082
|
"x1": "50%",
|
9060
9083
|
"x2": "50%",
|
9061
9084
|
"y2": "100%",
|
9062
|
-
"id": getId(8)
|
9085
|
+
"id": getId(8),
|
9086
|
+
"data-allow-mismatch": "attribute"
|
9063
9087
|
}, [renderStops("#EAEDF1", "#DCDEE0")])]), renderBuilding(), renderCloud(), renderShadow("c"), createVNode("path", {
|
9064
9088
|
"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",
|
9065
|
-
"fill": getUrlById(8)
|
9089
|
+
"fill": getUrlById(8),
|
9090
|
+
"data-allow-mismatch": "attribute"
|
9066
9091
|
}, null)]);
|
9067
9092
|
const renderSearch = () => createVNode("svg", {
|
9068
9093
|
"viewBox": "0 0 160 160"
|
9069
|
-
}, [createVNode("defs",
|
9094
|
+
}, [createVNode("defs", {
|
9095
|
+
"data-allow-mismatch": "children"
|
9096
|
+
}, [createVNode("linearGradient", {
|
9070
9097
|
"x1": "50%",
|
9071
9098
|
"y1": "100%",
|
9072
9099
|
"x2": "50%",
|
@@ -9088,7 +9115,8 @@ var stdin_default$Z = defineComponent({
|
|
9088
9115
|
"id": getId(12)
|
9089
9116
|
}, [renderStops("#FFF", "#F7F8FA")])]), renderBuilding(), renderCloud(), renderShadow("d"), createVNode("g", {
|
9090
9117
|
"transform": "rotate(-45 113 -4)",
|
9091
|
-
"fill": "none"
|
9118
|
+
"fill": "none",
|
9119
|
+
"data-allow-mismatch": "children"
|
9092
9120
|
}, [createVNode("rect", {
|
9093
9121
|
"fill": getUrlById(9),
|
9094
9122
|
"x": "24",
|
@@ -9358,11 +9386,7 @@ var stdin_default$X = defineComponent({
|
|
9358
9386
|
const currentValues = ref(props2.modelValue);
|
9359
9387
|
const updatedByExternalSources = ref(false);
|
9360
9388
|
const pickerRef = ref();
|
9361
|
-
const
|
9362
|
-
const minYear = props2.minDate.getFullYear();
|
9363
|
-
const maxYear = props2.maxDate.getFullYear();
|
9364
|
-
return genOptions(minYear, maxYear, "year", props2.formatter, props2.filter);
|
9365
|
-
};
|
9389
|
+
const computedValues = computed(() => updatedByExternalSources.value ? props2.modelValue : currentValues.value);
|
9366
9390
|
const isMinYear = (year) => year === props2.minDate.getFullYear();
|
9367
9391
|
const isMaxYear = (year) => year === props2.maxDate.getFullYear();
|
9368
9392
|
const isMinMonth = (month) => month === props2.minDate.getMonth() + 1;
|
@@ -9373,7 +9397,7 @@ var stdin_default$X = defineComponent({
|
|
9373
9397
|
columnsType
|
9374
9398
|
} = props2;
|
9375
9399
|
const index = columnsType.indexOf(type);
|
9376
|
-
const value =
|
9400
|
+
const value = computedValues.value[index];
|
9377
9401
|
if (value) {
|
9378
9402
|
return +value;
|
9379
9403
|
}
|
@@ -9386,18 +9410,23 @@ var stdin_default$X = defineComponent({
|
|
9386
9410
|
return minDate.getDate();
|
9387
9411
|
}
|
9388
9412
|
};
|
9413
|
+
const genYearOptions = () => {
|
9414
|
+
const minYear = props2.minDate.getFullYear();
|
9415
|
+
const maxYear = props2.maxDate.getFullYear();
|
9416
|
+
return genOptions(minYear, maxYear, "year", props2.formatter, props2.filter, computedValues.value);
|
9417
|
+
};
|
9389
9418
|
const genMonthOptions = () => {
|
9390
9419
|
const year = getValue2("year");
|
9391
9420
|
const minMonth = isMinYear(year) ? props2.minDate.getMonth() + 1 : 1;
|
9392
9421
|
const maxMonth = isMaxYear(year) ? props2.maxDate.getMonth() + 1 : 12;
|
9393
|
-
return genOptions(minMonth, maxMonth, "month", props2.formatter, props2.filter);
|
9422
|
+
return genOptions(minMonth, maxMonth, "month", props2.formatter, props2.filter, computedValues.value);
|
9394
9423
|
};
|
9395
9424
|
const genDayOptions = () => {
|
9396
9425
|
const year = getValue2("year");
|
9397
9426
|
const month = getValue2("month");
|
9398
9427
|
const minDate = isMinYear(year) && isMinMonth(month) ? props2.minDate.getDate() : 1;
|
9399
9428
|
const maxDate = isMaxYear(year) && isMaxMonth(month) ? props2.maxDate.getDate() : getMonthEndDay(year, month);
|
9400
|
-
return genOptions(minDate, maxDate, "day", props2.formatter, props2.filter);
|
9429
|
+
return genOptions(minDate, maxDate, "day", props2.formatter, props2.filter, computedValues.value);
|
9401
9430
|
};
|
9402
9431
|
const confirm = () => {
|
9403
9432
|
var _a;
|
@@ -9847,6 +9876,7 @@ var stdin_default$U = defineComponent({
|
|
9847
9876
|
"id": `${id}-${index}`,
|
9848
9877
|
"role": "button",
|
9849
9878
|
"tabindex": disabled ? void 0 : 0,
|
9879
|
+
"data-allow-mismatch": "attribute",
|
9850
9880
|
"class": [bem$L("item", {
|
9851
9881
|
disabled,
|
9852
9882
|
grow: scrollable.value
|
@@ -10059,6 +10089,7 @@ var stdin_default$T = defineComponent({
|
|
10059
10089
|
position: "absolute"
|
10060
10090
|
},
|
10061
10091
|
"aria-labelledby": `${parent.id}-${index.value}`,
|
10092
|
+
"data-allow-mismatch": "attribute",
|
10062
10093
|
"closeOnClickOverlay": closeOnClickOverlay,
|
10063
10094
|
"onOpen": onOpen,
|
10064
10095
|
"onClose": onClose,
|
@@ -13394,7 +13425,8 @@ var stdin_default$v = defineComponent({
|
|
13394
13425
|
if (slots.label || props2.label) {
|
13395
13426
|
return createVNode("label", {
|
13396
13427
|
"class": bem$m("label"),
|
13397
|
-
"for": getInputId()
|
13428
|
+
"for": getInputId(),
|
13429
|
+
"data-allow-mismatch": "attribute"
|
13398
13430
|
}, [slots.label ? slots.label() : props2.label]);
|
13399
13431
|
}
|
13400
13432
|
};
|
@@ -15389,8 +15421,7 @@ const timePickerProps = extend({}, sharedProps, {
|
|
15389
15421
|
columnsType: {
|
15390
15422
|
type: Array,
|
15391
15423
|
default: () => ["hour", "minute"]
|
15392
|
-
}
|
15393
|
-
filter: Function
|
15424
|
+
}
|
15394
15425
|
});
|
15395
15426
|
var stdin_default$8 = defineComponent({
|
15396
15427
|
name: name$3,
|
@@ -17024,7 +17055,7 @@ const Lazyload = {
|
|
17024
17055
|
});
|
17025
17056
|
}
|
17026
17057
|
};
|
17027
|
-
const version = "4.9.
|
17058
|
+
const version = "4.9.8";
|
17028
17059
|
function install(app) {
|
17029
17060
|
const components = [
|
17030
17061
|
ActionBar,
|