提交 2a8dfe0b authored 作者: 钟是志's avatar 钟是志

打包分块优化

上级 331a379b
......@@ -1240,8 +1240,11 @@ export default class TableCom extends Component {
fetchData3 = (obj, dataColumn, init, json, allValues) => {
const {
sqlKey, labelName, valueName,
isMeta, filterSql,
sqlKey,
labelName,
valueName,
isMeta,
filterSql,
} = json;
const { dispatch } = this.props;
......@@ -2031,7 +2034,7 @@ export default class TableCom extends Component {
var title = json.label || (dataColumn && dataColumn.title);
var initValue;
const objinit = { ...init, ...obj };
if(dataColumn.base52 === 'KYAHGbFFyWo'){
if (dataColumn.base52 === 'KYAHGbFFyWo') {
// console.log(objinit);
// debugger;
}
......@@ -2653,7 +2656,7 @@ ${obj[dataColumn.base52]}
case 'Switch':
if (initValue === 'true' || initValue === true) {
initValue = true;
} else{
} else {
initValue = false;
}
if (get === 'mobile') {
......@@ -2707,7 +2710,7 @@ ${obj[dataColumn.base52]}
},
],
})(
<SwitchWeb json={json} disabled={disabled}/>
<SwitchWeb json={json} disabled={disabled} />,
);
break;
......@@ -3528,15 +3531,12 @@ ${obj[dataColumn.base52]}
}
break;
case 'Cron':
if(typeof BUILD_TYPE !== 'undefined' && BUILD_TYPE === 'ZYD'){
cm = '暂不支持此组件'
}else{
const CronEditor = lazy(() => import('antd-cron-editor'));
const CronFunctions = (props) => {
<Suspense fallback={<div>loading...</div>}>
<CronEditor style={{ width: 600 }} {...props}/>
</Suspense>
}
<CronEditor style={{ width: 600 }} {...props} />
</Suspense>;
};
cm = getFieldDecorator(dataColumn.base52, {
initialValue: initValue,
rules:
......@@ -3549,8 +3549,6 @@ ${obj[dataColumn.base52]}
},
],
})(<CronFunctions />);
}
break;
case 'LocationCom':
cm = getFieldDecorator(dataColumn.base52, {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论