UNPKG

comic-plus

Version:

<p align="center"> <img width="200px" src="./logo.png"/> </p>

32 lines (31 loc) 713 B
import "../../../utils/config.mjs"; import "vue"; import { isString } from "../../../utils/typescript.mjs"; import "@vueuse/core"; const timePickerProps = { modelValue: { type: [String, Array], required: true }, rangeSeparator: { type: String, default: "/" }, size: String, range: Boolean, placeholder: String, startPlaceholder: String, endPlaceholder: String, disabled: Boolean, clearable: Boolean }; const isValidValue = (value) => isString(value) || Array.isArray(value) && value.every((val) => isString(val)); const timePickerEmits = { ["update:modelValue"]: isValidValue, change: isValidValue, clear: () => true }; export { timePickerEmits, timePickerProps };