From 8a44fe9d1c4f518e082132b6c2186cdf8d7e5388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A9=99=E5=AD=90?= <454313500@qq.com> Date: Sat, 8 Oct 2022 23:05:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E8=8D=90=E9=A1=B5=E9=9D=A2=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Yi.Vue3.x.Vant/components.d.ts | 1 + Yi.Vue3.x.Vant/src/main.ts | 1 + Yi.Vue3.x.Vant/src/view/main/recommend.vue | 119 +++++++++++++++------ 3 files changed, 89 insertions(+), 32 deletions(-) diff --git a/Yi.Vue3.x.Vant/components.d.ts b/Yi.Vue3.x.Vant/components.d.ts index d50cac2e..48d7adcb 100644 --- a/Yi.Vue3.x.Vant/components.d.ts +++ b/Yi.Vue3.x.Vant/components.d.ts @@ -18,6 +18,7 @@ declare module '@vue/runtime-core' { VanGridItem: typeof import('vant/es')['GridItem'] VanIcon: typeof import('vant/es')['Icon'] VanImage: typeof import('vant/es')['Image'] + VanImagePreview: typeof import('vant/es')['ImagePreview'] VanList: typeof import('vant/es')['List'] VanPullRefresh: typeof import('vant/es')['PullRefresh'] VanRow: typeof import('vant/es')['Row'] diff --git a/Yi.Vue3.x.Vant/src/main.ts b/Yi.Vue3.x.Vant/src/main.ts index dfa5f30d..c67a29ae 100644 --- a/Yi.Vue3.x.Vant/src/main.ts +++ b/Yi.Vue3.x.Vant/src/main.ts @@ -1,5 +1,6 @@ import { createApp } from 'vue' import './style.css' +import 'vant/es/image-preview/style'; import router from './router' import App from './App.vue' diff --git a/Yi.Vue3.x.Vant/src/view/main/recommend.vue b/Yi.Vue3.x.Vant/src/view/main/recommend.vue index 45aeb838..bf0a98a8 100644 --- a/Yi.Vue3.x.Vant/src/view/main/recommend.vue +++ b/Yi.Vue3.x.Vant/src/view/main/recommend.vue @@ -8,9 +8,7 @@ @load="onLoad" > - - - + - - 标题 -
- 副标题 + + 大白 +
+ 一小时前
- + + 这是第:{{ + item + }}个,不要害怕重新开始,因为这一次你不是从头开始,而是从经验开始 + + - 这是第:{{ item }}个 - - + - + @@ -44,30 +58,54 @@ - - + v-model:show="show" + :actions="actions" + cancel-text="取消" + description="这是一段描述信息" + close-on-click-action + /> + + + + + \ No newline at end of file