mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2026-02-22 22:27:00 +00:00
opt: 优化icons查询页以及tabs样式
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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%;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user