You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
688 B
25 lines
688 B
'use strict';
|
|
|
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
|
var props = require('../../../utils/props.js');
|
|
var constants = require('../../../utils/constants.js');
|
|
|
|
const calendarProps = props.buildProps({
|
|
modelValue: {
|
|
type: Date
|
|
},
|
|
range: {
|
|
type: props.definePropType(Array),
|
|
validator: (range) => Array.isArray(range) && range.length === 2 && range.every((item) => item instanceof Date)
|
|
}
|
|
});
|
|
const calendarEmits = {
|
|
[constants.UPDATE_MODEL_EVENT]: (value) => value instanceof Date,
|
|
input: (value) => value instanceof Date
|
|
};
|
|
|
|
exports.calendarEmits = calendarEmits;
|
|
exports.calendarProps = calendarProps;
|
|
//# sourceMappingURL=calendar.js.map
|