From 334699d264a4cb0c653bbd359d43fee7a3f3ec54 Mon Sep 17 00:00:00 2001 From: Nemo Shen Date: Wed, 23 Mar 2022 17:34:46 +0800 Subject: [PATCH 1/9] fix(Tab): add key when render TabsTitle (#10392) * fix(Tab): add key when render TabsTitle * fix(Tab): change key * fix(Tabs): use each TabRef.id as key --- packages/vant/src/tabs/Tabs.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/vant/src/tabs/Tabs.tsx b/packages/vant/src/tabs/Tabs.tsx index 7f0809a40..b4cfe595c 100644 --- a/packages/vant/src/tabs/Tabs.tsx +++ b/packages/vant/src/tabs/Tabs.tsx @@ -365,6 +365,7 @@ export default defineComponent({ const renderNav = () => children.map((item, index) => ( Date: Wed, 23 Mar 2022 21:52:35 +0800 Subject: [PATCH 2/9] fix: fix wrong ternary expression (#10426) --- packages/vant/src/composables/use-touch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vant/src/composables/use-touch.ts b/packages/vant/src/composables/use-touch.ts index ffb5e8cc5..0525c42d9 100644 --- a/packages/vant/src/composables/use-touch.ts +++ b/packages/vant/src/composables/use-touch.ts @@ -41,7 +41,7 @@ export function useTouch() { const move = ((event: TouchEvent) => { const touch = event.touches[0]; // safari back will set clientX to negative number - deltaX.value = touch.clientX < 0 ? 0 : touch.clientX - startX.value; + deltaX.value = (touch.clientX < 0 ? 0 : touch.clientX) - startX.value; deltaY.value = touch.clientY - startY.value; offsetX.value = Math.abs(deltaX.value); offsetY.value = Math.abs(deltaY.value); From 651305e8ce2014e44b791d2a0af5c865f76cd037 Mon Sep 17 00:00:00 2001 From: neverland Date: Wed, 23 Mar 2022 22:09:48 +0800 Subject: [PATCH 3/9] feat(NumberKeyboard): improve shuffle algorithm (#10428) --- packages/vant/src/number-keyboard/NumberKeyboard.tsx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/packages/vant/src/number-keyboard/NumberKeyboard.tsx b/packages/vant/src/number-keyboard/NumberKeyboard.tsx index 91e86f6ab..94c92d4b7 100644 --- a/packages/vant/src/number-keyboard/NumberKeyboard.tsx +++ b/packages/vant/src/number-keyboard/NumberKeyboard.tsx @@ -65,6 +65,16 @@ const numberKeyboardProps = { export type NumberKeyboardProps = ExtractPropTypes; +function shuffle(array: unknown[]) { + for (let i = array.length - 1; i > 0; i--) { + const j = Math.floor(Math.random() * (i + 1)); + const temp = array[i]; + array[i] = array[j]; + array[j] = temp; + } + return array; +} + export default defineComponent({ name, @@ -89,7 +99,7 @@ export default defineComponent({ .map((_, i) => ({ text: i + 1 })); if (props.randomKeyOrder) { - keys.sort(() => (Math.random() > 0.5 ? 1 : -1)); + shuffle(keys); } return keys; From aa304ad22f2a5dea42b011b271b6abaa64aeb75f Mon Sep 17 00:00:00 2001 From: aisen Date: Thu, 24 Mar 2022 09:38:58 +0800 Subject: [PATCH 4/9] docs(SwipeCell): remove css variables document (#10429) --- packages/vant/src/swipe-cell/README.md | 13 ------------- packages/vant/src/swipe-cell/README.zh-CN.md | 12 ------------ 2 files changed, 25 deletions(-) diff --git a/packages/vant/src/swipe-cell/README.md b/packages/vant/src/swipe-cell/README.md index 0412568a8..4f1114499 100644 --- a/packages/vant/src/swipe-cell/README.md +++ b/packages/vant/src/swipe-cell/README.md @@ -169,16 +169,3 @@ const swipeCellRef = ref(); swipeCellRef.value?.close(); ``` - -## Theming - -### CSS Variables - -The component provides the following CSS variables, which can be used to customize styles. Please refer to [ConfigProvider component](#/en-US/config-provider). - -| Name | Default Value | Description | -| --- | --- | --- | -| --van-switch-cell-padding-top | _var(--van-cell-vertical-padding) - 1px_ | - | -| --van-switch-cell-padding-bottom | _var(--van-cell-vertical-padding) - 1px_ | - | -| --van-switch-cell-large-padding-top | _var(--van-cell-large-vertical-padding) - 1px_ | - | -| --van-switch-cell-large-padding-bottom | _var(--van-cell-large-vertical-padding) - 1px_ | - | diff --git a/packages/vant/src/swipe-cell/README.zh-CN.md b/packages/vant/src/swipe-cell/README.zh-CN.md index 42a3305d9..10c2601c1 100644 --- a/packages/vant/src/swipe-cell/README.zh-CN.md +++ b/packages/vant/src/swipe-cell/README.zh-CN.md @@ -179,18 +179,6 @@ const swipeCellRef = ref(); swipeCellRef.value?.close(); ``` -## 主题定制 - -### 样式变量 - -组件提供了下列 CSS 变量,可用于自定义样式,使用方法请参考 [ConfigProvider 组件](#/zh-CN/config-provider)。 - -| 名称 | 默认值 | 描述 | -| --- | --- | --- | -| --van-switch-cell-padding-top | _var(--van-cell-vertical-padding) - 1px_ | - | -| --van-switch-cell-padding-bottom | _var(--van-cell-vertical-padding) - 1px_ | - | -| --van-switch-cell-large-padding-top | _var(--van-cell-large-vertical-padding) - 1px_ | - | -| --van-switch-cell-large-padding-bottom | _var(--van-cell-large-vertical-padding) - 1px_ | - | ## 常见问题 From c7904c4f63efc09bb0054921a9bdfb3e6b79b6a1 Mon Sep 17 00:00:00 2001 From: Nemo Shen Date: Thu, 24 Mar 2022 23:11:17 +0800 Subject: [PATCH 5/9] fix(DatetimePicker): fix minDate && maxDate wacher (#10431) * fix(DatetimePicker): fix minDate * fix(DatePicker): prettier * fix(DatePicker): prettier --- packages/vant/src/datetime-picker/DatePicker.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/vant/src/datetime-picker/DatePicker.tsx b/packages/vant/src/datetime-picker/DatePicker.tsx index 3bebf8809..79dacd7c3 100644 --- a/packages/vant/src/datetime-picker/DatePicker.tsx +++ b/packages/vant/src/datetime-picker/DatePicker.tsx @@ -296,10 +296,8 @@ export default defineComponent({ emit('update:modelValue', oldValue ? value : null) ); - watch(() => [props.filter, props.maxDate], updateInnerValue); - watch( - () => props.minDate, + () => [props.filter, props.minDate, props.maxDate], () => { nextTick(updateInnerValue); } From d02b0b8eb65f33402df6c3a3a414756bfe4fc772 Mon Sep 17 00:00:00 2001 From: neverland Date: Sat, 26 Mar 2022 09:33:47 +0800 Subject: [PATCH 6/9] docs: using jsdelivr for assets (#10434) --- README.md | 4 +-- README.zh-CN.md | 4 +-- .../generators/vue2/vant.config.js | 2 +- .../generators/vue3/vant.config.mjs | 2 +- packages/vant-cli/docs/config.md | 2 +- packages/vant-icons/contribution.zh-CN.md | 4 +-- .../docs/markdown/advanced-usage.zh-CN.md | 7 ++-- .../vant/docs/markdown/changelog.en-US.md | 2 +- .../vant/docs/markdown/changelog.zh-CN.md | 4 +-- packages/vant/docs/markdown/design.en-US.md | 10 +++--- packages/vant/docs/markdown/design.zh-CN.md | 10 +++--- packages/vant/docs/markdown/home.en-US.md | 2 +- packages/vant/docs/markdown/home.zh-CN.md | 2 +- .../vant/docs/markdown/quickstart.en-US.md | 2 +- packages/vant/src/button/README.md | 5 ++- packages/vant/src/button/README.zh-CN.md | 5 ++- packages/vant/src/button/demo/index.vue | 2 +- .../test/__snapshots__/demo.spec.ts.snap | 2 +- packages/vant/src/card/README.md | 6 ++-- packages/vant/src/card/README.zh-CN.md | 6 ++-- packages/vant/src/card/demo/index.vue | 2 +- .../card/test/__snapshots__/demo.spec.ts.snap | 6 ++-- packages/vant/src/checkbox/README.md | 5 +-- packages/vant/src/checkbox/README.zh-CN.md | 5 +-- packages/vant/src/checkbox/demo/index.vue | 5 +-- .../test/__snapshots__/demo.spec.ts.snap | 2 +- .../test/__snapshots__/index.spec.ts.snap | 2 +- .../vant/src/coupon-list/test/index.spec.ts | 2 +- packages/vant/src/dialog/README.md | 2 +- packages/vant/src/dialog/README.zh-CN.md | 2 +- packages/vant/src/dialog/demo/index.vue | 2 +- .../test/__snapshots__/demo.spec.ts.snap | 2 +- packages/vant/src/empty/README.md | 2 +- packages/vant/src/empty/README.zh-CN.md | 2 +- packages/vant/src/empty/demo/index.vue | 2 +- .../test/__snapshots__/demo.spec.ts.snap | 2 +- packages/vant/src/form/README.md | 4 ++- packages/vant/src/form/README.zh-CN.md | 4 ++- packages/vant/src/form/demo/FieldType.vue | 4 ++- .../form/test/__snapshots__/demo.spec.ts.snap | 2 +- packages/vant/src/grid/README.md | 6 ++-- packages/vant/src/grid/README.zh-CN.md | 6 ++-- packages/vant/src/grid/demo/index.vue | 15 ++++++-- .../grid/test/__snapshots__/demo.spec.ts.snap | 6 ++-- packages/vant/src/icon/README.md | 2 +- packages/vant/src/icon/README.zh-CN.md | 2 +- packages/vant/src/icon/demo/index.vue | 2 +- .../icon/test/__snapshots__/demo.spec.ts.snap | 2 +- .../test/__snapshots__/index.spec.ts.snap | 2 +- packages/vant/src/icon/test/index.spec.ts | 2 +- packages/vant/src/image-preview/README.md | 24 ++++++------- .../vant/src/image-preview/README.zh-CN.md | 26 +++++++------- .../vant/src/image-preview/demo/index.vue | 8 ++--- .../test/__snapshots__/index.spec.ts.snap | 4 +-- .../vant/src/image-preview/test/shared.ts | 6 ++-- packages/vant/src/image/README.md | 14 +++++--- packages/vant/src/image/README.zh-CN.md | 18 ++++++---- packages/vant/src/image/demo/index.vue | 2 +- .../test/__snapshots__/demo.spec.ts.snap | 34 +++++++++---------- packages/vant/src/lazyload/README.md | 4 +-- packages/vant/src/lazyload/README.zh-CN.md | 4 +-- packages/vant/src/lazyload/demo/index.vue | 16 ++++----- packages/vant/src/pull-refresh/README.md | 12 +++++-- .../vant/src/pull-refresh/README.zh-CN.md | 12 +++++-- packages/vant/src/pull-refresh/demo/index.vue | 16 ++++++--- packages/vant/src/radio/README.md | 5 +-- packages/vant/src/radio/README.zh-CN.md | 5 +-- packages/vant/src/radio/demo/index.vue | 5 +-- .../test/__snapshots__/demo.spec.ts.snap | 4 +-- packages/vant/src/share-sheet/README.md | 6 ++-- packages/vant/src/share-sheet/README.zh-CN.md | 6 ++-- packages/vant/src/share-sheet/demo/index.vue | 6 ++-- packages/vant/src/skeleton/demo/index.vue | 2 +- packages/vant/src/swipe-cell/README.md | 2 +- packages/vant/src/swipe-cell/README.zh-CN.md | 3 +- packages/vant/src/swipe-cell/demo/index.vue | 2 +- .../test/__snapshots__/demo.spec.ts.snap | 2 +- packages/vant/src/swipe/README.md | 4 +-- packages/vant/src/swipe/README.zh-CN.md | 4 +-- packages/vant/src/swipe/demo/index.vue | 8 ++--- .../test/__snapshots__/demo.spec.ts.snap | 6 ++-- packages/vant/src/tabbar/README.md | 4 +-- packages/vant/src/tabbar/README.zh-CN.md | 4 +-- packages/vant/src/tabbar/demo/index.vue | 4 +-- .../test/__snapshots__/demo.spec.ts.snap | 2 +- packages/vant/src/toast/README.md | 2 +- packages/vant/src/toast/README.zh-CN.md | 2 +- packages/vant/src/toast/demo/index.vue | 2 +- packages/vant/src/tree-select/README.md | 4 +-- packages/vant/src/tree-select/README.zh-CN.md | 4 +-- packages/vant/src/tree-select/demo/index.vue | 4 +-- .../test/__snapshots__/demo.spec.ts.snap | 2 +- packages/vant/src/uploader/README.md | 12 +++---- packages/vant/src/uploader/README.zh-CN.md | 12 +++---- packages/vant/src/uploader/demo/index.vue | 24 +++++++------ .../test/__snapshots__/demo.spec.ts.snap | 20 +++++------ .../test/__snapshots__/index.spec.ts.snap | 12 +++---- packages/vant/src/uploader/test/index.spec.ts | 12 ++++--- packages/vant/vant.config.mjs | 10 +++--- 99 files changed, 326 insertions(+), 267 deletions(-) diff --git a/README.md b/README.md index 5660e0794..279cbf6a9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@

- logo + logo

Vant

@@ -113,7 +113,7 @@ Vant 3/4 supports modern browsers and Chrome >= 51、iOS >= 10.0 (same as Vue 3) You can scan the following QR code to access the demo: - + ## Core Team diff --git a/README.zh-CN.md b/README.zh-CN.md index c76cea373..476b07bb8 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -1,5 +1,5 @@

- logo + logo

Vant

@@ -121,7 +121,7 @@ Vant 3/4 支持现代浏览器以及 Chrome >= 51、iOS >= 10.0(与 Vue 3 一 可以手机扫码以下二维码访问手机端 demo: - + ## 核心团队 diff --git a/packages/create-vant-cli-app/generators/vue2/vant.config.js b/packages/create-vant-cli-app/generators/vue2/vant.config.js index 749ef1a35..a7fe8bb3c 100644 --- a/packages/create-vant-cli-app/generators/vue2/vant.config.js +++ b/packages/create-vant-cli-app/generators/vue2/vant.config.js @@ -10,7 +10,7 @@ module.exports = { }, site: { title: '<%= name %>', - logo: 'https://img.yzcdn.cn/vant/logo.png', + logo: 'https://cdn.jsdelivr.net/npm/@vant/assets/logo.png', nav: [ { title: '开发指南', diff --git a/packages/create-vant-cli-app/generators/vue3/vant.config.mjs b/packages/create-vant-cli-app/generators/vue3/vant.config.mjs index 314aa23e8..6e71e8679 100644 --- a/packages/create-vant-cli-app/generators/vue3/vant.config.mjs +++ b/packages/create-vant-cli-app/generators/vue3/vant.config.mjs @@ -10,7 +10,7 @@ export default { }, site: { title: '<%= name %>', - logo: 'https://img.yzcdn.cn/vant/logo.png', + logo: 'https://cdn.jsdelivr.net/npm/@vant/assets/logo.png', nav: [ { title: '开发指南', diff --git a/packages/vant-cli/docs/config.md b/packages/vant-cli/docs/config.md index 88303e7fd..4e927cbc9 100644 --- a/packages/vant-cli/docs/config.md +++ b/packages/vant-cli/docs/config.md @@ -44,7 +44,7 @@ export default { // 标题 title: 'Demo UI', // 图标 - logo: 'https://img.yzcdn.cn/vant/logo.png', + logo: 'https://cdn.jsdelivr.net/npm/@vant/assets/logo.png', // 描述 description: '示例组件库', // 左侧导航 diff --git a/packages/vant-icons/contribution.zh-CN.md b/packages/vant-icons/contribution.zh-CN.md index 410ed2787..222b9d8f1 100644 --- a/packages/vant-icons/contribution.zh-CN.md +++ b/packages/vant-icons/contribution.zh-CN.md @@ -20,7 +20,7 @@ Vant 图标库托管在 [iconfont.cn](https://iconfont.cn) 上,同时仓库中 从 Sketch 中导出图标对应的 SVG 文件,并上传到 [iconfont 项目](https://www.iconfont.cn/manage/index?manage_type=myprojects&projectId=2553510)中。 - + > 此步骤需要图标库管理员权限,请联系 Vant 维护者进行添加。 @@ -38,7 +38,7 @@ Vant 图标库托管在 [iconfont.cn](https://iconfont.cn) 上,同时仓库中 字体文件的 base64 URL 通过 [transfonter](https://transfonter.org/) 生成,步骤如下图所示: - + ### 4. 发布图标库 diff --git a/packages/vant/docs/markdown/advanced-usage.zh-CN.md b/packages/vant/docs/markdown/advanced-usage.zh-CN.md index ca0edc4e8..50ce21981 100644 --- a/packages/vant/docs/markdown/advanced-usage.zh-CN.md +++ b/packages/vant/docs/markdown/advanced-usage.zh-CN.md @@ -92,8 +92,9 @@ export default { data() { return { checked: true, - activeIcon: 'https://img.yzcdn.cn/vant/user-active.png', - inactiveIcon: 'https://img.yzcdn.cn/vant/user-inactive.png', + activeIcon: 'https://cdn.jsdelivr.net/npm/@vant/assets/user-active.png', + inactiveIcon: + 'https://cdn.jsdelivr.net/npm/@vant/assets/user-inactive.png', }; }, }; @@ -223,4 +224,4 @@ iPhone X 等机型底部存在底部指示条,指示条的操作区域与页 ``` - + diff --git a/packages/vant/docs/markdown/changelog.en-US.md b/packages/vant/docs/markdown/changelog.en-US.md index 6053d8498..7f6ee63c6 100644 --- a/packages/vant/docs/markdown/changelog.en-US.md +++ b/packages/vant/docs/markdown/changelog.en-US.md @@ -978,7 +978,7 @@ Reference: [Vant 3.0 正式发布:全面拥抱 Vue 3](https://github.com/youza - add Cascader component [#7771](https://github.com/youzan/vant/pull/7771) - + **Feature** diff --git a/packages/vant/docs/markdown/changelog.zh-CN.md b/packages/vant/docs/markdown/changelog.zh-CN.md index e50ff912c..f0cb7a6b8 100644 --- a/packages/vant/docs/markdown/changelog.zh-CN.md +++ b/packages/vant/docs/markdown/changelog.zh-CN.md @@ -981,7 +981,7 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。 - 新增 Cascader 级联选择组件 [#7771](https://github.com/youzan/vant/pull/7771) - + **Feature** @@ -1069,7 +1069,7 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。 - 新增 [Popover 气泡弹出框](#/zh-CN/popover)组件 [#7579](https://github.com/youzan/vant/issues/7579) -![](https://img.yzcdn.cn/vant/component-preview-1122.png) +![](https://cdn.jsdelivr.net/npm/@vant/assets/component-preview-1122.png) **Feature** diff --git a/packages/vant/docs/markdown/design.en-US.md b/packages/vant/docs/markdown/design.en-US.md index c518f2417..fc2a49b7d 100644 --- a/packages/vant/docs/markdown/design.en-US.md +++ b/packages/vant/docs/markdown/design.en-US.md @@ -12,15 +12,15 @@ Contains color specifications, font specifications, and component design specifi #### Colors - + #### Fonts - + #### Components - + Download @@ -28,13 +28,13 @@ Contains color specifications, font specifications, and component design specifi Contains icon library resources. - + Download ### Axure - + Download diff --git a/packages/vant/docs/markdown/design.zh-CN.md b/packages/vant/docs/markdown/design.zh-CN.md index 99d62c5b3..c752cc242 100644 --- a/packages/vant/docs/markdown/design.zh-CN.md +++ b/packages/vant/docs/markdown/design.zh-CN.md @@ -12,15 +12,15 @@ #### 色彩规范 - + #### 字体规范 - + #### 组件规范 - + 下载 @@ -28,7 +28,7 @@ 包含 Sketch 格式的图标库资源。 - + 下载 @@ -40,7 +40,7 @@ Vant 的所有图标都托管在 **iconfont.cn** 上,点此查看:[Vant 图 Axure 元件库,由社区的 [@axure-tczy](https://github.com/axure-tczy) 同学贡献。 - + 下载 diff --git a/packages/vant/docs/markdown/home.en-US.md b/packages/vant/docs/markdown/home.en-US.md index 4113ce6ea..ed50b2880 100644 --- a/packages/vant/docs/markdown/home.en-US.md +++ b/packages/vant/docs/markdown/home.en-US.md @@ -1,6 +1,6 @@
- +

Vant

Mobile UI Components built on Vue

diff --git a/packages/vant/docs/markdown/home.zh-CN.md b/packages/vant/docs/markdown/home.zh-CN.md index 03bca6a89..d01bd3f7d 100644 --- a/packages/vant/docs/markdown/home.zh-CN.md +++ b/packages/vant/docs/markdown/home.zh-CN.md @@ -1,6 +1,6 @@
- +

Vant

轻量、可靠的移动端 Vue 组件库

diff --git a/packages/vant/docs/markdown/quickstart.en-US.md b/packages/vant/docs/markdown/quickstart.en-US.md index 85e21413d..eeba1f27d 100644 --- a/packages/vant/docs/markdown/quickstart.en-US.md +++ b/packages/vant/docs/markdown/quickstart.en-US.md @@ -86,7 +86,7 @@ vue create hello-world vue ui ``` -![](https://img.yzcdn.cn/vant/vue-cli-demo-201809030812.png) +![](https://cdn.jsdelivr.net/npm/@vant/assets/vue-cli-demo-201809030812.png) In the GUI, click on 'Dependencies' -> `Install Dependencies` and add `vant` to the dependencies. diff --git a/packages/vant/src/button/README.md b/packages/vant/src/button/README.md index 2e7fdbf0a..323bc7810 100644 --- a/packages/vant/src/button/README.md +++ b/packages/vant/src/button/README.md @@ -69,7 +69,10 @@ app.use(Button); ```html Button - + Button ``` diff --git a/packages/vant/src/button/README.zh-CN.md b/packages/vant/src/button/README.zh-CN.md index a5c01399d..6d9080c54 100644 --- a/packages/vant/src/button/README.zh-CN.md +++ b/packages/vant/src/button/README.zh-CN.md @@ -83,7 +83,10 @@ app.use(Button); ```html 按钮 - + 按钮 ``` diff --git a/packages/vant/src/button/demo/index.vue b/packages/vant/src/button/demo/index.vue index b2d92f8f6..1b328962f 100644 --- a/packages/vant/src/button/demo/index.vue +++ b/packages/vant/src/button/demo/index.vue @@ -107,7 +107,7 @@ const t = useTranslate({ diff --git a/packages/vant/src/button/test/__snapshots__/demo.spec.ts.snap b/packages/vant/src/button/test/__snapshots__/demo.spec.ts.snap index e099ab638..8804e27c2 100644 --- a/packages/vant/src/button/test/__snapshots__/demo.spec.ts.snap +++ b/packages/vant/src/button/test/__snapshots__/demo.spec.ts.snap @@ -237,7 +237,7 @@ exports[`should render demo and match snapshot 1`] = `
diff --git a/packages/vant/src/card/README.md b/packages/vant/src/card/README.md index 5c1e9aef5..927f1fc09 100644 --- a/packages/vant/src/card/README.md +++ b/packages/vant/src/card/README.md @@ -26,7 +26,7 @@ app.use(Card); price="2.00" title="Title" desc="Description" - thumb="https://img.yzcdn.cn/vant/ipad.jpeg" + thumb="https://cdn.jsdelivr.net/npm/@vant/assets/ipad.jpeg" /> ``` @@ -40,7 +40,7 @@ app.use(Card); title="Title" desc="Description" origin-price="10.00" - thumb="https://img.yzcdn.cn/vant/ipad.jpeg" + thumb="https://cdn.jsdelivr.net/npm/@vant/assets/ipad.jpeg" /> ``` @@ -54,7 +54,7 @@ Use slot to custom content. title="Title" desc="Description" price="2.00" - thumb="https://img.yzcdn.cn/vant/ipad.jpeg" + thumb="https://cdn.jsdelivr.net/npm/@vant/assets/ipad.jpeg" >