Code Monkey home page Code Monkey logo

Comments (2)

sparrow-js avatar sparrow-js commented on May 13, 2024 1

目前还在探索阶段,想请教下关于web页面的拖拽预览的实现原理是怎样的,特别是组件的嵌套,预览代码和最终生产代码是如何分离的。

有很多种不同的实现思路,底层都是处理数据,简单说下原理:

  1. 拖拽预览:sortablejs 生成数据
    2.嵌套:递归组件树
    3.预览代码和最终生产代码分离:这个项目预览和生产代码都是编译阶段直接输出的代码,通过状态在组件内部区分输出代码

from sparrow.

unihon avatar unihon commented on May 13, 2024

都回答了,谢谢

from sparrow.

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.