mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-12 13:24:52 +00:00
feat: metadata multiple select
This commit is contained in:
@@ -5,6 +5,7 @@ import CheckboxEditor from './checkbox-editor';
|
||||
import TextEditor from './text-editor';
|
||||
import NumberEditor from './number-editor';
|
||||
import SingleSelectEditor from './single-select-editor';
|
||||
import MultipleSelectEditor from './multiple-select-editor';
|
||||
import CollaboratorEditor from './collaborator-editor';
|
||||
import DateEditor from './date-editor';
|
||||
import { lang } from '../../../../utils/constants';
|
||||
@@ -16,7 +17,6 @@ const DetailEditor = ({ field, onChange: onChangeAPI, ...props }) => {
|
||||
onChangeAPI(field.key, newValue);
|
||||
}, [field, onChangeAPI]);
|
||||
|
||||
|
||||
switch (field.type) {
|
||||
case CellType.CHECKBOX: {
|
||||
return (<CheckboxEditor { ...props } field={field} onChange={onChange} />);
|
||||
@@ -33,6 +33,9 @@ const DetailEditor = ({ field, onChange: onChangeAPI, ...props }) => {
|
||||
case CellType.SINGLE_SELECT: {
|
||||
return (<SingleSelectEditor { ...props } field={field} onChange={onChange} />);
|
||||
}
|
||||
case CellType.MULTIPLE_SELECT: {
|
||||
return (<MultipleSelectEditor { ...props } field={field} onChange={onChange} />);
|
||||
}
|
||||
case CellType.COLLABORATOR: {
|
||||
return (<CollaboratorEditor { ...props } field={field} onChange={onChange} />);
|
||||
}
|
||||
|
Reference in New Issue
Block a user