This commit is contained in:
神仙都没用 2024-02-27 11:35:04 +08:00
parent 589b153380
commit 433cc0595c
20 changed files with 24 additions and 21 deletions

View File

@ -3,7 +3,7 @@
"prefix": "module-config", "prefix": "module-config",
"scope": "typescript", "scope": "typescript",
"body": [ "body": [
"import { ModuleConfig } from \"/@/cool\";", "import type { ModuleConfig } from \"/@/cool\";",
"", "",
"export default (): ModuleConfig => {", "export default (): ModuleConfig => {",
" return {};", " return {};",

View File

@ -2,7 +2,7 @@ import VueECharts from "vue-echarts";
import ElementPlus from "element-plus"; import ElementPlus from "element-plus";
import { useStore } from "./store"; import { useStore } from "./store";
import { config } from "/@/config"; import { config } from "/@/config";
import { ModuleConfig } from "/@/cool"; import type { ModuleConfig } from "/@/cool";
import "element-plus/theme-chalk/src/index.scss"; import "element-plus/theme-chalk/src/index.scss";
import "./static/css/index.scss"; import "./static/css/index.scss";

View File

@ -1,4 +1,4 @@
import { ModuleConfig } from "/@/cool"; import type { ModuleConfig } from "/@/cool";
export default (): ModuleConfig => { export default (): ModuleConfig => {
return { return {

View File

@ -1,4 +1,4 @@
import { ModuleConfig } from "/@/cool"; import type { ModuleConfig } from "/@/cool";
import { CodeDeclare } from "./dict"; import { CodeDeclare } from "./dict";
import { addDeclare } from "/@/plugins/editor-monaco"; import { addDeclare } from "/@/plugins/editor-monaco";

View File

@ -1,4 +1,4 @@
import { ModuleConfig } from "/@/cool"; import type { ModuleConfig } from "/@/cool";
export default (): ModuleConfig => { export default (): ModuleConfig => {
return { return {

View File

@ -1,4 +1,4 @@
import { ModuleConfig } from "/@/cool"; import type { ModuleConfig } from "/@/cool";
export default (): ModuleConfig => { export default (): ModuleConfig => {
return { return {

View File

@ -1,4 +1,4 @@
import { ModuleConfig } from "/@/cool"; import type { ModuleConfig } from "/@/cool";
import { useDict } from "./index"; import { useDict } from "./index";
export default (): ModuleConfig => { export default (): ModuleConfig => {

View File

@ -1,4 +1,4 @@
import { ModuleConfig } from "/@/cool"; import type { ModuleConfig } from "/@/cool";
import { getRules } from "./utils"; import { getRules } from "./utils";
export default (): ModuleConfig => { export default (): ModuleConfig => {

View File

@ -1,4 +1,6 @@
export default () => { import type { ModuleConfig } from "/@/cool";
export default (): ModuleConfig => {
return { return {
components: [ components: [
() => import("./components/space.vue"), () => import("./components/space.vue"),

View File

@ -1,7 +1,6 @@
import { setTheme } from "./utils"; import { setTheme } from "./utils";
import { storage } from "/@/cool";
import { ModuleConfig } from "../../cool/types";
import { config } from "/@/config"; import { config } from "/@/config";
import { storage, type ModuleConfig } from "/@/cool";
import "element-plus/theme-chalk/dark/css-vars.css"; import "element-plus/theme-chalk/dark/css-vars.css";
import "./static/css/index.scss"; import "./static/css/index.scss";

View File

@ -1,4 +1,4 @@
import { ModuleConfig } from "/@/cool"; import type { ModuleConfig } from "/@/cool";
export default (): ModuleConfig => { export default (): ModuleConfig => {
return {}; return {};

View File

@ -1,4 +1,4 @@
import { Merge, ModuleConfig } from "/@/cool"; import type { Merge, ModuleConfig } from "/@/cool";
// npm // npm
import Crud, { locale, setFocus } from "@cool-vue/crud"; import Crud, { locale, setFocus } from "@cool-vue/crud";

View File

@ -1,4 +1,4 @@
import { PropType, defineComponent } from "vue"; import { type PropType, defineComponent } from "vue";
import data from "../data/pca.json"; import data from "../data/pca.json";
export default defineComponent({ export default defineComponent({

View File

@ -1,4 +1,4 @@
import { ModuleConfig } from "/@/cool"; import type { ModuleConfig } from "/@/cool";
import { registerFormHook } from "@cool-vue/crud"; import { registerFormHook } from "@cool-vue/crud";
// 注册hook // 注册hook

View File

@ -1,4 +1,4 @@
import { ModuleConfig } from "/@/cool"; import type { ModuleConfig } from "/@/cool";
export default (): ModuleConfig => { export default (): ModuleConfig => {
return { return {

View File

@ -1,4 +1,4 @@
import { ModuleConfig } from "/@/cool"; import type { ModuleConfig } from "/@/cool";
export default (): ModuleConfig => { export default (): ModuleConfig => {
return { return {

View File

@ -1,4 +1,4 @@
import { ModuleConfig } from "/@/cool"; import type { ModuleConfig } from "/@/cool";
export default (): ModuleConfig => { export default (): ModuleConfig => {
return { return {

View File

@ -1,4 +1,4 @@
import { ModuleConfig } from "/@/cool"; import type { ModuleConfig } from "/@/cool";
export default (): ModuleConfig => { export default (): ModuleConfig => {
return { return {

View File

@ -1,4 +1,6 @@
export default () => { import type { ModuleConfig } from "/@/cool";
export default (): ModuleConfig => {
return { return {
label: "文件上传", label: "文件上传",
description: "基于 el-upload 封装的文件上传组件", description: "基于 el-upload 封装的文件上传组件",

View File

@ -1,4 +1,4 @@
import { ModuleConfig } from "/@/cool"; import type { ModuleConfig } from "/@/cool";
export default (): ModuleConfig => { export default (): ModuleConfig => {
return { return {