V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
icemanpro
V2EX  ›  Vue.js

Element Plus 中的 table 如何支持多个表尾合计行?

  •  
  •   icemanpro · Sep 25, 2023 · 2048 views
    This topic created in 948 days ago, the information mentioned may be changed or developed.

    一行显示当前页合计,另一行显示所有页合计

    3 replies    2023-09-25 10:35:55 +08:00
    liuhuihao
        1
    liuhuihao  
       Sep 25, 2023
    一个用 element 自带的,一个用数据行 data 模拟,就是算好了之后直接插入到数据行里。
    {
    id: '12987122',
    name: 'Tom',
    amount1: '234',
    amount2: '3.2',
    amount3: 10,
    },
    {
    id: '12987123',
    name: 'Tom',
    amount1: '165',
    amount2: '4.43',
    amount3: 12,
    },
    {
    id: '12987123',
    name: 'Tom',
    amount1: '165',
    amount2: '4.43',
    amount3: 12,
    }
    liuhuihao
        2
    liuhuihao  
       Sep 25, 2023
    @liuhuihao {
    id: 'SUM',
    name: '',
    amount1: 10000
    amount2: 10000,
    amount3: 10000,
    },
    CrispyNoodles
        3
    CrispyNoodles  
       Sep 25, 2023
    没懂你什么意思,什么叫多个表尾合并?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5128 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 52ms · UTC 09:07 · PVG 17:07 · LAX 02:07 · JFK 05:07
    ♥ Do have faith in what you're doing.