diff --git a/public/react/src/modules/developer/components/knowledge/index.js b/public/react/src/modules/developer/components/knowledge/index.js index 63d99b762..17cf11624 100644 --- a/public/react/src/modules/developer/components/knowledge/index.js +++ b/public/react/src/modules/developer/components/knowledge/index.js @@ -4,7 +4,7 @@ * @Github: * @Date: 2019-12-30 13:51:19 * @LastEditors : tangjiang - * @LastEditTime : 2019-12-30 16:54:30 + * @LastEditTime : 2019-12-30 18:02:20 */ import './index.scss'; import React, { useState } from 'react'; @@ -33,6 +33,8 @@ function KnowLedge (props) { } const handleSelectChange = (value) => { console.log(value); + const _result = selectOptions.filter(item => item !== value); + setSelectOptions(_result); } // 渲染下拉列表 @@ -43,8 +45,6 @@ function KnowLedge (props) { placeholder="请选择" style={{ width: '100%' }} onChange={handleSelectChange} - autoClearSearchValue={true} - maxTagCount={0} > {renderOptions(options)} @@ -54,9 +54,6 @@ function KnowLedge (props) { return (
{ renderSelect(selectOptions, selectValue) } -
- -
); } diff --git a/public/react/src/modules/developer/components/knowledge/index.scss b/public/react/src/modules/developer/components/knowledge/index.scss index e69de29bb..a38f42c70 100644 --- a/public/react/src/modules/developer/components/knowledge/index.scss +++ b/public/react/src/modules/developer/components/knowledge/index.scss @@ -0,0 +1,5 @@ +.knowledge-select-area{ + .ant-select-selection__rendered{ + margin-bottom: 0 !important; + } +} diff --git a/public/react/src/modules/developer/newOrEditTask/leftpane/editorTab/index.js b/public/react/src/modules/developer/newOrEditTask/leftpane/editorTab/index.js index 4672a3be7..4c5d89dce 100644 --- a/public/react/src/modules/developer/newOrEditTask/leftpane/editorTab/index.js +++ b/public/react/src/modules/developer/newOrEditTask/leftpane/editorTab/index.js @@ -4,7 +4,7 @@ * @Github: * @Date: 2019-11-20 10:35:40 * @LastEditors : tangjiang - * @LastEditTime : 2019-12-30 16:42:36 + * @LastEditTime : 2019-12-30 17:53:18 */ import './index.scss'; // import 'katex/dist/katex.css';