Giter Site home page Giter Site logo

vue-shudan's Introduction

基于Vue.js的围棋盘组件

起源

Sabaki是一款精美的围棋软件,它的核心棋盘组件Shudan基于Preact编写。我很喜欢,于是用Vue.js重写了这个组件。

效果

Screenshot

功能

  • 全面: 动态尺寸、落子动画、棋子标记、指示坐标、热度效果、忙碌效果、死子状态、主题更换等
  • 灵活: 每部分可单独配置,代码也独立
  • 易用: Vue标准组件,直接import即可用

示例构建

确保环境已安装Git/Node.js/npm,然后运行:

$ git clone [email protected]:roocky-lab/vue-shudan.git
$ cd vue-shudan
$ npm install

在浏览器里预览效果:

$ npm run serve

发布最小体积版本:

$ npm run build

集成调用

项目添加这个库很简单,首先本地安装:

$ npm install @roocky/vue-shudan --save 

加载后直接调用即可:

import Goban from '@roocky/vue-shudan';

vue-shudan's People

Contributors

x-roocky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

vue-shudan's Issues

TypeScript支援

請問這專案有沒有支援TypeScript的規劃?

我有在SabakiHQ/go-board項目中提出了加入TypeScript支援的PR

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.