mirror of
https://github.com/fugary/simple-element-plus-template.git
synced 2026-02-23 06:37:01 +00:00
opt: 优化icons查询页以及tabs样式
This commit is contained in:
@@ -96,5 +96,10 @@ useMenuConfigStore().loadBusinessMenus()
|
|||||||
</el-container>
|
</el-container>
|
||||||
</template>
|
</template>
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.tabs-header {
|
||||||
|
padding-top: 6px !important;
|
||||||
|
height: auto !important;
|
||||||
|
border-bottom: none !important;
|
||||||
|
box-shadow: none !important;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -1,8 +1,7 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { computed, ref } from 'vue'
|
import { computed, ref } from 'vue'
|
||||||
import { useClipboard } from '@vueuse/core'
|
|
||||||
import { ElMessage } from 'element-plus'
|
|
||||||
import { filterIconsByKeywords } from '@/services/icon/IconService'
|
import { filterIconsByKeywords } from '@/services/icon/IconService'
|
||||||
|
import { $copyText } from '@/utils'
|
||||||
|
|
||||||
const colSize = ref(8)
|
const colSize = ref(8)
|
||||||
const keyWords = ref('')
|
const keyWords = ref('')
|
||||||
@@ -12,20 +11,8 @@ const filterIcons = computed(() => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
const copyIcon = (icon) => {
|
const copyIcon = (icon) => {
|
||||||
const { copy, isSupported } = useClipboard()
|
|
||||||
const iconStr = `<common-icon icon="${icon}"/>`
|
const iconStr = `<common-icon icon="${icon}"/>`
|
||||||
if (isSupported) {
|
$copyText({ text: iconStr, success: `Copied: ${iconStr}` })
|
||||||
copy(iconStr)
|
|
||||||
ElMessage({
|
|
||||||
message: `Copied: ${iconStr}`,
|
|
||||||
type: 'success'
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
ElMessage({
|
|
||||||
message: `Copy Not supported: ${iconStr}`,
|
|
||||||
type: 'error'
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@@ -75,14 +62,23 @@ const copyIcon = (icon) => {
|
|||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</recycle-scroller>
|
</recycle-scroller>
|
||||||
|
<el-backtop
|
||||||
|
v-common-tooltip="$t('common.label.backtop')"
|
||||||
|
target=".scroller"
|
||||||
|
:right="40"
|
||||||
|
:bottom="40"
|
||||||
|
/>
|
||||||
</el-main>
|
</el-main>
|
||||||
</el-container>
|
</el-container>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.scroller, .icon-container {
|
.scroller {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
.icon-container {
|
||||||
|
height: calc(100% - 70px);
|
||||||
|
}
|
||||||
.icon-container .el-input {
|
.icon-container .el-input {
|
||||||
width: 80%;
|
width: 80%;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user