大家好,我有以下code条.
我在试着做跟拍.
当用户从下拉列表中 Select 一个项目时,它会出现在带有结束标记的 Select 中.
所以我需要以某种方式定制和添加,除了关闭图标还编辑按钮.我怎样才能做到这一点呢?
import React from "react";
import "antd/dist/antd.css";
import { Select } from "and";
const { Option } = Select;
const arr = ["first value", "second value", "third value"];
const App = () => {
return (
<>
<Select
mode="tags"
size={"large"}
placeholder="Please select"
style={{
width: "100%"
}}
>
{arr?.map((el) => (
<Option key={el} value={el}>
{el}
</Option>
))}
</Select>
</>
);
};
export default App;
另外,不幸的是,我使用的是antd版本3.x.x
,它不支持tagRender
props .而且也没有办法升级到最新版本.
请帮我解决这个问题.