会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
贝子涵夕
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
下一页
2020年3月20日
前端实现图片压缩(两种方法)
摘要: 样例3: // img.onload = () => { // const originWidth = img.width; // const originHeight = img.height; // const maxWidth = 1600; // const maxHeight = 1200
阅读全文
posted @ 2020-03-20 20:46 贝子涵夕
阅读(13994)
评论(0)
推荐(0)
2020年3月19日
二维码识别
摘要: import React, { useState, useRef } from 'react'; import { QrcodeOutlined } from '@ant-design/icons'; import '@ant-design/compatible/assets/index.css';
阅读全文
posted @ 2020-03-19 19:01 贝子涵夕
阅读(337)
评论(0)
推荐(0)
2020年3月7日
vue+typescript项目中eslint,tslint配置
摘要: Tslint配置主要配置文件如下: // tsconfig.json { "compilerOptions": { "target": "esnext", "module": "esnext", "strict": true, "jsx": "preserve", "importHelpers":
阅读全文
posted @ 2020-03-07 16:52 贝子涵夕
阅读(11386)
评论(0)
推荐(0)
2019年9月9日
react 提示消息队列 (支持动态添加,删除,多实例化)
摘要: 以上是所有UI部分(包括交互):效果如下: 下面是hoc逻辑部分: 使用说明: 在其它组件中导入:
阅读全文
posted @ 2019-09-09 11:29 贝子涵夕
阅读(980)
评论(0)
推荐(0)
2019年9月5日
音量调节条-封装通用的ProgressBar组件
摘要: 样式如下:
阅读全文
posted @ 2019-09-05 13:57 贝子涵夕
阅读(720)
评论(0)
推荐(0)
2019年9月4日
react实现设置答题器选项个数
摘要: 效果如下: 二,展示答题器状态 效果如下:
阅读全文
posted @ 2019-09-04 18:06 贝子涵夕
阅读(604)
评论(0)
推荐(0)
2019年9月2日
可动态增加、删除的全局蒙灰弹层
摘要: import React, { Component } from 'react' import PropTypes from 'prop-types' import assign from 'object-assign' import _ from 'lodash' import { observable, action, } from 'mobx' import { observer, } fr
阅读全文
posted @ 2019-09-02 14:56 贝子涵夕
阅读(232)
评论(0)
推荐(0)
2019年8月29日
单选按钮(CheckBox)
摘要: import React, { useState, useEffect } from 'react' import PropTypes from 'prop-types' import _ from 'lodash' import classnames from 'classnames' import './index.less' function CheckBox(props) { const
阅读全文
posted @ 2019-08-29 16:39 贝子涵夕
阅读(455)
评论(0)
推荐(0)
封装二级询问弹框组件
摘要: import React, { Component } from 'react' import PropTypes from 'prop-types' import _ from 'lodash' import assign from 'object-assign' import './index.less' import NormalButton from '../NormalButton' i
阅读全文
posted @ 2019-08-29 16:38 贝子涵夕
阅读(200)
评论(0)
推荐(0)
2019年8月27日
两个gif图片动画效果
摘要: <div className="uploading-animation-tip-wrap"> <img src={require('~/shared/assets/image/slide-uploading-animation-file-300-300.gif')} alt="" className="uploading-tip-animation-file" /> <img src={requi
阅读全文
posted @ 2019-08-27 18:01 贝子涵夕
阅读(346)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告