学习Vue3 第十四章(父子组件传参)
父组件通过v-bind绑定一个数据,然后子组件通过defineProps接受传过来的值,
如以下代码
给Menu组件 传递了一个title 字符串类型是不需要v-bind
传递非字符串类型需要加v-bind 简写 冒号
相关内容
- Unifi – Ubiquiti
- Disable UnUsed Background Services & Remove Built-in Useless Components and Features to Speed up Windows System
- Free and Easy Way to Sync Your Local Folder to Cloud Drives Folder (Mount to Local then Sync)
- 琳琅の小屋
- Cloudflare R2 Storage Integrates with ShareX
- Azure Cyber Security Assessment Tool (CSAT) / Tenant Security Scan

共有 0 条评论