Comments (4)
😇
文笔水平有限请谅解. 这几项提议个人感觉都很好🤔
Hi,根据目前版本的情况,列一些可能不是最优的解决方法: (至于其他功能性的问题需要跟 巨佬们 请示/讨论)
2:假设你的是表单联动问题,此表格组件内使用的表单组件是团队定制版的el-form-renderer
可以参考一下
content[].$enableWhen
用法
// 大意为 `上下九` 只会在 `province === 'Guangdong'` 时才会可操作
[
{
label: '上下九',
$enableWhen: {
province: 'Guangdong'
}
}
]
5:headerButtons
和 extraButtons
两者暂不支持其他原生属性,但支持el-button的属性
{
type: 'primary',
text: '附加按钮1'
}
from el-data-table.
如果是函数,除了接收当前行的表格数据,还有什么参数建议吗😊
from el-data-table.
具体情况具体分析吧,参数的话,我写的时候,只用到这一行的数据。
其他的tips:
1:新增、修改和查看用的同一个form。最大的问题就是,当新增和查看的字段不一样的时候。比如:新增和修改的时候,不需要日期,会在生成这个数据的时候直接带上日期。但是查看,就要看到创建时间和更新时间了。
2:新增和修改如何动态的展示。如:选择省市,先选择了省才能选择市,这些约束如何实现。
3:url不填写,就会报个warning,如果数据不是你们要求的格式,我们要转一次才能传过去呀,强迫症,不想看到警告。
4:更新维护哈接口文档吧,感谢大佬。
5:按钮能增加其他属性不?比如类名,因为设计小姐姐并不是按照UI库来的,还有需要些伪类样式来实现。
from el-data-table.
数据格式是前后端约定好的。建议前端后统一规范
from el-data-table.
Related Issues (20)
- 留言 HOT 2
- 点击修改按钮,dialog对话框的el-select希望可以使用用filterable属性 HOT 3
- 如何复制一列 HOT 1
- 初始化data-table时,操作栏下的text button组件,color色值可能会取值不正确。
- 点击修改按钮后的弹框,select的url无法携带参数请求数据 HOT 1
- 可以加个列选择吗?列很多时, 一屏展示不完, 展示几个自定义选中的列? HOT 3
- 请问支持全局自定义一些公共的配置么? HOT 1
- 使用slot-form时,表单数据无法更改 HOT 1
- form组件中无法使用switch,默认值不生效 HOT 1
- 请问怎么修改源码,添加额外的属性?比如分页添加背景等 HOT 6
- 求钉钉二维码,大佬 HOT 3
- 考虑支持vue3嘛? HOT 1
- 点击修改或查看按钮,打开的对话框中带不出选中行的数据 HOT 1
- tableAttrs里添加elementui table的row-key属性不生效
- 请问下,我看使用了element-ui,但是没看到哪里全局引入的。文档的不是Vue.use(element)嘛。看代码里没是怎么实现的那
- [help] 组件中的 dialog 除了新增修改编辑之外可以设置其他的
- 如何使请求参数不拼接在接口路径后?希望放在request payload中 HOT 1
- 启动时报错:[ERROR] Could not resolve "@babel/runtime/xxx" HOT 1
- 头部“搜索表单”和“顶部按钮”如何呈左右并排? HOT 1
- 原生合计自定义事件 HOT 1
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 el-data-table.