上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 43 下一页
摘要: console.log('deselectTagValue: > ', deselectTagValue) console.log('tempTags::::before', tags.value) let tempTags = toRaw(tags.value); console.log('tem 阅读全文
posted @ 2023-04-07 10:58 Felix_Openmind 阅读(71) 评论(0) 推荐(0)
摘要: 参考:https://blog.csdn.net/sdibtjf1702/article/details/121923943 #### 效果 ![](https://img2023.cnblogs.com/blog/2104219/202305/2104219-20230525170001737-5 阅读全文
posted @ 2023-04-06 14:41 Felix_Openmind 阅读(2227) 评论(0) 推荐(0)
摘要: 参考:https://github.com/vuejs/vue-router/blob/dev/docs/zh/guide/advanced/scroll-behavior.md 滚动行为 观看 Vue School 的如何控制滚动行为的免费视频课程 (英文) 使用前端路由,当切换到新路由时,想要页 阅读全文
posted @ 2023-04-01 19:40 Felix_Openmind 阅读(103) 评论(0) 推荐(0)
摘要: 参考: https://juejin.cn/post/7009441745301667853 方法一:配置alias //app.vue <img src="/images/logo.png" alt="" /> //vite.config.js import { defineConfig } fr 阅读全文
posted @ 2023-03-28 11:51 Felix_Openmind 阅读(637) 评论(0) 推荐(0)
摘要: 父组件 <template> <h3>父组件</h3> <div>{{ num }}</div> <div ref="box">使用ref获取dom</div> <div>watch监听数据-{{ watchVal }}</div> <about-view ref="child" :datas="n 阅读全文
posted @ 2023-03-27 16:42 Felix_Openmind 阅读(291) 评论(0) 推荐(0)
摘要: store.js //vuex import { createStore } from 'vuex' ​ export default createStore({ state: { num:1 }, mutations: { /** * @description: 修改num成新的num * @pa 阅读全文
posted @ 2023-03-27 16:41 Felix_Openmind 阅读(37) 评论(0) 推荐(0)
摘要: 在vue2中是使用this.refs.子组件名称.xxx方法,即可拿到子组件定义的值或者方法,在vue3中没办法这么拿取,必须子组件暴露后父组件才可以拿取到 //子组件 <template> <div class="child"> {{val}} </div> </template> <script 阅读全文
posted @ 2023-03-27 16:40 Felix_Openmind 阅读(719) 评论(0) 推荐(0)
摘要: //子组件 <template> <div class="child"> 我是子组件 </div> </template> <script setup> import {defineEmits,onMounted} from 'vue' const emit = defineEmits() onMo 阅读全文
posted @ 2023-03-27 16:40 Felix_Openmind 阅读(1263) 评论(0) 推荐(0)
摘要: 父元素传递给子元素的数据,子元素使用defineProps进行接收 //父元素 <template> <div class="box"> <!-- 子组件引用 --> <v-child msg='我给子元素带的一段话'></v-child> </div> </template> ​ ​ //子元素 阅读全文
posted @ 2023-03-27 16:39 Felix_Openmind 阅读(295) 评论(0) 推荐(0)
摘要: 一个接口允许存在任意的属性 interface IPerson { name: string; age: number; userBio?: string; [propName: string]: any; } let wangzz: IPerson = { name: 'wangzz', age: 阅读全文
posted @ 2023-03-26 23:48 Felix_Openmind 阅读(513) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 43 下一页
*{cursor: url(https://files-cdn.cnblogs.com/files/morango/fish-cursor.ico),auto;}