-
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
28 changed files
with
100 additions
and
56 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
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].5/dist/miniapp.module.js | ||
https://unpkg.com/@leafer-draw/[email protected].6/dist/miniapp.module.js | ||
|
||
https://unpkg.com/@leafer-draw/[email protected].5/dist/miniapp.module.min.js | ||
https://unpkg.com/@leafer-draw/[email protected].6/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].5/dist/web.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].6/dist/web.min.js"></script> | ||
<script> | ||
const { Leafer } = LeaferUI | ||
// ... | ||
</script> | ||
``` | ||
|
||
```html [web] | ||
<script src="https://unpkg.com/[email protected].5/dist/web.js"></script> | ||
<script src="https://unpkg.com/[email protected].6/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].5/dist/web.module.min.js' | ||
import { Leafer } from 'https://unpkg.com/[email protected].6/dist/web.module.min.js' | ||
// ... | ||
</script> | ||
``` | ||
|
||
```html [module] | ||
<script type="module"> | ||
import { Leafer } from 'https://unpkg.com/[email protected].5/dist/web.module.js' | ||
import { Leafer } from 'https://unpkg.com/[email protected].6/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].5/dist/worker.min.js') | ||
importScripts('https://unpkg.com/@leafer-draw/[email protected].6/dist/worker.min.js') | ||
``` | ||
|
||
```js [worker.js] | ||
importScripts('https://unpkg.com/@leafer-draw/[email protected].5/dist/worker.js') | ||
importScripts('https://unpkg.com/@leafer-draw/[email protected].6/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].5/dist/miniapp.module.js | ||
https://unpkg.com/@leafer-editor/[email protected].6/dist/miniapp.module.js | ||
|
||
https://unpkg.com/@leafer-editor/[email protected].5/dist/miniapp.module.min.js | ||
https://unpkg.com/@leafer-editor/[email protected].6/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].5/dist/web.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].6/dist/web.min.js"></script> | ||
<script> | ||
const { Leafer, Editor, Arrow } = LeaferUI | ||
// ... | ||
</script> | ||
``` | ||
|
||
```html [web] | ||
<script src="https://unpkg.com/[email protected].5/dist/web.js"></script> | ||
<script src="https://unpkg.com/[email protected].6/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].5/dist/web.module.min.js' | ||
} from 'https://unpkg.com/[email protected].6/dist/web.module.min.js' | ||
// ... | ||
</script> | ||
``` | ||
|
@@ -69,7 +69,7 @@ bun add leafer-editor | |
Leafer, | ||
Editor, | ||
Arrow, | ||
} from 'https://unpkg.com/[email protected].5/dist/web.module.js' | ||
} from 'https://unpkg.com/[email protected].6/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].5/dist/worker.min.js' | ||
'https://unpkg.com/@leafer-editor/[email protected].6/dist/worker.min.js' | ||
) | ||
``` | ||
|
||
```js [worker.js] | ||
importScripts('https://unpkg.com/@leafer-editor/[email protected].5/dist/worker.js') | ||
importScripts('https://unpkg.com/@leafer-editor/[email protected].6/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].5/dist/miniapp.module.js | ||
https://unpkg.com/@leafer-ui/[email protected].6/dist/miniapp.module.js | ||
|
||
https://unpkg.com/@leafer-ui/[email protected].5/dist/miniapp.module.min.js | ||
https://unpkg.com/@leafer-ui/[email protected].6/dist/miniapp.module.min.js | ||
``` | ||
## 环境 | ||
|
@@ -59,9 +59,11 @@ https://unpkg.com/@leafer-ui/[email protected]/dist/miniapp.module.min.js | |
## 注意 | ||
微信小程序自身加载 svg 图片有问题。 | ||
1. 微信小程序自身加载 svg 图片有问题。 | ||
阴影、遮罩(iOS 端 path 类型可用)等正在适配兼容性。 | ||
2. 阴影、遮罩(iOS 端 path 类型可用)等正在适配兼容性。 | ||
3. 在 [web-view](https://developers.weixin.qq.com/miniprogram/dev/component/web-view.html) 组件中使用时,微信 JS-SDK 上传 PNG 图片会变成 JPG 格式,请使用 HTML5 原生的 input 框上传。 | ||
::: warning 温馨提示 | ||
微信小程序 iOS 端 3.0.0 之后 view 中的 canvas drawImage 无法绘制离屏画布,已找到办法绕过此限制,但仍有部分高级功能用不了(后续会继续适配)。 | ||
|
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].5/dist/web.min.js"></script> | ||
<script src="https://unpkg.com/[email protected].6/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].5/dist/web.js"></script> | ||
<script src="https://unpkg.com/[email protected].6/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].5/dist/web.module.min.js' | ||
import { Leafer } from 'https://unpkg.com/[email protected].6/dist/web.module.min.js' | ||
// ... | ||
</script> | ||
``` | ||
|
||
```html [module] | ||
<script type="module"> | ||
import { Leafer } from 'https://unpkg.com/[email protected].5/dist/web.module.js' | ||
import { Leafer } from 'https://unpkg.com/[email protected].6/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].5/dist/worker.min.js') | ||
importScripts('https://unpkg.com/@leafer-ui/[email protected].6/dist/worker.min.js') | ||
``` | ||
|
||
```js [worker.js] | ||
importScripts('https://unpkg.com/@leafer-ui/[email protected].5/dist/worker.js') | ||
importScripts('https://unpkg.com/@leafer-ui/[email protected].6/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
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/animate | |
::: code-group | ||
|
||
```html [animate.min] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/animate.min.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/animate.min.js"></script> | ||
<script> | ||
const { Animate } = LeaferIN.animate | ||
</script> | ||
``` | ||
|
||
```html [animate] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/animate.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/animate.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].5/dist/arrow.min.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/arrow.min.js"></script> | ||
<script> | ||
const { Arrow } = LeaferIN.arrow | ||
</script> | ||
``` | ||
|
||
```html [arrow] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/arrow.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/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/resize | |
::: code-group | ||
|
||
```html [resize.min] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/resize.min.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/resize.min.js"></script> | ||
``` | ||
|
||
```html [resize] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/resize.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/resize.js"></script> | ||
``` | ||
|
||
https://unpkg.com 无法访问时,可替换为 https://cdn.jsdelivr.net/npm | ||
|
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/editor | |
::: code-group | ||
|
||
```html [editor.min] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/editor.min.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/editor.min.js"></script> | ||
<script> | ||
const { Editor } = LeaferIN.editor | ||
</script> | ||
``` | ||
|
||
```html [editor] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/editor.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/editor.js"></script> | ||
<script> | ||
const { Editor } = LeaferIN.editor | ||
</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 |
---|---|---|
|
@@ -38,14 +38,14 @@ bun add @leafer-in/flow | |
::: code-group | ||
|
||
```html [flow.min] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/flow.min.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/flow.min.js"></script> | ||
<script> | ||
const { Flow } = LeaferIN.flow | ||
</script> | ||
``` | ||
|
||
```html [flow] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/flow.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/flow.js"></script> | ||
<script> | ||
const { Flow } = LeaferIN.flow | ||
</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/html | |
::: code-group | ||
|
||
```html [html.min] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/html.min.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/html.min.js"></script> | ||
<script> | ||
const { HTMLText } = LeaferIN.html | ||
</script> | ||
``` | ||
|
||
```html [html] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/html.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/html.js"></script> | ||
<script> | ||
const { HTMLText } = LeaferIN.html | ||
</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/resize | |
::: code-group | ||
|
||
```html [resize.min] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/resize.min.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/resize.min.js"></script> | ||
``` | ||
|
||
```html [resize] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/resize.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/resize.js"></script> | ||
``` | ||
|
||
https://unpkg.com 无法访问时,可替换为 https://cdn.jsdelivr.net/npm | ||
|
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/resize | |
::: code-group | ||
|
||
```html [resize.min] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/resize.min.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/resize.min.js"></script> | ||
``` | ||
|
||
```html [resize] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/resize.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/resize.js"></script> | ||
``` | ||
|
||
https://unpkg.com 无法访问时,可替换为 https://cdn.jsdelivr.net/npm | ||
|
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 |
---|---|---|
|
@@ -44,14 +44,14 @@ bun add @leafer-in/robot | |
::: code-group | ||
|
||
```html [robot.min] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/robot.min.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/robot.min.js"></script> | ||
<script> | ||
const { Robot } = LeaferIN.robot | ||
</script> | ||
``` | ||
|
||
```html [robot] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/robot.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/robot.js"></script> | ||
<script> | ||
const { Robot } = LeaferIN.robot | ||
</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,14 +36,14 @@ bun add @leafer-in/scroll | |
::: code-group | ||
|
||
```html [scroll.min] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/scroll.min.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/scroll.min.js"></script> | ||
<script> | ||
const { ScrollBar } = LeaferIN.scroll | ||
</script> | ||
``` | ||
|
||
```html [scroll] | ||
<script src="https://unpkg.com/@leafer-in/[email protected].5/dist/scroll.js"></script> | ||
<script src="https://unpkg.com/@leafer-in/[email protected].6/dist/scroll.js"></script> | ||
<script> | ||
const { ScrollBar } = LeaferIN.scroll | ||
</script> | ||
|
Oops, something went wrong.