惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
T
Threatpost
T
Tor Project blog
S
Schneier on Security
Project Zero
Project Zero
Know Your Adversary
Know Your Adversary
P
Proofpoint News Feed
K
Kaspersky official blog
P
Privacy International News Feed
Latest news
Latest news
Cisco Talos Blog
Cisco Talos Blog
T
The Exploit Database - CXSecurity.com
The Hacker News
The Hacker News
D
Docker
aimingoo的专栏
aimingoo的专栏
S
Securelist
C
Cyber Attacks, Cyber Crime and Cyber Security
Spread Privacy
Spread Privacy
TaoSecurity Blog
TaoSecurity Blog
T
The Blog of Author Tim Ferriss
T
Threat Research - Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
博客园 - 三生石上(FineUI控件)
人人都是产品经理
人人都是产品经理
Security Latest
Security Latest
V
Visual Studio Blog
WordPress大学
WordPress大学
J
Java Code Geeks
O
OpenAI News
T
Tailwind CSS Blog
S
Secure Thoughts
G
Google Developers Blog
博客园_首页
The Cloudflare Blog
The Register - Security
The Register - Security
A
Arctic Wolf
Y
Y Combinator Blog
阮一峰的网络日志
阮一峰的网络日志
B
Blog RSS Feed
IT之家
IT之家
美团技术团队
D
Darknet – Hacking Tools, Hacker News & Cyber Security
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
G
GRAHAM CLULEY
S
Security Affairs
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Application and Cybersecurity Blog
Application and Cybersecurity Blog
P
Palo Alto Networks Blog
C
CERT Recently Published Vulnerability Notes
W
WeLiveSecurity

博客园 - 雪莉06

vue2 jeecgBoot keepalive 解决方案 vue中实现页面全屏和指定元素全屏 screenfull全屏组件的基本使用 网页导出EXCEL格式数据,长数字变为科学计数法的解决方法 dedecms织梦自定义表单导出到excel的方法 织梦dede:arclist按最新修改排序orderby=pubdate无效的解决方法 vue-router报错:Uncaught (in promise) NavigationDuplicated {_name: ‘NavigationDuplicated‘, name: ‘Navig nvm的安装和使用(转) elementUI 的 input无法输入bug解决 vue数字翻牌效果 j-modal的 slot="footer" 失效 v-if判断页脚按钮 帝国CMS后台登录空白怎么办?如何修改成https ES6两个数组进行比较 element ui form表单 表格下嵌套动态表格,新增行,删除行 vue 父子组件传值报错:this.$emit is not a function 解决 dede列表页调用二三级导航栏(转载) a-table 鼠标滑过显示小手,当前行可点击(转载) echarts折线图使用dataZoom,切换数据时渲染异常,出现竖线bug vue里面修改title样式
antd vue 树形表格
雪莉06 · 2026-03-23 · via 博客园 - 雪莉06

image

<a-table

            :columns="columnsTree"

            :data-source="tableDataTree"

            :pagination="false"

            row-key="key"

            :expanded-row-keys="expandedRowKeys"

            :expandIcon ="expandIcon"

            @expand="handleExpand"

            :rowClassName="newRowStyle"

            class="customer-table"

          >

          <!-- 合计行插槽 -->

          <template #footer>

            <table style="width:100%;">

              <tr>

                <td style="width: 50%;"><span style="color: #0353C7;font-weight: 500;">合计</span></td>

                <td style="width: 50%;text-align: right;"><span style="color: #0353C7;font-weight: 500;">100</span></td>

              </tr>

            </table>

          </template>

          </a-table>

columnsTree: [

        {

          title: '号码',

          dataIndex: 'number',

          key: 'number',

          width: 200,

        },

        {

          title: '账单项',

          dataIndex: 'billItem',

          key: 'billItem',

        },

        {

          title: '账目项',

          dataIndex: 'accountItem',

          key: 'accountItem',

        },

        {

          title: '商品名称',

          dataIndex: 'goodsName',

          key: 'goodsName',

        },

        {

          title: '费用(元)',

          dataIndex: 'cost',

          key: 'cost',

          align: 'right',

          customRender: (text, record) => {

            if (record.isSummary) {

              return <span style="color: #0353C7; font-weight: 500;">{text}</span>;

            }

            return text;

          },

        },

      ],

      tableDataTree: [

        {

          key: '1',

          number: '189****6782',

          billItem: '月基本费',

          accountItem: '小计',

          goodsName: '',

          cost: 60,

          isSummary: true,

          children: [

            {

              key: '1-1',

              number: '',

              billItem: '月基本费',

              accountItem: 'C网套餐费',

              goodsName: '5G畅享129元套餐',

              cost: 129,

            },

            {

              key: '1-2',

              number: '',

              billItem: '月基本费',

              accountItem: 'C网套餐费',

              goodsName: '全家享副卡优惠9元包',

              cost: -9,

            },

            {

              key: '1-3',

              number: '',

              billItem: '月基本费',

              accountItem: 'C网套餐费',

              goodsName: '69元优惠促销-24月',

              cost: -60,

            },

            {

              key: '1-4',

              number: '',

              billItem: '月基本费',

              accountItem: '量子密话业务功能费',

              goodsName: '量子密话业务功能包50元',

              cost: 50,

            },

            {

              key: '1-5',

              number: '',

              billItem: '月基本费',

              accountItem: '量子密话业务功能费',

              goodsName: '量子密话0元折扣包',

              cost: -50,

            },

          ],

        },

        {

          key: '2',

          number: '189****5886',

          billItem: '月基本费',

          accountItem: '小计',

          goodsName: '',

          cost: 20,

          isSummary: true,

          children: [

            {

              key: '1-1',

              number: '',

              billItem: '月基本费',

              accountItem: 'C网套餐费',

              goodsName: '5G畅享129元套餐',

              cost: 129,

            },

            {

              key: '1-2',

              number: '',

              billItem: '月基本费',

              accountItem: 'C网套餐费',

              goodsName: '全家享副卡优惠9元包',

              cost: -9,

            },

            {

              key: '1-3',

              number: '',

              billItem: '月基本费',

              accountItem: 'C网套餐费',

              goodsName: '69元优惠促销-24月',

              cost: -60,

            },

            {

              key: '1-4',

              number: '',

              billItem: '月基本费',

              accountItem: '量子密话业务功能费',

              goodsName: '量子密话业务功能包50元',

              cost: 50,

            },

            {

              key: '1-5',

              number: '',

              billItem: '月基本费',

              accountItem: '量子密话业务功能费',

              goodsName: '量子密话0元折扣包',

              cost: -50,

            },

          ],

        },

        {

          key: '3',

          number: '022****0481',

          billItem: '月基本费',

          accountItem: '小计',

          goodsName: '',

          cost: 20,

          isSummary: true,

          children: [

            {

              key: '1-1',

              number: '',

              billItem: '月基本费',

              accountItem: 'C网套餐费',

              goodsName: '5G畅享129元套餐',

              cost: 129,

            },

            {

              key: '1-2',

              number: '',

              billItem: '月基本费',

              accountItem: 'C网套餐费',

              goodsName: '全家享副卡优惠9元包',

              cost: -9,

            },

            {

              key: '1-3',

              number: '',

              billItem: '月基本费',

              accountItem: 'C网套餐费',

              goodsName: '69元优惠促销-24月',

              cost: -60,

            },

            {

              key: '1-4',

              number: '',

              billItem: '月基本费',

              accountItem: '量子密话业务功能费',

              goodsName: '量子密话业务功能包50元',

              cost: 50,

            },

            {

              key: '1-5',

              number: '',

              billItem: '月基本费',

              accountItem: '量子密话业务功能费',

              goodsName: '量子密话0元折扣包',

              cost: -50,

            },

          ],

        },

      ],