Git Product home page Git Product logo

aya-draglayout's Introduction

aya-draglayout

这个是自己调研的一个比较糙的Demo, 里面有些垃圾代码,有点乱

主要有两个核心点:

  1. 支持拖拽
  2. 用了Vue的动态组件 <component is='component_name'>

余下的就是一些糙的code逻辑:

  1. 准备几个Vue的组件,用.js文件把这些组件export出去,
  2. Vue的支持的动态组件,利用:is来绑定被拖拽的组件名字
  3. 利用Vue.Draggel的事件,来完成组件数据记录
  4. 准备好 数据结构 + 页面布局,就ok了,

目前demo欠缺的是:

  1. 都需要手动把Vue挂件import,没能自动

Demo演示地址:https://ronliruonan.github.io/aya-draglayout/

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Run your tests

npm run test

Lints and fixes files

npm run lint

Run your end-to-end tests

npm run test:e2e

aya-draglayout's People

Contributors

ronliruonan avatar

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.