refactor: 重构最新问卷组件

- 最新问卷组件样式更新
- 内容调整
- 增加 hooks 内容支持
This commit is contained in:
Huangzhe
2025-03-06 11:06:24 +08:00
parent 91dd8d5f4c
commit 46c81a2e73
5 changed files with 122 additions and 57 deletions

View File

@@ -1,18 +1,18 @@
<script setup lang="ts">
import { surveys } from "./Hooks/useRequestHooks"
import { surveys } from './Hooks/useRequestHooks';
</script>
<template>
<van-cell>
<div style="text-align: left;">新建问卷</div>
<van-row>
<van-col span="6" v-for="survey in surveys" :key="survey.title" class="survey">
<img width="45px" :src="survey.icon" alt=" " />
<span>{{ survey.title }}</span>
</van-col>
</van-row>
</van-cell>
<van-cell>
<div style="text-align: left;">新建问卷</div>
<van-row>
<van-col v-for="survey in surveys" :key="survey.title" span="6" class="survey">
<img width="45px" :src="survey.icon" alt=" " />
<span>{{ survey.title }}</span>
</van-col>
</van-row>
</van-cell>
</template>
<style lang="scss" scoped>