UNPKG

hongluan-ui

Version:
53 lines (50 loc) 1.16 kB
import '../../../constants/index.mjs'; import '../../../utils/index.mjs'; import { CHANGE_EVENT } from '../../../constants/event.mjs'; import { isNumber } from '../../../utils/types.mjs'; const stepsProps = { gap: { type: [Number, String], default: "" }, itemPadding: { type: [Number, String], default: "" }, active: { type: Number, default: 0 }, dir: { type: String, default: "horizontal", validator: (val) => ["horizontal", "vertical", "inline"].includes(val) }, block: { type: Boolean, default: false }, center: { type: Boolean, default: false }, simple: { type: Boolean, default: false }, finishStatus: { type: String, default: "finish", validator: (val) => ["wait", "process", "finish", "error", "success"].includes(val) }, processStatus: { type: String, default: "process", validator: (val) => ["wait", "process", "finish", "error", "success"].includes(val) } }; const stepsEmits = { [CHANGE_EVENT]: (newVal, oldVal) => isNumber(newVal) && isNumber(oldVal) }; export { stepsEmits, stepsProps }; //# sourceMappingURL=steps.mjs.map