|
<div >
<a-table ref="bodyTable" :columns="body[0].columns":dataSource="dataSource[body[0].code] || []" :pagination="false" :scroll="{x:body[0].width}" size="small" :rowKey="r => r[body[0].idCode || 'id']" :rowSelection="body[0].rowSelection" >
<span v-for="item in body[0].columns" :key="item.id" :slot="item.code" slot-scope="text, record, index">
<!--||index === editRow[body[0].code]-->
<span v-if="item.editable == '1'">
<component :is="item._component.is" @valueChange="bodyValueChange(item,index,arguments)" v-model="record[item.code]" v-bind="item._component.attrs" @beforesearch="onBeforeBodyEdit(item,head[0])" @change="onBodyChange(item, body[0], record, index, dataSource[body[0].code], arguments)" :disabled="readOnly || item.editable == '0'" style="width:100%;" />
</span>
</span>
</a-table>
</div>
在google浏览器下,表格渲染正常,在IE浏览器下就非常缓慢经常造成IE浏览器因进程的问题重启。
|
|