mirror of
https://gitee.com/wot-design-uni/wot-design-uni.git
synced 2025-12-07 09:38:44 +08:00
docs: ✏️ 调整演示demo中图片到npmmirror上
This commit is contained in:
parent
9e28b5771a
commit
93ff5f938f
@ -69,14 +69,14 @@ const list1 = ref([
|
|||||||
value: '李雷',
|
value: '李雷',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
payload: {
|
payload: {
|
||||||
avatar: 'https://unpkg.com/wot-design-uni-assets/redpanda.jpg'
|
avatar: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/redpanda.jpg'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '韩梅梅',
|
value: '韩梅梅',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
payload: {
|
payload: {
|
||||||
avatar: 'https://unpkg.com/wot-design-uni-assets/capybara.jpg'
|
avatar: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/capybara.jpg'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|||||||
@ -16,11 +16,11 @@
|
|||||||
const current = ref<number>(0)
|
const current = ref<number>(0)
|
||||||
|
|
||||||
const swiperList = ref([
|
const swiperList = ref([
|
||||||
'https://unpkg.com/wot-design-uni-assets/redpanda.jpg',
|
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/redpanda.jpg',
|
||||||
'https://unpkg.com/wot-design-uni-assets/capybara.jpg',
|
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/capybara.jpg',
|
||||||
'https://unpkg.com/wot-design-uni-assets/panda.jpg',
|
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/panda.jpg',
|
||||||
'https://unpkg.com/wot-design-uni-assets/moon.jpg',
|
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/moon.jpg',
|
||||||
'https://unpkg.com/wot-design-uni-assets/meng.jpg'
|
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/meng.jpg'
|
||||||
])
|
])
|
||||||
function handleClick(e) {
|
function handleClick(e) {
|
||||||
console.log(e)
|
console.log(e)
|
||||||
|
|||||||
@ -86,7 +86,7 @@ const tabbar = ref(1)
|
|||||||
<wd-tabbar-item :value="2" title="首页" icon="home"></wd-tabbar-item>
|
<wd-tabbar-item :value="2" title="首页" icon="home"></wd-tabbar-item>
|
||||||
<wd-tabbar-item :value="2" icon="cart" title="分类">
|
<wd-tabbar-item :value="2" icon="cart" title="分类">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<wd-img round height="40rpx" width="40rpx" src="https://unpkg.com/wot-design-uni-assets/panda.jpg"></wd-img>
|
<wd-img round height="40rpx" width="40rpx" src="https://registry.npmmirror.com/wot-design-uni-assets/*/files/panda.jpg"></wd-img>
|
||||||
</template>
|
</template>
|
||||||
</wd-tabbar-item>
|
</wd-tabbar-item>
|
||||||
<wd-tabbar-item :value="3" title="我的" icon="user"></wd-tabbar-item>
|
<wd-tabbar-item :value="3" title="我的" icon="user"></wd-tabbar-item>
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
<!--
|
<!--
|
||||||
* @Author: weisheng
|
* @Author: weisheng
|
||||||
* @Date: 2023-08-01 11:12:05
|
* @Date: 2023-08-01 11:12:05
|
||||||
* @LastEditTime: 2023-11-02 19:01:52
|
* @LastEditTime: 2024-07-11 19:13:17
|
||||||
* @LastEditors: weisheng
|
* @LastEditors: weisheng
|
||||||
* @Description:
|
* @Description:
|
||||||
* @FilePath: \wot-design-uni\src\components\demo-block\demo-block.vue
|
* @FilePath: \wot-design-uni\src\components\demo-block\demo-block.vue
|
||||||
@ -70,6 +70,7 @@ function setStyle() {
|
|||||||
|
|
||||||
.demo-block {
|
.demo-block {
|
||||||
position: relative;
|
position: relative;
|
||||||
|
color: #666;
|
||||||
|
|
||||||
&:not(:first-child) {
|
&:not(:first-child) {
|
||||||
margin-top: 15px;
|
margin-top: 15px;
|
||||||
@ -78,8 +79,6 @@ function setStyle() {
|
|||||||
&:not(:last-child) {
|
&:not(:last-child) {
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
color: #666;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.is-white {
|
.is-white {
|
||||||
|
|||||||
@ -60,28 +60,28 @@ const list1 = ref([
|
|||||||
value: '李雷',
|
value: '李雷',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
payload: {
|
payload: {
|
||||||
avatar: 'https://unpkg.com/wot-design-uni-assets/redpanda.jpg'
|
avatar: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/redpanda.jpg'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '韩梅梅',
|
value: '韩梅梅',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
payload: {
|
payload: {
|
||||||
avatar: 'https://unpkg.com/wot-design-uni-assets/capybara.jpg'
|
avatar: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/capybara.jpg'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '林涛',
|
value: '林涛',
|
||||||
disabled: true,
|
disabled: true,
|
||||||
payload: {
|
payload: {
|
||||||
avatar: 'https://unpkg.com/wot-design-uni-assets/panda.jpg'
|
avatar: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/panda.jpg'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: 'Tom',
|
value: 'Tom',
|
||||||
disabled: false,
|
disabled: false,
|
||||||
payload: {
|
payload: {
|
||||||
avatar: 'https://unpkg.com/wot-design-uni-assets/meng.jpg'
|
avatar: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/meng.jpg'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|||||||
@ -131,11 +131,11 @@
|
|||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
|
|
||||||
const swiperList = ref([
|
const swiperList = ref([
|
||||||
'https://unpkg.com/wot-design-uni-assets/redpanda.jpg',
|
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/redpanda.jpg',
|
||||||
'https://unpkg.com/wot-design-uni-assets/capybara.jpg',
|
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/capybara.jpg',
|
||||||
'https://unpkg.com/wot-design-uni-assets/panda.jpg',
|
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/panda.jpg',
|
||||||
'https://unpkg.com/wot-design-uni-assets/moon.jpg',
|
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/moon.jpg',
|
||||||
'https://unpkg.com/wot-design-uni-assets/meng.jpg'
|
'https://registry.npmmirror.com/wot-design-uni-assets/*/files/meng.jpg'
|
||||||
])
|
])
|
||||||
|
|
||||||
const current = ref<number>(0)
|
const current = ref<number>(0)
|
||||||
|
|||||||
@ -40,7 +40,7 @@
|
|||||||
<wd-tabbar-item :value="2" title="首页" icon="home"></wd-tabbar-item>
|
<wd-tabbar-item :value="2" title="首页" icon="home"></wd-tabbar-item>
|
||||||
<wd-tabbar-item :value="2" icon="cart" title="分类">
|
<wd-tabbar-item :value="2" icon="cart" title="分类">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<wd-img round height="40rpx" width="40rpx" src="https://img.yzcdn.cn/vant/cat.jpeg"></wd-img>
|
<wd-img round height="40rpx" width="40rpx" src="https://registry.npmmirror.com/wot-design-uni-assets/*/files/panda.jpg"></wd-img>
|
||||||
</template>
|
</template>
|
||||||
</wd-tabbar-item>
|
</wd-tabbar-item>
|
||||||
<wd-tabbar-item :value="3" title="我的" icon="user"></wd-tabbar-item>
|
<wd-tabbar-item :value="3" title="我的" icon="user"></wd-tabbar-item>
|
||||||
|
|||||||
@ -74,7 +74,7 @@ import { ref } from 'vue'
|
|||||||
const action: string = 'https://mockapi.eolink.com/zhTuw2P8c29bc981a741931bdd86eb04dc1e8fd64865cb5/upload'
|
const action: string = 'https://mockapi.eolink.com/zhTuw2P8c29bc981a741931bdd86eb04dc1e8fd64865cb5/upload'
|
||||||
const fileList = ref<UploadFile[]>([
|
const fileList = ref<UploadFile[]>([
|
||||||
{
|
{
|
||||||
url: 'https://img.yzcdn.cn/vant/cat.jpeg'
|
url: 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/panda.jpg'
|
||||||
}
|
}
|
||||||
])
|
])
|
||||||
|
|
||||||
@ -207,7 +207,7 @@ function handleChange({ fileList }: any) {
|
|||||||
function handleChange1({ fileList }: { fileList: UploadFile[] }) {
|
function handleChange1({ fileList }: { fileList: UploadFile[] }) {
|
||||||
// fileList.forEach((item) => {
|
// fileList.forEach((item) => {
|
||||||
// if (!item.thumb) {
|
// if (!item.thumb) {
|
||||||
// item.thumb = 'https://unpkg.com/wot-design-uni-assets/redpanda.jpg'
|
// item.thumb = 'https://registry.npmmirror.com/wot-design-uni-assets/*/files/redpanda.jpg'
|
||||||
// }
|
// }
|
||||||
// })
|
// })
|
||||||
fileList1.value = fileList
|
fileList1.value = fileList
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user