Giter Club home page Giter Club logo

huge-tree's Introduction

在线演示

http://39.98.139.162:3000/demo

使用方式

npm i huge-tree --save 或 yarn add huge-tree -D

全局使用

// main.js, 
import BTM from 'huge-tree'
Vue.use(BTM)

// demo1.vue, 使用 huge-tree
<btm-huge-tree><btm-huge-tree/>

// demo2.vue 使用 huge-list
<btm-huge-list></btm-huge-list>

按需使用

// 
import { HugeTree, HugeList } from 'huge-tree'
Vue.use(HugeTree)
Vue.use(HugeList)

组件内部使用

// demo.vue, 
<template>
  <div>
    <btm-huge-tree></btm-huge-tree>
  </div>
</template>

<script>
import { HugeTree } from 'huge-tree'

export default {
  components: {
    'btm-huge-tree': HugeTree
  }
}
</script>

Doc

参见 github 各 demo
huge-tree 使用doc
huge-list 使用doc

本地运行

  1. git clone
  2. yarn install
  3. yarn dev
  4. yarn mock:api // 再开一个窗口执行此命令,两个node服务都跑起来。
  5. 0.0.0.0:8000

打包为umd类型的js-hugeTree.js

运行 yarn build-library 将生成dist/huge-tree.js

// 使用
<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <title>huge-tree</title>
  <script src="**/**/huge-tree.js"></script>
</head>

<body>
  <script>
    console.log(hugeTree)
  </script>
</body>

</html>


huge-tree's People

Contributors

lizhuang93 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.