1.在项目的main.ts下 import { createFromIconfontCN } from '@ant-design/icons-vue'; const IconFont = createFromIconfontCN({ scriptUrl ...
1.在项目的main.ts下 import { createFromIconfontCN } from '@ant-design/icons-vue'; const IconFont = createFromIconfontCN({ scriptUrl ...
1.下载icon图标,推荐 icomoon网站,里面有大量的矢量图标,也可以自定义,当然你也可以去 阿里巴巴矢量图标库下载你所需要的小图标。点击进入icomoon网站点击右上角“IcoMoon App”,找到自己需要的图标后选择然后点击右下角“Generate Font ...
当 tsconfig.json 中 引入elementui 和axios npm install element-plus --save npm install axios main.ts中配置如下 跨域问题: 新增vue ...
在项目根目录添加一个文件,比如叫index.d.ts,如果是像下面配置,就可以在文件中直接使用_.xxx,或者调用clickEvent函数了 import lodash from 'lodas ...
vue2的 this.refs[xxxx]写法在vue3中无法使用,因为获取组件实例修改成了 const xxxx = ref(null) 动态refs写法修改成: 官方文档链接: https://v3.cn.vuejs.org/guide/migration ...
vue3修改link中标签默认icon,vue3初次使用的时候不好好阅读配置难免会遇到一些坑,本人在项目完结的时候打算把浏览器的导航小icon图标给替换了,可是并没有那么顺利,那么如何在vue3中替换默认的icon(favicon.ico)的导航栏图标呢: public的index.html有这 ...
因为element-plus 1.2.0-beta.1以后移除了,所以需要自己引入 npm install @element-plus/icons //引入 按需引入 js ...
.markdown-body { line-height: 1.75; font-weight: 400; font-size: 15px; overflow-x: hidden; color: rg ...