template
<avue-crud
ref="crud"
v-bind="$attrs"
v-on="$listeners"
>
<template
#[slotName]="slotProps"
v-for="(slot, slotName) in $scopedSlots"
>
<slot :name="slotName" v-bind="slotProps"></slot>
</template>
</avue-crud>
method
<script>
export default {
methods: {
dicInit(...reset) {
this.$refs.crud.dicInit(...reset);
},
rowView(...reset) {
this.$refs.crud.rowView(...reset);
},
}
}
</script>
标签:11,...,rowView,refs,crud,reset,vue2,透传
From: https://www.cnblogs.com/yehuda/p/16880865.html