Commit 56b17bd6 authored by 李晓静's avatar 李晓静

实时编辑方法

parent e5d4c28b
import { setFormat } from '../index';
import { config } from '../config';
export const onBlurFn = (props: any) => {
const { columnConfig, rowId, onBlurFn, value } = props;
const { type } = columnConfig
const extraData: any[] = []
if (typeof onBlurFn === 'function') {
const newVal = setFormat(config[type], columnConfig, value)
extraData.push({
columnCode: columnConfig.columnName,
cellValueList: newVal,
});
onBlurFn({
rowId,
value: extraData,
}, newVal);
}
};
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