diff --git a/src/forge/Issues/Component/allMenus.jsx b/src/forge/Issues/Component/allMenus.jsx index 740fb030..90afca54 100644 --- a/src/forge/Issues/Component/allMenus.jsx +++ b/src/forge/Issues/Component/allMenus.jsx @@ -205,6 +205,7 @@ function AllMenus({owner,projectsId,chooseFunc,update,defaultNames,defaultIds,op chooseFunc={(id,name)=>{let copy = {...ids,status_id:id && id.length>0 ? id.join(","):undefined};let copyname = { ...names,status_name:name};setNames(copyname);setIds(copy);chooseFunc(copy,copyname)}} /> { !update && - {overlay}} - trigger={['click']} - overlayClassName={overlayClassName} - > - setVisible(visible ? false : true)}> - {children} - - - + {overlay}} + trigger={['click']} + overlayClassName={overlayClassName} + > + setVisible(visible ? false : true)}> + {children} + + ) } export default forwardRef(Drop); \ No newline at end of file diff --git a/src/forge/Issues/Component/menus.jsx b/src/forge/Issues/Component/menus.jsx index 46ffe2b3..24aa86ad 100644 --- a/src/forge/Issues/Component/menus.jsx +++ b/src/forge/Issues/Component/menus.jsx @@ -5,6 +5,7 @@ import Drop from './drop'; const { Search } = Input; /** + * @param {className}
  • 的样式名称 * @param {name} 未选择时显示的内容 * @param {lists} 下拉列表,从接口获取,需一一填充 * @param {imgControl} 控制是否显示头像 @@ -15,7 +16,7 @@ const { Search } = Input; * @param {update} 编辑状态 * @param {double} 是否可以多选 */ -function Menus({name, ids , lists , size , imgControl , searchFunc , chooseFunc , update , double ,names },ref){ +function Menus({className,name, ids , lists , size , imgControl , searchFunc , chooseFunc , update , double ,names },ref){ const dropRef = useRef(null); const [ chooseValue , setChooseValue ] = useState([]); const [ showValue , setShowValue ] = useState(undefined); @@ -81,10 +82,12 @@ function Menus({name, ids , lists , size , imgControl , searchFunc , chooseFunc } return( - - {showValue || (update ? `更换${name}` : name) } - - +
  • + + {showValue || (update ? `更换${name}` : name) } + + +
  • ) } export default Menus; \ No newline at end of file diff --git a/src/forge/Issues/index.scss b/src/forge/Issues/index.scss index 11a953e7..799a068c 100644 --- a/src/forge/Issues/index.scss +++ b/src/forge/Issues/index.scss @@ -187,11 +187,15 @@ } .dropboxul{ padding-right: 20px; + li.minwidth{ + min-width: 70px; + } li{ - min-width: 106px; + min-width:88px; display: flex; justify-content: flex-end; cursor: default; + margin-left: 12px; .dropspan{ display: flex; align-items: center;