上一页 1 2 3 4 5 6 7 8 ··· 21 下一页
摘要: 官方文档:#tooltip.formatter 两种方法,如 trigger: 'axis' 的情况下,均在 tooltip 节点下添加如下: 1. 模板字符串 formatter:'<span style="font-size: 10px">{b}</span><div style="displa 阅读全文
posted @ 2022-09-27 19:13 RHCHIK 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 一文搞懂Vue3.2中setup语法糖使用 阅读全文
posted @ 2022-09-27 11:05 RHCHIK 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 可能很多同学(包括我)刚上手 Vue 3.0 之后,都会觉得开发过程似乎变得更繁琐了,Vue 官方团队当然不会无视群众的呼声,如果你基于脚手架和 .vue 文件开发,那么可以享受到更高效率的开发体验。 在阅读这篇文章之前,需要对 Vue 3.0 的单组件有一定的了解,如果还处于完全没有接触过的阶段, 阅读全文
posted @ 2022-09-27 10:14 RHCHIK 阅读(8050) 评论(0) 推荐(0) 编辑
摘要: body, ol, ul, h1, h2, h3, h4, h5, h6, p, th, td, dl, dd, form, fieldset, legend, input, textarea, select, figure, figcaption { margin: 0; padding: 0; 阅读全文
posted @ 2022-09-26 16:50 RHCHIK 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 1. 建立hook文件夹,在hook文件夹里面建立 useAxios.ts 文件,内容如下: import { ref } from 'vue'; import axios from 'axios'; export default function<T>(url: string, method: s 阅读全文
posted @ 2022-09-26 15:49 RHCHIK 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 在vue2中我们已经使用过provide和inject来实现祖孙组件之间的数据传递,但是在vue3中由于我们使用setup,此时我们应该如何去使用provide和inject函数呢? 在vue中帮我们提供了provide和inject的函数,我们可以直接在setup函数中使用即可。 一、provid 阅读全文
posted @ 2022-09-26 14:38 RHCHIK 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1、watch需要明确监听哪个属性2、watchEffect会根据其中的属性,自动监听其变化3、watcheffect初始化时,一定会执行一次(收集要监听的数据,不然不知道监听的是什么),watch只有你设置了初始化监听才会监听 作者:时间的溺水者链接:https://www.jianshu.com 阅读全文
posted @ 2022-09-26 11:49 RHCHIK 阅读(172) 评论(0) 推荐(0) 编辑
摘要: import { ref, reactive } from 'vue', // setup(){ const mydata = ref({ n: 10, arr: [1,2,3], obj: { name: 'zs', age: 18 } }) const mydata = reactive({ n 阅读全文
posted @ 2022-09-26 11:11 RHCHIK 阅读(452) 评论(0) 推荐(0) 编辑
摘要: 前置环境: 1. 手写h函数 vnode.js // 默认暴露 export default function(sel, data, children, text, elm) { return { sel, data, children, text, elm } } h.js import vnod 阅读全文
posted @ 2022-09-22 17:30 RHCHIK 阅读(30) 评论(0) 推荐(0) 编辑
摘要: (<any>uni).$http = $http 阅读全文
posted @ 2022-09-09 16:58 RHCHIK 阅读(163) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 21 下一页