07 2021 档案

摘要:/** * require.context * @param {directory}:表示检索的目录 * @param {useSubdirectories}:表示是否检索子文件夹 * @param {regExp}:匹配文件的正则表达式,一般是文件名 * @param {mode}:加载模式,同步 阅读全文
posted @ 2021-07-10 20:16 杨景贵 阅读(67) 评论(0) 推荐(0)
摘要:tsx两种使用方式 import { defineComponent } from "vue"; export default defineComponent({ setup() { return () => ( <div></div> ) } }) import { defineComponent 阅读全文
posted @ 2021-07-10 20:11 杨景贵 阅读(2515) 评论(0) 推荐(0)
摘要:1. 创建方式 // render props class Mouse extends Component { state = { x: 0, y: 0 } handleMouseMove = e => { this.setState({ x: e.clientX, y: e.clientY, }) 阅读全文
posted @ 2021-07-10 19:47 杨景贵 阅读(82) 评论(0) 推荐(0)
摘要:安装element-plus npm install element-plus --save 安装 babel-plugin-import npm install babel-plugin-import -D 安装sass sass-loader npm install sass sass-load 阅读全文
posted @ 2021-07-04 16:27 杨景贵 阅读(1793) 评论(1) 推荐(0)