摘要:
在组件中使用 Pinia 状态管理: <template> <div> <p>当前计数:{{ count }}</p> <button @click="increment">增加</button> <button @click="decrement">减少</button> </div> </tem 阅读全文
摘要:
npm包文档: https://www.npmjs.com/package/nprogress/v/0.2.0?activeTab=readme 阅读全文
摘要:
父组件向子组件传值 1.简单的props方式 //fater.vue <div class="father"> <children :carr="arr" /> </div> <script setup lang="ts"> import children from './children.vue' 阅读全文