笔记:
父传子组件,<molecule>内必须需要一个<template>,并且<template>上面需要属性 v-slot:子组件name,v-slot也可以简写成 #
<template v-slot:img>
父组件:
子组件:
笔记:
父传子组件,<molecule>内必须需要一个<template>,并且<template>上面需要属性 v-slot:子组件name,v-slot也可以简写成 #
<template v-slot:img>
父组件:
子组件: