Explorar el Código

relation 选择添加清空按钮

visuddhinanda hace 2 años
padre
commit
698c7b449f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      dashboard/src/components/template/Wbw/WbwDetailRelation.tsx

+ 1 - 1
dashboard/src/components/template/Wbw/WbwDetailRelation.tsx

@@ -214,7 +214,7 @@ const WbwDetailRelationWidget = ({ data, onChange, onAdd }: IWidget) => {
             <Select
               defaultValue={item.relation}
               placeholder={"请选择关系"}
-              clearIcon={true}
+              allowClear={item.is_new ? true : false}
               style={{ width: 180 }}
               onChange={(value: string) => {
                 if (item.is_new) {