diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1d3c7ec..c18ac37 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -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: diff --git a/src/plugins/crud/config.ts b/src/plugins/crud/config.ts index 3704f42..df6a168 100644 --- a/src/plugins/crud/config.ts +++ b/src/plugins/crud/config.ts @@ -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 => { 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 => { // contextMenu: [] }, form: { - labelPosition: "top", + labelPosition: 'top', // 插件列表 plugins: [ // 自动聚焦插件 @@ -46,8 +46,8 @@ export default (): Merge => { dict: { // 排序字段 sort: { - prop: "order", - order: "sort" + prop: 'order', + order: 'sort' }, // 按钮及提示文案 label: locale[config.i18n.locale] @@ -57,12 +57,12 @@ export default (): Merge => { // 安装 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' }; }; diff --git a/src/plugins/theme/hooks/index.ts b/src/plugins/theme/hooks/index.ts index 35c5537..e307a34 100644 --- a/src/plugins/theme/hooks/index.ts +++ b/src/plugins/theme/hooks/index.ts @@ -141,6 +141,7 @@ export const useTheme = defineStore('theme', () => { setTheme(theme); return { + isDark, color, theme, themes, diff --git a/src/plugins/view/components/head.vue b/src/plugins/view/components/head.vue index 9149a9c..75d08a4 100644 --- a/src/plugins/view/components/head.vue +++ b/src/plugins/view/components/head.vue @@ -1,5 +1,5 @@