Git Product home page Git Product logo

editable-treemenu's Introduction

cotalogue

A treeMenu component which you can edit by contextMenu based on Vue.js2.0;
  1、与一般的偏展示的树形菜单不同,该组件是一个和右键菜单结合起来的可以进行新增、删除、重命名等操作(可自己扩展)的树形菜单,树形菜单由文件夹和任务两种item组成,针对文件夹和任务的右键菜单有不同的操作,任务前方的图标可自行修改颜色以展示该任务的状态。
  2、该组件并未采用递归调用自己的方式来实现,数据格式上统一“拍平”——使用一个数组(但仍可使用常规的数据格式),视图上采用data中关键的字段(level)来控制padding,具体的数据格式见图,可异步获取数据(推荐),具体实现可见代码;
  3、另外使用到了iveiw 的部分组件(Message、Modal、Icon、Spin等,按需加载);
4、持续更新中...

#demo image
image image
image image image

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

# build for production and view the bundle analyzer report
npm run build --report

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

editable-treemenu's People

Contributors

excellentjr avatar

Watchers

 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.