Replies: 1 comment 2 replies
-
export default connect(
observer(
defineComponent({
setup(props, ctx) {
const field: any | GeneralField = useField().value
return () => {
return h(ProjectSelect, {
attrs: {
...ctx.attrs
},
on: {
'change': (val: string) => {
field.setValue(val)
}
}
});
};
},
}),
)
) 这是我写的一个自定义组件,可以参照着看看 |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
【环境】vue2.6+element+formilyjs ^2.0.9
【问题】 封装好的自定义组件,如何定义到formily中,官网也没有实列和相关文档
Beta Was this translation helpful? Give feedback.
All reactions