sric
2025-11-22 9fe2c2e4e7de6e89abc2baf0f21182b31db84c72
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<script setup>
// import { useCounterStore } from '@/stores/counter'
const dataInfo = reactive({
  id: 1,
  name: 'test',
});
 
const counterStore = useCounterStore();
 
const { width, height } = useWindowSize();
 
const { userName, userInfo } = useUserInfo();
</script>
<template>
  <div class="about uitl-test flex flex-col">
    <h1 class="bg-deep-blue">This is an about page</h1>
 
    <h3>{{ dataInfo.name }}</h3>
 
    <div class="py-2 text-center">
      userName: {{ userName }}
      <p>{{ userInfo }}</p>
    </div>
 
    <div class="py-2 text-center">window size: {{ width }} / {{ height }}</div>
    <div class="w-full p-1 flex flex-col items-center">
      <div>
        {{ counterStore.count }}
        //
        {{ counterStore.doubleCount }}
      </div>
 
      <div class="flex flex-row gap-x-2">
        <el-button icon="plus" @click="counterStore.increment()"></el-button>
        <el-button icon="minus" @click="counterStore.decrement()"></el-button>
      </div>
    </div>
 
    <ul class="flex flex-col">
      <li class="p-2 bg-conic-300 from-[red] to-[blue]">第一个</li>
      <li class="p-2 text-green-300 border-2" v-for="item in 10" :key="item">测试{{ item }}</li>
    </ul>
  </div>
</template>
 
<style>
@media (min-width: 1024px) {
  .about {
    min-height: 100vh;
    display: flex;
    align-items: center;
  }
}
</style>