Giter VIP home page Giter VIP logo

Comments (1)

mmmml-zhao avatar mmmml-zhao commented on September 17, 2024
  1. 所有的自定义td都是使用同一个action_td组件,在action_td组件内通过当前这一列的columns.key来判断这个td应该显示什么内容。如果仅仅只是监听点击的是哪个td,参考:https://github.com/kawaiiz/table_component/tree/master/miniprogram/pages/index/components/custom_action/components
  2. 如果是单个td内有多个按钮
    这个自定义组件是你写的,你给禁用/启用按钮一个catchtap,然后自己写一个函数触发clickaction事件,那个value对象(key必须是value),弄个标识字段判断一下就好,在逻辑页面监听table组件的clickaction事件会获取到你自己定义的value,通过标识字段判断一下就好。
    image
    image

from table_component.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.