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
相關文章
相關標籤/搜索