This commit is contained in:
lyc 2024-07-11 14:29:45 +08:00
parent d08e75776d
commit c21eca7eb6
9 changed files with 52 additions and 13 deletions

View File

@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 2794390 */
src: url('iconfont.woff2?t=1720613279441') format('woff2'),
url('iconfont.woff?t=1720613279441') format('woff'),
url('iconfont.ttf?t=1720613279441') format('truetype');
src: url('iconfont.woff2?t=1720677380684') format('woff2'),
url('iconfont.woff?t=1720677380684') format('woff'),
url('iconfont.ttf?t=1720677380684') format('truetype');
}
.iconfont {
@ -13,6 +13,10 @@
-moz-osx-font-smoothing: grayscale;
}
.icon-shenglvehao:before {
content: "\e64f";
}
.icon-jiahao:before {
content: "\e602";
}

File diff suppressed because one or more lines are too long

View File

@ -1,10 +1,17 @@
{
"id": "2794390",
"name": "test",
"name": "electron",
"font_family": "iconfont",
"css_prefix_text": "icon-",
"description": "",
"glyphs": [
{
"icon_id": "34273050",
"name": "省略号",
"font_class": "shenglvehao",
"unicode": "e64f",
"unicode_decimal": 58959
},
{
"icon_id": "8721197",
"name": "加号",

View File

@ -46,7 +46,7 @@ import leftBg2 from '@/assets/images/login/left-bg2.png'
const formRef = ref()
const userStore = useUserStore()
const router = useRouter()
// const { ipcRenderer } = window.electron
const { ipcRenderer } = window.electron || {}
const isMaxSize = ref(false)
const btnLoading = ref(false)
//
@ -101,6 +101,7 @@ const getCookie = () => {
}
onMounted(()=>{
ipcRenderer.send('set-winsize',{x:888,y: 520})
getCookie()
})
//

View File

@ -14,6 +14,15 @@
</div>
</div>
<div class="item-btns">
<el-popover placement="bottom-start" :width="50" trigger="click">
<template #reference>
<el-button link type="primary"> <i class="iconfont icon-shenglvehao"></i></el-button>
</template>
<div class="item-popover">
<p>预览</p>
<p>编辑</p>
</div>
</el-popover>
<el-button size="small" plain round type="primary">
<i class="iconfont icon-jiahao"></i>
@ -83,6 +92,22 @@ const handleCurrentChange = () => { }
border-bottom: none;
}
.item-btns {
display: flex;
align-items: center;
.item-popover{
font-size: 12px;
p{
text-align: center;
}
}
.icon-shenglvehao {
cursor: pointer;
font-size: 18px;
font-weight: bold;
margin-right:10px;
}
.icon-jiahao {
font-size: 12px;
margin-right: 3px;
@ -90,6 +115,8 @@ const handleCurrentChange = () => { }
}
}
}
.pagination-box {
margin-top: 20px;
display: flex;

View File

@ -15,8 +15,8 @@ import ChooseTextbook from '@/components/choose-textbook/index.vue'
import ResoureSearch from './container/resoure-search.vue';
import ResoureList from './container/resoure-list.vue';
// const { ipcRenderer } = window.electron
// ipcRenderer.send('set-winsize',{x:1000,y: 700})
const { ipcRenderer } = window.electron || {}
// ipcRenderer.send('set-winsize',{x:1100,y: 700})
const nodeClick = (data) => {
// console.log(toRaw(data))