feat: 微客宝H5客户端 - 基础架构+核心页面

This commit is contained in:
li
2026-03-14 19:44:03 +08:00
parent 54d2f617bb
commit 0e974da09c
3738 changed files with 811180 additions and 21 deletions
+46
View File
@@ -0,0 +1,46 @@
import { defineComponent, createVNode as _createVNode } from "vue";
import { makeStringProp, makeNumericProp, createNamespace } from "../utils/index.mjs";
import { useChildren } from "@vant/use";
const [name, bem] = createNamespace("steps");
const stepsProps = {
active: makeNumericProp(0),
direction: makeStringProp("horizontal"),
activeIcon: makeStringProp("checked"),
iconPrefix: String,
finishIcon: String,
activeColor: String,
inactiveIcon: String,
inactiveColor: String
};
const STEPS_KEY = Symbol(name);
var stdin_default = defineComponent({
name,
props: stepsProps,
emits: ["clickStep"],
setup(props, {
emit,
slots
}) {
const {
linkChildren
} = useChildren(STEPS_KEY);
const onClickStep = (index) => emit("clickStep", index);
linkChildren({
props,
onClickStep
});
return () => {
var _a;
return _createVNode("div", {
"class": bem([props.direction])
}, [_createVNode("div", {
"class": bem("items")
}, [(_a = slots.default) == null ? void 0 : _a.call(slots)])]);
};
}
});
export {
STEPS_KEY,
stdin_default as default,
stepsProps
};