Commit 78db0dc5 by zhaochengxiang

excel粘贴复制 空格,逗号,以及回车等符号可作为字段分割符

parent 5278f6f5
......@@ -20,7 +20,7 @@ class ImportExcelCopy extends React.Component {
onInputChange = (e) => {
const { onChange } = this.props;
this.setState({ inputValue: e.target.value }, () => {
onChange && onChange(e.target.value.replace(/[,,_ ]/g,'\n').split('\n').filter(value => value!==''&&value!==' '));
onChange && onChange(e.target.value.replace(/[,,_ ]/g,'\n').split('\n').filter(value => value!==''&&value!==' '));
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment