UNPKG

comic-plus

Version:

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

26 lines (25 loc) 608 B
const switchProps = { modelValue: [Boolean, String, Number], onText: String, offText: String, onValue: [String, Number], offValue: [String, Number], onColor: String, offColor: String, disabled: Boolean, square: Boolean, inlineText: Boolean, onIcon: [String, Object], offIcon: [String, Object], beforeChange: Function, loading: Boolean, size: String }; const switchEmits = { ["update:modelValue"]: (val) => ["boolean", "string", "number"].includes(typeof val), change: (val) => ["boolean", "string", "number"].includes(typeof val) }; export { switchEmits, switchProps };