Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
121 additions
and
224 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,6 @@ | |
"**/.DS_Store": true, | ||
"**/Thumbs.db": true, | ||
"**/node_modules": true | ||
} | ||
}, | ||
"unocss.root": "./playground" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,39 @@ | ||
<script setup lang="ts"> | ||
import { ref } from 'vue' | ||
const bg = 'bg-[hsl(2.7,81.9%,69.6%)]' | ||
const index = 1 | ||
const customClass = 'text-red' | ||
const bool = true | ||
const bool = ref<boolean>() | ||
</script> | ||
|
||
<template> | ||
<div class="flex aaa flex-col justify-center items-center"> | ||
<div class="text-center aaa" p="4"> | ||
<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"> | ||
<div class="hover:(!bg-gray-600 text-white font-medium)" text="#fff"> | ||
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' : ''"> | ||
<div flex="~ col gap-1" class="p-1" items-center :class="bool ? 'text-yellow-500 px-2.5' : ''"> | ||
<div i-carbon-campsite inline-block color="blue" text="xl" /> | ||
{{ `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 flex="~ col" border="2 blue"> | ||
<div text-right h-10 flex="1" text="red" :class="{ 'text-sm': index > 0 }"> | ||
0123456789 | ||
</div> | ||
<div w-10 h-10 flex="1" text-blue> | ||
2 | ||
<div h-10 flex="1" text-blue :class="[index > 1 ? 'text' : '']" :style="[index > 1 ? '' : '']" :type="index > 1"> | ||
0123456789 | ||
</div> | ||
</div> | ||
<uni-easyinput /> | ||
<div class="bg-[url(https://static.runoob.com/images/demo/demo3.jpg)]" w-20 h-10> | ||
<div class="bg-[url(https://static.runoob.com/images/demo/demo2.jpg)]" w-40 h-20 ma color="white" bg="center cover"> | ||
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> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,40 @@ | ||
<script setup lang="ts"> | ||
import { ref } from 'vue' | ||
const bg = 'bg-[hsl(2.7,81.9%,69.6%)]' | ||
const index = 1 | ||
const customClass = 'text-red' | ||
const bool = true | ||
const bool = ref<boolean>() | ||
</script> | ||
|
||
<template> | ||
<div class="flex aaa flex-col justify-center items-center"> | ||
<div class="text-center aaa" p="4"> | ||
<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"> | ||
<div class="hover:(!bg-gray-600 text-white font-medium)" text="#fff"> | ||
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' : ''"> | ||
<div flex="~ col gap-1" class="p-1" items-center :class="bool ? 'text-yellow-500 px-2.5' : ''"> | ||
<div i-carbon-campsite inline-block color="blue" text="xl" /> | ||
{{ `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 flex="~ col" border="2 blue"> | ||
<div text-right h-10 flex="1" text="red" :class="{ 'text-sm': index > 0 }"> | ||
0123456789 | ||
</div> | ||
<div w-10 h-10 flex="1" text-blue> | ||
2 | ||
<div h-10 flex="1" text-blue :class="[index > 1 ? 'text' : '']" :style="[index > 1 ? '' : '']" :type="index > 1"> | ||
0123456789 | ||
</div> | ||
</div> | ||
<uni-easyinput /> | ||
<div class="bg-[url(https://static.runoob.com/images/demo/demo3.jpg)]" w-20 h-10> | ||
<div class="bg-[url(https://static.runoob.com/images/demo/demo2.jpg)]" w-40 h-20 ma color="white" bg="center cover"> | ||
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> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.