@varlet/ui
Version:
A Vue3 component library based on Material Design 2 and 3, supporting mobile and desktop.
32 lines (31 loc) • 782 B
JavaScript
import { defineListenerProp } from "../utils/components.mjs";
const hoursAmpm = ["12", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11"];
const hours24 = ["00", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23"];
const minSec = ["00", "05", "10", "15", "20", "25", "30", "35", "40", "45", "50", "55"];
const props = {
modelValue: String,
elevation: {
type: [Boolean, Number, String],
default: false
},
hint: String,
color: String,
titleColor: String,
format: {
type: String,
default: "ampm"
},
allowedTime: Object,
min: String,
max: String,
useSeconds: Boolean,
readonly: Boolean,
"onUpdate:modelValue": defineListenerProp(),
onChange: defineListenerProp()
};
export {
hours24,
hoursAmpm,
minSec,
props
};