refactor: ♻️ 样式优化
This commit is contained in:
parent
92c956a479
commit
0675ba9b86
|
|
@ -3,14 +3,14 @@
|
|||
@import "./dark";
|
||||
|
||||
.app-container {
|
||||
margin: 20px;
|
||||
|
||||
.search {
|
||||
padding: 18px 0 0 10px;
|
||||
margin-bottom: 10px;
|
||||
background-color: var(--el-bg-color-overlay);
|
||||
border: 1px solid var(--el-border-color-light);
|
||||
border-radius: 4px;
|
||||
box-shadow: var(--el-box-shadow-light);
|
||||
}
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
.search-container {
|
||||
padding: 18px 0 0 10px;
|
||||
margin-bottom: 10px;
|
||||
background-color: var(--el-bg-color-overlay);
|
||||
border: 1px solid var(--el-border-color-light);
|
||||
border-radius: 4px;
|
||||
box-shadow: var(--el-box-shadow-light);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,6 +14,14 @@
|
|||
.app-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
height: calc(100vh - 124px);
|
||||
|
||||
/* 84 = navbar + tags-view = 50 + 34 */
|
||||
height: calc(100vh - 50px);
|
||||
}
|
||||
|
||||
.hasTagsView {
|
||||
.app-container {
|
||||
height: calc(100vh - 84px);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ onMounted(() => {});
|
|||
>
|
||||
|
||||
<div>
|
||||
<div class="search">
|
||||
<div class="search-container">
|
||||
<el-form :inline="true">
|
||||
<el-form-item> <el-input v-model="inputVal" /></el-form-item>
|
||||
<el-form-item
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ onMounted(() => {
|
|||
</script>
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div class="search">
|
||||
<div class="search-container">
|
||||
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
||||
<el-form-item label="关键字" prop="keywords">
|
||||
<el-input
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ onMounted(() => {
|
|||
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div class="search">
|
||||
<div class="search-container">
|
||||
<!-- 搜索表单 -->
|
||||
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
||||
<el-form-item label="关键字" prop="name">
|
||||
|
|
|
|||
|
|
@ -194,7 +194,7 @@ onMounted(() => {
|
|||
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div class="search">
|
||||
<div class="search-container">
|
||||
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
||||
<el-form-item label="关键字" prop="name">
|
||||
<el-input
|
||||
|
|
|
|||
|
|
@ -83,8 +83,6 @@ function resetQuery() {
|
|||
|
||||
/**
|
||||
* 行点击事件
|
||||
*
|
||||
* @param row
|
||||
*/
|
||||
function onRowClick(row: MenuVO) {
|
||||
selectedRowMenuId.value = row.id;
|
||||
|
|
@ -130,7 +128,7 @@ function onMenuTypeChange() {
|
|||
}
|
||||
|
||||
/**
|
||||
* 菜单提交
|
||||
* 菜单保存提交
|
||||
*/
|
||||
function submitForm() {
|
||||
menuFormRef.value.validate((isValid: boolean) => {
|
||||
|
|
@ -155,6 +153,7 @@ function submitForm() {
|
|||
|
||||
/**
|
||||
* 删除菜单
|
||||
* @param menuId 菜单ID
|
||||
*/
|
||||
function handleDelete(menuId: number) {
|
||||
if (!menuId) {
|
||||
|
|
@ -198,6 +197,7 @@ function resetForm() {
|
|||
formData.perm = undefined;
|
||||
formData.component = undefined;
|
||||
formData.path = undefined;
|
||||
formData.redirect = undefined;
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
|
|
@ -207,7 +207,7 @@ onMounted(() => {
|
|||
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div class="search">
|
||||
<div class="search-container">
|
||||
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
||||
<el-form-item label="关键字" prop="keywords">
|
||||
<el-input
|
||||
|
|
|
|||
|
|
@ -243,7 +243,7 @@ onMounted(() => {
|
|||
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<div class="search">
|
||||
<div class="search-container">
|
||||
<el-form ref="queryFormRef" :model="queryParams" :inline="true">
|
||||
<el-form-item prop="keywords" label="关键字">
|
||||
<el-input
|
||||
|
|
|
|||
Loading…
Reference in New Issue