vue经过this.$refs引用子组件出现undefined或者is not a function的错误

1.出现undefined错误 包含子组件的标签须要放在<template></template>中第一个子标签的子标签中,并且须要设置ref属性,经过该属性调用子组件的方法或者属性,例如 <template> <a-card :bordered="false"> <s-table> ... </s-table> <order-edit ref="m
相关文章
相关标签/搜索