1 Star 0 Fork 0

郝堙柳 / vue-shudan

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

基于Vue.js的围棋盘组件

起源

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

效果

Screenshot

功能

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

示例构建

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

$ git clone git@github.com: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';
MIT License Copyright (c) 2019 vue-shudan contributors Copyright (c) 2018-2019 Yichuan Shen Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

暂无描述 展开 收起
Vue 等 4 种语言
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/haoyinliu/vue-shudan.git
git@gitee.com:haoyinliu/vue-shudan.git
haoyinliu
vue-shudan
vue-shudan
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891