feat: 🚀 修复
This commit is contained in:
75
src/components.d.ts
vendored
75
src/components.d.ts
vendored
@@ -7,36 +7,6 @@ export {}
|
|||||||
|
|
||||||
declare module "vue" {
|
declare module "vue" {
|
||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
ActionBar: typeof import("./components/EpicDesigner/components/designer/src/modules/actionBar/index.vue")["default"];
|
|
||||||
Add: typeof import("./components/FlowDesign/nodes/Add.vue")["default"];
|
|
||||||
ApprovalNode: typeof import("./components/FlowDesign/nodes/ApprovalNode.vue")["default"];
|
|
||||||
ApprovalNodeClone: typeof import("./components/FlowDesign/nodes/ApprovalNodeClone.vue")["default"];
|
|
||||||
ApprovalPanel: typeof import("./components/FlowDesign/panels/ApprovalPanel.vue")["default"];
|
|
||||||
ApprovalPanel1: typeof import("./components/FlowDesign/panels/ApprovalPanel1.vue")["default"];
|
|
||||||
AssigneePanel: typeof import("./components/FlowDesign/panels/AssigneePanel.vue")["default"];
|
|
||||||
AssigneePanelClone: typeof import("./components/FlowDesign/panels/AssigneePanelClone.vue")["default"];
|
|
||||||
AsyncLoader: typeof import("./components/EpicDesigner/components/asyncLoader/index.vue")["default"];
|
|
||||||
AttributeView: typeof import("./components/EpicDesigner/components/designer/src/modules/attributeView/attributeView.vue")["default"];
|
|
||||||
Breadcrumb: typeof import("./components/EpicDesigner/components/designer/src/modules/rightSidebar/breadcrumb.vue")["default"];
|
|
||||||
Builder: typeof import("./components/EpicDesigner/components/builder/src/builder.vue")["default"];
|
|
||||||
CcNode: typeof import("./components/FlowDesign/nodes/CcNode.vue")["default"];
|
|
||||||
CcNodeClone: typeof import("./components/FlowDesign/nodes/CcNodeClone.vue")["default"];
|
|
||||||
CcPanel: typeof import("./components/FlowDesign/panels/CcPanel.vue")["default"];
|
|
||||||
ComponentView: typeof import("./components/EpicDesigner/components/designer/src/modules/componentView/index.vue")["default"];
|
|
||||||
ConditionNode: typeof import("./components/FlowDesign/nodes/ConditionNode.vue")["default"];
|
|
||||||
ConditionPanel: typeof import("./components/FlowDesign/panels/ConditionPanel.vue")["default"];
|
|
||||||
DataView: typeof import("./components/EpicDesigner/components/designer/src/modules/attributeView/dataView.vue")["default"];
|
|
||||||
Designer: typeof import("./components/EpicDesigner/components/designer/src/designer.vue")["default"];
|
|
||||||
EActionEditor: typeof import("./components/EpicDesigner/extensions/EActionEditor/index.vue")["default"];
|
|
||||||
EActionEditorItem: typeof import("./components/EpicDesigner/extensions/EActionEditor/src/EActionEditorItem.vue")["default"];
|
|
||||||
EActionEditorItem1: typeof import("./components/EpicDesigner/extensions/EActionEditor/src/EActionEditorItem1.vue")["default"];
|
|
||||||
EActionModal: typeof import("./components/EpicDesigner/extensions/EActionEditor/src/EActionModal.vue")["default"];
|
|
||||||
EArgsEditor: typeof import("./components/EpicDesigner/extensions/EActionEditor/src/EArgsEditor.vue")["default"];
|
|
||||||
EColEditor: typeof import("./components/EpicDesigner/extensions/EColEditor/index.vue")["default"];
|
|
||||||
EditContainer: typeof import("./components/EpicDesigner/components/designer/src/modules/editContainer/index.vue")["default"];
|
|
||||||
EditNodeItem: typeof import("./components/EpicDesigner/components/designer/src/modules/editContainer/editNodeItem.vue")["default"];
|
|
||||||
EditScreenContainer: typeof import("./components/EpicDesigner/components/designer/src/modules/editContainer/editScreenContainer.vue")["default"];
|
|
||||||
EInputSize: typeof import("./components/EpicDesigner/extensions/EInputSize/index.vue")["default"];
|
|
||||||
ElAside: typeof import("element-plus/es")["ElAside"];
|
ElAside: typeof import("element-plus/es")["ElAside"];
|
||||||
ElAutocomplete: typeof import("element-plus/es")["ElAutocomplete"];
|
ElAutocomplete: typeof import("element-plus/es")["ElAutocomplete"];
|
||||||
ElAvatar: typeof import("element-plus/es")["ElAvatar"];
|
ElAvatar: typeof import("element-plus/es")["ElAvatar"];
|
||||||
@@ -85,21 +55,6 @@ declare module "vue" {
|
|||||||
ElText: typeof import("element-plus/es")["ElText"];
|
ElText: typeof import("element-plus/es")["ElText"];
|
||||||
ElTooltip: typeof import("element-plus/es")["ElTooltip"];
|
ElTooltip: typeof import("element-plus/es")["ElTooltip"];
|
||||||
ElTree: typeof import("element-plus/es")["ElTree"];
|
ElTree: typeof import("element-plus/es")["ElTree"];
|
||||||
EndNode: typeof import("./components/FlowDesign/nodes/EndNode.vue")["default"];
|
|
||||||
EndPanel: typeof import("./components/FlowDesign/panels/EndPanel.vue")["default"];
|
|
||||||
EOptionsEditor: typeof import("./components/EpicDesigner/extensions/EOptionsEditor/index.vue")["default"];
|
|
||||||
ERuleEditor: typeof import("./components/EpicDesigner/extensions/ERuleEditor/index.vue")["default"];
|
|
||||||
ERuleItem: typeof import("./components/EpicDesigner/extensions/ERuleEditor/ERuleItem.vue")["default"];
|
|
||||||
EScriptEdit: typeof import("./components/EpicDesigner/extensions/EActionEditor/src/EScriptEdit.vue")["default"];
|
|
||||||
EventView: typeof import("./components/EpicDesigner/components/designer/src/modules/attributeView/eventView.vue")["default"];
|
|
||||||
ExclusiveNode: typeof import("./components/FlowDesign/nodes/ExclusiveNode.vue")["default"];
|
|
||||||
ExecutionListeners: typeof import("./components/FlowDesign/panels/ExecutionListeners.vue")["default"];
|
|
||||||
FlowDesign: typeof import("./components/FlowDesign/index.vue")["default"];
|
|
||||||
Form: typeof import("./components/EpicDesigner/ui/form/form.vue")["default"];
|
|
||||||
FormItem: typeof import("./components/EpicDesigner/ui/formItem/formItem.vue")["default"];
|
|
||||||
GatewayNode: typeof import("./components/FlowDesign/nodes/GatewayNode.vue")["default"];
|
|
||||||
Header: typeof import("./components/EpicDesigner/components/designer/src/modules/header/index.vue")["default"];
|
|
||||||
Icon: typeof import("./components/EpicDesigner/components/icon/src/icon.vue")["default"];
|
|
||||||
IEpArrowDown: typeof import("~icons/ep/arrow-down")["default"];
|
IEpArrowDown: typeof import("~icons/ep/arrow-down")["default"];
|
||||||
IEpCircleClose: typeof import("~icons/ep/circle-close")["default"];
|
IEpCircleClose: typeof import("~icons/ep/circle-close")["default"];
|
||||||
IEpFolderDelete: typeof import("~icons/ep/folder-delete")["default"];
|
IEpFolderDelete: typeof import("~icons/ep/folder-delete")["default"];
|
||||||
@@ -108,37 +63,7 @@ declare module "vue" {
|
|||||||
IEpRemove: typeof import("~icons/ep/remove")["default"];
|
IEpRemove: typeof import("~icons/ep/remove")["default"];
|
||||||
IEpSearch: typeof import("~icons/ep/search")["default"];
|
IEpSearch: typeof import("~icons/ep/search")["default"];
|
||||||
IEpSwitchButton: typeof import("~icons/ep/switch-button")["default"];
|
IEpSwitchButton: typeof import("~icons/ep/switch-button")["default"];
|
||||||
MonacoEditor: typeof import("./components/EpicDesigner/extensions/MonacoEditor/index.vue")["default"];
|
|
||||||
Node: typeof import("./components/FlowDesign/nodes/Node.vue")["default"];
|
|
||||||
NodeItem: typeof import("./components/EpicDesigner/components/designer/src/modules/editContainer/nodeItem.vue")["default"];
|
|
||||||
NotifyNode: typeof import("./components/FlowDesign/nodes/NotifyNode.vue")["default"];
|
|
||||||
NotifyNodeC: typeof import("./components/FlowDesign/nodes/NotifyNodeC.vue")["default"];
|
|
||||||
NotifyNodeClone: typeof import("./components/FlowDesign/nodes/NotifyNodeClone.vue")["default"];
|
|
||||||
NotifyPanel: typeof import("./components/FlowDesign/panels/NotifyPanel.vue")["default"];
|
|
||||||
OptionsCol: typeof import("./components/EpicDesigner/extensions/EOptionsEditor/optionsCol.vue")["default"];
|
|
||||||
Outline: typeof import("./components/EpicDesigner/components/designer/src/modules/outline/outline.vue")["default"];
|
|
||||||
Page: typeof import("./components/EpicDesigner/extensions/Page/index.vue")["default"];
|
|
||||||
Panels: typeof import("./components/FlowDesign/panels/index.vue")["default"];
|
|
||||||
ParallelNode: typeof import("./components/FlowDesign/nodes/ParallelNode.vue")["default"];
|
|
||||||
Preview: typeof import("./components/EpicDesigner/components/designer/src/modules/preview/index.vue")["default"];
|
|
||||||
PreviewJson: typeof import("./components/EpicDesigner/components/designer/src/modules/editContainer/previewJson.vue")["default"];
|
|
||||||
PreviewWidgets: typeof import("./components/EpicDesigner/components/designer/src/modules/editContainer/previewWidgets.vue")["default"];
|
|
||||||
RightSidebar: typeof import("./components/EpicDesigner/components/designer/src/modules/rightSidebar/index.vue")["default"];
|
|
||||||
RouterLink: typeof import("vue-router")["RouterLink"];
|
RouterLink: typeof import("vue-router")["RouterLink"];
|
||||||
RouterView: typeof import("vue-router")["RouterView"];
|
RouterView: typeof import("vue-router")["RouterView"];
|
||||||
ServiceNode: typeof import("./components/FlowDesign/nodes/ServiceNode.vue")["default"];
|
|
||||||
ServicePanel: typeof import("./components/FlowDesign/panels/ServicePanel.vue")["default"];
|
|
||||||
SoundCode: typeof import("./components/EpicDesigner/components/designer/src/modules/soundCode/index.vue")["default"];
|
|
||||||
StartNode: typeof import("./components/FlowDesign/nodes/StartNode.vue")["default"];
|
|
||||||
StartPanel: typeof import("./components/FlowDesign/panels/StartPanel.vue")["default"];
|
|
||||||
StyleView: typeof import("./components/EpicDesigner/components/designer/src/modules/attributeView/styleView.vue")["default"];
|
|
||||||
TaskListeners: typeof import("./components/FlowDesign/panels/TaskListeners.vue")["default"];
|
|
||||||
TimerNode: typeof import("./components/FlowDesign/nodes/TimerNode.vue")["default"];
|
|
||||||
TimerPanel: typeof import("./components/FlowDesign/panels/TimerPanel.vue")["default"];
|
|
||||||
Toolbar: typeof import("./components/EpicDesigner/components/designer/src/modules/editContainer/toolbar.vue")["default"];
|
|
||||||
Tree: typeof import("./components/EpicDesigner/components/tree/src/tree.vue")["default"];
|
|
||||||
TreeNode: typeof import("./components/FlowDesign/nodes/TreeNode.vue")["default"];
|
|
||||||
TreeNodeItem: typeof import("./components/EpicDesigner/components/tree/src/treeNodeItem.vue")["default"];
|
|
||||||
TreeNodes: typeof import("./components/EpicDesigner/components/tree/src/treeNodes.vue")["default"];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,8 +3,9 @@
|
|||||||
<div class="epic-header-item flex-1 items-center flex">
|
<div class="epic-header-item flex-1 items-center flex">
|
||||||
<slot name="prefix">
|
<slot name="prefix">
|
||||||
<a class="decoration-none items-center flex" href="https://kcz66.gitee.io/epic-designer" target="_blank">
|
<a class="decoration-none items-center flex" href="https://kcz66.gitee.io/epic-designer" target="_blank">
|
||||||
<img src="../../../../../static/logo.png" class="w-18px h-18px" alt="" srcset="" />
|
<img src="../../../../../../../assets/images/logo.png" class="w-18px h-18px" alt="" srcset="" />
|
||||||
<span class="ml-3">EDesigner</span>
|
|
||||||
|
<h3>ORICO</h3>
|
||||||
</a>
|
</a>
|
||||||
</slot>
|
</slot>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="tool-bar-ri">
|
<div class="tool-bar-ri">
|
||||||
<div class="header-icon">
|
<div class="header-icon">
|
||||||
<SearchMenu id="searchMenu" />
|
<!-- <SearchMenu id="searchMenu" /> -->
|
||||||
<Fullscreen id="fullscreen" />
|
<Fullscreen id="fullscreen" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import SearchMenu from "./components/SearchMenu.vue";
|
// import SearchMenu from "./components/SearchMenu.vue";
|
||||||
import Fullscreen from "./components/Fullscreen.vue";
|
import Fullscreen from "./components/Fullscreen.vue";
|
||||||
import Avatar from "./components/Avatar.vue";
|
import Avatar from "./components/Avatar.vue";
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
17
src/main.ts
17
src/main.ts
@@ -12,32 +12,27 @@ import "@/assets/iconfont/iconfont.scss";
|
|||||||
|
|
||||||
//引入Element plus样式
|
//引入Element plus样式
|
||||||
import "element-plus/dist/index.css";
|
import "element-plus/dist/index.css";
|
||||||
// 引入epic-designer样式
|
|
||||||
import "epic-designer/dist/style.css";
|
|
||||||
//注册驻足
|
|
||||||
import { setupElementPlus } from "@/components/EpicDesigner/ui";
|
|
||||||
setupElementPlus();
|
|
||||||
//公共样式
|
//公共样式
|
||||||
import "@/styles/common.scss";
|
import "@/styles/common.scss";
|
||||||
// 重置 element 样式
|
// 重置 element 样式
|
||||||
import "@/styles/element.scss";
|
import "@/styles/element.scss";
|
||||||
|
//表单设计器样式
|
||||||
import "@/styles/edesigner/index.css";
|
import "@/styles/edesigner/index.css";
|
||||||
|
|
||||||
// custom directives
|
|
||||||
import directives from "@/directives/index";
|
import directives from "@/directives/index";
|
||||||
// vue Router
|
// vue Router
|
||||||
import router from "@/routers";
|
import router from "@/routers";
|
||||||
|
|
||||||
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
|
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
|
||||||
// 导入 tsx 组件
|
// 导入 tsx 组件
|
||||||
import SvgIcon from "@/components/SvgIcon";
|
import SvgIcon from "@/components/SvgIcon";
|
||||||
|
//注册组件
|
||||||
|
import { setupElementPlus } from "@/components/EpicDesigner/ui";
|
||||||
|
setupElementPlus();
|
||||||
|
|
||||||
// pinia store
|
// pinia store
|
||||||
import pinia from "@/stores";
|
import pinia from "@/stores";
|
||||||
// errorHandler
|
// errorHandler
|
||||||
import errorHandler from "@/utils/errorHandler";
|
import errorHandler from "@/utils/errorHandler";
|
||||||
|
|
||||||
import VXETable from "vxe-table";
|
|
||||||
|
|
||||||
localStorage.setItem("baseUrl", import.meta.env.VITE_SINGLE_URL);
|
localStorage.setItem("baseUrl", import.meta.env.VITE_SINGLE_URL);
|
||||||
|
|
||||||
const app = createApp(App);
|
const app = createApp(App);
|
||||||
@@ -46,4 +41,4 @@ for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
|
|||||||
}
|
}
|
||||||
app.config.errorHandler = errorHandler;
|
app.config.errorHandler = errorHandler;
|
||||||
app.component("SvgIcon", SvgIcon); // 注册后,所有组件可直接用 <svg-icon>
|
app.component("SvgIcon", SvgIcon); // 注册后,所有组件可直接用 <svg-icon>
|
||||||
app.use(directives).use(router).use(pinia).use(VXETable).mount("#app");
|
app.use(directives).use(router).use(pinia).mount("#app");
|
||||||
|
|||||||
@@ -1,132 +1,3 @@
|
|||||||
/* Reset style sheet */
|
|
||||||
|
|
||||||
/* 目前项目中使用富文本编辑器需要注释,如果你项目中没有使用富文本编辑器,可以取消注释 */
|
|
||||||
// html,
|
|
||||||
// body,
|
|
||||||
// div,
|
|
||||||
// span,
|
|
||||||
// applet,
|
|
||||||
// object,
|
|
||||||
// iframe,
|
|
||||||
// h1,
|
|
||||||
// h2,
|
|
||||||
// h3,
|
|
||||||
// h4,
|
|
||||||
// h5,
|
|
||||||
// h6,
|
|
||||||
// p,
|
|
||||||
// blockquote,
|
|
||||||
// pre,
|
|
||||||
// a,
|
|
||||||
// abbr,
|
|
||||||
// acronym,
|
|
||||||
// address,
|
|
||||||
// big,
|
|
||||||
// cite,
|
|
||||||
// code,
|
|
||||||
// del,
|
|
||||||
// dfn,
|
|
||||||
// em,
|
|
||||||
// img,
|
|
||||||
// ins,
|
|
||||||
// kbd,
|
|
||||||
// q,
|
|
||||||
// s,
|
|
||||||
// samp,
|
|
||||||
// small,
|
|
||||||
// strike,
|
|
||||||
// strong,
|
|
||||||
// sub,
|
|
||||||
// sup,
|
|
||||||
// tt,
|
|
||||||
// var,
|
|
||||||
// b,
|
|
||||||
// u,
|
|
||||||
// i,
|
|
||||||
// center,
|
|
||||||
// dl,
|
|
||||||
// dt,
|
|
||||||
// dd,
|
|
||||||
// ol,
|
|
||||||
// ul,
|
|
||||||
// li,
|
|
||||||
// fieldset,
|
|
||||||
// form,
|
|
||||||
// label,
|
|
||||||
// legend,
|
|
||||||
// table,
|
|
||||||
// caption,
|
|
||||||
// tbody,
|
|
||||||
// tfoot,
|
|
||||||
// thead,
|
|
||||||
// tr,
|
|
||||||
// th,
|
|
||||||
// td,
|
|
||||||
// article,
|
|
||||||
// aside,
|
|
||||||
// canvas,
|
|
||||||
// details,
|
|
||||||
// embed,
|
|
||||||
// figure,
|
|
||||||
// figcaption,
|
|
||||||
// footer,
|
|
||||||
// header,
|
|
||||||
// hgroup,
|
|
||||||
// menu,
|
|
||||||
// nav,
|
|
||||||
// output,
|
|
||||||
// ruby,
|
|
||||||
// section,
|
|
||||||
// summary,
|
|
||||||
// time,
|
|
||||||
// mark,
|
|
||||||
// audio,
|
|
||||||
// video {
|
|
||||||
// padding: 0;
|
|
||||||
// margin: 0;
|
|
||||||
// font: inherit;
|
|
||||||
// font-size: 100%;
|
|
||||||
// vertical-align: baseline;
|
|
||||||
// border: 0;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// /* HTML5 display-role reset for older browsers */
|
|
||||||
// article,
|
|
||||||
// aside,
|
|
||||||
// details,
|
|
||||||
// figcaption,
|
|
||||||
// figure,
|
|
||||||
// footer,
|
|
||||||
// header,
|
|
||||||
// hgroup,
|
|
||||||
// menu,
|
|
||||||
// nav,
|
|
||||||
// section {
|
|
||||||
// display: block;
|
|
||||||
// }
|
|
||||||
// body {
|
|
||||||
// padding: 0;
|
|
||||||
// margin: 0;
|
|
||||||
// }
|
|
||||||
// ol,
|
|
||||||
// ul {
|
|
||||||
// list-style: none;
|
|
||||||
// }
|
|
||||||
// blockquote,
|
|
||||||
// q {
|
|
||||||
// quotes: none;
|
|
||||||
// }
|
|
||||||
// blockquote::before,
|
|
||||||
// blockquote::after,
|
|
||||||
// q::before,
|
|
||||||
// q::after {
|
|
||||||
// content: "";
|
|
||||||
// content: none;
|
|
||||||
// }
|
|
||||||
// table {
|
|
||||||
// border-spacing: 0;
|
|
||||||
// border-collapse: collapse;
|
|
||||||
// }
|
|
||||||
html,
|
html,
|
||||||
body,
|
body,
|
||||||
#app {
|
#app {
|
||||||
|
|||||||
Reference in New Issue
Block a user