Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
补充fabricjs在Vue中的使用
  • Loading branch information
cielaber committed May 13, 2021
1 parent afd49d5 commit 73f9732
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@
3、本系列代码使用vue语法,每篇文章的第一个代码片段会有标签和样式部分,其他代码无特殊情况只放部分mounted(){}中的代码或与上文没有重复的核心代码。

## Vue中使用fabric.js
方法一:
先安装fabricjs
```bash
npm i fabric --save
```
在main.js中使用
```js
import fabric from "fabric"
Vue.use(fabric)
```
如果方法一无效可以使用方法二⬇️

方法二:
```bash
#需要先安装canvas
npm i canvas --save
Expand Down

0 comments on commit 73f9732

Please sign in to comment.