opt: 优化icons查询页以及tabs样式

This commit is contained in:
gary
2026-02-01 15:10:59 +08:00
parent a1f0887032
commit 350b6dadef
2 changed files with 18 additions and 17 deletions

View File

@@ -96,5 +96,10 @@ useMenuConfigStore().loadBusinessMenus()
</el-container>
</template>
<style scoped>
.tabs-header {
padding-top: 6px !important;
height: auto !important;
border-bottom: none !important;
box-shadow: none !important;
}
</style>

View File

@@ -1,8 +1,7 @@
<script setup>
import { computed, ref } from 'vue'
import { useClipboard } from '@vueuse/core'
import { ElMessage } from 'element-plus'
import { filterIconsByKeywords } from '@/services/icon/IconService'
import { $copyText } from '@/utils'
const colSize = ref(8)
const keyWords = ref('')
@@ -12,20 +11,8 @@ const filterIcons = computed(() => {
})
const copyIcon = (icon) => {
const { copy, isSupported } = useClipboard()
const iconStr = `<common-icon icon="${icon}"/>`
if (isSupported) {
copy(iconStr)
ElMessage({
message: `Copied: ${iconStr}`,
type: 'success'
})
} else {
ElMessage({
message: `Copy Not supported: ${iconStr}`,
type: 'error'
})
}
$copyText({ text: iconStr, success: `Copied: ${iconStr}` })
}
</script>
@@ -75,14 +62,23 @@ const copyIcon = (icon) => {
</el-col>
</el-row>
</recycle-scroller>
<el-backtop
v-common-tooltip="$t('common.label.backtop')"
target=".scroller"
:right="40"
:bottom="40"
/>
</el-main>
</el-container>
</template>
<style scoped>
.scroller, .icon-container {
.scroller {
height: 100%;
}
.icon-container {
height: calc(100% - 70px);
}
.icon-container .el-input {
width: 80%;
}