1. 从github拉取最新代码
从 Luckysheet 官方github即可找到clone地址
git clone https://github.com/mengshukeji/Luckysheet.git
2. 安装依赖并打包
cd Luckysheet
npm i
npm i -g gulp
npm run build
3. 复制dist目录下的文件到Vue工程,以官方Luckysheet-vue工程为例
Luckysheet-vue地址:https://github.com/mengshukeji/Luckysheet-vue
<link rel='stylesheet' href='./plugins/css/pluginsCss.css' />
<link rel='stylesheet' href='./plugins/plugins.css' />
<link rel='stylesheet' href='./css/luckysheet.css' />
<link rel='stylesheet' href='./assets/iconfont/iconfont.css' />
<script src="./plugins/js/plugin.js"></script>
<script src="./luckysheet.umd.js"></script>
4. 运行Luckysheet-vue工程检验最新效果
npm run serve