change style

This commit is contained in:
Jeffrey Hsu 2025-02-12 01:42:25 +08:00
parent d91b7fc013
commit 90097273cf
3 changed files with 104 additions and 96 deletions

View File

@ -34,14 +34,14 @@ function createWindow(): void {
minHeight: 728, minHeight: 728,
show: false, show: false,
autoHideMenuBar: true, autoHideMenuBar: true,
frame: false, titleBarStyle: 'hidden',
icon: icon, icon: icon,
webPreferences: { webPreferences: {
preload: join(__dirname, '../preload/index.js'), preload: join(__dirname, '../preload/index.js'),
sandbox: false sandbox: false
}, },
vibrancy: 'fullscreen-ui', vibrancy: 'fullscreen-ui',
backgroundMaterial: 'acrylic' backgroundMaterial: 'mica'
}) })
mainWindow.on('ready-to-show', () => { mainWindow.on('ready-to-show', () => {

View File

@ -82,7 +82,10 @@ const handleSubmit = () => {
</script> </script>
<template> <template>
<div class="relative flex flex-col items-center justify-center bg-white"> <div class="flex items-center justify-center bg-white/75">
<div
class="relative flex flex-col items-center justify-center bg-white px-32 py-8 rounded-lg border border-gray-300 shadow-xl"
>
<div <div
class="absolute top-4 left-32 cursor-pointer rounded border border-gray-300 px-4 shadow hover:bg-gray-100" class="absolute top-4 left-32 cursor-pointer rounded border border-gray-300 px-4 shadow hover:bg-gray-100"
@click="handleBack" @click="handleBack"
@ -91,7 +94,7 @@ const handleSubmit = () => {
</div> </div>
<p class="text-center text-2xl">创建新的文件</p> <p class="text-center text-2xl">创建新的文件</p>
<el-divider> 填写基本课程信息以继续 </el-divider> <el-divider> 填写基本课程信息以继续 </el-divider>
<div class="mx-auto w-full max-w-lg"> <div class="mx-auto w-lg">
<el-form :model="tempCourseInfo" label-width="auto"> <el-form :model="tempCourseInfo" label-width="auto">
<el-form-item label="课号"> <el-form-item label="课号">
<el-input <el-input
@ -118,7 +121,7 @@ const handleSubmit = () => {
@blur="handleShowCopyBtn" @blur="handleShowCopyBtn"
/> />
<div <div
class="absolute right-4 text-gray-400 cursor-pointer invisible" class="invisible absolute right-4 cursor-pointer text-gray-400"
:class="{ visible: isShowCopyFrom }" :class="{ visible: isShowCopyFrom }"
@click="handleCopyFromTeacher" @click="handleCopyFromTeacher"
> >
@ -145,6 +148,7 @@ const handleSubmit = () => {
<el-button @click="handleCreateFrom('jwxt')"> 教务系统 中导入</el-button> <el-button @click="handleCreateFrom('jwxt')"> 教务系统 中导入</el-button>
</div> </div>
</div> </div>
</div>
</template> </template>
<style scoped></style> <style scoped></style>

View File

@ -30,7 +30,10 @@ const handleFunctionClick = (ev: 'create' | 'open') => {
</script> </script>
<template> <template>
<div class="flex flex-col items-center justify-center gap-12 bg-white"> <div class="flex items-center bg-white/75">
<div
class="mx-auto flex flex-col items-center justify-center gap-12 overflow-hidden bg-white px-32 py-16 rounded-lg shadow-lg border border-gray-300"
>
<!-- 标题 --> <!-- 标题 -->
<div class="text-center leading-5"> <div class="text-center leading-5">
<p class="text-2xl">欢迎</p> <p class="text-2xl">欢迎</p>
@ -72,6 +75,7 @@ const handleFunctionClick = (ev: 'create' | 'open') => {
</div> </div>
</div> </div>
</div> </div>
</div>
</template> </template>
<style scoped> <style scoped>