diff --git a/.vscode/settings.json b/.vscode/settings.json
index 2d83d16d..0c08b95b 100644
--- a/.vscode/settings.json
+++ b/.vscode/settings.json
@@ -16,6 +16,6 @@
"editor.formatOnSave": false
},
"editor.codeActionsOnSave": {
- "source.fixAll": true
+ "source.fixAll": "explicit"
}
}
diff --git a/packages/duoyun-ui/docs/en/01-guide/README.md b/packages/duoyun-ui/docs/en/01-guide/README.md
index 8c8e0959..ea620767 100644
--- a/packages/duoyun-ui/docs/en/01-guide/README.md
+++ b/packages/duoyun-ui/docs/en/01-guide/README.md
@@ -58,7 +58,7 @@ Toast.open('error', 'An error occurred');
DuoyunUI supports an ESM method independently uses an element, such as adding a keyboard access to your website(press f list all focusable elements):
```ts
-import('https://jspm.dev/duoyun-ui/elements/keyboard-access').then(({ DuoyunKeyboardAccessElement }) =>
+import('https://esm.sh/duoyun-ui/elements/keyboard-access').then(({ DuoyunKeyboardAccessElement }) =>
document.body.append(new DuoyunKeyboardAccessElement()),
);
```
@@ -66,7 +66,7 @@ import('https://jspm.dev/duoyun-ui/elements/keyboard-access').then(({ DuoyunKeyb
For example, enable input recording mode:
```ts
-import('https://jspm.dev/duoyun-ui/elements/input-capture').then(({ DuoyunInputCaptureElement }) =>
+import('https://esm.sh/duoyun-ui/elements/input-capture').then(({ DuoyunInputCaptureElement }) =>
document.body.append(new DuoyunInputCaptureElement()),
);
```
diff --git a/packages/duoyun-ui/docs/en/02-elements/001-loadable-base.md b/packages/duoyun-ui/docs/en/02-elements/001-loadable-base.md
index 6ccb7b21..f6a270e3 100644
--- a/packages/duoyun-ui/docs/en/02-elements/001-loadable-base.md
+++ b/packages/duoyun-ui/docs/en/02-elements/001-loadable-base.md
@@ -7,4 +7,4 @@ when `loading` is true, show a loader above the element, e.g:
name="dy-card"
props='{"style": "width: 250px;", "loading": true, "avatar": "https://api.dicebear.com/5.x/bottts-neutral/svg", "preview": "https://picsum.photos/400/300", "header": "This is Card"}'
html="Fugiat do laboris ad officia in anim qui mollit nulla reprehenderit pariatur anim sunt."
- src="https://jspm.dev/duoyun-ui/elements/card">
+ src="https://esm.sh/duoyun-ui/elements/card">
diff --git a/packages/duoyun-ui/docs/en/02-elements/action-text.md b/packages/duoyun-ui/docs/en/02-elements/action-text.md
index b9d17660..76459bef 100644
--- a/packages/duoyun-ui/docs/en/02-elements/action-text.md
+++ b/packages/duoyun-ui/docs/en/02-elements/action-text.md
@@ -6,7 +6,7 @@
name="dy-action-text"
html="Action Text"
props='{"tooltip":"Tooltip text", "color": "negative"}'
- src="https://jspm.dev/duoyun-ui/elements/action-text">
+ src="https://esm.sh/duoyun-ui/elements/action-text">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/alert.md b/packages/duoyun-ui/docs/en/02-elements/alert.md
index aa8b5d5c..4c9782e5 100644
--- a/packages/duoyun-ui/docs/en/02-elements/alert.md
+++ b/packages/duoyun-ui/docs/en/02-elements/alert.md
@@ -6,7 +6,7 @@
name="dy-alert"
props='{"style": "width: 300px", "status": "negative", "header": "This is alert title", "action": {"text": "View"}}'
html="Occaecat tempor amet fugiat ad fugiat sunt irure veniam consequat aute."
- src="https://jspm.dev/duoyun-ui/elements/alert">
+ src="https://esm.sh/duoyun-ui/elements/alert">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/area-chart.md b/packages/duoyun-ui/docs/en/02-elements/area-chart.md
index 160e9d42..f27a3d20 100644
--- a/packages/duoyun-ui/docs/en/02-elements/area-chart.md
+++ b/packages/duoyun-ui/docs/en/02-elements/area-chart.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/area-chart">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/avatar.md b/packages/duoyun-ui/docs/en/02-elements/avatar.md
index 3382a562..68f81db9 100644
--- a/packages/duoyun-ui/docs/en/02-elements/avatar.md
+++ b/packages/duoyun-ui/docs/en/02-elements/avatar.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
@@ -15,7 +15,7 @@
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/en/02-elements/banner.md b/packages/duoyun-ui/docs/en/02-elements/banner.md
index 1e561252..af249030 100644
--- a/packages/duoyun-ui/docs/en/02-elements/banner.md
+++ b/packages/duoyun-ui/docs/en/02-elements/banner.md
@@ -6,7 +6,7 @@
name="dy-banner"
props='{"style": "width: 100%", "closable": true, "status": "positive", "action": {"text": "View"}}'
html="This is banner"
- src="https://jspm.dev/duoyun-ui/elements/banner">
+ src="https://esm.sh/duoyun-ui/elements/banner">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/bar-chart.md b/packages/duoyun-ui/docs/en/02-elements/bar-chart.md
index 7d38ade6..0452d49f 100644
--- a/packages/duoyun-ui/docs/en/02-elements/bar-chart.md
+++ b/packages/duoyun-ui/docs/en/02-elements/bar-chart.md
@@ -5,12 +5,12 @@
+ src="https://esm.sh/duoyun-ui/elements/bar-chart">
+ src="https://esm.sh/duoyun-ui/elements/bar-chart">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/breadcrumbs.md b/packages/duoyun-ui/docs/en/02-elements/breadcrumbs.md
index 4e50b411..0ce0a78b 100644
--- a/packages/duoyun-ui/docs/en/02-elements/breadcrumbs.md
+++ b/packages/duoyun-ui/docs/en/02-elements/breadcrumbs.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/breadcrumbs">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/button.md b/packages/duoyun-ui/docs/en/02-elements/button.md
index 342febc4..6516d700 100644
--- a/packages/duoyun-ui/docs/en/02-elements/button.md
+++ b/packages/duoyun-ui/docs/en/02-elements/button.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/calendar.md b/packages/duoyun-ui/docs/en/02-elements/calendar.md
index 507f895e..f75c3c57 100644
--- a/packages/duoyun-ui/docs/en/02-elements/calendar.md
+++ b/packages/duoyun-ui/docs/en/02-elements/calendar.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/calendar">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/card.md b/packages/duoyun-ui/docs/en/02-elements/card.md
index fdf5a5a3..622216a7 100644
--- a/packages/duoyun-ui/docs/en/02-elements/card.md
+++ b/packages/duoyun-ui/docs/en/02-elements/card.md
@@ -6,7 +6,7 @@
name="dy-card"
props='{"style": "width: 250px;", "avatar": "https://api.dicebear.com/5.x/bottts-neutral/svg", "preview": "https://picsum.photos/400/300", "header": "This is Card"}'
html="Fugiat do laboris ad officia in anim qui mollit nulla reprehenderit pariatur anim sunt."
- src="https://jspm.dev/duoyun-ui/elements/card">
+ src="https://esm.sh/duoyun-ui/elements/card">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/carousel.md b/packages/duoyun-ui/docs/en/02-elements/carousel.md
index 8cedcff2..e44a2602 100644
--- a/packages/duoyun-ui/docs/en/02-elements/carousel.md
+++ b/packages/duoyun-ui/docs/en/02-elements/carousel.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/carousel">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/cascader-picker.md b/packages/duoyun-ui/docs/en/02-elements/cascader-picker.md
index 82c535d8..9a38c48e 100644
--- a/packages/duoyun-ui/docs/en/02-elements/cascader-picker.md
+++ b/packages/duoyun-ui/docs/en/02-elements/cascader-picker.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/cascader-picker">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/cascader.md b/packages/duoyun-ui/docs/en/02-elements/cascader.md
index ac7a0e18..521fee06 100644
--- a/packages/duoyun-ui/docs/en/02-elements/cascader.md
+++ b/packages/duoyun-ui/docs/en/02-elements/cascader.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/cascader">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/checkbox.md b/packages/duoyun-ui/docs/en/02-elements/checkbox.md
index 90b75ae4..e4cf0ef3 100644
--- a/packages/duoyun-ui/docs/en/02-elements/checkbox.md
+++ b/packages/duoyun-ui/docs/en/02-elements/checkbox.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/code-block.md b/packages/duoyun-ui/docs/en/02-elements/code-block.md
index 37e69e72..602637be 100644
--- a/packages/duoyun-ui/docs/en/02-elements/code-block.md
+++ b/packages/duoyun-ui/docs/en/02-elements/code-block.md
@@ -14,9 +14,10 @@
<a>The freeCodeCamp Contribution Page</a> shows you how and where you can contribute to freeCodeCamps community and growth.
</p>
</body>
-</html>'
- props='{"style": "width: 100%", "codelang": "html"}'
- src="https://jspm.dev/duoyun-ui/elements/code-block">
+</html>
+Test'
+ props='{"style": "width: 100%", "codelang": "html", "range": "-11", "highlight": "8"}'
+ src="https://esm.sh/duoyun-ui/elements/code-block">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/collapse.md b/packages/duoyun-ui/docs/en/02-elements/collapse.md
index 9c079db8..06002c76 100644
--- a/packages/duoyun-ui/docs/en/02-elements/collapse.md
+++ b/packages/duoyun-ui/docs/en/02-elements/collapse.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/en/02-elements/color-panel.md b/packages/duoyun-ui/docs/en/02-elements/color-panel.md
index 249d735d..faa60512 100644
--- a/packages/duoyun-ui/docs/en/02-elements/color-panel.md
+++ b/packages/duoyun-ui/docs/en/02-elements/color-panel.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/color-panel">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/color-picker.md b/packages/duoyun-ui/docs/en/02-elements/color-picker.md
index 7d19f26c..51f92d59 100644
--- a/packages/duoyun-ui/docs/en/02-elements/color-picker.md
+++ b/packages/duoyun-ui/docs/en/02-elements/color-picker.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/copy.md b/packages/duoyun-ui/docs/en/02-elements/copy.md
index 26da51ba..eb2a64cb 100644
--- a/packages/duoyun-ui/docs/en/02-elements/copy.md
+++ b/packages/duoyun-ui/docs/en/02-elements/copy.md
@@ -6,7 +6,7 @@
name="dy-copy"
props='{"style": "width: 100%; align-self: flex-start;"}'
html="Hover Text Copy!"
- src="https://jspm.dev/duoyun-ui/elements/copy">
+ src="https://esm.sh/duoyun-ui/elements/copy">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/date-panel.md b/packages/duoyun-ui/docs/en/02-elements/date-panel.md
index 047abb6e..6db9134f 100644
--- a/packages/duoyun-ui/docs/en/02-elements/date-panel.md
+++ b/packages/duoyun-ui/docs/en/02-elements/date-panel.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/date-panel">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/date-picker.md b/packages/duoyun-ui/docs/en/02-elements/date-picker.md
index 8e1cc3a0..384dde16 100644
--- a/packages/duoyun-ui/docs/en/02-elements/date-picker.md
+++ b/packages/duoyun-ui/docs/en/02-elements/date-picker.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/date-range-panel.md b/packages/duoyun-ui/docs/en/02-elements/date-range-panel.md
index c9c4380f..19aee9a8 100644
--- a/packages/duoyun-ui/docs/en/02-elements/date-range-panel.md
+++ b/packages/duoyun-ui/docs/en/02-elements/date-range-panel.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/date-range-panel">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/date-range-picker.md b/packages/duoyun-ui/docs/en/02-elements/date-range-picker.md
index 65a33ade..e7a23e29 100644
--- a/packages/duoyun-ui/docs/en/02-elements/date-range-picker.md
+++ b/packages/duoyun-ui/docs/en/02-elements/date-range-picker.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/divider.md b/packages/duoyun-ui/docs/en/02-elements/divider.md
index 16144574..072212e2 100644
--- a/packages/duoyun-ui/docs/en/02-elements/divider.md
+++ b/packages/duoyun-ui/docs/en/02-elements/divider.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/divider">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/donut-chart.md b/packages/duoyun-ui/docs/en/02-elements/donut-chart.md
index 6f45a730..1ee459df 100644
--- a/packages/duoyun-ui/docs/en/02-elements/donut-chart.md
+++ b/packages/duoyun-ui/docs/en/02-elements/donut-chart.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/donut-chart">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/drawer.md b/packages/duoyun-ui/docs/en/02-elements/drawer.md
index 707a5d01..cda70831 100644
--- a/packages/duoyun-ui/docs/en/02-elements/drawer.md
+++ b/packages/duoyun-ui/docs/en/02-elements/drawer.md
@@ -6,7 +6,7 @@
name="dy-drawer"
props='{"header": "Title", "open": true, "@ok": "(evt) => evt.target.open = false", "@close": "(evt) => evt.target.open = false", "@maskclick": "(evt) => evt.target.open = false"}'
html='Drawer
'
- src="https://jspm.dev/duoyun-ui/elements/drawer">Current page auto open drawer
+ src="https://esm.sh/duoyun-ui/elements/drawer">Current page auto open drawer
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/drop-area.md b/packages/duoyun-ui/docs/en/02-elements/drop-area.md
index 3dae8885..567e3614 100644
--- a/packages/duoyun-ui/docs/en/02-elements/drop-area.md
+++ b/packages/duoyun-ui/docs/en/02-elements/drop-area.md
@@ -6,7 +6,7 @@
name="dy-drop-area"
props='{"style": "width: 100%; height: 200px;"}'
html='Drop File To Here'
- src="https://jspm.dev/duoyun-ui/elements/drop-area">
+ src="https://esm.sh/duoyun-ui/elements/drop-area">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/empty.md b/packages/duoyun-ui/docs/en/02-elements/empty.md
index 53903b33..f0c48839 100644
--- a/packages/duoyun-ui/docs/en/02-elements/empty.md
+++ b/packages/duoyun-ui/docs/en/02-elements/empty.md
@@ -4,7 +4,7 @@
+ src="https://esm.sh/duoyun-ui/elements/empty">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/file-picker.md b/packages/duoyun-ui/docs/en/02-elements/file-picker.md
index f72b6f37..6d1da957 100644
--- a/packages/duoyun-ui/docs/en/02-elements/file-picker.md
+++ b/packages/duoyun-ui/docs/en/02-elements/file-picker.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/flow.md b/packages/duoyun-ui/docs/en/02-elements/flow.md
index 2ef6f345..78ce3498 100644
--- a/packages/duoyun-ui/docs/en/02-elements/flow.md
+++ b/packages/duoyun-ui/docs/en/02-elements/flow.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/flow">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/form.md b/packages/duoyun-ui/docs/en/02-elements/form.md
index 0c765d10..fead9957 100644
--- a/packages/duoyun-ui/docs/en/02-elements/form.md
+++ b/packages/duoyun-ui/docs/en/02-elements/form.md
@@ -11,7 +11,7 @@
'
- src="https://jspm.dev/duoyun-ui/elements/form">
+ src="https://esm.sh/duoyun-ui/elements/form">
+ src="https://esm.sh/duoyun-ui/elements/form">
## `` API
diff --git a/packages/duoyun-ui/docs/en/02-elements/heading.md b/packages/duoyun-ui/docs/en/02-elements/heading.md
index 43c080ce..1ac32b8e 100644
--- a/packages/duoyun-ui/docs/en/02-elements/heading.md
+++ b/packages/duoyun-ui/docs/en/02-elements/heading.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/help-text.md b/packages/duoyun-ui/docs/en/02-elements/help-text.md
index 1ca7d80e..1efae14a 100644
--- a/packages/duoyun-ui/docs/en/02-elements/help-text.md
+++ b/packages/duoyun-ui/docs/en/02-elements/help-text.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/icons.md b/packages/duoyun-ui/docs/en/02-elements/icons.md
index a5d0bcc4..b82e651d 100644
--- a/packages/duoyun-ui/docs/en/02-elements/icons.md
+++ b/packages/duoyun-ui/docs/en/02-elements/icons.md
@@ -7,7 +7,7 @@ All build-in icons, click copy code.
+ src="https://esm.sh/duoyun-ui/elements/icons">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/input-capture.md b/packages/duoyun-ui/docs/en/02-elements/input-capture.md
index 1b84ce40..3cf8e76e 100644
--- a/packages/duoyun-ui/docs/en/02-elements/input-capture.md
+++ b/packages/duoyun-ui/docs/en/02-elements/input-capture.md
@@ -4,7 +4,7 @@
Try click or keypress
+ src="https://esm.sh/duoyun-ui/elements/input-capture">Try click or keypress
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/input.md b/packages/duoyun-ui/docs/en/02-elements/input.md
index 229c3684..63a413fa 100644
--- a/packages/duoyun-ui/docs/en/02-elements/input.md
+++ b/packages/duoyun-ui/docs/en/02-elements/input.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/keyboard-access.md b/packages/duoyun-ui/docs/en/02-elements/keyboard-access.md
index 778736b9..774043a1 100644
--- a/packages/duoyun-ui/docs/en/02-elements/keyboard-access.md
+++ b/packages/duoyun-ui/docs/en/02-elements/keyboard-access.md
@@ -4,7 +4,7 @@
Try press f
+ src="https://esm.sh/duoyun-ui/elements/keyboard-access">Try press f
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/legend.md b/packages/duoyun-ui/docs/en/02-elements/legend.md
index fda523a9..6731731f 100644
--- a/packages/duoyun-ui/docs/en/02-elements/legend.md
+++ b/packages/duoyun-ui/docs/en/02-elements/legend.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/en/02-elements/line-chart.md b/packages/duoyun-ui/docs/en/02-elements/line-chart.md
index bb4e1960..72cec0e1 100644
--- a/packages/duoyun-ui/docs/en/02-elements/line-chart.md
+++ b/packages/duoyun-ui/docs/en/02-elements/line-chart.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/en/02-elements/list.md b/packages/duoyun-ui/docs/en/02-elements/list.md
index 63d007e0..e5d45738 100644
--- a/packages/duoyun-ui/docs/en/02-elements/list.md
+++ b/packages/duoyun-ui/docs/en/02-elements/list.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/en/02-elements/loading.md b/packages/duoyun-ui/docs/en/02-elements/loading.md
index e3755cc4..1994ed78 100644
--- a/packages/duoyun-ui/docs/en/02-elements/loading.md
+++ b/packages/duoyun-ui/docs/en/02-elements/loading.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/loading">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/meter.md b/packages/duoyun-ui/docs/en/02-elements/meter.md
index f1b67d95..0e2791ec 100644
--- a/packages/duoyun-ui/docs/en/02-elements/meter.md
+++ b/packages/duoyun-ui/docs/en/02-elements/meter.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/modal.md b/packages/duoyun-ui/docs/en/02-elements/modal.md
index 2a1a5f0f..1b5accbd 100644
--- a/packages/duoyun-ui/docs/en/02-elements/modal.md
+++ b/packages/duoyun-ui/docs/en/02-elements/modal.md
@@ -6,7 +6,7 @@
name="dy-modal"
props='{"header": "Title", "open": true, "@ok": "(evt) => evt.target.open = false", "@close": "(evt) => evt.target.open = false", "@maskclick": "(evt) => evt.target.open = false"}'
html='Modal
'
- src="https://jspm.dev/duoyun-ui/elements/modal">Current page auto open modal
+ src="https://esm.sh/duoyun-ui/elements/modal">Current page auto open modal
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/more.md b/packages/duoyun-ui/docs/en/02-elements/more.md
index 0d04e368..181a0549 100644
--- a/packages/duoyun-ui/docs/en/02-elements/more.md
+++ b/packages/duoyun-ui/docs/en/02-elements/more.md
@@ -6,7 +6,7 @@
name="dy-more"
props='{"style": "width: 300px;", "maxHeight": "100px"}'
html='Proident tempor non cillum Lorem. Mollit dolore exercitation ipsum commodo id et culpa proident consectetur. Amet quis mollit Lorem in reprehenderit fugiat minim proident ut. Qui commodo non cillum amet cupidatat voluptate quis ea est.'
- src="https://jspm.dev/duoyun-ui/elements/more">
+ src="https://esm.sh/duoyun-ui/elements/more">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/options.md b/packages/duoyun-ui/docs/en/02-elements/options.md
index 316cfd6b..63115579 100644
--- a/packages/duoyun-ui/docs/en/02-elements/options.md
+++ b/packages/duoyun-ui/docs/en/02-elements/options.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/options">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/pagination.md b/packages/duoyun-ui/docs/en/02-elements/pagination.md
index 5ff636ca..c215ecc5 100644
--- a/packages/duoyun-ui/docs/en/02-elements/pagination.md
+++ b/packages/duoyun-ui/docs/en/02-elements/pagination.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/en/02-elements/paragraph.md b/packages/duoyun-ui/docs/en/02-elements/paragraph.md
index 193e2523..5cdb775d 100644
--- a/packages/duoyun-ui/docs/en/02-elements/paragraph.md
+++ b/packages/duoyun-ui/docs/en/02-elements/paragraph.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/paragraph">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/picker.md b/packages/duoyun-ui/docs/en/02-elements/picker.md
index 6d9e1f9e..9118e045 100644
--- a/packages/duoyun-ui/docs/en/02-elements/picker.md
+++ b/packages/duoyun-ui/docs/en/02-elements/picker.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/placeholder.md b/packages/duoyun-ui/docs/en/02-elements/placeholder.md
index 6a326557..097dc105 100644
--- a/packages/duoyun-ui/docs/en/02-elements/placeholder.md
+++ b/packages/duoyun-ui/docs/en/02-elements/placeholder.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/en/02-elements/progress.md b/packages/duoyun-ui/docs/en/02-elements/progress.md
index 268eaa11..42118863 100644
--- a/packages/duoyun-ui/docs/en/02-elements/progress.md
+++ b/packages/duoyun-ui/docs/en/02-elements/progress.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/progress">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/radio.md b/packages/duoyun-ui/docs/en/02-elements/radio.md
index 3f8efeb5..34bc14d8 100644
--- a/packages/duoyun-ui/docs/en/02-elements/radio.md
+++ b/packages/duoyun-ui/docs/en/02-elements/radio.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/radio">
## `` API
diff --git a/packages/duoyun-ui/docs/en/02-elements/rate.md b/packages/duoyun-ui/docs/en/02-elements/rate.md
index 1084b2a7..7d0a453d 100644
--- a/packages/duoyun-ui/docs/en/02-elements/rate.md
+++ b/packages/duoyun-ui/docs/en/02-elements/rate.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/rate">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/result.md b/packages/duoyun-ui/docs/en/02-elements/result.md
index 9b4f5558..f59146c5 100644
--- a/packages/duoyun-ui/docs/en/02-elements/result.md
+++ b/packages/duoyun-ui/docs/en/02-elements/result.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/result">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/scatter-chart.md b/packages/duoyun-ui/docs/en/02-elements/scatter-chart.md
index fb46e894..24491078 100644
--- a/packages/duoyun-ui/docs/en/02-elements/scatter-chart.md
+++ b/packages/duoyun-ui/docs/en/02-elements/scatter-chart.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/scatter-chart">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/segmented.md b/packages/duoyun-ui/docs/en/02-elements/segmented.md
index 14308136..76112064 100644
--- a/packages/duoyun-ui/docs/en/02-elements/segmented.md
+++ b/packages/duoyun-ui/docs/en/02-elements/segmented.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/select.md b/packages/duoyun-ui/docs/en/02-elements/select.md
index b27988f4..92f0e1d5 100644
--- a/packages/duoyun-ui/docs/en/02-elements/select.md
+++ b/packages/duoyun-ui/docs/en/02-elements/select.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/select">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/shortcut-record.md b/packages/duoyun-ui/docs/en/02-elements/shortcut-record.md
index 34b6eab3..dfef217e 100644
--- a/packages/duoyun-ui/docs/en/02-elements/shortcut-record.md
+++ b/packages/duoyun-ui/docs/en/02-elements/shortcut-record.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/shortcut-record">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/side-navigation.md b/packages/duoyun-ui/docs/en/02-elements/side-navigation.md
index ce67dded..f62121ca 100644
--- a/packages/duoyun-ui/docs/en/02-elements/side-navigation.md
+++ b/packages/duoyun-ui/docs/en/02-elements/side-navigation.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/side-navigation">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/slider.md b/packages/duoyun-ui/docs/en/02-elements/slider.md
index 8eecb101..b2732f86 100644
--- a/packages/duoyun-ui/docs/en/02-elements/slider.md
+++ b/packages/duoyun-ui/docs/en/02-elements/slider.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/space.md b/packages/duoyun-ui/docs/en/02-elements/space.md
index f90ac15f..2f8cb02b 100644
--- a/packages/duoyun-ui/docs/en/02-elements/space.md
+++ b/packages/duoyun-ui/docs/en/02-elements/space.md
@@ -6,7 +6,7 @@
name="dy-space"
props='{"size": "large"}'
html="Button1
Button2
Button3
"
- src="https://jspm.dev/duoyun-ui/elements/space">
+ src="https://esm.sh/duoyun-ui/elements/space">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/statistic.md b/packages/duoyun-ui/docs/en/02-elements/statistic.md
index efecdee8..21f8d018 100644
--- a/packages/duoyun-ui/docs/en/02-elements/statistic.md
+++ b/packages/duoyun-ui/docs/en/02-elements/statistic.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/status-light.md b/packages/duoyun-ui/docs/en/02-elements/status-light.md
index 34e93f2c..77397b36 100644
--- a/packages/duoyun-ui/docs/en/02-elements/status-light.md
+++ b/packages/duoyun-ui/docs/en/02-elements/status-light.md
@@ -6,7 +6,7 @@
name="dy-status-light"
props='{"status": "informative"}'
html="Building..."
- src="https://jspm.dev/duoyun-ui/elements/status-light">
+ src="https://esm.sh/duoyun-ui/elements/status-light">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/switch.md b/packages/duoyun-ui/docs/en/02-elements/switch.md
index eadb7bed..86dc7109 100644
--- a/packages/duoyun-ui/docs/en/02-elements/switch.md
+++ b/packages/duoyun-ui/docs/en/02-elements/switch.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/table.md b/packages/duoyun-ui/docs/en/02-elements/table.md
index 33a5212d..1d483577 100644
--- a/packages/duoyun-ui/docs/en/02-elements/table.md
+++ b/packages/duoyun-ui/docs/en/02-elements/table.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/en/02-elements/tabs.md b/packages/duoyun-ui/docs/en/02-elements/tabs.md
index ba3e1131..8431ecc3 100644
--- a/packages/duoyun-ui/docs/en/02-elements/tabs.md
+++ b/packages/duoyun-ui/docs/en/02-elements/tabs.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/en/02-elements/tag.md b/packages/duoyun-ui/docs/en/02-elements/tag.md
index 55381e6b..57871910 100644
--- a/packages/duoyun-ui/docs/en/02-elements/tag.md
+++ b/packages/duoyun-ui/docs/en/02-elements/tag.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/text-mask.md b/packages/duoyun-ui/docs/en/02-elements/text-mask.md
index dd9c5992..e60fb3c0 100644
--- a/packages/duoyun-ui/docs/en/02-elements/text-mask.md
+++ b/packages/duoyun-ui/docs/en/02-elements/text-mask.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/time-panel.md b/packages/duoyun-ui/docs/en/02-elements/time-panel.md
index 5e21ef60..bac4be86 100644
--- a/packages/duoyun-ui/docs/en/02-elements/time-panel.md
+++ b/packages/duoyun-ui/docs/en/02-elements/time-panel.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/time-panel">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/time-picker.md b/packages/duoyun-ui/docs/en/02-elements/time-picker.md
index aab0fdfd..603f86ff 100644
--- a/packages/duoyun-ui/docs/en/02-elements/time-picker.md
+++ b/packages/duoyun-ui/docs/en/02-elements/time-picker.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/time-picker">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/timeline.md b/packages/duoyun-ui/docs/en/02-elements/timeline.md
index acd0da9d..f48dcd2a 100644
--- a/packages/duoyun-ui/docs/en/02-elements/timeline.md
+++ b/packages/duoyun-ui/docs/en/02-elements/timeline.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/timeline">
## API
diff --git a/packages/duoyun-ui/docs/en/02-elements/tooltip.md b/packages/duoyun-ui/docs/en/02-elements/tooltip.md
index 26d9acd4..d01b22ad 100644
--- a/packages/duoyun-ui/docs/en/02-elements/tooltip.md
+++ b/packages/duoyun-ui/docs/en/02-elements/tooltip.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/en/02-elements/tree.md b/packages/duoyun-ui/docs/en/02-elements/tree.md
index 7bacbf2e..9d1de1d8 100644
--- a/packages/duoyun-ui/docs/en/02-elements/tree.md
+++ b/packages/duoyun-ui/docs/en/02-elements/tree.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/zh/01-guide/README.md b/packages/duoyun-ui/docs/zh/01-guide/README.md
index 6e28c2fd..f383f50c 100644
--- a/packages/duoyun-ui/docs/zh/01-guide/README.md
+++ b/packages/duoyun-ui/docs/zh/01-guide/README.md
@@ -57,7 +57,7 @@ Toast.open('error', '发生了一个错误');
DuoyunUI 支持以 ESM 的方法独立使用某一个元素,例如为你的网站添加键盘访问(按下 f 列出所有可聚焦元素):
```ts
-import('https://jspm.dev/duoyun-ui/elements/keyboard-access').then(({ DuoyunKeyboardAccessElement }) =>
+import('https://esm.sh/duoyun-ui/elements/keyboard-access').then(({ DuoyunKeyboardAccessElement }) =>
document.body.append(new DuoyunKeyboardAccessElement()),
);
```
@@ -65,7 +65,7 @@ import('https://jspm.dev/duoyun-ui/elements/keyboard-access').then(({ DuoyunKeyb
例如启用录屏模式:
```ts
-import('https://jspm.dev/duoyun-ui/elements/input-capture').then(({ DuoyunInputCaptureElement }) =>
+import('https://esm.sh/duoyun-ui/elements/input-capture').then(({ DuoyunInputCaptureElement }) =>
document.body.append(new DuoyunInputCaptureElement()),
);
```
diff --git a/packages/duoyun-ui/docs/zh/02-elements/001-loadable-base.md b/packages/duoyun-ui/docs/zh/02-elements/001-loadable-base.md
index 549e4d6f..a7a7ae8e 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/001-loadable-base.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/001-loadable-base.md
@@ -7,4 +7,4 @@
name="dy-card"
props='{"style": "width: 250px;", "loading": true, "avatar": "https://api.dicebear.com/5.x/bottts-neutral/svg", "preview": "https://picsum.photos/400/300", "header": "This is Card"}'
html="Fugiat do laboris ad officia in anim qui mollit nulla reprehenderit pariatur anim sunt."
- src="https://jspm.dev/duoyun-ui/elements/card">
+ src="https://esm.sh/duoyun-ui/elements/card">
diff --git a/packages/duoyun-ui/docs/zh/02-elements/README.md b/packages/duoyun-ui/docs/zh/02-elements/README.md
index bf14a181..4bdd2d62 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/README.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/README.md
@@ -1,4 +1,4 @@
-# 索引
+# 元素索引
| DuoyunUI | AntD | Element Plus |
| -------------------------------------------------- | ------------------------------------------- | ---------------------------------------- |
diff --git a/packages/duoyun-ui/docs/zh/02-elements/action-text.md b/packages/duoyun-ui/docs/zh/02-elements/action-text.md
index b9d17660..76459bef 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/action-text.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/action-text.md
@@ -6,7 +6,7 @@
name="dy-action-text"
html="Action Text"
props='{"tooltip":"Tooltip text", "color": "negative"}'
- src="https://jspm.dev/duoyun-ui/elements/action-text">
+ src="https://esm.sh/duoyun-ui/elements/action-text">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/alert.md b/packages/duoyun-ui/docs/zh/02-elements/alert.md
index aa8b5d5c..4c9782e5 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/alert.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/alert.md
@@ -6,7 +6,7 @@
name="dy-alert"
props='{"style": "width: 300px", "status": "negative", "header": "This is alert title", "action": {"text": "View"}}'
html="Occaecat tempor amet fugiat ad fugiat sunt irure veniam consequat aute."
- src="https://jspm.dev/duoyun-ui/elements/alert">
+ src="https://esm.sh/duoyun-ui/elements/alert">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/area-chart.md b/packages/duoyun-ui/docs/zh/02-elements/area-chart.md
index 160e9d42..f27a3d20 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/area-chart.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/area-chart.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/area-chart">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/avatar.md b/packages/duoyun-ui/docs/zh/02-elements/avatar.md
index 3382a562..68f81db9 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/avatar.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/avatar.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
@@ -15,7 +15,7 @@
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/zh/02-elements/banner.md b/packages/duoyun-ui/docs/zh/02-elements/banner.md
index 1e561252..af249030 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/banner.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/banner.md
@@ -6,7 +6,7 @@
name="dy-banner"
props='{"style": "width: 100%", "closable": true, "status": "positive", "action": {"text": "View"}}'
html="This is banner"
- src="https://jspm.dev/duoyun-ui/elements/banner">
+ src="https://esm.sh/duoyun-ui/elements/banner">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/bar-chart.md b/packages/duoyun-ui/docs/zh/02-elements/bar-chart.md
index 7d38ade6..0452d49f 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/bar-chart.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/bar-chart.md
@@ -5,12 +5,12 @@
+ src="https://esm.sh/duoyun-ui/elements/bar-chart">
+ src="https://esm.sh/duoyun-ui/elements/bar-chart">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/breadcrumbs.md b/packages/duoyun-ui/docs/zh/02-elements/breadcrumbs.md
index 4e50b411..0ce0a78b 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/breadcrumbs.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/breadcrumbs.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/breadcrumbs">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/button.md b/packages/duoyun-ui/docs/zh/02-elements/button.md
index 342febc4..6516d700 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/button.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/button.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/calendar.md b/packages/duoyun-ui/docs/zh/02-elements/calendar.md
index 507f895e..f75c3c57 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/calendar.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/calendar.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/calendar">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/card.md b/packages/duoyun-ui/docs/zh/02-elements/card.md
index fdf5a5a3..622216a7 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/card.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/card.md
@@ -6,7 +6,7 @@
name="dy-card"
props='{"style": "width: 250px;", "avatar": "https://api.dicebear.com/5.x/bottts-neutral/svg", "preview": "https://picsum.photos/400/300", "header": "This is Card"}'
html="Fugiat do laboris ad officia in anim qui mollit nulla reprehenderit pariatur anim sunt."
- src="https://jspm.dev/duoyun-ui/elements/card">
+ src="https://esm.sh/duoyun-ui/elements/card">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/carousel.md b/packages/duoyun-ui/docs/zh/02-elements/carousel.md
index 8cedcff2..e44a2602 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/carousel.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/carousel.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/carousel">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/cascader-picker.md b/packages/duoyun-ui/docs/zh/02-elements/cascader-picker.md
index 82c535d8..9a38c48e 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/cascader-picker.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/cascader-picker.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/cascader-picker">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/cascader.md b/packages/duoyun-ui/docs/zh/02-elements/cascader.md
index ac7a0e18..521fee06 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/cascader.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/cascader.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/cascader">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/checkbox.md b/packages/duoyun-ui/docs/zh/02-elements/checkbox.md
index e4268224..127f6cc0 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/checkbox.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/checkbox.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
@@ -25,7 +25,7 @@
+ src="https://esm.sh/duoyun-ui/elements/checkbox">
## `` API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/code-block.md b/packages/duoyun-ui/docs/zh/02-elements/code-block.md
index 37e69e72..602637be 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/code-block.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/code-block.md
@@ -14,9 +14,10 @@
<a>The freeCodeCamp Contribution Page</a> shows you how and where you can contribute to freeCodeCamps community and growth.
</p>
</body>
-</html>'
- props='{"style": "width: 100%", "codelang": "html"}'
- src="https://jspm.dev/duoyun-ui/elements/code-block">
+</html>
+Test'
+ props='{"style": "width: 100%", "codelang": "html", "range": "-11", "highlight": "8"}'
+ src="https://esm.sh/duoyun-ui/elements/code-block">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/collapse.md b/packages/duoyun-ui/docs/zh/02-elements/collapse.md
index 9c079db8..06002c76 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/collapse.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/collapse.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/zh/02-elements/color-panel.md b/packages/duoyun-ui/docs/zh/02-elements/color-panel.md
index 249d735d..faa60512 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/color-panel.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/color-panel.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/color-panel">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/color-picker.md b/packages/duoyun-ui/docs/zh/02-elements/color-picker.md
index 7d19f26c..51f92d59 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/color-picker.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/color-picker.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/copy.md b/packages/duoyun-ui/docs/zh/02-elements/copy.md
index 26da51ba..eb2a64cb 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/copy.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/copy.md
@@ -6,7 +6,7 @@
name="dy-copy"
props='{"style": "width: 100%; align-self: flex-start;"}'
html="Hover Text Copy!"
- src="https://jspm.dev/duoyun-ui/elements/copy">
+ src="https://esm.sh/duoyun-ui/elements/copy">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/date-panel.md b/packages/duoyun-ui/docs/zh/02-elements/date-panel.md
index 047abb6e..6db9134f 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/date-panel.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/date-panel.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/date-panel">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/date-picker.md b/packages/duoyun-ui/docs/zh/02-elements/date-picker.md
index 8e1cc3a0..384dde16 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/date-picker.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/date-picker.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/date-range-panel.md b/packages/duoyun-ui/docs/zh/02-elements/date-range-panel.md
index c9c4380f..19aee9a8 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/date-range-panel.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/date-range-panel.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/date-range-panel">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/date-range-picker.md b/packages/duoyun-ui/docs/zh/02-elements/date-range-picker.md
index 06cc8d38..8b9c1a41 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/date-range-picker.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/date-range-picker.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/divider.md b/packages/duoyun-ui/docs/zh/02-elements/divider.md
index 16144574..072212e2 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/divider.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/divider.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/divider">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/donut-chart.md b/packages/duoyun-ui/docs/zh/02-elements/donut-chart.md
index 6f45a730..1ee459df 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/donut-chart.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/donut-chart.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/donut-chart">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/drawer.md b/packages/duoyun-ui/docs/zh/02-elements/drawer.md
index 707a5d01..cda70831 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/drawer.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/drawer.md
@@ -6,7 +6,7 @@
name="dy-drawer"
props='{"header": "Title", "open": true, "@ok": "(evt) => evt.target.open = false", "@close": "(evt) => evt.target.open = false", "@maskclick": "(evt) => evt.target.open = false"}'
html='Drawer
'
- src="https://jspm.dev/duoyun-ui/elements/drawer">Current page auto open drawer
+ src="https://esm.sh/duoyun-ui/elements/drawer">Current page auto open drawer
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/drop-area.md b/packages/duoyun-ui/docs/zh/02-elements/drop-area.md
index 3dae8885..567e3614 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/drop-area.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/drop-area.md
@@ -6,7 +6,7 @@
name="dy-drop-area"
props='{"style": "width: 100%; height: 200px;"}'
html='Drop File To Here'
- src="https://jspm.dev/duoyun-ui/elements/drop-area">
+ src="https://esm.sh/duoyun-ui/elements/drop-area">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/empty.md b/packages/duoyun-ui/docs/zh/02-elements/empty.md
index 53903b33..f0c48839 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/empty.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/empty.md
@@ -4,7 +4,7 @@
+ src="https://esm.sh/duoyun-ui/elements/empty">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/file-picker.md b/packages/duoyun-ui/docs/zh/02-elements/file-picker.md
index b942728d..7cfd3340 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/file-picker.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/file-picker.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/flow.md b/packages/duoyun-ui/docs/zh/02-elements/flow.md
index 2ef6f345..78ce3498 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/flow.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/flow.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/flow">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/form.md b/packages/duoyun-ui/docs/zh/02-elements/form.md
index 0c765d10..fead9957 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/form.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/form.md
@@ -11,7 +11,7 @@
'
- src="https://jspm.dev/duoyun-ui/elements/form">
+ src="https://esm.sh/duoyun-ui/elements/form">
+ src="https://esm.sh/duoyun-ui/elements/form">
## `` API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/heading.md b/packages/duoyun-ui/docs/zh/02-elements/heading.md
index 43c080ce..1ac32b8e 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/heading.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/heading.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/help-text.md b/packages/duoyun-ui/docs/zh/02-elements/help-text.md
index 1ca7d80e..1efae14a 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/help-text.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/help-text.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/icons.md b/packages/duoyun-ui/docs/zh/02-elements/icons.md
index 29e1ebb5..5b4c7006 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/icons.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/icons.md
@@ -7,7 +7,7 @@
+ src="https://esm.sh/duoyun-ui/elements/icons">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/input-capture.md b/packages/duoyun-ui/docs/zh/02-elements/input-capture.md
index 1b84ce40..3cf8e76e 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/input-capture.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/input-capture.md
@@ -4,7 +4,7 @@
Try click or keypress
+ src="https://esm.sh/duoyun-ui/elements/input-capture">Try click or keypress
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/input.md b/packages/duoyun-ui/docs/zh/02-elements/input.md
index 229c3684..63a413fa 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/input.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/input.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/keyboard-access.md b/packages/duoyun-ui/docs/zh/02-elements/keyboard-access.md
index 778736b9..774043a1 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/keyboard-access.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/keyboard-access.md
@@ -4,7 +4,7 @@
Try press f
+ src="https://esm.sh/duoyun-ui/elements/keyboard-access">Try press f
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/legend.md b/packages/duoyun-ui/docs/zh/02-elements/legend.md
index fda523a9..6731731f 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/legend.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/legend.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/zh/02-elements/line-chart.md b/packages/duoyun-ui/docs/zh/02-elements/line-chart.md
index bb4e1960..72cec0e1 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/line-chart.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/line-chart.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/zh/02-elements/list.md b/packages/duoyun-ui/docs/zh/02-elements/list.md
index 63d007e0..e5d45738 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/list.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/list.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/zh/02-elements/loading.md b/packages/duoyun-ui/docs/zh/02-elements/loading.md
index e3755cc4..1994ed78 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/loading.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/loading.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/loading">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/meter.md b/packages/duoyun-ui/docs/zh/02-elements/meter.md
index f1b67d95..0e2791ec 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/meter.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/meter.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/modal.md b/packages/duoyun-ui/docs/zh/02-elements/modal.md
index 2a1a5f0f..1b5accbd 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/modal.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/modal.md
@@ -6,7 +6,7 @@
name="dy-modal"
props='{"header": "Title", "open": true, "@ok": "(evt) => evt.target.open = false", "@close": "(evt) => evt.target.open = false", "@maskclick": "(evt) => evt.target.open = false"}'
html='Modal
'
- src="https://jspm.dev/duoyun-ui/elements/modal">Current page auto open modal
+ src="https://esm.sh/duoyun-ui/elements/modal">Current page auto open modal
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/more.md b/packages/duoyun-ui/docs/zh/02-elements/more.md
index af635382..ff7f2fdb 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/more.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/more.md
@@ -6,7 +6,7 @@
name="dy-more"
props='{"style": "width: 300px;", "maxHeight": "100px"}'
html='但我得向你解释,所有这些谴责快乐和颂扬痛苦的错误观念是如何产生的。为此,我会向你一五一十地说明这一体系,并阐述伟大的真理探索者、人类幸福的杰出建设者的真实教义。没有人因为快乐是快乐而拒绝、厌恶或回避快乐本身,而是因为不知道如何理性地追求快乐的人会遭遇极其痛苦的后果。也没有人因痛苦是痛苦而喜欢或追求或渴望获得痛苦本身,但也偶有辛劳和痛苦能带来极大的快乐的情景。'
- src="https://jspm.dev/duoyun-ui/elements/more">
+ src="https://esm.sh/duoyun-ui/elements/more">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/options.md b/packages/duoyun-ui/docs/zh/02-elements/options.md
index 316cfd6b..63115579 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/options.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/options.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/options">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/pagination.md b/packages/duoyun-ui/docs/zh/02-elements/pagination.md
index 5ff636ca..c215ecc5 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/pagination.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/pagination.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/zh/02-elements/paragraph.md b/packages/duoyun-ui/docs/zh/02-elements/paragraph.md
index 193e2523..5cdb775d 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/paragraph.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/paragraph.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/paragraph">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/picker.md b/packages/duoyun-ui/docs/zh/02-elements/picker.md
index 6d9e1f9e..9118e045 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/picker.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/picker.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/placeholder.md b/packages/duoyun-ui/docs/zh/02-elements/placeholder.md
index 6a326557..097dc105 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/placeholder.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/placeholder.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/zh/02-elements/progress.md b/packages/duoyun-ui/docs/zh/02-elements/progress.md
index 268eaa11..42118863 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/progress.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/progress.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/progress">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/radio.md b/packages/duoyun-ui/docs/zh/02-elements/radio.md
index 3f8efeb5..34bc14d8 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/radio.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/radio.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/radio">
## `` API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/rate.md b/packages/duoyun-ui/docs/zh/02-elements/rate.md
index 1084b2a7..7d0a453d 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/rate.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/rate.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/rate">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/result.md b/packages/duoyun-ui/docs/zh/02-elements/result.md
index 9b4f5558..f59146c5 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/result.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/result.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/result">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/scatter-chart.md b/packages/duoyun-ui/docs/zh/02-elements/scatter-chart.md
index fb46e894..24491078 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/scatter-chart.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/scatter-chart.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/scatter-chart">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/segmented.md b/packages/duoyun-ui/docs/zh/02-elements/segmented.md
index 14308136..76112064 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/segmented.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/segmented.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/select.md b/packages/duoyun-ui/docs/zh/02-elements/select.md
index 845e7975..3ec12f2f 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/select.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/select.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/select">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/shortcut-record.md b/packages/duoyun-ui/docs/zh/02-elements/shortcut-record.md
index 34b6eab3..dfef217e 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/shortcut-record.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/shortcut-record.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/shortcut-record">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/side-navigation.md b/packages/duoyun-ui/docs/zh/02-elements/side-navigation.md
index ce67dded..f62121ca 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/side-navigation.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/side-navigation.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/side-navigation">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/slider.md b/packages/duoyun-ui/docs/zh/02-elements/slider.md
index 8eecb101..b2732f86 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/slider.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/slider.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/space.md b/packages/duoyun-ui/docs/zh/02-elements/space.md
index f90ac15f..2f8cb02b 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/space.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/space.md
@@ -6,7 +6,7 @@
name="dy-space"
props='{"size": "large"}'
html="Button1
Button2
Button3
"
- src="https://jspm.dev/duoyun-ui/elements/space">
+ src="https://esm.sh/duoyun-ui/elements/space">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/statistic.md b/packages/duoyun-ui/docs/zh/02-elements/statistic.md
index efecdee8..21f8d018 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/statistic.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/statistic.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/status-light.md b/packages/duoyun-ui/docs/zh/02-elements/status-light.md
index 34e93f2c..77397b36 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/status-light.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/status-light.md
@@ -6,7 +6,7 @@
name="dy-status-light"
props='{"status": "informative"}'
html="Building..."
- src="https://jspm.dev/duoyun-ui/elements/status-light">
+ src="https://esm.sh/duoyun-ui/elements/status-light">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/switch.md b/packages/duoyun-ui/docs/zh/02-elements/switch.md
index eadb7bed..86dc7109 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/switch.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/switch.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/table.md b/packages/duoyun-ui/docs/zh/02-elements/table.md
index 33a5212d..1d483577 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/table.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/table.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/zh/02-elements/tabs.md b/packages/duoyun-ui/docs/zh/02-elements/tabs.md
index ba3e1131..8431ecc3 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/tabs.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/tabs.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/docs/zh/02-elements/tag.md b/packages/duoyun-ui/docs/zh/02-elements/tag.md
index 55381e6b..57871910 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/tag.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/tag.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/text-mask.md b/packages/duoyun-ui/docs/zh/02-elements/text-mask.md
index dd9c5992..e60fb3c0 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/text-mask.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/text-mask.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/time-panel.md b/packages/duoyun-ui/docs/zh/02-elements/time-panel.md
index 5e21ef60..bac4be86 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/time-panel.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/time-panel.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/time-panel">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/time-picker.md b/packages/duoyun-ui/docs/zh/02-elements/time-picker.md
index aab0fdfd..603f86ff 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/time-picker.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/time-picker.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/time-picker">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/timeline.md b/packages/duoyun-ui/docs/zh/02-elements/timeline.md
index acd0da9d..f48dcd2a 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/timeline.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/timeline.md
@@ -5,7 +5,7 @@
+ src="https://esm.sh/duoyun-ui/elements/timeline">
## API
diff --git a/packages/duoyun-ui/docs/zh/02-elements/tooltip.md b/packages/duoyun-ui/docs/zh/02-elements/tooltip.md
index 26d9acd4..d01b22ad 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/tooltip.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/tooltip.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
[
diff --git a/packages/duoyun-ui/docs/zh/02-elements/tree.md b/packages/duoyun-ui/docs/zh/02-elements/tree.md
index 7bacbf2e..9d1de1d8 100644
--- a/packages/duoyun-ui/docs/zh/02-elements/tree.md
+++ b/packages/duoyun-ui/docs/zh/02-elements/tree.md
@@ -2,7 +2,7 @@
## Example
-
+
```json
{
diff --git a/packages/duoyun-ui/package.json b/packages/duoyun-ui/package.json
index a6241668..4ebb6361 100644
--- a/packages/duoyun-ui/package.json
+++ b/packages/duoyun-ui/package.json
@@ -1,7 +1,8 @@
{
"name": "duoyun-ui",
- "version": "1.1.0",
+ "version": "1.1.1",
"description": "WebComponts UI",
+ "type": "module",
"exports": {
"./elements/*": "./elements/*.js",
"./react/*": "./react/*.js",
@@ -10,6 +11,9 @@
"./lib/*": "./lib/*.js",
"./locales/*": "./locales/*.js"
},
+ "esm.sh": {
+ "bundle": false
+ },
"files": [
"/elements/",
"/react/",
diff --git a/packages/duoyun-ui/src/elements/code-block.ts b/packages/duoyun-ui/src/elements/code-block.ts
index df4a7523..373d53f8 100644
--- a/packages/duoyun-ui/src/elements/code-block.ts
+++ b/packages/duoyun-ui/src/elements/code-block.ts
@@ -5,6 +5,8 @@ import { createCSSSheet, css, styleMap } from '@mantou/gem/lib/utils';
import { theme } from '../lib/theme';
+const prismjs = 'https://esm.sh/prismjs@v1.26.0';
+
// https://github.com/PrismJS/prism/blob/master/plugins/autoloader/prism-autoloader.js
const langDependencies: Record = {
javascript: 'clike',
@@ -358,8 +360,7 @@ export class DuoyunCodeBlockElement extends GemElement {
this.effect(
async () => {
if (!this.codeRef.element) return;
- const esmHost = 'https://cdn.skypack.dev/prismjs@v1.26.0';
- await import(/* @vite-ignore */ /* webpackIgnore: true */ `${esmHost}?min`);
+ await import(/* @vite-ignore */ /* webpackIgnore: true */ prismjs);
const { Prism } = window as any;
if (this.codelang && !Prism.languages[this.codelang]) {
const lang = langAliases[this.codelang] || this.codelang;
@@ -369,12 +370,12 @@ export class DuoyunCodeBlockElement extends GemElement {
langDeps.map((langDep) => {
if (!Prism.languages[langDep]) {
return import(
- /* @vite-ignore */ /* webpackIgnore: true */ `${esmHost}/components/prism-${langDep}.min.js`
+ /* @vite-ignore */ /* webpackIgnore: true */ `${prismjs}/components/prism-${langDep}.min.js`
);
}
}),
);
- await import(/* @vite-ignore */ /* webpackIgnore: true */ `${esmHost}/components/prism-${lang}.min.js`);
+ await import(/* @vite-ignore */ /* webpackIgnore: true */ `${prismjs}/components/prism-${lang}.min.js`);
} catch {
//
}
diff --git a/packages/gem-book/src/element/elements/plugin.ts b/packages/gem-book/src/element/elements/plugin.ts
index 51369141..7a6f622d 100644
--- a/packages/gem-book/src/element/elements/plugin.ts
+++ b/packages/gem-book/src/element/elements/plugin.ts
@@ -23,9 +23,6 @@ export class GemBookPluginElement extends GemElement {
},
},
);
- static get devMode() {
- return bookStore.devMode;
- }
static get links() {
return bookStore.links;
}
@@ -50,6 +47,9 @@ export class GemBookPluginElement extends GemElement {
static get currentLinks() {
return bookStore.currentLinks;
}
+ static get devMode() {
+ return bookStore.isDevMode?.();
+ }
static get currentLink() {
return bookStore.getCurrentLink?.();
}
diff --git a/packages/gem-book/src/element/elements/pre.ts b/packages/gem-book/src/element/elements/pre.ts
index 118b2c63..daf875b5 100644
--- a/packages/gem-book/src/element/elements/pre.ts
+++ b/packages/gem-book/src/element/elements/pre.ts
@@ -4,7 +4,7 @@ import { styleMap } from '@mantou/gem/lib/utils';
import { theme } from '../helper/theme';
-const prismjs = 'https://cdn.skypack.dev/prismjs@v1.26.0';
+const prismjs = 'https://esm.sh/prismjs@v1.26.0';
let contenteditableValue = 'true';
(() => {
@@ -320,7 +320,7 @@ export class Pre extends GemElement {
if (!this.getBoundingClientRect().width) return;
if (this.status === 'hidden') return;
if (!this.codeRef.element) return;
- await import(/* @vite-ignore */ /* webpackIgnore: true */ `${prismjs}?min`);
+ await import(/* @vite-ignore */ /* webpackIgnore: true */ prismjs);
const { Prism } = window as any;
if (this.codelang && !Prism.languages[this.codelang]) {
const lang = langAliases[this.codelang] || this.codelang;
diff --git a/packages/gem-book/src/element/store.ts b/packages/gem-book/src/element/store.ts
index d34ddca3..6972cd77 100644
--- a/packages/gem-book/src/element/store.ts
+++ b/packages/gem-book/src/element/store.ts
@@ -15,7 +15,6 @@ import './elements/main';
import './elements/404';
interface CurrentBookConfig {
- devMode: boolean;
config: BookConfig;
links: NavItemWithLink[];
@@ -29,6 +28,7 @@ interface CurrentBookConfig {
homePage: string;
currentLinks: NavItemWithLink[];
getCurrentLink: () => NavItemWithLink;
+ isDevMode: () => boolean;
}
export const bookStore = createStore>({});
@@ -135,7 +135,7 @@ function getLinkRouters(links: NavItemWithLink[], title: string, lang: string, d
async getContent() {
const renderer = getRenderer({ lang, link: originLink, displayRank });
const content = await fetchDocument(originLink, lang, hash);
- if (bookStore.devMode) await new Promise((res) => setTimeout(res, 500));
+ if (bookStore.isDevMode?.()) await new Promise((res) => setTimeout(res, 500));
return html``;
},
data: item,
@@ -252,7 +252,7 @@ export function updateBookConfig(config?: BookConfig, gemBookElement?: GemBookEl
});
if (gemBookElement) {
updateStore(bookStore, {
- devMode: gemBookElement.dev,
+ isDevMode: () => gemBookElement.dev,
getCurrentLink: () => {
return gemBookElement?.routeRef.element?.currentRoute?.data as NavItemWithLink;
},
diff --git a/packages/gem-book/src/plugins/api.ts b/packages/gem-book/src/plugins/api.ts
index 26bfda8d..ce38d329 100644
--- a/packages/gem-book/src/plugins/api.ts
+++ b/packages/gem-book/src/plugins/api.ts
@@ -7,7 +7,7 @@ import type { Main } from '../element/elements/main';
import type { GemBookElement } from '../element';
const tsMorph = 'https://esm.sh/ts-morph@13.0.3';
-const gemAnalyzer = 'https://jspm.dev/gem-analyzer';
+const gemAnalyzer = 'https://esm.sh/gem-analyzer';
type State = { elements?: ElementDetail[]; exports?: ExportDetail[]; error?: any };
@@ -73,9 +73,10 @@ customElements.whenDefined('gem-book').then(() => {
#parseFile = async (text: string) => {
const { Project } = (await import(/* webpackIgnore: true */ tsMorph)) as typeof import('ts-morph');
- const { getElements, getExports } = GemBookPluginElement.devMode
- ? await import('gem-analyzer')
- : ((await import(/* webpackIgnore: true */ gemAnalyzer)) as typeof import('gem-analyzer'));
+ const { getElements, getExports } =
+ config.github === 'https://github.com/mantou132/gem'
+ ? await import('gem-analyzer')
+ : ((await import(/* webpackIgnore: true */ gemAnalyzer)) as typeof import('gem-analyzer'));
const project = new Project({ useInMemoryFileSystem: true });
const file = project.createSourceFile(this.src, text);
return { elements: getElements(file), exports: getExports(file) };
diff --git a/packages/gem-book/src/plugins/comment.ts b/packages/gem-book/src/plugins/comment.ts
index 8c119a7e..1257571b 100644
--- a/packages/gem-book/src/plugins/comment.ts
+++ b/packages/gem-book/src/plugins/comment.ts
@@ -1,6 +1,6 @@
import type { GemBookElement } from '../element';
-const url = 'https://jspm.dev/gitalk@1.7.2';
+const url = 'https://esm.sh/gitalk@1.7.2';
customElements.whenDefined('gem-book').then(async () => {
const { GemBookPluginElement } = customElements.get('gem-book') as typeof GemBookElement;
diff --git a/packages/gem-book/src/plugins/docsearch.ts b/packages/gem-book/src/plugins/docsearch.ts
index 07e400bc..2e3c17e6 100644
--- a/packages/gem-book/src/plugins/docsearch.ts
+++ b/packages/gem-book/src/plugins/docsearch.ts
@@ -2,7 +2,7 @@ import type { RefObject } from '@mantou/gem';
import type { GemBookElement } from '../element';
-const moduleLink = 'https://cdn.skypack.dev/@docsearch/js@3.0.0-alpha.50';
+const moduleLink = 'https://esm.sh/@docsearch/js@3.0.0-alpha.50';
const styleLink = 'https://unpkg.com/@docsearch/css@3.0.0-alpha.50/dist/style.css';
customElements.whenDefined('gem-book').then(async () => {
diff --git a/packages/gem-examples/package.json b/packages/gem-examples/package.json
index dc2e35ab..96ea85d5 100644
--- a/packages/gem-examples/package.json
+++ b/packages/gem-examples/package.json
@@ -9,7 +9,7 @@
},
"dependencies": {
"@mantou/gem": "^1.7.2",
- "duoyun-ui": "^1.1.0"
+ "duoyun-ui": "^1.1.1"
},
"devDependencies": {
"@gemjs/config": "^1.6.11",
diff --git a/packages/gem/docs/en/001-guide/README.md b/packages/gem/docs/en/001-guide/README.md
index e9b5591c..d32b3e5a 100644
--- a/packages/gem/docs/en/001-guide/README.md
+++ b/packages/gem/docs/en/001-guide/README.md
@@ -15,7 +15,7 @@ npm install @mantou/gem
or use ESM:
```js
-import * as Gem from 'https://jspm.dev/@mantou/gem';
+import * as Gem from 'https://esm.sh/@mantou/gem';
```
or use UNPKG:
diff --git a/packages/gem/docs/zh/001-guide/README.md b/packages/gem/docs/zh/001-guide/README.md
index 91370226..3b216441 100644
--- a/packages/gem/docs/zh/001-guide/README.md
+++ b/packages/gem/docs/zh/001-guide/README.md
@@ -20,7 +20,7 @@ npm install @mantou/gem
或者使用 ESM:
```js
-import * as Gem from 'https://jspm.dev/@mantou/gem';
+import * as Gem from 'https://esm.sh/@mantou/gem';
```
或者使用 UNPKG: