@ningboyz/vue 1.0.43 → 1.0.45

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,12 @@
1
- import { YzDesginer as e } from "./stimulsoft/desginer/index.js";
2
- import { YzMessage as r } from "./message/index.js";
3
- const t = [e, r], c = (o) => {
4
- t.forEach((s) => o.use(s));
1
+ import { YzDesginer as t } from "./stimulsoft/desginer/index.js";
2
+ import { YzMessage as s } from "./message/index.js";
3
+ import { YzLayout as e } from "./layout/index.js";
4
+ const m = [t, s, e], a = (o) => {
5
+ m.forEach((r) => o.use(r));
5
6
  };
6
7
  export {
7
- e as YzDesginer,
8
- r as YzMessage,
9
- c as install
8
+ t as YzDesginer,
9
+ e as YzLayout,
10
+ s as YzMessage,
11
+ a as install
10
12
  };
package/es/index.js CHANGED
@@ -1,9 +1,11 @@
1
1
  import * as o from "./components.js";
2
2
  import { install as t } from "./components.js";
3
- import { YzDesginer as m } from "./stimulsoft/desginer/index.js";
3
+ import { YzDesginer as p } from "./stimulsoft/desginer/index.js";
4
4
  import { YzMessage as a } from "./message/index.js";
5
+ import { YzLayout as x } from "./layout/index.js";
5
6
  export {
6
- m as YzDesginer,
7
+ p as YzDesginer,
8
+ x as YzLayout,
7
9
  a as YzMessage,
8
10
  o as default,
9
11
  t as install
@@ -0,0 +1,9 @@
1
+ import n from "./layout.vue.js";
2
+ const a = Object.assign({}, n, {
3
+ install(o) {
4
+ o.component(n.name, n);
5
+ }
6
+ });
7
+ export {
8
+ a as YzLayout
9
+ };
@@ -0,0 +1,46 @@
1
+ import { defineComponent as s, createBlock as u, openBlock as d, unref as e, withCtx as o, createVNode as a, renderSlot as r, normalizeProps as n, guardReactiveProps as i } from "vue";
2
+ import { VxeLayoutContainer as l, VxeLayoutHeader as p, VxeLayoutAside as f, VxeLayoutBody as _ } from "vxe-pc-ui";
3
+ const L = /* @__PURE__ */ s({
4
+ __name: "layout",
5
+ props: {
6
+ asideProps: {}
7
+ },
8
+ setup(c) {
9
+ return (t, m) => (d(), u(e(l), { vertical: "" }, {
10
+ default: o(() => [
11
+ a(e(p), null, {
12
+ default: o(() => [
13
+ r(t.$slots, "header")
14
+ ]),
15
+ _: 3
16
+ }),
17
+ a(e(l), null, {
18
+ default: o(() => [
19
+ a(e(f), n(i(t.asideProps)), {
20
+ default: o(() => [
21
+ r(t.$slots, "aside")
22
+ ]),
23
+ _: 3
24
+ }, 16),
25
+ a(e(l), { vertical: "" }, {
26
+ default: o(() => [
27
+ a(e(_), null, {
28
+ default: o(() => [
29
+ r(t.$slots, "body")
30
+ ]),
31
+ _: 3
32
+ })
33
+ ]),
34
+ _: 3
35
+ })
36
+ ]),
37
+ _: 3
38
+ })
39
+ ]),
40
+ _: 3
41
+ }));
42
+ }
43
+ });
44
+ export {
45
+ L as default
46
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./layout.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -1,20 +1,28 @@
1
- import { VxeUI as e } from "vxe-pc-ui";
1
+ import { VxeUI as i } from "vxe-pc-ui";
2
2
  class c {
3
- static messageId = "vxe-modal-message-id-d0556a60da2a";
3
+ static messageErrorId = "vxe-modal-message-id-error-d0556a60da2a";
4
+ static messageSuccessId = "vxe-modal-message-id-success-d0556a60da2a";
5
+ static messageWarningId = "vxe-modal-message-id-warning-d0556a60da2a";
4
6
  static options;
5
7
  static config = (s) => {
6
8
  this.options = s;
7
9
  };
8
10
  static showError = (s) => {
9
- this.showMessage(this.messageId, s, "error");
11
+ this.showMessage(this.messageErrorId, s, "error");
10
12
  };
11
- static showMessage = (s, t, o) => {
12
- const a = this.options || { duration: 3e3 };
13
- e.modal.message({
14
- ...a,
13
+ static showSuccess = (s) => {
14
+ this.showMessage(this.messageSuccessId, s, "success");
15
+ };
16
+ static showWarning = (s) => {
17
+ this.showMessage(this.messageWarningId, s, "warning");
18
+ };
19
+ static showMessage = (s, a, e) => {
20
+ const t = this.options || { duration: 3e3 };
21
+ i.modal.message({
22
+ ...t,
15
23
  id: s,
16
- content: t,
17
- status: o
24
+ content: a,
25
+ status: e
18
26
  });
19
27
  };
20
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.43",
3
+ "version": "1.0.45",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "宁波甬政vue-ui库",
package/types/all.d.ts CHANGED
@@ -1,9 +1,11 @@
1
1
  import { type App } from "vue";
2
2
  import YzDesginer from "./components/stimulsoft/desginer/desginer";
3
3
  import YzMessage from "./components/message/message";
4
+ import { YzLayout } from "./components/layout/layout";
4
5
  interface AllComponents {
5
6
  YzDesginer: typeof YzDesginer;
6
7
  YzMessage: typeof YzMessage;
8
+ YzLayout: typeof YzLayout;
7
9
  }
8
10
 
9
11
  export function install(app: App): void;
@@ -21,3 +23,4 @@ export {};
21
23
  export * from "./components/core/core";
22
24
  export * from "./components/stimulsoft/desginer/desginer";
23
25
  export * from "./components/message/message";
26
+ export * from "./components/layout/layout";
@@ -0,0 +1,19 @@
1
+ import { TWldy } from "@ningboyz/types";
2
+ import { YzComponent } from "../../core/core";
3
+ import { VxeLayoutAsideProps } from "vxe-pc-ui";
4
+
5
+ export declare const YzLayout: YzComponent<YzLayoutProps, {}, YzLayoutSlots, YzLayoutEmits, YzLayoutInstance>;
6
+
7
+ export type YzLayoutProps = {
8
+ asideProps: VxeLayoutAsideProps;
9
+ };
10
+
11
+ export type YzLayoutEmits = {};
12
+
13
+ export type YzLayoutSlots = {
14
+ header?: () => void;
15
+ aside?: () => void;
16
+ body?: () => void;
17
+ };
18
+
19
+ export type YzLayoutInstance = {};
@@ -3,5 +3,8 @@ export type YzMessageOptions = {
3
3
  };
4
4
 
5
5
  export declare class YzMessage {
6
+ public static config(options: YzMessageOptions);
6
7
  public static showError(message: string);
8
+ public static showSuccess(message: string);
9
+ public static showWarning(message: string);
7
10
  }
@@ -3,12 +3,8 @@ import { YzComponent } from "../../core/core";
3
3
 
4
4
  export declare const YzDesginer: YzComponent<YzDesginerProps, {}, YzDesginerSlots, YzDesginerEmits, YzDesginerInstance>;
5
5
 
6
- export namespace YzDesginerPropTypes {
7
- export type ListData = TWldy.IWldyDataResponse[];
8
- }
9
-
10
6
  export type YzDesginerProps = {
11
- listData: YzDesginerPropTypes.ListData;
7
+ listData: TWldy.IWldyDataResponse[];
12
8
  };
13
9
 
14
10
  export type YzDesginerInstance = {
@@ -19,6 +15,6 @@ export type YzDesginerEmits = {
19
15
  (event: "saveReport", fileName: string, json: string): void;
20
16
  };
21
17
 
22
- export interface YzDesginerSlots {
18
+ export type YzDesginerSlots = {
23
19
  title?: () => any;
24
- }
20
+ };