当前位置: 首页 > wzjs >正文

厦门创意网站建设网站建设偶像

厦门创意网站建设,网站建设偶像,精准引流推广公司,个人新闻类网站模板场景一&#xff1a;数据单列集中展示 例如&#xff0c;收购人信息有很多列&#xff0c;容易导致横向很长&#xff0c;所以需要到单列集中展示。 官方推荐使用slot渲染 代码示例&#xff1a; // template中编写需要展示的插槽内容HTML <template><Table ref"ta…

场景一:数据单列集中展示

例如,收购人信息有很多列,容易导致横向很长,所以需要到单列集中展示。

官方推荐使用slot渲染

在这里插入图片描述
代码示例:

// template中编写需要展示的插槽内容HTML
<template><Table ref="tableRef"><template #acquirerInfo><el-table-column label="收购人信息" :width="300"><template #default="scope"><div class="data-info"><p class="data-item">收购点:{{ scope.row['acquirer']['acquisition_name'] }}</p><p class="data-item">持卡人:{{ scope.row['acquirer']['username'] }}</p><p class="data-item">手机号:{{ scope.row['acquirer']['mobile'] }}</p><p class="data-item">身份证:{{ maskNumber(scope.row['acquirerRealname']['id_number']) }}</p></div></template></el-table-column></template><template #farmerInfo><el-table-column label="收款人信息" :width="300"><template #default="scope"><div class="data-info"><p class="data-item">收款人:{{ scope.row['farmer']['username'] }}</p><p class="data-item">身份证:{{ scope.row['acquirer']['username'] }}</p><p class="data-item">手机号:{{ scope.row['acquirer']['mobile'] }}</p><p class="data-item">身份证:{{ maskNumber(scope.row['acquirerRealname']['id_number']) }}</p><p class="data-item">银行卡:{{ maskNumber(scope.row['bank_no']) }}</p></div></template></el-table-column></template></Table>
</template>// column 字段中新增
{label: t('order.acquirer_info'),prop: 'acquirer.acquirer_info',align: 'center',operatorPlaceholder: t('Fuzzy query'),operator: false,width: 170,render: 'slot',slotName: 'acquirerInfo'
},// 样式设置 
<style scoped>
.data-info {font-family: 'Arial', sans-serif; /* 设置字体 */background-color: #f9f9f9; /* 背景色 */padding: 12px; /* 内边距 */border-radius: 6px; /* 边框圆角 */box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 阴影效果 */
}.data-item {margin-bottom: 8px; /* 每行之间的间距 */color: #333; /* 文本颜色 */font-size: 14px; /* 字体大小 */
}.data-label {font-weight: bold; /* 标签字体加粗 */color: #0a74da; /* 标签字体颜色 */
}.data-info p:last-child {margin-bottom: 0; /* 最后一行不加底部间距 */
}.el-table .cell {padding: 0; /* 去掉单元格的默认间距 */
}.el-table-column {padding-left: 10px;padding-right: 10px;
}/* 鼠标悬停效果 */
.el-table__row:hover {background-color: #f0f8ff; /* 悬停背景色 */
}.el-table__cell {padding: 12px; /* 单元格内间距 */
}/* 为表格头部设置样式 */
.el-table th {background-color: #e6f7ff; /* 表头背景色 */font-weight: bold; /* 表头字体加粗 */color: #555; /* 表头文字颜色 */text-align: center; /* 表头文字居中 */
}
</style>

文章转载自:

http://4ZvJP9LW.ymqfx.cn
http://L7ekKirg.ymqfx.cn
http://wo8sY0EH.ymqfx.cn
http://68i6VkIV.ymqfx.cn
http://YfAWRWHV.ymqfx.cn
http://EKZQp5PL.ymqfx.cn
http://vYFotBWk.ymqfx.cn
http://2bqAY2md.ymqfx.cn
http://aXecHsPD.ymqfx.cn
http://HfP8m6x3.ymqfx.cn
http://SfhnXBWK.ymqfx.cn
http://nMhzt66d.ymqfx.cn
http://lhJVthRG.ymqfx.cn
http://9ZR7JYIW.ymqfx.cn
http://uF84ARPF.ymqfx.cn
http://KFf4D47M.ymqfx.cn
http://O3OpQfks.ymqfx.cn
http://UslPW6y0.ymqfx.cn
http://paZQsEFo.ymqfx.cn
http://kJUv3g4S.ymqfx.cn
http://jlCRE53P.ymqfx.cn
http://RlmVPzhI.ymqfx.cn
http://iLSQLMzo.ymqfx.cn
http://anNYu2Tu.ymqfx.cn
http://RnA9nrrE.ymqfx.cn
http://BB44XQWq.ymqfx.cn
http://WGpIUHfs.ymqfx.cn
http://gm5toxoB.ymqfx.cn
http://EXyj5Oz3.ymqfx.cn
http://esvy7KCj.ymqfx.cn
http://www.dtcms.com/wzjs/678169.html

相关文章:

  • 快速生成网站程序下载源码就能建网站吗
  • 宣武富阳网站建设衡水网站建设推广
  • 漯河网站建设价格集团网站建设建站模板
  • 网站新闻列表怎么做本地升级wordpress
  • 重庆做网站推广的公司番禺做网站系统
  • 秦皇岛做网站外包wordpress 网页内嵌
  • 百度免费发布信息网站中企动力科技股份有限公司苏州分公司
  • 建设银行网站怎么查工资明细做网站的公司找客户
  • 网站建设国内公司简单的英文网站模板
  • 办公管理系统有哪些宁波企业seo服务
  • 电白建设局网站怎么进行网站设计和改版
  • 最新电视剧免费观看网址seo工作内容和薪资
  • 360网站卖东西怎么做的能上网但是浏览器打不开网页
  • 在线网站制作微信网站开放
  • 前潮网络网站建设建站易
  • 淄博周村网站建设定制电子商务书店网站设计实验
  • 苏州做网站好的公司手机网站改app
  • 宣讲家网站 家风建设江苏省建设厅网站官网
  • 有关网站建设的毕业设计八戒logo设计网
  • 建设互联网站是什么免费ppt模板的网站
  • 石家庄58同城大型seo公司
  • 安卓网站开发前景wordpress评论框高度
  • 怎么给网站做301做网站设计都做些什么
  • 镇江做网站公司网站开发常用的谷歌插件
  • 企业网站建设外包服务合同哈巴狗模式网站开发
  • 电子商务网站备案网站备案机构
  • 营业执照咋做网等网站广州建设六马路小学网站
  • 什么网站做软件任务挣钱成都人才网
  • 做网站图片大小网上哪里可以注册公司
  • 老网站做seo能不能重新注册哪个素材网站做美工最好