-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
824a528
commit 8e68cd6
Showing
11 changed files
with
260 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,35 @@ | ||
# 游戏王卡片 Yugioh Card | ||
|
||
一个使用 Canvas 渲染游戏王卡片的工具。 | ||
|
||
目前有 5 种卡片: | ||
|
||
- 游戏王 | ||
- 超速决斗 | ||
- 游戏王卡背 | ||
- 场地中心卡 | ||
- 游戏王 2 期 | ||
|
||
## 在线演示 | ||
|
||
[在线演示](https://kooriookami.github.io/yugioh-card/) | ||
|
||
## 使用说明 | ||
|
||
```npm i yugioh-card``` | ||
|
||
```js | ||
import { YugiohCard } from 'yugioh-card'; | ||
|
||
const card = new YugiohCard({ | ||
view: '', // div 容器 | ||
data: { | ||
... // 参数见 packages/yugioh-card/src/yugioh-card/index.js => this.defaultData | ||
}, | ||
resourcePath: 'src/assets/yugioh-card', // 静态资源路径 | ||
}); | ||
``` | ||
|
||
## 示例代码 | ||
|
||
[示例代码](src/components/YugiohCard.vue) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<!doctype html> | ||
<html lang="zh-cmn-Hans"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/svg+xml" href="./vite.svg" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Yugioh Card</title> | ||
<script type="module" crossorigin src="./assets/index-6f0a59f8.js"></script> | ||
<link rel="stylesheet" href="./assets/index-4e96d3f9.css"> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
|
||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters