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
@@ -55,11 +55,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
55
55
|
const currentValues = (0, import_vue.ref)(props.modelValue);
|
56
56
|
const updatedByExternalSources = (0, import_vue.ref)(false);
|
57
57
|
const pickerRef = (0, import_vue.ref)();
|
58
|
-
const
|
59
|
-
const minYear = props.minDate.getFullYear();
|
60
|
-
const maxYear = props.maxDate.getFullYear();
|
61
|
-
return (0, import_utils2.genOptions)(minYear, maxYear, "year", props.formatter, props.filter);
|
62
|
-
};
|
58
|
+
const computedValues = (0, import_vue.computed)(() => updatedByExternalSources.value ? props.modelValue : currentValues.value);
|
63
59
|
const isMinYear = (year) => year === props.minDate.getFullYear();
|
64
60
|
const isMaxYear = (year) => year === props.maxDate.getFullYear();
|
65
61
|
const isMinMonth = (month) => month === props.minDate.getMonth() + 1;
|
@@ -70,7 +66,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
70
66
|
columnsType
|
71
67
|
} = props;
|
72
68
|
const index = columnsType.indexOf(type);
|
73
|
-
const value =
|
69
|
+
const value = computedValues.value[index];
|
74
70
|
if (value) {
|
75
71
|
return +value;
|
76
72
|
}
|
@@ -83,18 +79,23 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
83
79
|
return minDate.getDate();
|
84
80
|
}
|
85
81
|
};
|
82
|
+
const genYearOptions = () => {
|
83
|
+
const minYear = props.minDate.getFullYear();
|
84
|
+
const maxYear = props.maxDate.getFullYear();
|
85
|
+
return (0, import_utils2.genOptions)(minYear, maxYear, "year", props.formatter, props.filter, computedValues.value);
|
86
|
+
};
|
86
87
|
const genMonthOptions = () => {
|
87
88
|
const year = getValue("year");
|
88
89
|
const minMonth = isMinYear(year) ? props.minDate.getMonth() + 1 : 1;
|
89
90
|
const maxMonth = isMaxYear(year) ? props.maxDate.getMonth() + 1 : 12;
|
90
|
-
return (0, import_utils2.genOptions)(minMonth, maxMonth, "month", props.formatter, props.filter);
|
91
|
+
return (0, import_utils2.genOptions)(minMonth, maxMonth, "month", props.formatter, props.filter, computedValues.value);
|
91
92
|
};
|
92
93
|
const genDayOptions = () => {
|
93
94
|
const year = getValue("year");
|
94
95
|
const month = getValue("month");
|
95
96
|
const minDate = isMinYear(year) && isMinMonth(month) ? props.minDate.getDate() : 1;
|
96
97
|
const maxDate = isMaxYear(year) && isMaxMonth(month) ? props.maxDate.getDate() : (0, import_utils2.getMonthEndDay)(year, month);
|
97
|
-
return (0, import_utils2.genOptions)(minDate, maxDate, "day", props.formatter, props.filter);
|
98
|
+
return (0, import_utils2.genOptions)(minDate, maxDate, "day", props.formatter, props.filter, computedValues.value);
|
98
99
|
};
|
99
100
|
const confirm = () => {
|
100
101
|
var _a;
|
@@ -28,7 +28,7 @@ export declare const DatePicker: import("../utils").WithInstall<import("vue").De
|
|
28
28
|
type: import("vue").PropType<string[]>;
|
29
29
|
default: () => never[];
|
30
30
|
};
|
31
|
-
filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values
|
31
|
+
filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
|
32
32
|
formatter: {
|
33
33
|
type: import("vue").PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
34
34
|
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
@@ -77,7 +77,7 @@ export declare const DatePicker: import("../utils").WithInstall<import("vue").De
|
|
77
77
|
type: import("vue").PropType<string[]>;
|
78
78
|
default: () => never[];
|
79
79
|
};
|
80
|
-
filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values
|
80
|
+
filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
|
81
81
|
formatter: {
|
82
82
|
type: import("vue").PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
83
83
|
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
@@ -1,9 +1,7 @@
|
|
1
|
-
import { type RequiredParams } from '../utils';
|
2
1
|
import { pickerSharedProps } from '../picker/Picker';
|
3
2
|
import type { PropType } from 'vue';
|
4
3
|
import type { PickerOption } from '../picker';
|
5
|
-
type Filter = (columnType: string, options: PickerOption[], values
|
6
|
-
export type TimeFilter = RequiredParams<Filter>;
|
4
|
+
type Filter = (columnType: string, options: PickerOption[], values: string[]) => PickerOption[];
|
7
5
|
type Formatter = (type: string, option: PickerOption) => PickerOption;
|
8
6
|
export declare const sharedProps: {
|
9
7
|
loading: BooleanConstructor;
|
@@ -43,6 +41,6 @@ export declare const sharedProps: {
|
|
43
41
|
export declare const pickerInheritKeys: Array<keyof typeof pickerSharedProps>;
|
44
42
|
export declare function times<T>(n: number, iteratee: (index: number) => T): T[];
|
45
43
|
export declare const getMonthEndDay: (year: number, month: number) => number;
|
46
|
-
export declare const genOptions: <T extends string>(min: number, max: number, type: T, formatter: Formatter, filter
|
44
|
+
export declare const genOptions: <T extends string>(min: number, max: number, type: T, formatter: Formatter, filter: Filter | undefined, values: string[]) => PickerOption[];
|
47
45
|
export declare const formatValueRange: (values: string[], columns: PickerOption[][]) => string[];
|
48
46
|
export {};
|
@@ -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
@@ -246,7 +246,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
246
246
|
if (props.type === "number" || props.type === "digit") {
|
247
247
|
const isNumber = props.type === "number";
|
248
248
|
value = (0, import_utils.formatNumber)(value, isNumber, isNumber);
|
249
|
-
if (trigger === "onBlur" && value !== "") {
|
249
|
+
if (trigger === "onBlur" && value !== "" && (props.min !== void 0 || props.max !== void 0)) {
|
250
250
|
const adjustedValue = (0, import_utils.clamp)(+value, (_a = props.min) != null ? _a : -Infinity, (_b = props.max) != null ? _b : Infinity);
|
251
251
|
value = adjustedValue.toString();
|
252
252
|
}
|
@@ -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.8";
|
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
|
});
|
@@ -1,5 +1,4 @@
|
|
1
1
|
import { type ExtractPropTypes, type PropType, type ComponentPublicInstance } from 'vue';
|
2
|
-
import { type TimeFilter } from '../date-picker/utils';
|
3
2
|
export type TimePickerColumnType = 'hour' | 'minute' | 'second';
|
4
3
|
export declare const timePickerProps: {
|
5
4
|
loading: BooleanConstructor;
|
@@ -30,7 +29,7 @@ export declare const timePickerProps: {
|
|
30
29
|
type: PropType<string[]>;
|
31
30
|
default: () => never[];
|
32
31
|
};
|
33
|
-
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values
|
32
|
+
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values: string[]) => import("../picker").PickerOption[]>;
|
34
33
|
formatter: {
|
35
34
|
type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
|
36
35
|
default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
@@ -72,7 +71,6 @@ export declare const timePickerProps: {
|
|
72
71
|
type: PropType<TimePickerColumnType[]>;
|
73
72
|
default: () => string[];
|
74
73
|
};
|
75
|
-
filter: PropType<TimeFilter>;
|
76
74
|
};
|
77
75
|
export type TimePickerProps = ExtractPropTypes<typeof timePickerProps>;
|
78
76
|
export type TimePickerExpose = {
|
@@ -109,7 +107,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
109
107
|
type: PropType<string[]>;
|
110
108
|
default: () => never[];
|
111
109
|
};
|
112
|
-
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values
|
110
|
+
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values: string[]) => import("../picker").PickerOption[]>;
|
113
111
|
formatter: {
|
114
112
|
type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
|
115
113
|
default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
@@ -151,7 +149,6 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
151
149
|
type: PropType<TimePickerColumnType[]>;
|
152
150
|
default: () => string[];
|
153
151
|
};
|
154
|
-
filter: PropType<TimeFilter>;
|
155
152
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm")[], "update:modelValue" | "cancel" | "change" | "confirm", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
156
153
|
loading: BooleanConstructor;
|
157
154
|
readonly: BooleanConstructor;
|
@@ -181,7 +178,7 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
181
178
|
type: PropType<string[]>;
|
182
179
|
default: () => never[];
|
183
180
|
};
|
184
|
-
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values
|
181
|
+
filter: PropType<(columnType: string, options: import("../picker").PickerOption[], values: string[]) => import("../picker").PickerOption[]>;
|
185
182
|
formatter: {
|
186
183
|
type: PropType<(type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption>;
|
187
184
|
default: (type: string, option: import("../picker").PickerOption) => import("../picker").PickerOption;
|
@@ -223,7 +220,6 @@ declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
|
|
223
220
|
type: PropType<TimePickerColumnType[]>;
|
224
221
|
default: () => string[];
|
225
222
|
};
|
226
|
-
filter: PropType<TimeFilter>;
|
227
223
|
}>> & Readonly<{
|
228
224
|
onChange?: ((...args: any[]) => any) | undefined;
|
229
225
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
@@ -28,7 +28,7 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
|
|
28
28
|
type: import("vue").PropType<string[]>;
|
29
29
|
default: () => never[];
|
30
30
|
};
|
31
|
-
filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values
|
31
|
+
filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
|
32
32
|
formatter: {
|
33
33
|
type: import("vue").PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
34
34
|
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
@@ -70,7 +70,6 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
|
|
70
70
|
type: import("vue").PropType<import("./TimePicker").TimePickerColumnType[]>;
|
71
71
|
default: () => string[];
|
72
72
|
};
|
73
|
-
filter: import("vue").PropType<import("../date-picker/utils").TimeFilter>;
|
74
73
|
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "cancel" | "change" | "confirm")[], "update:modelValue" | "cancel" | "change" | "confirm", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
75
74
|
loading: BooleanConstructor;
|
76
75
|
readonly: BooleanConstructor;
|
@@ -100,7 +99,7 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
|
|
100
99
|
type: import("vue").PropType<string[]>;
|
101
100
|
default: () => never[];
|
102
101
|
};
|
103
|
-
filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values
|
102
|
+
filter: import("vue").PropType<(columnType: string, options: import("..").PickerOption[], values: string[]) => import("..").PickerOption[]>;
|
104
103
|
formatter: {
|
105
104
|
type: import("vue").PropType<(type: string, option: import("..").PickerOption) => import("..").PickerOption>;
|
106
105
|
default: (type: string, option: import("..").PickerOption) => import("..").PickerOption;
|
@@ -142,7 +141,6 @@ export declare const TimePicker: import("../utils").WithInstall<import("vue").De
|
|
142
141
|
type: import("vue").PropType<import("./TimePicker").TimePickerColumnType[]>;
|
143
142
|
default: () => string[];
|
144
143
|
};
|
145
|
-
filter: import("vue").PropType<import("../date-picker/utils").TimeFilter>;
|
146
144
|
}>> & Readonly<{
|
147
145
|
onChange?: ((...args: any[]) => any) | undefined;
|
148
146
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|