scrollX 删除自定义, 改为统一配置

This commit is contained in:
terrfly 2021-11-19 14:28:13 +08:00
parent 046a840914
commit 6050d0b8ba
21 changed files with 4 additions and 26 deletions

View File

@ -47,7 +47,7 @@ export default {
pageSize: { type: Number, default: 10 }, //
rowSelection: Object, // checkbox
rowKey: { type: [String, Function] }, // rowKey checkbox
scrollX: { type: Number, default: 800 }, //
scrollX: { type: Number, default: 500 }, //
tableRowCrossColor: { type: Boolean, default: false } //
},

View File

@ -32,7 +32,6 @@
:reqTableDataFunc="reqTableDataFunc"
:tableColumns="tableColumns"
:searchData="searchData"
:scrollX="1100"
rowKey="isvNo"
>
<template slot="isvNameSlot" slot-scope="{record}"><b>{{ record.isvName }}</b></template> <!-- 自定义插槽 -->

View File

@ -40,7 +40,6 @@
:reqTableDataFunc="reqTableDataFunc"
:tableColumns="tableColumns"
:searchData="searchData"
:scrollX="1200"
rowKey="mchNo"
>
<template slot="mchNameSlot" slot-scope="{record}">

View File

@ -34,7 +34,6 @@
:reqTableDataFunc="reqTableDataFunc"
:tableColumns="tableColumns"
:searchData="searchData"
:scrollX="1200"
rowKey="appId"
>
<template slot="appIdSlot" slot-scope="{record}">

View File

@ -55,7 +55,6 @@
:searchData="searchData"
:rowSelection="rowSelection"
rowKey="orderId"
:scrollX="1050"
>
<template slot="stateSlot" slot-scope="{record}">
<a-tag

View File

@ -73,7 +73,6 @@
:tableColumns="tableColumns"
:searchData="searchData"
rowKey="payOrderId"
:scrollX="1250"
:tableRowCrossColor="true"
>
<template slot="amountSlot" slot-scope="{record}"><b>{{ record.amount/100 }}</b></template> <!-- 自定义插槽 -->

View File

@ -55,7 +55,6 @@
:tableColumns="tableColumns"
:searchData="searchData"
rowKey="refundOrderId"
:scrollX="1250"
:tableRowCrossColor="true"
>
<template slot="payAmountSlot" slot-scope="{record}"><b>{{ record.payAmount/100 }}</b></template> <!-- 自定义插槽 -->

View File

@ -46,7 +46,6 @@
:tableColumns="tableColumns"
:searchData="searchData"
rowKey="transferId"
:scrollX="1350"
:tableRowCrossColor="true"
>
<template slot="transferAmountSlot" slot-scope="{record}"><b>{{ record.amount/100 }}</b></template> <!-- 自定义插槽 -->
@ -106,12 +105,9 @@
// eslint-disable-next-line no-unused-vars
const tableColumns = [
{ title: '转账金额', scopedSlots: { customRender: 'transferAmountSlot' } },
{ title: '转账金额', scopedSlots: { customRender: 'transferAmountSlot' }, width: 108 },
{ title: '商户名称', dataIndex: 'mchName' },
{ key: 'orderNo', title: '订单号', scopedSlots: { customRender: 'orderSlot' }, width: '260px' },
// { title: '', dataIndex: 'transferId' },
// { title: '', dataIndex: 'mchOrderNo' },
// { title: '', dataIndex: 'channelOrderNo' },
{ key: 'orderNo', title: '订单号', scopedSlots: { customRender: 'orderSlot' }, width: 210 },
{ title: '收款账号', dataIndex: 'accountNo' },
{ title: '收款人姓名', dataIndex: 'accountName' },
{ title: '转账备注', dataIndex: 'transferDesc' },

View File

@ -24,7 +24,6 @@
:tableColumns="tableColumns"
:searchData="searchData"
rowKey="wayCode"
:scrollX="500"
>
<template slot="wayCodeSlot" slot-scope="{record}"><b>{{ record.wayCode }}</b></template> <!-- 自定义插槽 -->
<template slot="opSlot" slot-scope="{record}"> <!-- 操作列插槽 -->

View File

@ -25,7 +25,6 @@
:tableColumns="tableColumns"
:searchData="searchData"
@btnLoadClose="btnLoading=false"
:scrollX="500"
rowKey="roleName"
>
<template slot="roleIdSlot" slot-scope="{record}"><b>{{ record.roleId }}</b></template> <!-- 自定义插槽 -->

View File

@ -45,7 +45,6 @@
:searchData="searchData"
:rowSelection="rowSelection"
rowKey="sysLogId"
:scrollX="1200"
>
<template slot="userNameSlot" slot-scope="{record}"><b>{{ record.userName }}</b></template> <!-- 自定义插槽 -->
<template slot="sysTypeSlot" slot-scope="{record}">

View File

@ -27,7 +27,6 @@
:tableColumns="tableColumns"
:searchData="searchData"
rowKey="sysUserId"
:scrollX="1350"
>
<template slot="avatarSlot" slot-scope="{record}">

View File

@ -47,7 +47,7 @@ export default {
pageSize: { type: Number, default: 10 }, //
rowSelection: Object, // checkbox
rowKey: { type: [String, Function] }, // rowKey checkbox
scrollX: { type: Number, default: 980 }, //
scrollX: { type: Number, default: 800 }, //
tableRowCrossColor: { type: Boolean, default: false } //
},

View File

@ -27,7 +27,6 @@
:tableColumns="tableColumns"
:searchData="searchData"
@btnLoadClose="btnLoading=false"
:scrollX="500"
rowKey="receiverGroupId"
>
<template slot="opSlot" slot-scope="{record}"> <!-- 操作列插槽 -->

View File

@ -45,7 +45,6 @@
:tableColumns="tableColumns"
:searchData="searchData"
@btnLoadClose="btnLoading=false"
:scrollX="500"
rowKey="receiverId"
>

View File

@ -33,7 +33,6 @@
:reqTableDataFunc="reqTableDataFunc"
:tableColumns="tableColumns"
:searchData="searchData"
:scrollX="1200"
rowKey="appId"
>
<template slot="appIdSlot" slot-scope="{record}">

View File

@ -66,7 +66,6 @@
:tableColumns="tableColumns"
:searchData="searchData"
rowKey="payOrderId"
:scrollX="1000"
:tableRowCrossColor="true"
>
<template slot="amountSlot" slot-scope="{record}"><b>{{ record.amount/100 }}</b></template> <!-- 自定义插槽 -->

View File

@ -48,7 +48,6 @@
:reqTableDataFunc="reqTableDataFunc"
:tableColumns="tableColumns"
rowKey="refundOrderId"
:scrollX="1300"
:tableRowCrossColor="true"
>
<template slot="payAmountSlot" slot-scope="{record}"><b>{{ record.payAmount/100 }}</b></template> <!-- 自定义插槽 -->

View File

@ -45,7 +45,6 @@
:tableColumns="tableColumns"
:searchData="searchData"
rowKey="transferId"
:scrollX="1350"
:tableRowCrossColor="true"
>
<template slot="transferAmountSlot" slot-scope="{record}"><b>{{ record.amount/100 }}</b></template> <!-- 自定义插槽 -->

View File

@ -27,7 +27,6 @@
:tableColumns="tableColumns"
:searchData="searchData"
@btnLoadClose="btnLoading=false"
:scrollX="500"
rowKey="roleId"
>
<template slot="roleIdSlot" slot-scope="{record}"><b>{{ record.roleId }}</b></template> <!-- 自定义插槽 -->

View File

@ -30,7 +30,6 @@
:tableColumns="tableColumns"
:searchData="searchData"
rowKey="sysUserId"
:scrollX="1300"
>
<template slot="avatarSlot" slot-scope="{record}">