sun-form-v3 1.0.214 → 1.0.215
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/dist/{index-CYAqIFbb.js → index-8pQQiQa2.js} +1 -1
- package/dist/{index-s8u_Q71-.js → index-B5pOLIkQ.js} +68 -28
- package/dist/{index-XqEY8GOL.js → index-CDwZlfBr.js} +1 -1
- package/dist/{index-D8qZFKQ0.js → index-CbQuPIK7.js} +1 -1
- package/dist/{index-D--jRdLw.js → index-Dktw5ASc.js} +1 -1
- package/dist/{index-CUujBQM2.js → index-Dz50nRfP.js} +1 -1
- package/dist/{index-BqH_WUt5.js → index-Pxd9CjtH.js} +1 -1
- package/dist/{index-CA3HkVw1.js → index-miCn5duR.js} +1 -1
- package/dist/sun-form-v3.es.js +1 -1
- package/dist/sun-form-v3.umd.js +3 -3
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as N, ref as h, resolveComponent as u, openBlock as C, createElementBlock as U, Fragment as k, createVNode as e, withCtx as l, createTextVNode as g, unref as d, isRef as j, createElementVNode as c, pushScopeId as I, popScopeId as J } from "vue";
|
|
2
|
-
import { ae as T } from "./index-
|
|
2
|
+
import { ae as T } from "./index-B5pOLIkQ.js";
|
|
3
3
|
const E = (m) => (I("data-v-ede8dcab"), m = m(), J(), m), H = /* @__PURE__ */ E(() => /* @__PURE__ */ c("span", null, "数据配置", -1)), B = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
|
|
4
4
|
__name: "dataConfig",
|
|
5
5
|
props: {
|
|
@@ -198408,7 +198408,7 @@ const $1r = {
|
|
|
198408
198408
|
widget: r.widget,
|
|
198409
198409
|
value: a.value
|
|
198410
198410
|
});
|
|
198411
|
-
}, u = (
|
|
198411
|
+
}, u = (g, m) => {
|
|
198412
198412
|
a.value && o.value.setProperties(
|
|
198413
198413
|
a.value.id,
|
|
198414
198414
|
a.value.properties
|
|
@@ -198417,17 +198417,51 @@ const $1r = {
|
|
|
198417
198417
|
o.value.render();
|
|
198418
198418
|
}, p = () => {
|
|
198419
198419
|
o.value.getSnapshot();
|
|
198420
|
-
}, f = (
|
|
198421
|
-
o.value
|
|
198420
|
+
}, f = (g = []) => {
|
|
198421
|
+
if (!o.value)
|
|
198422
|
+
return;
|
|
198423
|
+
const { nodes: m } = o.value.getGraphData();
|
|
198424
|
+
m.forEach((v) => {
|
|
198425
|
+
const _ = o.value.getNodeModelById(v.id);
|
|
198426
|
+
if (_) {
|
|
198427
|
+
const y = g.includes(v.id);
|
|
198428
|
+
o.value.setProperties(v.id, { isActived: y }), _.type === "text" ? y ? _.setStyles({
|
|
198429
|
+
text: { color: "#446eff" }
|
|
198430
|
+
}) : _.setStyles({
|
|
198431
|
+
text: { color: "#000000" }
|
|
198432
|
+
}) : y ? _.setStyles({
|
|
198433
|
+
fill: "rgba(68, 110, 255, 0.15)",
|
|
198434
|
+
stroke: "#446eff",
|
|
198435
|
+
strokeWidth: 3
|
|
198436
|
+
}) : _.setStyles({
|
|
198437
|
+
fill: "#FFFFFF",
|
|
198438
|
+
stroke: "#446eff",
|
|
198439
|
+
strokeWidth: 2
|
|
198440
|
+
});
|
|
198441
|
+
}
|
|
198442
|
+
});
|
|
198443
|
+
}, h = (g) => {
|
|
198444
|
+
o.value.render(g), g && g.nodes && g.nodes.forEach((m) => {
|
|
198445
|
+
if (m.properties && m.properties.isActived) {
|
|
198446
|
+
const v = o.value.getNodeModelById(m.id);
|
|
198447
|
+
v && (v.type === "text" ? v.setStyles({
|
|
198448
|
+
text: { color: "#446eff" }
|
|
198449
|
+
}) : v.setStyles({
|
|
198450
|
+
fill: "rgba(68, 110, 255, 0.15)",
|
|
198451
|
+
stroke: "#446eff",
|
|
198452
|
+
strokeWidth: 3
|
|
198453
|
+
}));
|
|
198454
|
+
}
|
|
198455
|
+
});
|
|
198422
198456
|
};
|
|
198423
198457
|
return Gr(() => {
|
|
198424
|
-
const
|
|
198425
|
-
|
|
198458
|
+
const g = s.value.viewOnly, m = [hJe, cJe];
|
|
198459
|
+
g || m.push(pJe, gJe), o.value = new C8({
|
|
198426
198460
|
container: i.value,
|
|
198427
|
-
plugins:
|
|
198461
|
+
plugins: m,
|
|
198428
198462
|
stopScrollGraph: !0,
|
|
198429
198463
|
stopZoomGraph: !0,
|
|
198430
|
-
grid:
|
|
198464
|
+
grid: g ? !1 : {
|
|
198431
198465
|
type: "dot",
|
|
198432
198466
|
size: 20
|
|
198433
198467
|
}
|
|
@@ -198442,10 +198476,10 @@ const $1r = {
|
|
|
198442
198476
|
.lf-canvas-overlay {
|
|
198443
198477
|
background: #FFFFFF;
|
|
198444
198478
|
}
|
|
198445
|
-
`, o.value.on("node:click", ({ data:
|
|
198446
|
-
a.value =
|
|
198447
|
-
}), o.value.on("edge:click", ({ data:
|
|
198448
|
-
a.value =
|
|
198479
|
+
`, o.value.on("node:click", ({ data: v }) => {
|
|
198480
|
+
a.value = v;
|
|
198481
|
+
}), o.value.on("edge:click", ({ data: v }) => {
|
|
198482
|
+
a.value = v;
|
|
198449
198483
|
}), o.value.on("blank:click", () => {
|
|
198450
198484
|
a.value = null;
|
|
198451
198485
|
}), o.value.extension.dndPanel && o.value.extension.dndPanel.setPatternItems([
|
|
@@ -198497,12 +198531,13 @@ const $1r = {
|
|
|
198497
198531
|
});
|
|
198498
198532
|
}), e({
|
|
198499
198533
|
getData: c,
|
|
198500
|
-
setData:
|
|
198534
|
+
setData: h,
|
|
198501
198535
|
clearData: d,
|
|
198502
|
-
exportImg: p
|
|
198503
|
-
|
|
198504
|
-
|
|
198505
|
-
|
|
198536
|
+
exportImg: p,
|
|
198537
|
+
setActiveNodes: f
|
|
198538
|
+
}), (g, m) => {
|
|
198539
|
+
const v = rn("el-input"), _ = rn("common-label-container"), y = rn("el-button"), S = rn("Download"), b = rn("el-icon"), E = rn("common-widget-label-container");
|
|
198540
|
+
return se(), Nt(E, {
|
|
198506
198541
|
props: I(s),
|
|
198507
198542
|
class: "relative"
|
|
198508
198543
|
}, {
|
|
@@ -198514,40 +198549,40 @@ const $1r = {
|
|
|
198514
198549
|
class: "h-full w-full"
|
|
198515
198550
|
}, null, 512),
|
|
198516
198551
|
a.value && !I(s).viewOnly ? (se(), De("div", $1r, [
|
|
198517
|
-
ze(
|
|
198552
|
+
ze(_, {
|
|
198518
198553
|
labelWidth: "70px",
|
|
198519
198554
|
label: "节点字段"
|
|
198520
198555
|
}, {
|
|
198521
198556
|
default: Ye(() => [
|
|
198522
|
-
ze(
|
|
198557
|
+
ze(v, {
|
|
198523
198558
|
modelValue: a.value.properties.zdname,
|
|
198524
|
-
"onUpdate:modelValue":
|
|
198559
|
+
"onUpdate:modelValue": m[0] || (m[0] = (w) => a.value.properties.zdname = w),
|
|
198525
198560
|
onInput: u,
|
|
198526
198561
|
placeholder: "填写节点字段"
|
|
198527
198562
|
}, null, 8, ["modelValue"])
|
|
198528
198563
|
]),
|
|
198529
198564
|
_: 1
|
|
198530
198565
|
}),
|
|
198531
|
-
ze(
|
|
198566
|
+
ze(_, {
|
|
198532
198567
|
labelWidth: "70px",
|
|
198533
198568
|
label: "节点备注"
|
|
198534
198569
|
}, {
|
|
198535
198570
|
default: Ye(() => [
|
|
198536
|
-
ze(
|
|
198571
|
+
ze(v, {
|
|
198537
198572
|
modelValue: a.value.properties.label,
|
|
198538
|
-
"onUpdate:modelValue":
|
|
198573
|
+
"onUpdate:modelValue": m[1] || (m[1] = (w) => a.value.properties.label = w),
|
|
198539
198574
|
onInput: u,
|
|
198540
198575
|
placeholder: "填写节点字段"
|
|
198541
198576
|
}, null, 8, ["modelValue"])
|
|
198542
198577
|
]),
|
|
198543
198578
|
_: 1
|
|
198544
198579
|
}),
|
|
198545
|
-
ze(
|
|
198580
|
+
ze(_, {
|
|
198546
198581
|
labelWidth: "70px",
|
|
198547
198582
|
label: "节点点击"
|
|
198548
198583
|
}, {
|
|
198549
198584
|
default: Ye(() => [
|
|
198550
|
-
ze(
|
|
198585
|
+
ze(y, {
|
|
198551
198586
|
type: "primary",
|
|
198552
198587
|
onClick: l
|
|
198553
198588
|
}, {
|
|
@@ -198564,9 +198599,9 @@ const $1r = {
|
|
|
198564
198599
|
onClick: p,
|
|
198565
198600
|
class: "absolute left-2 bottom-2 bg-white border overflow-auto shadow-lg px-2 py-1 cursor-pointer"
|
|
198566
198601
|
}, [
|
|
198567
|
-
ze(
|
|
198602
|
+
ze(b, null, {
|
|
198568
198603
|
default: Ye(() => [
|
|
198569
|
-
ze(
|
|
198604
|
+
ze(S)
|
|
198570
198605
|
]),
|
|
198571
198606
|
_: 1
|
|
198572
198607
|
})
|
|
@@ -253755,7 +253790,7 @@ const U7r = { key: 1 }, z7r = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
|
|
|
253755
253790
|
"element-plus": xbn,
|
|
253756
253791
|
"@element-plus/icons-vue": aen,
|
|
253757
253792
|
echarts: tUn,
|
|
253758
|
-
"echarts-gl": () => import("./index-
|
|
253793
|
+
"echarts-gl": () => import("./index-Pxd9CjtH.js")
|
|
253759
253794
|
},
|
|
253760
253795
|
async getFile(d) {
|
|
253761
253796
|
return d === "element-plus" ? "export * from 'element-plus'; export { default } from 'element-plus';" : d === "@element-plus/icons-vue" ? "export * from '@element-plus/icons-vue'; export { default } from '@element-plus/icons-vue';" : d === "echarts" ? "export * from 'echarts'; export { default } from 'echarts';" : d === "echarts-gl" ? "import 'echarts-gl'; export {};" : d === "vue" ? "export * from 'vue'; export { default } from 'vue';" : s();
|
|
@@ -256732,6 +256767,11 @@ const U7r = { key: 1 }, z7r = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
|
|
|
256732
256767
|
name: "app.exportImg",
|
|
256733
256768
|
description: "导出截图",
|
|
256734
256769
|
example: "app.getMethodById({id}).exportImg()"
|
|
256770
|
+
},
|
|
256771
|
+
{
|
|
256772
|
+
name: "app.setActiveNodes",
|
|
256773
|
+
description: "激活流程图节点(变蓝)",
|
|
256774
|
+
example: 'app.getMethodById({id}).setActiveNodes(["node_id_1", "node_id_2"])'
|
|
256735
256775
|
}
|
|
256736
256776
|
],
|
|
256737
256777
|
cascader: [
|
|
@@ -258285,7 +258325,7 @@ const U7r = { key: 1 }, z7r = /* @__PURE__ */ Object.assign({ name: "widget-sfc"
|
|
|
258285
258325
|
},
|
|
258286
258326
|
setup(t) {
|
|
258287
258327
|
const n = Object.fromEntries(
|
|
258288
|
-
Object.entries(/* @__PURE__ */ Object.assign({ "../widgetConfigComps/config-alert/index.vue": () => import("./index-ZVIqhtUw.js"), "../widgetConfigComps/config-button/index.vue": () => import("./index-CvnfmMTc.js"), "../widgetConfigComps/config-card/index.vue": () => import("./index-BJ0vPF5A.js"), "../widgetConfigComps/config-cascader/index.vue": () => import("./index-BcUJtkEW.js"), "../widgetConfigComps/config-checkCode/index.vue": () => import("./index-kUQct_cM.js"), "../widgetConfigComps/config-checkbox/index.vue": () => import("./index-B2ieNi21.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-
|
|
258328
|
+
Object.entries(/* @__PURE__ */ Object.assign({ "../widgetConfigComps/config-alert/index.vue": () => import("./index-ZVIqhtUw.js"), "../widgetConfigComps/config-button/index.vue": () => import("./index-CvnfmMTc.js"), "../widgetConfigComps/config-card/index.vue": () => import("./index-BJ0vPF5A.js"), "../widgetConfigComps/config-cascader/index.vue": () => import("./index-BcUJtkEW.js"), "../widgetConfigComps/config-checkCode/index.vue": () => import("./index-kUQct_cM.js"), "../widgetConfigComps/config-checkbox/index.vue": () => import("./index-B2ieNi21.js"), "../widgetConfigComps/config-codeEditor/index.vue": () => import("./index-CzkuANsf.js"), "../widgetConfigComps/config-datatable/index.vue": () => import("./index-CDwZlfBr.js"), "../widgetConfigComps/config-date/index.vue": () => import("./index-C0NmmaE2.js"), "../widgetConfigComps/config-div/index.vue": () => import("./index-BAEL_Fhr.js"), "../widgetConfigComps/config-dropdown/index.vue": () => import("./index-BZ_40krq.js"), "../widgetConfigComps/config-echarts/index.vue": () => import("./index-Dktw5ASc.js"), "../widgetConfigComps/config-editor/index.vue": () => import("./index-TI_vl3EZ.js"), "../widgetConfigComps/config-file/index.vue": () => import("./index-nY_E-1Gm.js"), "../widgetConfigComps/config-flow/index.vue": () => import("./index-Mj7XTOXw.js"), "../widgetConfigComps/config-flowForm/index.vue": () => import("./index-CHAFY_vi.js"), "../widgetConfigComps/config-form/index.vue": () => import("./index-CIaeKFCl.js"), "../widgetConfigComps/config-homepage/index.vue": () => import("./index-CifChfEv.js"), "../widgetConfigComps/config-iframe/index.vue": () => import("./index-BkftF1Ew.js"), "../widgetConfigComps/config-image/index.vue": () => import("./index-dGJDj4ro.js"), "../widgetConfigComps/config-input/index.vue": () => import("./index-kzElMYkk.js"), "../widgetConfigComps/config-layout/index.vue": () => import("./index-FVwll8uc.js"), "../widgetConfigComps/config-modal/index.vue": () => import("./index-CiNAZsvy.js"), "../widgetConfigComps/config-modal2/index.vue": () => import("./index-D7zr1ztZ.js"), "../widgetConfigComps/config-progress/index.vue": () => import("./index-c0zw96Jm.js"), "../widgetConfigComps/config-qrcode/index.vue": () => import("./index-DHjsGntq.js"), "../widgetConfigComps/config-radio/index.vue": () => import("./index-DYFp4hH-.js"), "../widgetConfigComps/config-rate/index.vue": () => import("./index-B0fldwhm.js"), "../widgetConfigComps/config-select/index.vue": () => import("./index-B1b5cejN.js"), "../widgetConfigComps/config-selects/index.vue": () => import("./index-CE0gDB6E.js"), "../widgetConfigComps/config-slot/index.vue": () => import("./index-HNpIFY7h.js"), "../widgetConfigComps/config-statistic/index.vue": () => import("./index-Dz50nRfP.js"), "../widgetConfigComps/config-steps/index.vue": () => import("./index-CbQuPIK7.js"), "../widgetConfigComps/config-switch/index.vue": () => import("./index-Dag4zSq7.js"), "../widgetConfigComps/config-tag/index.vue": () => import("./index-miCn5duR.js"), "../widgetConfigComps/config-text/index.vue": () => import("./index-BYbxnzUx.js"), "../widgetConfigComps/config-time/index.vue": () => import("./index-zkXVDNsL.js"), "../widgetConfigComps/config-timeline/index.vue": () => import("./index-8pQQiQa2.js"), "../widgetConfigComps/config-title/index.vue": () => import("./index-C78PiK5v.js"), "../widgetConfigComps/config-transfer/index.vue": () => import("./index-DQ3y00Pa.js") })).map(([$, k]) => {
|
|
258289
258329
|
const j = $.match(/\/([^/]+)\/index\.vue$/);
|
|
258290
258330
|
return [j ? j[1] : null, Rkt(k)];
|
|
258291
258331
|
})
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as k, resolveComponent as m, openBlock as f, createElementBlock as H, Fragment as I, createVNode as e, unref as l, withCtx as a, createTextVNode as v, isRef as M, createElementVNode as V, toDisplayString as S, createCommentVNode as T, pushScopeId as J, popScopeId as K, createBlock as N, renderList as Q } from "vue";
|
|
2
|
-
import { ae as W } from "./index-
|
|
2
|
+
import { ae as W } from "./index-B5pOLIkQ.js";
|
|
3
3
|
const A = (_) => (J("data-v-75dc2686"), _ = _(), K(), _), G = /* @__PURE__ */ A(() => /* @__PURE__ */ V("span", null, "复杂表头配置", -1)), X = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "flex h-full flex-col"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as N, ref as y, resolveComponent as i, openBlock as C, createElementBlock as k, Fragment as O, createVNode as e, withCtx as l, createTextVNode as m, unref as d, isRef as j, createElementVNode as _, pushScopeId as I, popScopeId as J } from "vue";
|
|
2
|
-
import { ae as E } from "./index-
|
|
2
|
+
import { ae as E } from "./index-B5pOLIkQ.js";
|
|
3
3
|
const H = (p) => (I("data-v-4c8b2df2"), p = p(), J(), p), B = /* @__PURE__ */ H(() => /* @__PURE__ */ _("span", null, "数据配置", -1)), T = { class: "h-full flex flex-col" }, D = { class: "flex-1 overflow-hidden" }, F = {
|
|
4
4
|
__name: "dataConfig",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as j, ref as g, onMounted as $, resolveComponent as f, openBlock as _, createElementBlock as v, Fragment as x, createVNode as r, withCtx as o, createTextVNode as C, createElementVNode as u, renderList as B, unref as V, toDisplayString as N, nextTick as U, createBlock as D } from "vue";
|
|
2
|
-
import { af as E, ag as M } from "./index-
|
|
2
|
+
import { af as E, ag as M } from "./index-B5pOLIkQ.js";
|
|
3
3
|
const R = /* @__PURE__ */ u("span", null, "图表选择", -1), S = { class: "flex-wrap flex" }, T = ["onClick"], z = { class: "inner cursor-pointer hover:shadow-md hover:shadow-blue-200 border w-full h-full p-1 flex flex-col overflow-hidden items-center rounded-md shadow-sm" }, F = { class: "lab border-t w-full text-center mt-1 font-bold" }, L = /* @__PURE__ */ Object.assign({ name: "chatChoose" }, {
|
|
4
4
|
__name: "chartChoose",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { computed as j, ref as y, resolveComponent as i, openBlock as C, createElementBlock as k, Fragment as U, createVNode as e, withCtx as l, createTextVNode as V, unref as d, isRef as z, createElementVNode as m, pushScopeId as I, popScopeId as J } from "vue";
|
|
2
|
-
import { ae as E, ah as H } from "./index-
|
|
2
|
+
import { ae as E, ah as H } from "./index-B5pOLIkQ.js";
|
|
3
3
|
const B = (r) => (I("data-v-657a5bea"), r = r(), J(), r), T = /* @__PURE__ */ B(() => /* @__PURE__ */ m("span", null, "数据配置", -1)), D = { class: "h-full flex flex-col" }, F = { class: "flex-1 overflow-hidden" }, M = /* @__PURE__ */ Object.assign({ name: "commonStyleConfig" }, {
|
|
4
4
|
__name: "dataConfig",
|
|
5
5
|
props: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { u as He, i as Hs, a as Vs, b as ks, c as yt, m as da, A as Ws, L as Xs, p as Mo, R as No, g as Zs, r as Pn, e as xt, d as js, f as qs, h as Ys, j as Ks, Z as Qs, C as Dr, k as se, l as Ut, n as $s, o as Po, M as Xi, q as Ni, s as Pi, t as oi, v as Ro, w as Io, x as Oo, y as Zi, z as ji, B as jn, D as Js, O as el, E as tl, F as rl, G as Rn, H as si, S as Tt, I as qn, J as il, K as nl, N as va, P as al, Q as ol, T as Yn, U as sl, V as pr, W as pa, X as ll, Y as hl, _ as ul, $ as Bo, a0 as ft, a1 as ct, a2 as fl, a3 as cl, a4 as di, a5 as dl, a6 as vl, a7 as pl, a8 as Fo, a9 as ml, aa as _l, ab as ma, ac as _a, ad as ga } from "./index-
|
|
1
|
+
import { u as He, i as Hs, a as Vs, b as ks, c as yt, m as da, A as Ws, L as Xs, p as Mo, R as No, g as Zs, r as Pn, e as xt, d as js, f as qs, h as Ys, j as Ks, Z as Qs, C as Dr, k as se, l as Ut, n as $s, o as Po, M as Xi, q as Ni, s as Pi, t as oi, v as Ro, w as Io, x as Oo, y as Zi, z as ji, B as jn, D as Js, O as el, E as tl, F as rl, G as Rn, H as si, S as Tt, I as qn, J as il, K as nl, N as va, P as al, Q as ol, T as Yn, U as sl, V as pr, W as pa, X as ll, Y as hl, _ as ul, $ as Bo, a0 as ft, a1 as ct, a2 as fl, a3 as cl, a4 as di, a5 as dl, a6 as vl, a7 as pl, a8 as Fo, a9 as ml, aa as _l, ab as ma, ac as _a, ad as ga } from "./index-B5pOLIkQ.js";
|
|
2
2
|
He([Hs, Vs]);
|
|
3
3
|
He(ks);
|
|
4
4
|
function ya(e, t, r) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as g, resolveComponent as u, openBlock as b, createElementBlock as V, Fragment as w, createVNode as e, withCtx as n, unref as a } from "vue";
|
|
2
|
-
import { ah as c } from "./index-
|
|
2
|
+
import { ah as c } from "./index-B5pOLIkQ.js";
|
|
3
3
|
const k = /* @__PURE__ */ Object.assign({ name: "config-text" }, {
|
|
4
4
|
__name: "index",
|
|
5
5
|
props: {
|
package/dist/sun-form-v3.es.js
CHANGED