@ningboyz/vue 1.0.41 → 1.0.43

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.
package/es/components.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { YzDesginer as e } from "./stimulsoft/desginer/index.js";
2
- import * as n from "./message/index.js";
3
- const r = [e], a = (o) => {
4
- r.forEach((s) => o.use(s));
2
+ import { YzMessage as r } from "./message/index.js";
3
+ const t = [e, r], c = (o) => {
4
+ t.forEach((s) => o.use(s));
5
5
  };
6
6
  export {
7
7
  e as YzDesginer,
8
- n as YzMessage,
9
- a as install
8
+ r as YzMessage,
9
+ c as install
10
10
  };
package/es/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import * as o from "./components.js";
2
2
  import { install as t } from "./components.js";
3
- import * as e from "./message/index.js";
4
3
  import { YzDesginer as m } from "./stimulsoft/desginer/index.js";
4
+ import { YzMessage as a } from "./message/index.js";
5
5
  export {
6
6
  m as YzDesginer,
7
- e as YzMessage,
7
+ a as YzMessage,
8
8
  o as default,
9
9
  t as install
10
10
  };
@@ -1,21 +1,9 @@
1
- import { VxeUI as t } from "vxe-pc-ui";
2
- class r {
3
- static messageId = "vxe-modal-message-id-d0556a60da2a";
4
- static options;
5
- static config = (s) => {
6
- this.options = s;
7
- };
8
- static showError(s) {
9
- this.showMessage(this.messageId, s, "error");
1
+ import { Message as e } from "./message.js";
2
+ const n = Object.assign({}, e, {
3
+ install(s) {
4
+ s.component(e.name || "yz-message", e);
10
5
  }
11
- static showMessage = (s, a, e) => {
12
- t.modal.message({
13
- id: s,
14
- content: a,
15
- status: e
16
- });
17
- };
18
- }
6
+ });
19
7
  export {
20
- r as Message
8
+ n as YzMessage
21
9
  };
@@ -0,0 +1,23 @@
1
+ import { VxeUI as e } from "vxe-pc-ui";
2
+ class c {
3
+ static messageId = "vxe-modal-message-id-d0556a60da2a";
4
+ static options;
5
+ static config = (s) => {
6
+ this.options = s;
7
+ };
8
+ static showError = (s) => {
9
+ this.showMessage(this.messageId, s, "error");
10
+ };
11
+ static showMessage = (s, t, o) => {
12
+ const a = this.options || { duration: 3e3 };
13
+ e.modal.message({
14
+ ...a,
15
+ id: s,
16
+ content: t,
17
+ status: o
18
+ });
19
+ };
20
+ }
21
+ export {
22
+ c as Message
23
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.41",
3
+ "version": "1.0.43",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "宁波甬政vue-ui库",
package/types/all.d.ts CHANGED
@@ -3,6 +3,7 @@ import YzDesginer from "./components/stimulsoft/desginer/desginer";
3
3
  import YzMessage from "./components/message/message";
4
4
  interface AllComponents {
5
5
  YzDesginer: typeof YzDesginer;
6
+ YzMessage: typeof YzMessage;
6
7
  }
7
8
 
8
9
  export function install(app: App): void;
@@ -2,6 +2,6 @@ export type YzMessageOptions = {
2
2
  duration?: number;
3
3
  };
4
4
 
5
- export declare class Message {
6
- public showError(message: string);
5
+ export declare class YzMessage {
6
+ public static showError(message: string);
7
7
  }