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