千里之行,始于足下.|

MyKai

园龄:4年5个月粉丝:0关注:17

luckysheet公式不刷新的问题

luckysheet 表格栏配置了公式,依赖的表格项变动,但是公式依赖栏不刷新。

通过下面的函数,对lucky的数据做处理,增加公式链calcChain参数
官网链接

    handledata (excelData) {
    let data = excelData
    for (const item of data) {
        // 遍历
        let calcChain = [];
        let index = item.index;
        for (const item2 of item.celldata) {
            if (typeof(item2.v.f) !== 'undefined') {
                calcChain.push({
                    r: item2.r,
                    c: item2.c,
                    index,
                })
            }
        }
        item.calcChain = calcChain;
    }

本文作者:MyKai

本文链接:https://www.cnblogs.com/mykai/p/17677664.html

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   MyKai  阅读(770)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起