import{CloseCircleOutlined as e}from"@ant-design/icons";import{Select as t}from"antd";import{jsx as n,jsxs as i}from"react/jsx-runtime";function a(a){const{items:o,showDelete:l=!0,label:r="",maxCount:s=1,onDelete:m,...d}=a;return n(t,{mode:"tags",maxCount:s,placeholder:`请选择${r}，无对应选项可直接输入创建选项`,optionRender:t=>i("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[n("span",{children:t.label}),l&&n(e,{style:{marginRight:10},onClick:e=>{e.stopPropagation(),(e=>{m?.(e)})(t)}})]}),...d,children:o.map(e=>n(t.Option,{value:e.id,children:e.name},e.id))})}a.displayName="SelectCreate";export{a as default};
