-
Notifications
You must be signed in to change notification settings - Fork 33
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
Showing
35 changed files
with
121 additions
and
88 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ import Case from '/component/Case.vue' | |
::: code-group | ||
|
||
```html [web.min] | ||
<script src="https://unpkg.com/[email protected].2/dist/web.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].3/dist/web.min.js"></script> | ||
<script> | ||
const { Leafer } = LeaferUI // 全局变量,包含 leafer-ui 的所有功能 | ||
|
@@ -27,7 +27,7 @@ import Case from '/component/Case.vue' | |
``` | ||
|
||
```html [web] | ||
<script src="https://unpkg.com/[email protected].2/dist/web.js"></script> | ||
<script src="https://unpkg.com/[email protected].3/dist/web.js"></script> | ||
<script> | ||
const { Leafer } = LeaferUI // 全局变量,包含 leafer-ui的所有功能 | ||
|
@@ -40,14 +40,14 @@ import Case from '/component/Case.vue' | |
|
||
```html [module.min] | ||
<script type="module"> | ||
import { Leafer } from 'https://unpkg.com/[email protected].2/dist/web.module.min.js' | ||
import { Leafer } from 'https://unpkg.com/[email protected].3/dist/web.module.min.js' | ||
// ... | ||
</script> | ||
``` | ||
|
||
```html [module] | ||
<script type="module"> | ||
import { Leafer } from 'https://unpkg.com/[email protected].2/dist/web.module.js' | ||
import { Leafer } from 'https://unpkg.com/[email protected].3/dist/web.module.js' | ||
// ... | ||
</script> | ||
``` | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,9 +32,9 @@ bun add @leafer-draw/miniapp | |
|
||
```sh | ||
|
||
https://unpkg.com/@leafer-draw/[email protected].2/dist/miniapp.module.js | ||
https://unpkg.com/@leafer-draw/[email protected].3/dist/miniapp.module.js | ||
|
||
https://unpkg.com/@leafer-draw/[email protected].2/dist/miniapp.module.min.js | ||
https://unpkg.com/@leafer-draw/[email protected].3/dist/miniapp.module.min.js | ||
|
||
|
||
``` | ||
|
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 |
---|---|---|
|
@@ -32,15 +32,15 @@ bun add leafer-draw | |
::: code-group | ||
|
||
```html [web.min] | ||
<script src="https://unpkg.com/[email protected].2/dist/web.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].3/dist/web.min.js"></script> | ||
<script> | ||
const { Leafer } = LeaferUI | ||
// ... | ||
</script> | ||
``` | ||
|
||
```html [web] | ||
<script src="https://unpkg.com/[email protected].2/dist/web.js"></script> | ||
<script src="https://unpkg.com/[email protected].3/dist/web.js"></script> | ||
<script> | ||
const { Leafer } = LeaferUI | ||
// ... | ||
|
@@ -49,14 +49,14 @@ bun add leafer-draw | |
|
||
```html [module.min] | ||
<script type="module"> | ||
import { Leafer } from 'https://unpkg.com/[email protected].2/dist/web.module.min.js' | ||
import { Leafer } from 'https://unpkg.com/[email protected].3/dist/web.module.min.js' | ||
// ... | ||
</script> | ||
``` | ||
|
||
```html [module] | ||
<script type="module"> | ||
import { Leafer } from 'https://unpkg.com/[email protected].2/dist/web.module.js' | ||
import { Leafer } from 'https://unpkg.com/[email protected].3/dist/web.module.js' | ||
// ... | ||
</script> | ||
``` | ||
|
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 |
---|---|---|
|
@@ -33,11 +33,11 @@ bun add @leafer-draw/worker | |
::: code-group | ||
|
||
```js [worker.min.js] | ||
importScripts('https://unpkg.com/@leafer-draw/[email protected].2/dist/worker.min.js') | ||
importScripts('https://unpkg.com/@leafer-draw/[email protected].3/dist/worker.min.js') | ||
``` | ||
|
||
```js [worker.js] | ||
importScripts('https://unpkg.com/@leafer-draw/[email protected].2/dist/worker.js') | ||
importScripts('https://unpkg.com/@leafer-draw/[email protected].3/dist/worker.js') | ||
``` | ||
|
||
::: | ||
|
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 |
---|---|---|
|
@@ -32,9 +32,9 @@ bun add @leafer-editor/miniapp | |
|
||
```sh | ||
|
||
https://unpkg.com/@leafer-editor/[email protected].2/dist/miniapp.module.js | ||
https://unpkg.com/@leafer-editor/[email protected].3/dist/miniapp.module.js | ||
|
||
https://unpkg.com/@leafer-editor/[email protected].2/dist/miniapp.module.min.js | ||
https://unpkg.com/@leafer-editor/[email protected].3/dist/miniapp.module.min.js | ||
|
||
|
||
``` | ||
|
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 |
---|---|---|
|
@@ -37,15 +37,15 @@ bun add leafer-editor | |
::: code-group | ||
|
||
```html [web.min] | ||
<script src="https://unpkg.com/[email protected].2/dist/web.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].3/dist/web.min.js"></script> | ||
<script> | ||
const { Leafer, Editor, Arrow } = LeaferUI | ||
// ... | ||
</script> | ||
``` | ||
|
||
```html [web] | ||
<script src="https://unpkg.com/[email protected].2/dist/web.js"></script> | ||
<script src="https://unpkg.com/[email protected].3/dist/web.js"></script> | ||
<script> | ||
const { Leafer, Editor, Arrow } = LeaferUI | ||
// ... | ||
|
@@ -58,7 +58,7 @@ bun add leafer-editor | |
Leafer, | ||
Editor, | ||
Arrow, | ||
} from 'https://unpkg.com/[email protected].2/dist/web.module.min.js' | ||
} from 'https://unpkg.com/[email protected].3/dist/web.module.min.js' | ||
// ... | ||
</script> | ||
``` | ||
|
@@ -69,7 +69,7 @@ bun add leafer-editor | |
Leafer, | ||
Editor, | ||
Arrow, | ||
} from 'https://unpkg.com/[email protected].2/dist/web.module.js' | ||
} from 'https://unpkg.com/[email protected].3/dist/web.module.js' | ||
// ... | ||
</script> | ||
``` | ||
|
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 |
---|---|---|
|
@@ -34,12 +34,12 @@ bun add @leafer-editor/worker | |
|
||
```js [worker.min.js] | ||
importScripts( | ||
'https://unpkg.com/@leafer-editor/[email protected].2/dist/worker.min.js' | ||
'https://unpkg.com/@leafer-editor/[email protected].3/dist/worker.min.js' | ||
) | ||
``` | ||
|
||
```js [worker.js] | ||
importScripts('https://unpkg.com/@leafer-editor/[email protected].2/dist/worker.js') | ||
importScripts('https://unpkg.com/@leafer-editor/[email protected].3/dist/worker.js') | ||
``` | ||
|
||
::: | ||
|
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 |
---|---|---|
|
@@ -32,9 +32,9 @@ bun add @leafer-game/miniapp | |
|
||
```sh | ||
|
||
https://unpkg.com/@leafer-game/[email protected].2/dist/miniapp.module.js | ||
https://unpkg.com/@leafer-game/[email protected].3/dist/miniapp.module.js | ||
|
||
https://unpkg.com/@leafer-game/[email protected].2/dist/miniapp.module.min.js | ||
https://unpkg.com/@leafer-game/[email protected].3/dist/miniapp.module.min.js | ||
|
||
|
||
``` | ||
|
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 |
---|---|---|
|
@@ -37,15 +37,15 @@ bun add leafer-game | |
::: code-group | ||
|
||
```html [web.min] | ||
<script src="https://unpkg.com/[email protected].2/dist/web.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].3/dist/web.min.js"></script> | ||
<script> | ||
const { Leafer, Robot, Animate } = LeaferUI | ||
// ... | ||
</script> | ||
``` | ||
|
||
```html [web] | ||
<script src="https://unpkg.com/[email protected].2/dist/web.js"></script> | ||
<script src="https://unpkg.com/[email protected].3/dist/web.js"></script> | ||
<script> | ||
const { Leafer, Robot, Animate } = LeaferUI | ||
// ... | ||
|
@@ -58,7 +58,7 @@ bun add leafer-game | |
Leafer, | ||
Editor, | ||
Arrow, | ||
} from 'https://unpkg.com/[email protected].2/dist/web.module.min.js' | ||
} from 'https://unpkg.com/[email protected].3/dist/web.module.min.js' | ||
// ... | ||
</script> | ||
``` | ||
|
@@ -69,7 +69,7 @@ bun add leafer-game | |
Leafer, | ||
Editor, | ||
Arrow, | ||
} from 'https://unpkg.com/[email protected].2/dist/web.module.js' | ||
} from 'https://unpkg.com/[email protected].3/dist/web.module.js' | ||
// ... | ||
</script> | ||
``` | ||
|
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 |
---|---|---|
|
@@ -33,11 +33,11 @@ bun add @leafer-game/worker | |
::: code-group | ||
|
||
```js [worker.min.js] | ||
importScripts('https://unpkg.com/@leafer-game/[email protected].2/dist/worker.min.js') | ||
importScripts('https://unpkg.com/@leafer-game/[email protected].3/dist/worker.min.js') | ||
``` | ||
|
||
```js [worker.js] | ||
importScripts('https://unpkg.com/@leafer-game/[email protected].2/dist/worker.js') | ||
importScripts('https://unpkg.com/@leafer-game/[email protected].3/dist/worker.js') | ||
``` | ||
|
||
::: | ||
|
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 |
---|---|---|
|
@@ -46,9 +46,9 @@ var __TEMP2__ =__TEMP__; Object.defineProperty(exports, k, { enumerable: true, c | |
```sh | ||
|
||
https://unpkg.com/@leafer-ui/[email protected].2/dist/miniapp.module.js | ||
https://unpkg.com/@leafer-ui/[email protected].3/dist/miniapp.module.js | ||
|
||
https://unpkg.com/@leafer-ui/[email protected].2/dist/miniapp.module.min.js | ||
https://unpkg.com/@leafer-ui/[email protected].3/dist/miniapp.module.min.js | ||
``` | ||
## 环境 | ||
|
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 |
---|---|---|
|
@@ -45,7 +45,7 @@ bun add leafer-ui | |
::: code-group | ||
|
||
```html [web.min] | ||
<script src="https://unpkg.com/[email protected].2/dist/web.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].3/dist/web.min.js"></script> | ||
<script> | ||
const { Leafer } = LeaferUI // 全局变量,包含 leafer-ui 的所有功能 | ||
|
@@ -57,7 +57,7 @@ bun add leafer-ui | |
``` | ||
|
||
```html [web] | ||
<script src="https://unpkg.com/[email protected].2/dist/web.js"></script> | ||
<script src="https://unpkg.com/[email protected].3/dist/web.js"></script> | ||
<script> | ||
const { Leafer } = LeaferUI // 全局变量,包含 leafer-ui的所有功能 | ||
|
@@ -70,14 +70,14 @@ bun add leafer-ui | |
|
||
```html [module.min] | ||
<script type="module"> | ||
import { Leafer } from 'https://unpkg.com/[email protected].2/dist/web.module.min.js' | ||
import { Leafer } from 'https://unpkg.com/[email protected].3/dist/web.module.min.js' | ||
// ... | ||
</script> | ||
``` | ||
|
||
```html [module] | ||
<script type="module"> | ||
import { Leafer } from 'https://unpkg.com/[email protected].2/dist/web.module.js' | ||
import { Leafer } from 'https://unpkg.com/[email protected].3/dist/web.module.js' | ||
// ... | ||
</script> | ||
``` | ||
|
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 |
---|---|---|
|
@@ -33,11 +33,11 @@ bun add @leafer-ui/worker | |
::: code-group | ||
|
||
```js [worker.min.js] | ||
importScripts('https://unpkg.com/@leafer-ui/[email protected].2/dist/worker.min.js') | ||
importScripts('https://unpkg.com/@leafer-ui/[email protected].3/dist/worker.min.js') | ||
``` | ||
|
||
```js [worker.js] | ||
importScripts('https://unpkg.com/@leafer-ui/[email protected].2/dist/worker.js') | ||
importScripts('https://unpkg.com/@leafer-ui/[email protected].3/dist/worker.js') | ||
``` | ||
|
||
::: | ||
|
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 |
---|---|---|
|
@@ -46,16 +46,16 @@ bun add @leafer-in/color | |
::: code-group | ||
|
||
```html [animate.min] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].2/dist/animate.min.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].2/dist/color.min.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].3/dist/animate.min.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].3/dist/color.min.js"></script> | ||
<script> | ||
const { Animate } = LeaferIN.animate | ||
</script> | ||
``` | ||
|
||
```html [animate] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].2/dist/animate.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].2/dist/color.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].3/dist/animate.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].3/dist/color.js"></script> | ||
<script> | ||
const { Animate } = LeaferIN.animate | ||
</script> | ||
|
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 |
---|---|---|
|
@@ -42,14 +42,14 @@ bun add @leafer-in/arrow | |
::: code-group | ||
|
||
```html [arrow.min] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].2/dist/arrow.min.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].3/dist/arrow.min.js"></script> | ||
<script> | ||
const { Arrow } = LeaferIN.arrow | ||
</script> | ||
``` | ||
|
||
```html [arrow] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].2/dist/arrow.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].3/dist/arrow.js"></script> | ||
<script> | ||
const { Arrow } = LeaferIN.arrow | ||
</script> | ||
|
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 |
---|---|---|
|
@@ -36,11 +36,11 @@ bun add @leafer-in/color | |
::: code-group | ||
|
||
```html [color.min] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].2/dist/color.min.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].3/dist/color.min.js"></script> | ||
``` | ||
|
||
```html [color] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].2/dist/color.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].3/dist/color.js"></script> | ||
``` | ||
|
||
https://unpkg.com 无法访问时,可替换为 https://cdn.jsdelivr.net/npm | ||
|
Oops, something went wrong.