Comments (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
- 如果是单个td内有多个按钮
这个自定义组件是你写的,你给禁用/启用按钮一个catchtap,然后自己写一个函数触发clickaction
事件,那个value对象(key必须是value),弄个标识字段判断一下就好,在逻辑页面监听table组件的clickaction事件会获取到你自己定义的value,通过标识字段判断一下就好。
from table_component.
Related Issues (12)
- 这个怎么用? HOT 1
- 表格删除数据,最后一条数据删除后,页面不渲染 HOT 1
- 在scroll_to_lower_and_upper 中请求网络数据后,只能显示最前面一页的数据
- 表格单元的高度没有参数可以设置吗? HOT 1
- 大佬,请问可以添加一个两行表头的功能吗
- setData更新dataList没用,dataList已经为空了,页面仍然还有很多行数据
- datalist数据变化后,wxml渲染异常 HOT 4
- 大佬,有单独展开的示例么?初学者萌新,表格高度无法跟随纵向数据数量自适应高度, HOT 1
- 请问如何删除表格中的数据
- 清空了dataList,还是会展示之前的数据,请问这个怎么设置
- 设定一个按钮,每点击一次就能新建一行类似于表格,而且每一行都需要形成按钮来使用,这个可以做么?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from table_component.