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

element-plus 的表格怎么使用点击哪个单元格编辑哪个单元格?

  •  1
     
  •   pcell · Aug 27, 2022 · 2327 views
    This topic created in 1351 days ago, the information mentioned may be changed or developed.

    就是点击哪个 el-table-column 哪个 el-table-column 变成自定义的编辑状态,网上搜到的例子都是 vue2 和 elementui 的,好像都不适用了

    3 replies    2022-08-28 17:52:34 +08:00
    pcell
        1
    pcell  
    OP
       Aug 27, 2022
    折腾了几小时,明白了
    chenjiangui998
        2
    chenjiangui998  
       Aug 28, 2022
    click cell 记录下点击了哪个, v-if 切换只读和编辑模式?
    pcell
        3
    pcell  
    OP
       Aug 28, 2022   ❤️ 1
    @chenjiangui998 是这样,不过折腾完之后发现有 vxe-table 这玩意,感觉自己白折腾了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3093 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 06:12 · PVG 14:12 · LAX 23:12 · JFK 02:12
    ♥ Do have faith in what you're doing.