morghulis 3.0.1 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { App } from "vue";
2
- import MButton from "./MButton.vue";
2
+ import MButton from "./components/button/MButton.vue";
3
3
  import './style.css';
4
4
  import type { MorghulisOptions } from "./types";
5
5
  declare module "vue" {
@@ -0,0 +1,4 @@
1
+ import type { MorghulisMessageBoxInterface, MorghulisMessageInterface } from "../types";
2
+ export declare const $message: MorghulisMessageInterface;
3
+ export declare const $alert: MorghulisMessageBoxInterface;
4
+ export declare const $confirm: MorghulisMessageBoxInterface;
@@ -2,3 +2,18 @@ export type MorghulisOptions = {
2
2
  baseURL?: string;
3
3
  minioURL?: string;
4
4
  };
5
+ /**
6
+ * Feedback
7
+ */
8
+ export interface MorghulisMessageInterface {
9
+ info: (content: string) => void;
10
+ success: (content: string) => void;
11
+ warning: (content: string) => void;
12
+ error: (content: string) => void;
13
+ }
14
+ export interface MorghulisMessageBoxInterface {
15
+ info: (content: string, title?: string) => Promise<any>;
16
+ success: (content: string, title?: string) => Promise<any>;
17
+ warning: (content: string, title?: string) => Promise<any>;
18
+ error: (content: string, title?: string) => Promise<any>;
19
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "morghulis",
3
- "version": "3.0.1",
3
+ "version": "3.0.3",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -22,6 +22,7 @@
22
22
  "preview": "vite preview"
23
23
  },
24
24
  "dependencies": {
25
+ "element-plus": "^2.9.8",
25
26
  "vue": "^3.5.13"
26
27
  },
27
28
  "devDependencies": {
@@ -29,6 +30,7 @@
29
30
  "@vitejs/plugin-vue": "^5.2.3",
30
31
  "typescript": "~5.8.0",
31
32
  "vite": "^6.2.4",
33
+ "vite-plugin-vue-devtools": "^7.7.2",
32
34
  "vue-tsc": "^2.2.8"
33
35
  }
34
36
  }