Tailwind class adaptation (#271)

Co-authored-by: AceDataCloud <office@acedata.cloud>
This commit is contained in:
GermeyandAceDataCloud authored and GitHub committed 2025-09-08 01:16:13 +08:00
1 parent 5717b02e12
commit 3297e7a768
32 files changed
+159 -850

No files matched your search

+1 -8
View File
@@ -15,7 +15,7 @@
:value="qrLink"
:width="230"
:height="230"
class="qrcode"
class="qrcode w-[320px] h-[320px] block mx-auto mb-[20px]"
:type="'image/jpeg'"
:color="{ dark: '#000000ff', light: '#ffffffff' }"
/>
@@ -102,11 +102,4 @@ export default defineComponent({
width: 400px;
height: 600px;
}
.qrcode {
width: 320px;
height: 320px;
display: block;
margin: 0 auto 20px auto;
}
</style>
+1 -7
View File
@@ -1,5 +1,5 @@
<template>
<el-breadcrumb separator="/" class="breadcrumb">
<el-breadcrumb separator="/" class="breadcrumb p-[10px]">
<el-breadcrumb-item :to="{ path: '/' }">{{ $t('common.nav.home') }}</el-breadcrumb-item>
<el-breadcrumb-item v-for="(item, itemIndex) in items" :key="itemIndex" :to="{ name: item.name }">{{
item.meta.title
@@ -23,9 +23,3 @@ export default defineComponent({
}
});
</script>
<style lang="scss" scoped>
.breadcrumb {
padding: 10px;
}
</style>
+4 -13
View File
@@ -1,5 +1,8 @@
<template>
<font-awesome-icon :icon="icon" class="icon" />
<font-awesome-icon
:icon="icon"
class="icon text-[12px] border rounded-full py-[5px] px-[6px] cursor-pointer bg-inherit text-[var(--el-text-color-primary)] border-[var(--el-border-color)]"
/>
</template>
<script lang="ts">
@@ -24,15 +27,3 @@ export default defineComponent({
}
});
</script>
<style lang="scss" scoped>
.icon {
font-size: 12px;
border: 1px solid var(--el-border-color);
border-radius: 50%;
padding: 5px 6px;
cursor: pointer;
background-color: inherit;
color: var(--el-text-color-primary);
}
</style>
+15 -76
View File
@@ -1,7 +1,11 @@
<template>
<div class="file">
<div class="left">
<div class="wrapper">
<div
class="file cursor-pointer relative rounded-[10px] h-[50px] w-[250px] flex flex-row items-center justify-start bg-[var(--el-bg-color)]"
>
<div class="left h-[50px] w-[50px] flex items-center justify-center">
<div
class="wrapper relative w-[35px] h-[35px] flex items-center justify-center rounded-[10px] text-white bg-[#10a37f] m-auto"
>
<font-awesome-icon icon="fa-regular fa-file-alt" />
<el-progress
v-show="percentage && percentage < 100"
@@ -9,13 +13,19 @@
:stroke-width="3"
:percentage="percentage"
:width="25"
class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[25px] h-[25px] z-[10] m-auto"
/>
</div>
</div>
<div class="right">
<div
class="right flex-1 h-[50px] flex items-center justify-start pl-[2px] text-[14px] text-[var(--el-text-color-primary)] truncate"
>
<span class="text-xs font-bold truncate">{{ name }}</span>
</div>
<div v-if="closable" class="close">
<div
v-if="closable"
class="close absolute cursor-pointer top-[5px] right-[5px] bg-[rgba(0,0,0,0.7)] text-white w-[15px] rounded-full h-[15px] flex text-[10px] text-center items-center justify-center"
>
<font-awesome-icon icon="fa-solid fa-xmark" class="icon icon-close" @click="$emit('remove')" />
</div>
</div>
@@ -55,74 +65,3 @@ export default defineComponent({
}
});
</script>
<style lang="scss" scoped>
.file {
cursor: pointer;
position: relative;
border-radius: 10px;
height: 50px;
width: 250px;
display: flex;
flex-direction: row;
align-items: center;
justify-content: flex-start;
background-color: var(--el-bg-color);
.el-progress {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 25px;
height: 25px;
z-index: 10;
margin: auto;
}
.left {
height: 50px;
width: 50px;
display: flex;
align-items: center;
justify-content: center;
.wrapper {
position: relative;
width: 35px;
height: 35px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 10px;
color: white;
background-color: #10a37f;
margin: auto;
}
}
.right {
width: calc(100% - 60px);
height: 50px;
display: flex;
align-items: center;
justify-content: flex-start;
padding-left: 2px;
font-size: 14px;
color: var(--el-text-color-primary);
text-overflow: ellipsis;
}
.close {
position: absolute;
cursor: pointer;
top: 5px;
right: 5px;
background-color: rgba(0, 0, 0, 0.7);
color: white;
width: 15px;
border-radius: 50%;
height: 15px;
display: flex;
font-size: 10px;
text-align: center;
align-items: center;
justify-content: center;
}
}
</style>
+7 -44
View File
@@ -1,14 +1,18 @@
<template>
<div class="image">
<img class="size-10" :src="url" :alt="name" />
<div class="image w-[50px] h-[50px] relative rounded-[var(--el-border-radius-base)] overflow-hidden">
<img class="w-full h-full object-cover" :src="url" :alt="name" />
<el-progress
v-show="percentage && percentage < 100"
type="circle"
:stroke-width="3"
:percentage="percentage"
:width="30"
class="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[30px] h-[30px] z-[10] m-auto"
/>
<div v-if="closable" class="close">
<div
v-if="closable"
class="close absolute cursor-pointer top-[5px] right-[5px] bg-[rgba(0,0,0,0.7)] text-white w-[15px] h-[15px] rounded-full flex text-[10px] text-center items-center justify-center"
>
<font-awesome-icon icon="fa-solid fa-xmark" class="icon icon-close" @click.stop="$emit('remove')" />
</div>
</div>
@@ -48,44 +52,3 @@ export default defineComponent({
emits: ['remove']
});
</script>
<style lang="scss" scoped>
.image {
width: 50px;
height: 50px;
position: relative;
border-radius: var(--el-border-radius-base);
overflow: hidden;
.close {
position: absolute;
cursor: pointer;
top: 5px;
right: 5px;
background-color: rgba(0, 0, 0, 0.7);
color: white;
width: 15px;
border-radius: 50%;
height: 15px;
display: flex;
font-size: 10px;
text-align: center;
align-items: center;
justify-content: center;
}
.el-progress {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 30px;
height: 30px;
z-index: 10;
margin: auto;
}
img {
object-fit: cover;
width: 100%;
height: 100%;
}
}
</style>
+4 -17
View File
@@ -1,6 +1,9 @@
<template>
<el-tooltip effect="dark" :content="content" placement="top">
<font-awesome-icon icon="fa-solid fa-info" class="icon icon-rotate" />
<font-awesome-icon
icon="fa-solid fa-info"
class="icon icon-rotate inline-block w-[20px] h-[20px] border-[3px] border-solid border-[#aaa] rounded-full text-[10px] p-[5px] scale-[0.4] cursor-pointer text-[#aaa] -mr-[5px]"
/>
</el-tooltip>
</template>
@@ -23,19 +26,3 @@ export default defineComponent({
}
});
</script>
<style lang="scss" scoped>
.icon {
display: inline-block;
width: 20px;
border: 3px solid #aaa;
border-radius: 50%;
height: 20px;
font-size: 10px;
padding: 5px;
transform: scale(0.4);
cursor: pointer;
color: #aaa;
margin-right: -5px;
}
</style>
+1 -4
View File
@@ -1,5 +1,5 @@
<template>
<vue-markdown v-highlight :source="content" class="markdown-body" />
<vue-markdown v-highlight :source="content" class="markdown-body bg-transparent pt-[3px] text-[inherit]" />
</template>
<script lang="ts">
@@ -32,9 +32,6 @@ export default defineComponent({
<style lang="scss" scoped>
.markdown-body {
background: none;
padding-top: 3px;
color: inherit;
ol {
list-style: initial;
}
+9 -12
View File
@@ -1,5 +1,13 @@
<template>
<el-alert v-if="show" :title="content" type="success" center :closable="false" show-icon class="alert-success-info">
<el-alert
v-if="show"
:title="content"
type="success"
center
:closable="false"
show-icon
class="alert-success-info fixed top-[110px] left-1/2 -translate-x-1/2 z-[100] w-[10%]"
>
</el-alert>
</template>
@@ -34,14 +42,3 @@ export default defineComponent({
}
});
</script>
<style lang="scss">
.alert-success-info {
position: fixed;
top: 110px;
left: 50%;
transform: translate(-50%, 0);
z-index: 100;
width: 10%;
}
</style>
+2 -17
View File
@@ -1,7 +1,7 @@
<template>
<div class="video">
<div class="video max-w-[800px] max-h-[450px] rounded-[15px] overflow-hidden">
<vue-plyr :options="mergedOptions">
<video controls crossorigin="anonymous" playsinline>
<video controls crossorigin="anonymous" playsinline class="w-full h-full aspect-[16/9]">
<source size="1080" :src="src" type="video/mp4" />
</video>
</vue-plyr>
@@ -52,18 +52,3 @@ export default defineComponent({
}
});
</script>
<style lang="scss" scoped>
.video {
max-width: 800px;
max-height: 450px;
border-radius: 15px;
overflow: hidden;
.plyr--video,
video {
width: 100%;
height: 100%;
aspect-ratio: 16 / 9;
}
}
</style>