Skip to content

Commit 93ff5f9

Browse files
author
xuqingkai
committed
docs: ✏️ 调整演示demo中图片到npmmirror上
1 parent 9e28b57 commit 93ff5f9

File tree

8 files changed

+22
-23
lines changed

8 files changed

+22
-23
lines changed

docs/component/segmented.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ const list1 = ref([
6969
value: '李雷',
7070
disabled: false,
7171
payload: {
72-
avatar: 'https://unpkg.com/wot-design-uni-assets/redpanda.jpg'
72+
avatar: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/redpanda.jpg'
7373
}
7474
},
7575
{
7676
value: '韩梅梅',
7777
disabled: false,
7878
payload: {
79-
avatar: 'https://unpkg.com/wot-design-uni-assets/capybara.jpg'
79+
avatar: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/capybara.jpg'
8080
}
8181
}
8282
])

docs/component/swiper.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616
const current = ref<number>(0)
1717

1818
const swiperList = ref([
19-
'https://unpkg.com/wot-design-uni-assets/redpanda.jpg',
20-
'https://unpkg.com/wot-design-uni-assets/capybara.jpg',
21-
'https://unpkg.com/wot-design-uni-assets/panda.jpg',
22-
'https://unpkg.com/wot-design-uni-assets/moon.jpg',
23-
'https://unpkg.com/wot-design-uni-assets/meng.jpg'
19+
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/redpanda.jpg',
20+
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/capybara.jpg',
21+
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/panda.jpg',
22+
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/moon.jpg',
23+
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/meng.jpg'
2424
])
2525
function handleClick(e) {
2626
console.log(e)

docs/component/tabbar.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const tabbar = ref(1)
8686
<wd-tabbar-item :value="2" title="首页" icon="home"></wd-tabbar-item>
8787
<wd-tabbar-item :value="2" icon="cart" title="分类">
8888
<template #icon>
89-
<wd-img round height="40rpx" width="40rpx" src="https://unpkg.com/wot-design-uni-assets/panda.jpg"></wd-img>
89+
<wd-img round height="40rpx" width="40rpx" src="https://registry.npmmirror.com/wot-design-uni-assets/*/files/panda.jpg"></wd-img>
9090
</template>
9191
</wd-tabbar-item>
9292
<wd-tabbar-item :value="3" title="我的" icon="user"></wd-tabbar-item>

src/components/demo-block/demo-block.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!--
22
* @Author: weisheng
33
* @Date: 2023-08-01 11:12:05
4-
* @LastEditTime: 2023-11-02 19:01:52
4+
* @LastEditTime: 2024-07-11 19:13:17
55
* @LastEditors: weisheng
66
* @Description:
77
* @FilePath: \wot-design-uni\src\components\demo-block\demo-block.vue
@@ -70,6 +70,7 @@ function setStyle() {
7070
7171
.demo-block {
7272
position: relative;
73+
color: #666;
7374
7475
&:not(:first-child) {
7576
margin-top: 15px;
@@ -78,8 +79,6 @@ function setStyle() {
7879
&:not(:last-child) {
7980
margin-bottom: 15px;
8081
}
81-
82-
color: #666;
8382
}
8483
8584
.is-white {

src/pages/segmented/Index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,28 +60,28 @@ const list1 = ref([
6060
value: '李雷',
6161
disabled: false,
6262
payload: {
63-
avatar: 'https://unpkg.com/wot-design-uni-assets/redpanda.jpg'
63+
avatar: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/redpanda.jpg'
6464
}
6565
},
6666
{
6767
value: '韩梅梅',
6868
disabled: false,
6969
payload: {
70-
avatar: 'https://unpkg.com/wot-design-uni-assets/capybara.jpg'
70+
avatar: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/capybara.jpg'
7171
}
7272
},
7373
{
7474
value: '林涛',
7575
disabled: true,
7676
payload: {
77-
avatar: 'https://unpkg.com/wot-design-uni-assets/panda.jpg'
77+
avatar: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/panda.jpg'
7878
}
7979
},
8080
{
8181
value: 'Tom',
8282
disabled: false,
8383
payload: {
84-
avatar: 'https://unpkg.com/wot-design-uni-assets/meng.jpg'
84+
avatar: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/meng.jpg'
8585
}
8686
}
8787
])

src/pages/swiper/Index.vue

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -131,11 +131,11 @@
131131
import { ref } from 'vue'
132132
133133
const swiperList = ref([
134-
'https://unpkg.com/wot-design-uni-assets/redpanda.jpg',
135-
'https://unpkg.com/wot-design-uni-assets/capybara.jpg',
136-
'https://unpkg.com/wot-design-uni-assets/panda.jpg',
137-
'https://unpkg.com/wot-design-uni-assets/moon.jpg',
138-
'https://unpkg.com/wot-design-uni-assets/meng.jpg'
134+
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/redpanda.jpg',
135+
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/capybara.jpg',
136+
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/panda.jpg',
137+
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/moon.jpg',
138+
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/meng.jpg'
139139
])
140140
141141
const current = ref<number>(0)

src/pages/tabbar/Index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
<wd-tabbar-item :value="2" title="首页" icon="home"></wd-tabbar-item>
4141
<wd-tabbar-item :value="2" icon="cart" title="分类">
4242
<template #icon>
43-
<wd-img round height="40rpx" width="40rpx" src="https://img.yzcdn.cn/vant/cat.jpeg"></wd-img>
43+
<wd-img round height="40rpx" width="40rpx" src="https://registry.npmmirror.com/wot-design-uni-assets/*/files/panda.jpg"></wd-img>
4444
</template>
4545
</wd-tabbar-item>
4646
<wd-tabbar-item :value="3" title="我的" icon="user"></wd-tabbar-item>

src/pages/upload/Index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ import { ref } from 'vue'
7474
const action: string = 'https://mockapi.eolink.com/zhTuw2P8c29bc981a741931bdd86eb04dc1e8fd64865cb5/upload'
7575
const fileList = ref<UploadFile[]>([
7676
{
77-
url: 'https://img.yzcdn.cn/vant/cat.jpeg'
77+
url: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/panda.jpg'
7878
}
7979
])
8080
@@ -207,7 +207,7 @@ function handleChange({ fileList }: any) {
207207
function handleChange1({ fileList }: { fileList: UploadFile[] }) {
208208
// fileList.forEach((item) => {
209209
// if (!item.thumb) {
210-
// item.thumb = 'https://unpkg.com/wot-design-uni-assets/redpanda.jpg'
210+
// item.thumb = 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/redpanda.jpg'
211211
// }
212212
// })
213213
fileList1.value = fileList

0 commit comments

Comments
 (0)