react
可劲矫情
这个作者很懒,什么都没留下…
展开
-
文件框拖拽 拉伸
代码奉上 tsx代码: import React, { Component, RefObject } from 'react' import './index.css' interface Iprop { } interface Istate { arr: arr[] } interface arr { id: symbol, txt: string } export default class index extends Component<Iprop, Ist原创 2022-03-27 20:13:43 · 742 阅读 · 0 评论 -
极简风,双球拖拽 (交叉版)
tsx代码 import React, { Component } from 'react' import './index.css' interface Iprop { } interface Istate { } export default class index extends Component<Iprop, Istate> { constructor(props: Iprop) { super(props) this.state = {}原创 2022-03-25 10:57:22 · 156 阅读 · 0 评论 -
react+ts小球抛物线
代码奉上 css: html,body{ height: 100%; } #root,.App,.wrap{ height: 100%; width: 100%; } .ball{ width: 60px; height: 60px; border-radius: 50%; position: absolute; background-color: tomato; transition: left 1s linear, top原创 2022-03-22 10:30:33 · 1055 阅读 · 0 评论