@ningboyz/vue 1.0.76 → 1.0.78

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/vue",
3
- "version": "1.0.76",
3
+ "version": "1.0.78",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "宁波甬政vue-ui库",
@@ -11,6 +11,6 @@ export declare class YzMessage {
11
11
  static showError: (message: string) => void;
12
12
  static showSuccess: (message: string) => void;
13
13
  static showWarning: (message: string) => void;
14
- private static showMessage;
15
- static install: any;
14
+ static showMessage: (id: string, content: string, status: VxeModalPropTypes.Status) => void;
15
+ static showConfirm: (title: string, message: string, needMask = false, maskClosable = true) => Promise<boolean>;
16
16
  }
package/es/components.js DELETED
@@ -1,14 +0,0 @@
1
- import { YzDesginer as r } from "./stimulsoft/desginer/index.js";
2
- import { StimulsoftFactory as c } from "./stimulsoft/desginer/index.js";
3
- import { YzLayout as e } from "./layout/index.js";
4
- import { YzMessage as l } from "./message/index.js";
5
- const s = [r, e], n = (o) => {
6
- s.forEach((t) => o.use(t));
7
- };
8
- export {
9
- c as StimulsoftFactory,
10
- r as YzDesginer,
11
- e as YzLayout,
12
- l as YzMessage,
13
- n as install
14
- };
package/es/index.js DELETED
@@ -1,13 +0,0 @@
1
- import * as o from "./components.js";
2
- import { install as e } from "./components.js";
3
- import { StimulsoftFactory as s, YzDesginer as a } from "./stimulsoft/desginer/index.js";
4
- import { YzMessage as p } from "./message/index.js";
5
- import { YzLayout as i } from "./layout/index.js";
6
- export {
7
- s as StimulsoftFactory,
8
- a as YzDesginer,
9
- i as YzLayout,
10
- p as YzMessage,
11
- o as default,
12
- e as install
13
- };
@@ -1,8 +0,0 @@
1
- import o from "./layout.vue.js";
2
- o.install = (n) => {
3
- n.component(o.name, o);
4
- };
5
- const m = o;
6
- export {
7
- m as YzLayout
8
- };
@@ -1,46 +0,0 @@
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
- };
@@ -1,4 +0,0 @@
1
- import f from "./layout.vue.js";
2
- export {
3
- f as default
4
- };
@@ -1,5 +0,0 @@
1
- import { Message as e } from "./message.js";
2
- const o = e;
3
- export {
4
- o as YzMessage
5
- };
@@ -1,32 +0,0 @@
1
- import { VxeUI as i } from "vxe-pc-ui";
2
- class c {
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";
6
- static options;
7
- static config = (s) => {
8
- this.options = s;
9
- };
10
- static showError = (s) => {
11
- this.showMessage(this.messageErrorId, s, "error");
12
- };
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,
23
- id: s,
24
- content: a,
25
- status: e
26
- });
27
- };
28
- static install;
29
- }
30
- export {
31
- c as Message
32
- };
@@ -1,77 +0,0 @@
1
- import { useTemplateRef as l, onMounted as R, onUnmounted as d, watch as p, h as u } from "vue";
2
- import { Stimulsoft as n } from "./stimulsoft.reports.engine.js";
3
- import "./stimulsoft.reports.chart.js";
4
- import "./stimulsoft.reports.export.js";
5
- import "./stimulsoft.reports.import.xlsx.js";
6
- import "./stimulsoft.reports.maps.js";
7
- import "./stimulsoft.viewer.js";
8
- import "./stimulsoft.designer.js";
9
- import "./stimulsoft.blockly.editor.js";
10
- const y = {
11
- props: {
12
- report: {
13
- type: n.Report.StiReport,
14
- default: null
15
- },
16
- visible: {
17
- type: Boolean,
18
- default: !0
19
- },
20
- options: {
21
- type: n.Designer.StiDesignerOptions,
22
- default: null
23
- },
24
- id: {
25
- type: String,
26
- default: null
27
- }
28
- },
29
- emits: ["prepareVariables", "beginProcessData", "endProcessData", "createReport", "closeReport", "openReport", "openedReport", "saveReport", "saveAsReport", "previewReport", "exit", "assignedReport"],
30
- setup(i, o) {
31
- var e, s = l("parentRef");
32
- const a = () => {
33
- e = new n.Designer.StiDesigner(i.options, i.id, !1), e.renderHtml(s.value), m(), e.visible = i.visible;
34
- }, m = () => {
35
- e.onPrepareVariables = (t, r) => o.emit("prepareVariables", t, r), e.onBeginProcessData = (t, r) => o.emit("beginProcessData", t, r), e.onEndProcessData = (t) => o.emit("endProcessData", t), e.onCreateReport = (t, r) => o.emit("createReport", t, r), e.onCloseReport = (t, r) => o.emit("closeReport", t, r), e.onOpenReport = (t, r) => {
36
- t.preventDefault = !1, o.emit("openReport", t, r);
37
- }, e.onOpenedReport = (t, r) => o.emit("openedReport", t, r), e.onSaveReport = (t, r) => {
38
- t.preventDefault = !1, o.emit("saveReport", t, r);
39
- }, e.onSaveAsReport = (t, r) => o.emit("saveAsReport", t, r), e.onPreviewReport = (t, r) => o.emit("previewReport", t, r), e.onExit = (t) => o.emit("exit", t), e.onAssignedReport = (t) => o.emit("assignedReport", t);
40
- };
41
- return R(() => {
42
- setTimeout(() => {
43
- a(), e.report = i.report;
44
- });
45
- }), d(() => {
46
- e?.dispose();
47
- }), p(
48
- () => i.report,
49
- () => {
50
- e && (e.report = i.report);
51
- },
52
- { immediate: !0 }
53
- ), p(
54
- () => i.options,
55
- () => {
56
- e && (a(), e.report = i.report);
57
- },
58
- { immediate: !0, deep: !0 }
59
- ), p(
60
- () => i.visible,
61
- () => {
62
- e && (e.visible = i.visible);
63
- },
64
- { immediate: !0 }
65
- ), p(
66
- () => i.id,
67
- () => {
68
- e && (a(), e.report = i.report);
69
- },
70
- { immediate: !0 }
71
- ), () => u("div", { ref: "parentRef" });
72
- }
73
- };
74
- export {
75
- y as Designer,
76
- n as Stimulsoft
77
- };