Git Product home page Git Product logo

Comments (6)

baukh789 avatar baukh789 commented on September 26, 2024

有销毁场景时,参考以下方式:

  • 原生模式: 调用GridManager.destroy(table);
  • 框架模式: 通过框架自带条件进行组件移除,如vue的 v-if

from gridmanager.

canuran avatar canuran commented on September 26, 2024

单页面模式中,外层框架直接把表格所在的区域覆盖了
使用GridManager.destroy(table)之后覆盖DOM也会报错
看起来是个timeout处理函数,不受destroy控制

from gridmanager.

baukh789 avatar baukh789 commented on September 26, 2024

你可以发一下引用及销毁的方式

from gridmanager.

canuran avatar canuran commented on September 26, 2024

你可以发一下引用及销毁的方式

这还真不太好提取,就是用$('container').html('newHtml')把表格所在的父标签整个都覆盖了(相当于换了子页面,非iframe),然后再GridManager.destroy(table)并重新创建表格时就会报上述错误,虽然不影响使用,但是QA流程上要求不能有报错,强迫症也很难受

from gridmanager.

baukh789 avatar baukh789 commented on September 26, 2024

覆盖前执行destroy

from gridmanager.

canuran avatar canuran commented on September 26, 2024

destroy

可是加载页面是上级组件,它并不知道这里面有个table需要destroy

from gridmanager.

Related Issues (20)

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.