@kp-ui/lowcode 2.14.0-beta.10 → 2.14.0-beta.11
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,17 +1,17 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import o from "../../../../utils/i18n.js";
|
|
2
|
+
import l from "../../refMixinDesign.js";
|
|
3
3
|
import g from "../field-widget/index.js";
|
|
4
|
-
import
|
|
5
|
-
import { resolveComponent as
|
|
4
|
+
import c from "./container-wrapper.vue.js";
|
|
5
|
+
import { resolveComponent as h, createBlock as m, openBlock as r, withCtx as f, createElementBlock as p, withModifiers as w, normalizeClass as L, createElementVNode as d, toDisplayString as x } from "vue";
|
|
6
6
|
/* empty css */
|
|
7
|
-
import
|
|
7
|
+
import C from "../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
8
|
const W = {
|
|
9
9
|
name: "vf-dialog-widget",
|
|
10
10
|
componentName: "VfDialogWidget",
|
|
11
|
-
mixins: [
|
|
11
|
+
mixins: [o, l],
|
|
12
12
|
inject: ["refList"],
|
|
13
13
|
components: {
|
|
14
|
-
ContainerWrapper:
|
|
14
|
+
ContainerWrapper: c,
|
|
15
15
|
...g
|
|
16
16
|
},
|
|
17
17
|
props: {
|
|
@@ -38,6 +38,10 @@ const W = {
|
|
|
38
38
|
this.initRefList();
|
|
39
39
|
},
|
|
40
40
|
methods: {
|
|
41
|
+
handleClickTitle() {
|
|
42
|
+
const e = new URL(window.location.href), { title: i, formCode: t } = this.widget.options;
|
|
43
|
+
t && (e.searchParams.set("formCode", t), e.searchParams.set("remark", i), window.open(e.href));
|
|
44
|
+
},
|
|
41
45
|
onDialogDragEnd(e, i) {
|
|
42
46
|
},
|
|
43
47
|
onDialogDragAdd(e, i) {
|
|
@@ -71,31 +75,34 @@ const W = {
|
|
|
71
75
|
}
|
|
72
76
|
}
|
|
73
77
|
}
|
|
74
|
-
}, v = { class: "dialog-title" }
|
|
75
|
-
function u(e, i, t,
|
|
76
|
-
const
|
|
77
|
-
return
|
|
78
|
+
}, v = { class: "dialog-title" };
|
|
79
|
+
function u(e, i, t, k, D, s) {
|
|
80
|
+
const a = h("container-wrapper");
|
|
81
|
+
return r(), m(a, {
|
|
78
82
|
designer: t.designer,
|
|
79
83
|
widget: t.widget,
|
|
80
84
|
"parent-widget": t.parentWidget,
|
|
81
85
|
"parent-list": t.parentList,
|
|
82
86
|
"index-of-parent-list": t.indexOfParentList
|
|
83
87
|
}, {
|
|
84
|
-
default:
|
|
85
|
-
(
|
|
86
|
-
class:
|
|
88
|
+
default: f(() => [
|
|
89
|
+
(r(), p("div", {
|
|
90
|
+
class: L(["dialog-container", [s.selected ? "selected" : "", s.customClass]]),
|
|
87
91
|
key: t.widget.id,
|
|
88
|
-
onClick: i[
|
|
92
|
+
onClick: i[1] || (i[1] = w((n) => s.selectWidget(t.widget), ["stop"]))
|
|
89
93
|
}, [
|
|
90
|
-
|
|
91
|
-
|
|
94
|
+
d("div", v, [
|
|
95
|
+
d("div", {
|
|
96
|
+
class: "tpf-link",
|
|
97
|
+
onClick: i[0] || (i[0] = (...n) => s.handleClickTitle && s.handleClickTitle(...n))
|
|
98
|
+
}, x(t.widget.options.title), 1)
|
|
92
99
|
])
|
|
93
100
|
], 2))
|
|
94
101
|
]),
|
|
95
102
|
_: 1
|
|
96
103
|
}, 8, ["designer", "widget", "parent-widget", "parent-list", "index-of-parent-list"]);
|
|
97
104
|
}
|
|
98
|
-
const
|
|
105
|
+
const E = /* @__PURE__ */ C(W, [["render", u], ["__scopeId", "data-v-2edf0ee5"]]);
|
|
99
106
|
export {
|
|
100
|
-
|
|
107
|
+
E as default
|
|
101
108
|
};
|