.box:before{
content: "";
pointer-events: none; /* 防止点击触发 */
box-sizing: border-box;
position: absolute;
width: 200%;
height: 200%;
left: 0;
top: 0;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useState } from 'react'; | |
import { Tree } from 'antd'; | |
import { EditOutlined, PlusOutlined, MinusOutlined, CloseOutlined, CheckOutlined } from '@ant-design/icons'; | |
import { nanoid } from 'nanoid'; | |
const { TreeNode } = Tree; | |
const treeData = [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const trim = function (str, type) { | |
// 去除空格, type: 1-所有空格 2-前后空格 3-前空格 4-后空格 | |
type = type || 1; | |
switch (type) { | |
case 1: | |
return str.replace(/\s+/g, ''); | |
case 2: | |
return str.replace(/(^\s*)|(\s*$)/g, ''); | |
case 3: | |
return str.replace(/(^\s*)/g, ''); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Contact extends React.Component { | |
componentDidMount() { | |
this.initMap(); | |
} | |
initMap = () => { | |
// 百度地图API功能 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Mask from './Mask'; | |
import SimpleCZPlayer from '@comp/course/SimpleCZPlayer'; | |
import ReactDOM from 'react-dom'; | |
import React from 'react'; | |
import classnames from 'classnames'; | |
import '../css/modals.scss'; | |
export default class SimpleCZPlayerModal extends React.Component { | |
static propTypes = {}; | |
static defaultProps = { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import classNames from 'classnames'; | |
import nanoid from 'nanoid'; | |
import { U } from '../common'; | |
import '../../assets/css/course/cz-player.scss'; | |
class SimpleCZPlayer extends React.Component { | |
constructor (props) { | |
super(props); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import {Button, Col, Input, InputNumber, Modal, Row, Spin,message} from 'antd'; | |
import jrQrcode from 'jr-qrcode'; | |
import Utils from "../../common/Utils"; | |
import App from '../../common/App' | |
import copy from 'copy-to-clipboard'; | |
const id_div = 'div-dialog-qrcode'; | |
export default class DialogQRCode extends React.Component { | |
constructor(props) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import md5 from "js-md5"; | |
var U = (function () { | |
var _logEnabled = false; | |
var log = function () { | |
if (!_logEnabled || !console || !console.log) { | |
} | |
}; | |
var isLogEnabled = function () { | |
return _logEnabled; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {Component} from 'react'; | |
import {Animated, StyleSheet, TouchableOpacity} from 'react-native'; | |
const styles = StyleSheet.create({ | |
container: { | |
height: 30, | |
width: 50, | |
borderRadius: 15, | |
backgroundColor: '#3AC16C', | |
}, |