diff --git a/README.md b/README.md index 5660e0794..279cbf6a9 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@
-
+
-
+
Mobile UI Components built on Vue
轻量、可靠的移动端 Vue 组件库
No coupons
diff --git a/packages/vant/src/coupon-list/test/index.spec.ts b/packages/vant/src/coupon-list/test/index.spec.ts index a6e1ed734..e897313b1 100644 --- a/packages/vant/src/coupon-list/test/index.spec.ts +++ b/packages/vant/src/coupon-list/test/index.spec.ts @@ -106,7 +106,7 @@ test('should have two "van-coupon-list__empty" classes when render coupon list i test('should use custom src when using empty-image prop', async () => { const wrapper = mount(CouponList, { props: { - emptyImage: 'https://img.yzcdn.com/xxx.png', + emptyImage: 'https://cdn.jsdelivr.net/npm/@vant/assets/xxx.jpeg', }, }); diff --git a/packages/vant/src/dialog/README.md b/packages/vant/src/dialog/README.md index 2caec7b5a..afccdf491 100644 --- a/packages/vant/src/dialog/README.md +++ b/packages/vant/src/dialog/README.md @@ -112,7 +112,7 @@ If you need to render vue components within a dialog, you can use dialog compone ```htmlDescription diff --git a/packages/vant/src/form/README.md b/packages/vant/src/form/README.md index cc928af84..f652b9f33 100644 --- a/packages/vant/src/form/README.md +++ b/packages/vant/src/form/README.md @@ -308,7 +308,9 @@ import { ref } from 'vue'; export default { setup() { - const value = ref([{ url: 'https://img.yzcdn.cn/vant/leaf.jpg' }]); + const value = ref([ + { url: 'https://cdn.jsdelivr.net/npm/@vant/assets/leaf.jpeg' }, + ]); return { value }; }, }; diff --git a/packages/vant/src/form/README.zh-CN.md b/packages/vant/src/form/README.zh-CN.md index 2f4e1b769..41904eb48 100644 --- a/packages/vant/src/form/README.zh-CN.md +++ b/packages/vant/src/form/README.zh-CN.md @@ -332,7 +332,9 @@ import { ref } from 'vue'; export default { setup() { - const value = ref([{ url: 'https://img.yzcdn.cn/vant/leaf.jpg' }]); + const value = ref([ + { url: 'https://cdn.jsdelivr.net/npm/@vant/assets/leaf.jpeg' }, + ]); return { value }; }, }; diff --git a/packages/vant/src/form/demo/FieldType.vue b/packages/vant/src/form/demo/FieldType.vue index 81b42e7c5..b1da7ca56 100644 --- a/packages/vant/src/form/demo/FieldType.vue +++ b/packages/vant/src/form/demo/FieldType.vue @@ -54,7 +54,9 @@ const rate = ref(3); const radio = ref('1'); const slider = ref(50); const stepper = ref(1); -const uploader = ref([{ url: 'https://img.yzcdn.cn/vant/leaf.jpg' }]); +const uploader = ref([ + { url: 'https://cdn.jsdelivr.net/npm/@vant/assets/leaf.jpeg' }, +]); const checkbox = ref(false); const checkboxGroup = ref([]); const switchChecked = ref(false); diff --git a/packages/vant/src/form/test/__snapshots__/demo.spec.ts.snap b/packages/vant/src/form/test/__snapshots__/demo.spec.ts.snap index 04062414c..f567d4dec 100644 --- a/packages/vant/src/form/test/__snapshots__/demo.spec.ts.snap +++ b/packages/vant/src/form/test/__snapshots__/demo.spec.ts.snap @@ -450,7 +450,7 @@ exports[`should render demo and match snapshot 1`] = `
Refresh Count: {{ count }}
diff --git a/packages/vant/src/pull-refresh/README.zh-CN.md b/packages/vant/src/pull-refresh/README.zh-CN.md index 7d7a4fcba..999a112b8 100644 --- a/packages/vant/src/pull-refresh/README.zh-CN.md +++ b/packages/vant/src/pull-refresh/README.zh-CN.md @@ -77,19 +77,25 @@ export default {刷新次数: {{ count }}
diff --git a/packages/vant/src/pull-refresh/demo/index.vue b/packages/vant/src/pull-refresh/demo/index.vue index e74b03e40..bc40a1277 100644 --- a/packages/vant/src/pull-refresh/demo/index.vue +++ b/packages/vant/src/pull-refresh/demo/index.vue @@ -48,8 +48,8 @@ const preloadImage = () => { const doge = new Image(); const dogeFire = new Image(); - doge.src = 'https://b.yzcdn.cn/vant/doge.png'; - dogeFire.src = 'https://b.yzcdn.cn/vant/doge-fire.jpg'; + doge.src = 'https://cdn.jsdelivr.net/npm/@vant/assets/doge.png'; + dogeFire.src = 'https://cdn.jsdelivr.net/npm/@vant/assets/doge-fire.jpeg'; }; onMounted(preloadImage); @@ -82,15 +82,21 @@ onMounted(preloadImage);{{ tips }}
diff --git a/packages/vant/src/radio/README.md b/packages/vant/src/radio/README.md index 8ad461b43..9d3fcf13d 100644 --- a/packages/vant/src/radio/README.md +++ b/packages/vant/src/radio/README.md @@ -121,8 +121,9 @@ export default { const checked = ref('1'); return { checked, - 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', }; }, }; diff --git a/packages/vant/src/radio/README.zh-CN.md b/packages/vant/src/radio/README.zh-CN.md index 8bcead820..90ed26eb9 100644 --- a/packages/vant/src/radio/README.zh-CN.md +++ b/packages/vant/src/radio/README.zh-CN.md @@ -131,8 +131,9 @@ export default { const checked = ref('1'); return { checked, - 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', }; }, }; diff --git a/packages/vant/src/radio/demo/index.vue b/packages/vant/src/radio/demo/index.vue index 74292f00c..7e565a651 100644 --- a/packages/vant/src/radio/demo/index.vue +++ b/packages/vant/src/radio/demo/index.vue @@ -42,8 +42,9 @@ const radioLabel = ref('1'); const radioShape = ref('1'); const radioIconSize = ref('1'); const radioHorizontal = ref('1'); -const activeIcon = 'https://img.yzcdn.cn/vant/user-active.png'; -const inactiveIcon = 'https://img.yzcdn.cn/vant/user-inactive.png'; +const activeIcon = 'https://cdn.jsdelivr.net/npm/@vant/assets/user-active.png'; +const inactiveIcon = + 'https://cdn.jsdelivr.net/npm/@vant/assets/user-inactive.png'; diff --git a/packages/vant/src/radio/test/__snapshots__/demo.spec.ts.snap b/packages/vant/src/radio/test/__snapshots__/demo.spec.ts.snap index 0012e07ab..f9964f422 100644 --- a/packages/vant/src/radio/test/__snapshots__/demo.spec.ts.snap +++ b/packages/vant/src/radio/test/__snapshots__/demo.spec.ts.snap @@ -207,7 +207,7 @@ exports[`should render demo and match snapshot 1`] = ` aria-checked="true" >{{ t('desc') }}
diff --git a/packages/vant/src/swipe-cell/README.md b/packages/vant/src/swipe-cell/README.md index 4f1114499..a36ee7c4c 100644 --- a/packages/vant/src/swipe-cell/README.md +++ b/packages/vant/src/swipe-cell/README.md @@ -43,7 +43,7 @@ app.use(SwipeCell); desc="Description" title="Title" class="goods-card" - thumb="https://img.yzcdn.cn/vant/cat.jpeg" + thumb="https://cdn.jsdelivr.net/npm/@vant/assets/cat.jpeg" />