feat: 在可重用模板中添加标题以增强可读性
All checks were successful
/ build-and-deploy-to-vercel (push) Successful in 1m37s
/ playwright (push) Successful in 1m49s
/ depcheck (push) Successful in 1m27s

This commit is contained in:
严浩
2024-12-20 16:33:59 +08:00
parent 49fc15b1b6
commit 76aa6eac79

View File

@ -1,4 +1,5 @@
<template>
<h1>Use Reusable Template</h1>
<TemplateFoo.define v-slot="{ $slots, msg }">
<div>Hello {{ msg.toUpperCase() }}</div>
<component :is="$slots.slotNameee" slotPropName="valueee" />