随笔分类 -  前端 / VUE设计与实现

摘要:示例一: <button @click="show = !show">Toggle</button> <Transition> <p v-if="show">hello</p> </Transition> /* 下面我们会解释这些 class 是做什么的 */ .v-enter-active, .v 阅读全文
posted @ 2025-04-22 09:20 爱晒太阳的懒猫。。 阅读(12) 评论(0) 推荐(0)
摘要:111 阅读全文
posted @ 2024-12-25 20:11 爱晒太阳的懒猫。。 阅读(21) 评论(0) 推荐(0)
摘要:检查存在 vue --version全局安装 npm install -g vue-clivue init webpack vueapp01 1.使用runtime + compiler new Vue({ el: '#app', router, components: { App }, templ 阅读全文
posted @ 2024-12-25 20:11 爱晒太阳的懒猫。。 阅读(29) 评论(0) 推荐(0)
摘要:<button @click="handleClick(item, $event)"/> 阅读全文
posted @ 2024-05-11 13:30 爱晒太阳的懒猫。。 阅读(57) 评论(0) 推荐(0)