Browse Source

relation 选择添加清空按钮

visuddhinanda 2 years ago
parent
commit
698c7b449f
1 changed files with 1 additions and 1 deletions
  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
             <Select
               defaultValue={item.relation}
               defaultValue={item.relation}
               placeholder={"请选择关系"}
               placeholder={"请选择关系"}
-              clearIcon={true}
+              allowClear={item.is_new ? true : false}
               style={{ width: 180 }}
               style={{ width: 180 }}
               onChange={(value: string) => {
               onChange={(value: string) => {
                 if (item.is_new) {
                 if (item.is_new) {