@ningboyz/vue 1.0.44 → 1.0.46

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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.44",
3
+ "version": "1.0.46",
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,20 @@
1
+ import { TWldy } from "@ningboyz/types";
2
+ import { YzComponent } from "../../core/core";
3
+ import { VxeLayoutAsideProps } from "vxe-pc-ui";
4
+ import { VNode } from "vue";
5
+
6
+ export declare const YzLayout: YzComponent<YzLayoutProps, {}, YzLayoutSlots, YzLayoutEmits, YzLayoutInstance>;
7
+
8
+ export type YzLayoutProps = {
9
+ asideProps: VxeLayoutAsideProps;
10
+ };
11
+
12
+ export type YzLayoutEmits = {};
13
+
14
+ export type YzLayoutSlots = {
15
+ header?: () => VNode | string;
16
+ aside?: () => VNode | string;
17
+ body?: () => VNode | string;
18
+ };
19
+
20
+ export type YzLayoutInstance = {};
@@ -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
+ };