Giter Site home page Giter Site logo

html-edit's Introduction

Html元素编辑器(组件)

概述

此为一个用来对Html元素进行基本编辑(拖动、拉拽)的Vue组件。

演示

从浏览器中访问demo/index.html

依赖

  • JQuery
  • VUE

使用方法

  • 引入依赖的JQuery和Vue
  • 引入build中js和css到页面中
  • 在页面中添加元素
<html-edit @selected="selected"  @removed="removed" :elements="elements" style="height: 940px;"></html-edit>

事件列表

  • selected:选择一个元素
  • removed:移除一个元素
  • dblselected:双击选择一个元素

项目Build

  • 项目为使用browserify对多个JS文件进行打包,导成bundle.js
  • 命令:browserify src/index.js > build/js/bundle.js
  • 而样式为从src/css中拷贝到build/css的

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.