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

File diff suppressed because one or more lines are too long

View File

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

View File

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

View File

@ -14,7 +14,16 @@
</div> </div>
</div> </div>
<div class="item-btns"> <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"> <el-button size="small" plain round type="primary">
<i class="iconfont icon-jiahao"></i> <i class="iconfont icon-jiahao"></i>
备课</el-button> 备课</el-button>
@ -83,11 +92,29 @@ const handleCurrentChange = () => { }
border-bottom: none; border-bottom: none;
} }
.icon-jiahao { .item-btns {
font-size: 12px; display: flex;
margin-right: 3px; align-items: center;
font-weight: bold; .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;
font-weight: bold;
}
} }
} }
.pagination-box { .pagination-box {

View File

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