Skip to content

Commit

Permalink
fix(comp:tree): improve browser compatibility (#1585)
Browse files Browse the repository at this point in the history
  • Loading branch information
danranVm committed Jun 28, 2023
1 parent 5b73101 commit 9949124
Show file tree
Hide file tree
Showing 2 changed files with 225 additions and 230 deletions.
4 changes: 2 additions & 2 deletions packages/cdk/forms/demo/CustomForm.vue
Expand Up @@ -12,10 +12,10 @@ defineProps<{
}>()
// 通过 props.control 拿到真正的 control(AbstractControl)
const control = useControl()
const controlRef = useControl()
// 注入 control, 以便子组件通过 key 获取对应的子 control
provide(FORMS_CONTROL_TOKEN, control)
provide(FORMS_CONTROL_TOKEN, controlRef)
</script>

<style scoped lang="less">
Expand Down

0 comments on commit 9949124

Please sign in to comment.