摘要:
样例3: // img.onload = () => { // const originWidth = img.width; // const originHeight = img.height; // const maxWidth = 1600; // const maxHeight = 1200 阅读全文
摘要:
import React, { useState, useRef } from 'react'; import { QrcodeOutlined } from '@ant-design/icons'; import '@ant-design/compatible/assets/index.css'; 阅读全文
摘要:
Tslint配置主要配置文件如下: // tsconfig.json { "compilerOptions": { "target": "esnext", "module": "esnext", "strict": true, "jsx": "preserve", "importHelpers": 阅读全文
摘要:
以上是所有UI部分(包括交互):效果如下: 下面是hoc逻辑部分: 使用说明: 在其它组件中导入: 阅读全文
摘要:
样式如下: 阅读全文
摘要:
效果如下: 二,展示答题器状态 效果如下: 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
<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 阅读全文