This file contains 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
/** | |
* @description: antd-tree-singleSelect | |
*/ | |
import React, { useEffect, useState } from "react"; | |
import { Tree } from "antd"; | |
import { DataNode } from "antd/es/tree"; | |
const treeData: DataNode[] = [ | |
{ | |
title: "1", |
This file contains 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
/** | |
* @description: mix Input and Tag from antd, for Form.Item | |
*/ | |
import React, {Fragment, useState} from "react"; | |
import {Input, Tag, Form} from 'antd'; | |
import { PlusCircleOutlined } from '@ant-design/icons'; | |
import { getCharSize } from "./utils"; | |
interface PriceInputProps { | |
value?: Array<string>; |
This file contains 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 { Button, message } from "antd" | |
const ClickComp = (props) => { | |
let clicks = 0 | |
let clickTimer = null | |
let clickspan = 300 | |
const handleClick = () => { | |
clicks++ | |
if (clicks === 1) { | |
clickTimer = setTimeout(() => { |