Comments (5)
你好,可否实现 级联对象显示 如: {field: 'aa.bb.cc',.....}
可以啊,只不过不能放到 data(){return{}}
里,因为这里无法获取到上下文。
猜测你的业务场景是需要动态创建columns
信息,那么你可以把拼接columns
对象的逻辑放到 methods
中
from vue-easytable.
不是动态columns,只是数据单元格对象里面还包含对象。只是觉得放到methods中,有编辑就要两次拼接,稍显麻烦。
from vue-easytable.
放到data 里不行的,这是vuejs 的限制
from vue-easytable.
好的
from vue-easytable.
在获取值的时候由:item[colField] 改为如下方法可以应付我目前的状况
getItemValue(item,colField){
let value = item
let colArr=colField.split(".");
for(let i=0;i<colArr.length;i++){
value = value[colArr[i]]
if(!value) return;
}
return value
},
from vue-easytable.
Related Issues (20)
- [Bug Report] 使用单元格选择组件后,合并某两行单元格,点击单元格会重复渲染 HOT 1
- ⚠ 🔴☘️Vue3版本的有吗 HOT 3
- [Bug Report] 选中合并的单元格出现样式异常 HOT 3
- [Feature Request] 能否支持vue3
- [Bug Report] 开始虚拟滑动,点击滑动图标,快速滑动,会出现白屏
- [Feature Request] Drag/Drop Columns
- [Bug Report] 快速滚动时会白屏
- [Feature Request] 自定义右键菜单
- [Feature Request] 支持tree
- [Feature Request] 为什么右键菜单没有粘贴呢?
- [Feature Request] 因为我个人项目上需要用到 excel,所以将该应用适配到 vue3 HOT 4
- [Feature Request] 有没有办法修改或者禁用键盘的某些键位的操作
- [Feature Request] 支持自定义复制 粘贴 撤销 恢复 功能方法
- [Feature Request] 基于 vue-easytable + Typescript,适配该组件库到 Vue3 HOT 1
- [Feature Request] 支持树形数据
- [Bug Report] Paste导致数据类型转换了
- [Feature Request] AutoScroll feature while using autofill
- [Bug Report] 文档错误
- [Feature Request] cell grouping
- [Feature Request] 合并/拆分选中的单元格
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 vue-easytable.