mirror of
https://github.com/cool-team-official/cool-admin-vue.git
synced 2025-12-11 21:12:50 +00:00
优化
This commit is contained in:
parent
34f8849f34
commit
a0a83ef494
8
pnpm-lock.yaml
generated
8
pnpm-lock.yaml
generated
@ -1523,8 +1523,8 @@ packages:
|
||||
engines: {node: '>=14'}
|
||||
hasBin: true
|
||||
|
||||
electron-to-chromium@1.5.140:
|
||||
resolution: {integrity: sha512-o82Rj+ONp4Ip7Cl1r7lrqx/pXhbp/lh9DpKcMNscFJdh8ebyRofnc7Sh01B4jx403RI0oqTBvlZ7OBIZLMr2+Q==}
|
||||
electron-to-chromium@1.5.141:
|
||||
resolution: {integrity: sha512-qS+qH9oqVYc1ooubTiB9l904WVyM6qNYxtOEEGReoZXw3xlqeYdFr5GclNzbkAufWgwWLEPoDi3d9MoRwwIjGw==}
|
||||
|
||||
element-plus@2.9.8:
|
||||
resolution: {integrity: sha512-srViUaUdfblBKGMeuEPiXxxKlH5aUmKqEwmhb/At9Sj91DbU6od/jYN1955cTnzt3wTSA7GfnZF7UiRX9sdRHg==}
|
||||
@ -4051,7 +4051,7 @@ snapshots:
|
||||
browserslist@4.24.4:
|
||||
dependencies:
|
||||
caniuse-lite: 1.0.30001715
|
||||
electron-to-chromium: 1.5.140
|
||||
electron-to-chromium: 1.5.141
|
||||
node-releases: 2.0.19
|
||||
update-browserslist-db: 1.1.3(browserslist@4.24.4)
|
||||
|
||||
@ -4258,7 +4258,7 @@ snapshots:
|
||||
minimatch: 9.0.1
|
||||
semver: 7.7.1
|
||||
|
||||
electron-to-chromium@1.5.140: {}
|
||||
electron-to-chromium@1.5.141: {}
|
||||
|
||||
element-plus@2.9.8(vue@3.5.13(typescript@5.5.4)):
|
||||
dependencies:
|
||||
|
||||
@ -1,10 +1,10 @@
|
||||
import { type ModuleConfig, type Merge } from "/@/cool";
|
||||
import { config } from "/@/config";
|
||||
import { Plugins } from "./plugins";
|
||||
import { type ModuleConfig, type Merge } from '/@/cool';
|
||||
import { config } from '/@/config';
|
||||
import { Plugins } from './plugins';
|
||||
|
||||
// npm
|
||||
import { Crud, locale } from "@cool-vue/crud";
|
||||
import "@cool-vue/crud/dist/index.css";
|
||||
import { Crud, locale } from '@cool-vue/crud';
|
||||
import '@cool-vue/crud/dist/index.css';
|
||||
|
||||
// 调试、自定义crud
|
||||
// import { Crud, locale } from '/~/crud/src';
|
||||
@ -15,7 +15,7 @@ export default (): Merge<ModuleConfig, CrudOptions> => {
|
||||
order: 99,
|
||||
|
||||
// 组件全注册
|
||||
components: Object.values(import.meta.glob("./components/**/*.{vue,tsx}")),
|
||||
components: Object.values(import.meta.glob('./components/**/*.{vue,tsx}')),
|
||||
|
||||
// 配置参数,具体配置点 CrudOptions 查看
|
||||
options: {
|
||||
@ -28,7 +28,7 @@ export default (): Merge<ModuleConfig, CrudOptions> => {
|
||||
// contextMenu: []
|
||||
},
|
||||
form: {
|
||||
labelPosition: "top",
|
||||
labelPosition: 'top',
|
||||
// 插件列表
|
||||
plugins: [
|
||||
// 自动聚焦插件
|
||||
@ -46,8 +46,8 @@ export default (): Merge<ModuleConfig, CrudOptions> => {
|
||||
dict: {
|
||||
// 排序字段
|
||||
sort: {
|
||||
prop: "order",
|
||||
order: "sort"
|
||||
prop: 'order',
|
||||
order: 'sort'
|
||||
},
|
||||
// 按钮及提示文案
|
||||
label: locale[config.i18n.locale]
|
||||
@ -57,12 +57,12 @@ export default (): Merge<ModuleConfig, CrudOptions> => {
|
||||
// 安装
|
||||
install: Crud.install,
|
||||
|
||||
label: "CRUD",
|
||||
description: "快速增删改查及一系列辅助组件",
|
||||
author: "COOL",
|
||||
version: "1.1.2",
|
||||
updateTime: "2024-12-31",
|
||||
doc: "https://vue.cool-admin.com/src/guide/plugins/crud.html",
|
||||
demo: "/demo/crud"
|
||||
label: 'CRUD',
|
||||
description: '快速增删改查及一系列辅助组件',
|
||||
author: 'COOL',
|
||||
version: '1.1.2',
|
||||
updateTime: '2024-12-31',
|
||||
doc: 'https://vue.cool-admin.com/src/guide/plugins/crud.html',
|
||||
demo: '/demo/crud'
|
||||
};
|
||||
};
|
||||
|
||||
@ -141,6 +141,7 @@ export const useTheme = defineStore('theme', () => {
|
||||
setTheme(theme);
|
||||
|
||||
return {
|
||||
isDark,
|
||||
color,
|
||||
theme,
|
||||
themes,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="cl-view-head" :class="{ 'is-border': border }">
|
||||
<div class="cl-view-head">
|
||||
<div class="cl-view-head__back" @click="router.back()">
|
||||
<cl-svg name="back" />
|
||||
</div>
|
||||
@ -61,10 +61,5 @@ const title = computed(() => props.title || route.query.title);
|
||||
line-height: 1;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
&.is-border {
|
||||
border-bottom: 1px solid var(--el-border-color-light);
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user