随笔分类 -  工具插件

react-text-loop 文字滚动
摘要:网址:https://www.npmjs.com/package/react-text-loop npm install react-text-loop or yarn add react-text-loop import React, { Component } from 'react'; imp 阅读全文

posted @ 2020-10-15 11:17 秃了头也不退休 阅读(3329) 评论(0) 推荐(1)

vue-复制
摘要:1.安装vue-clipboard2 npm install --save-dev vue-clipboard2 2.main.js中添加 import VueClipboard from 'vue-clipboard2' VueClipboard.config.autoSetContainer = 阅读全文

posted @ 2020-08-27 16:46 秃了头也不退休 阅读(240) 评论(0) 推荐(0)

Nprogress-进度条
摘要:引入 nprogress yarn add nprogress import NProgress from 'nprogress' import 'nprogress/nprogress.css' //这个样式必须引入 router.beforeEach((to,from,next) => { NP 阅读全文

posted @ 2020-08-27 14:43 秃了头也不退休 阅读(504) 评论(0) 推荐(0)

Cube-ui的使用
摘要:官网:https://didi.github.io/cube-ui/#/zh-CN/docs/introduction vue create hello-cube-ui vue add cube-ui 阅读全文

posted @ 2020-08-26 09:26 秃了头也不退休 阅读(505) 评论(0) 推荐(0)

react-countup - 数字滚动效果
摘要:import CountUp,{startAnimation} from 'react-countup' import './countup.css' class Index extends Component { state = { end:100 } onComplete=()=>{ conso 阅读全文

posted @ 2020-08-14 14:31 秃了头也不退休 阅读(4560) 评论(0) 推荐(0)

react-intl 国际化
摘要:1.安装 npm install react-intl --save 注意: 为了兼容Safari各个版本,需要同时安装 intl,intl在大部分的『现代』浏览器中是默认自带的,但是Safari和IE11以下的版本就没有了,这里需要留个心眼。 安装intl需要在终端中输入以下指令: npm ins 阅读全文

posted @ 2020-08-13 15:43 秃了头也不退休 阅读(1098) 评论(0) 推荐(0)

关于图片压缩
摘要:1.手动压缩网站 https://tinypng.com/ 2.上传图片时压缩 lrz说明 ( github地址 :https://github.com/think2011/localResizeIMG ) 用于:在客户端压缩好要上传的图片可以节省带宽更快的发送给后端,特别适合在移动设备上使用。 解 阅读全文

posted @ 2020-05-22 09:52 秃了头也不退休 阅读(311) 评论(0) 推荐(0)

导航