-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.vue
43 lines (42 loc) · 1.37 KB
/
index.vue
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
<script setup lang="ts">
const bg = 'bg-[hsl(2.7,81.9%,69.6%)]'
const index = 1
const customClass = 'text-red'
const bool = true
</script>
<template>
<div class="flex aaa flex-col justify-center items-center">
<div text="4xl" class="rotate-180 i-carbon-campsite" :class="bg" />
<div class="border bg-blue-200 font-(light mono) ">
<div class="hover:(!bg-gray-400 text-white font-medium)" text="#6f4">
0123456789
</div>
</div>
<div :class="{ 'bg-blue': bool }" p-2 :hover-class="['!bg-green']">
class="hover:bg-green"
</div>
<div class="p-1" :class="bool ? 'text-yellow-500 px-2.5' : ''">
{{ `index${index + 1}` }}
</div>
<div i-carbon-campsite inline-block color="blue" />
<div flex="~ col gap-2" border="2 blue">
<div text-center w-10 h-10 flex="1" text="red">
1
</div>
<div w-10 h-10 flex="1" text-blue>
2
</div>
</div>
<uni-easyinput />
<div class="bg-[url(https://static.runoob.com/images/demo/demo3.jpg)]" w-20 h-10>
bg-img
</div>
<div class="m-0.5 p-1 text-2xl" :class="bool ? '' : 'text-yellow-500 p-2.5'">
abckefghijklmnopqrstuvwxyz
</div>
<!-- eslint-disable-next-line vue/prefer-separate-static-class -->
<view :class="['underline', customClass]">
aaa
</view>
</div>
</template>