提交 9c3e08b4 编写于 作者: S suzigang

fix: steps getCurrentInstance proxy

上级 8258d779
......@@ -53,15 +53,15 @@ export default create({
},
setup(props, { emit, slots }) {
const instance = getCurrentInstance() as ComponentInternalInstance;
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
const parent: any = inject('parent');
parent['relation'](instance);
parent['relation'](proxy);
const state = reactive({
dot: parent.props.progressDot
});
const index = computed(() => parent.state.children.indexOf(instance) + 1);
const index = computed(() => parent.state.children.indexOf(proxy) + 1);
const getCurrentStatus = () => {
const activeIndex = index.value;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册