@web-utils/component 2.8.18 → 2.8.19
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/flow-designer/index.mjs +22 -42
- package/package.json +1 -1
- package/web-types.json +4 -1
package/flow-designer/index.mjs
CHANGED
|
@@ -9340,23 +9340,7 @@ var Ai = function() {
|
|
|
9340
9340
|
staticClass: "my-process-designer__header"
|
|
9341
9341
|
}, [e._t("control-header"), e.$slots["control-header"] ? e._e() : [t("ElButtonGroup", {
|
|
9342
9342
|
key: "file-control"
|
|
9343
|
-
}, [e.simulation ? t("ElTooltip", {
|
|
9344
|
-
attrs: {
|
|
9345
|
-
effect: "light",
|
|
9346
|
-
content: "保存流程"
|
|
9347
|
-
}
|
|
9348
|
-
}, [t("ElButton", {
|
|
9349
|
-
attrs: {
|
|
9350
|
-
size: e.headerButtonSize,
|
|
9351
|
-
type: e.headerButtonType,
|
|
9352
|
-
icon: "el-icon-save"
|
|
9353
|
-
},
|
|
9354
|
-
on: {
|
|
9355
|
-
click: function(n) {
|
|
9356
|
-
return e.$refs.refFile.click();
|
|
9357
|
-
}
|
|
9358
|
-
}
|
|
9359
|
-
}, [e._v(" 保存 ")])], 1) : e._e(), e.simulation ? t("ElTooltip", {
|
|
9343
|
+
}, [e._t("toolbar-buttons"), e.simulation ? t("ElTooltip", {
|
|
9360
9344
|
attrs: {
|
|
9361
9345
|
effect: "light",
|
|
9362
9346
|
content: "导入流程"
|
|
@@ -9466,7 +9450,7 @@ var Ai = function() {
|
|
|
9466
9450
|
on: {
|
|
9467
9451
|
click: e.processSimulation
|
|
9468
9452
|
}
|
|
9469
|
-
}, [e._v(" 模拟 ")])], 1) : e._e()],
|
|
9453
|
+
}, [e._v(" 模拟 ")])], 1) : e._e()], 2), t("ElButtonGroup", {
|
|
9470
9454
|
key: "align-control"
|
|
9471
9455
|
}, [t("ElTooltip", {
|
|
9472
9456
|
attrs: {
|
|
@@ -9853,33 +9837,20 @@ const $i = {
|
|
|
9853
9837
|
* @param {string} type
|
|
9854
9838
|
* @param {*} name
|
|
9855
9839
|
*/
|
|
9856
|
-
downloadProcess(e, i) {
|
|
9840
|
+
downloadProcess(e, i = "diagram") {
|
|
9857
9841
|
return u(this, null, function* () {
|
|
9858
9842
|
try {
|
|
9859
|
-
const n = this;
|
|
9860
9843
|
if (e === "xml" || e === "bpmn") {
|
|
9861
|
-
const {
|
|
9862
|
-
|
|
9863
|
-
|
|
9864
|
-
|
|
9865
|
-
s && console.error(`[Process Designer Warn ]: ${s.message || s}`);
|
|
9866
|
-
const {
|
|
9867
|
-
href: a,
|
|
9868
|
-
filename: o
|
|
9869
|
-
} = n.setEncoded(e.toUpperCase(), i, r);
|
|
9870
|
-
t(a, o);
|
|
9844
|
+
const { err: n, xml: s } = yield this.bpmnModeler.saveXML();
|
|
9845
|
+
n && console.error(`[Process Designer Warn ]: ${n.message || n}`);
|
|
9846
|
+
const { href: r, filename: a } = this.setEncoded(e.toUpperCase(), i, s);
|
|
9847
|
+
t(r, a);
|
|
9871
9848
|
} else {
|
|
9872
|
-
const {
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
} =
|
|
9876
|
-
|
|
9877
|
-
return console.error(s);
|
|
9878
|
-
const {
|
|
9879
|
-
href: a,
|
|
9880
|
-
filename: o
|
|
9881
|
-
} = n.setEncoded("SVG", i, r);
|
|
9882
|
-
t(a, o);
|
|
9849
|
+
const { err: n, svg: s } = yield this.bpmnModeler.saveSVG();
|
|
9850
|
+
if (n)
|
|
9851
|
+
return console.error(n);
|
|
9852
|
+
const { href: r, filename: a } = this.setEncoded("SVG", i, s);
|
|
9853
|
+
t(r, a);
|
|
9883
9854
|
}
|
|
9884
9855
|
} catch (n) {
|
|
9885
9856
|
console.error(`[Process Designer Warn ]: ${n.message || n}`);
|
|
@@ -10018,7 +9989,16 @@ var Pi = function() {
|
|
|
10018
9989
|
return e.$emit("input", n);
|
|
10019
9990
|
},
|
|
10020
9991
|
"init-finished": e.initModeler
|
|
10021
|
-
}
|
|
9992
|
+
},
|
|
9993
|
+
scopedSlots: e._u([{
|
|
9994
|
+
key: "toolbar-buttons",
|
|
9995
|
+
fn: function() {
|
|
9996
|
+
return [e._t("toolbar-buttons", null, {
|
|
9997
|
+
modeler: e.modeler
|
|
9998
|
+
})];
|
|
9999
|
+
},
|
|
10000
|
+
proxy: !0
|
|
10001
|
+
}], null, !0)
|
|
10022
10002
|
}, "ProcessDesigner", e.controlForm, !1)), t("PropertiesPanel", {
|
|
10023
10003
|
key: `penal-${e.reloadIndex}`,
|
|
10024
10004
|
staticClass: "process-panel",
|
package/package.json
CHANGED
package/web-types.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"framework": "vue",
|
|
4
4
|
"name": "@web-utils/component",
|
|
5
|
-
"version": "2.8.
|
|
5
|
+
"version": "2.8.19",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"description-markup": "markdown",
|
|
@@ -2470,6 +2470,9 @@
|
|
|
2470
2470
|
}
|
|
2471
2471
|
],
|
|
2472
2472
|
"slots": [
|
|
2473
|
+
{
|
|
2474
|
+
"name": "toolbar-buttons"
|
|
2475
|
+
},
|
|
2473
2476
|
{
|
|
2474
2477
|
"name": "task"
|
|
2475
2478
|
}
|