@kp-ui/lowcode 2.14.0-beta.26 → 2.14.0-beta.28
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 +1 -1
- package/src/components/form-designer/form-widget/container-widget/index.js +1 -1
- package/src/components/form-render/container-item/index.js +11 -10
- package/src/components/{form-designer/form-widget/container-widget → form-render/container-item}/vf-box-item.vue.js +33 -40
- package/stats.html +1 -1
- package/styles/style.css +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineAsyncComponent as r } from "vue";
|
|
2
2
|
import { getFileName as m } from "../../../../utils/getFileName.js";
|
|
3
|
-
const t = /* @__PURE__ */ Object.assign({ "./container-wrapper.vue": () => import("./container-wrapper.vue.js"), "./data-table-widget.vue": () => import("./data-table-widget.vue.js"), "./grid-col-widget.vue": () => import("./grid-col-widget.vue.js"), "./grid-sub-form-widget.vue": () => import("./grid-sub-form-widget.vue.js"), "./grid-widget.vue": () => import("./grid-widget.vue.js"), "./sub-form-widget.vue": () => import("./sub-form-widget.vue.js"), "./tab-widget.vue": () => import("./tab-widget.vue.js"), "./table-cell-widget.vue": () => import("./table-cell-widget.vue.js"), "./table-widget.vue": () => import("./table-widget.vue.js"), "./vf-box-
|
|
3
|
+
const t = /* @__PURE__ */ Object.assign({ "./container-wrapper.vue": () => import("./container-wrapper.vue.js"), "./data-table-widget.vue": () => import("./data-table-widget.vue.js"), "./grid-col-widget.vue": () => import("./grid-col-widget.vue.js"), "./grid-sub-form-widget.vue": () => import("./grid-sub-form-widget.vue.js"), "./grid-widget.vue": () => import("./grid-widget.vue.js"), "./sub-form-widget.vue": () => import("./sub-form-widget.vue.js"), "./tab-widget.vue": () => import("./tab-widget.vue.js"), "./table-cell-widget.vue": () => import("./table-cell-widget.vue.js"), "./table-widget.vue": () => import("./table-widget.vue.js"), "./vf-box-widget.vue": () => import("./vf-box-widget.vue.js"), "./vf-collapse-widget.vue": () => import("./vf-collapse-widget.vue.js"), "./vf-dialog-widget.vue": () => import("./vf-dialog-widget.vue.js"), "./vf-drawer-widget.vue": () => import("./vf-drawer-widget.vue.js") }), a = {
|
|
4
4
|
install(i) {
|
|
5
5
|
for (const e in t) {
|
|
6
6
|
const o = m(e);
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as r from "./container-item-wrapper.vue.js";
|
|
2
|
+
import * as a from "./data-table-item.vue.js";
|
|
3
3
|
import * as i from "./grid-col-item.vue.js";
|
|
4
4
|
import * as s from "./grid-item.vue.js";
|
|
5
5
|
import * as f from "./grid-sub-form-item.vue.js";
|
|
6
6
|
import * as l from "./sub-form-item.vue.js";
|
|
7
7
|
import * as p from "./tab-item.vue.js";
|
|
8
8
|
import * as u from "./table-cell-item.vue.js";
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as d from "./vf-
|
|
12
|
-
import * as b from "./vf-
|
|
13
|
-
|
|
9
|
+
import * as v from "./table-item.vue.js";
|
|
10
|
+
import * as n from "./vf-box-item.vue.js";
|
|
11
|
+
import * as d from "./vf-collapse-item.vue.js";
|
|
12
|
+
import * as b from "./vf-dialog-item.vue.js";
|
|
13
|
+
import * as I from "./vf-drawer-item.vue.js";
|
|
14
|
+
const e = /* @__PURE__ */ Object.assign({ "./container-item-wrapper.vue": r, "./data-table-item.vue": a, "./grid-col-item.vue": i, "./grid-item.vue": s, "./grid-sub-form-item.vue": f, "./sub-form-item.vue": l, "./tab-item.vue": p, "./table-cell-item.vue": u, "./table-item.vue": v, "./vf-box-item.vue": n, "./vf-collapse-item.vue": d, "./vf-dialog-item.vue": b, "./vf-drawer-item.vue": I }), c = {
|
|
14
15
|
install(m) {
|
|
15
16
|
for (const t in e) {
|
|
16
|
-
const
|
|
17
|
-
m.component(
|
|
17
|
+
const o = e[t].default.name;
|
|
18
|
+
m.component(o, e[t].default);
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
};
|
|
21
22
|
export {
|
|
22
23
|
e as ContainerWidgetMap,
|
|
23
|
-
|
|
24
|
+
c as default
|
|
24
25
|
};
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { defineAsyncComponent as
|
|
4
|
-
import $ from "
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import x from "./container-item-wrapper.vue2.js";
|
|
2
|
+
import y from "../../../utils/emitter.js";
|
|
3
|
+
import { defineAsyncComponent as C, resolveComponent as F, withDirectives as R, createBlock as s, openBlock as n, withCtx as m, createElementBlock as f, normalizeStyle as O, normalizeClass as L, createCommentVNode as S, Fragment as p, renderList as u, resolveDynamicComponent as c, createSlots as g, renderSlot as w, mergeProps as b, vShow as _ } from "vue";
|
|
4
|
+
import $ from "../../../utils/i18n.js";
|
|
5
|
+
import k from "../../form-designer/form-widget/field-widget/index.js";
|
|
6
|
+
import j from "../refMixin.js";
|
|
7
|
+
import B from "./containerItemMixin.js";
|
|
8
|
+
import I from "../../svg-icon/index.vue.js";
|
|
9
9
|
/* empty css */
|
|
10
|
-
import v from "
|
|
11
|
-
const
|
|
10
|
+
import v from "../../../../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
+
const M = {
|
|
12
12
|
name: "VfBoxItem",
|
|
13
13
|
componentName: "boxItem",
|
|
14
14
|
// 必须固定为ContainerItem,用于接收父级组件的broadcast事件
|
|
15
|
-
mixins: [
|
|
15
|
+
mixins: [y, $, j, B],
|
|
16
16
|
components: {
|
|
17
|
-
ContainerItemWrapper:
|
|
18
|
-
SvgIcon:
|
|
19
|
-
...
|
|
20
|
-
VFormRender:
|
|
17
|
+
ContainerItemWrapper: x,
|
|
18
|
+
SvgIcon: I,
|
|
19
|
+
...k,
|
|
20
|
+
VFormRender: C(() => import("../index.vue.js"))
|
|
21
21
|
},
|
|
22
22
|
props: {
|
|
23
23
|
widget: Object,
|
|
@@ -116,24 +116,17 @@ const D = {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
};
|
|
119
|
-
function
|
|
120
|
-
const
|
|
121
|
-
return
|
|
119
|
+
function D(e, o, t, N, T, l) {
|
|
120
|
+
const h = F("container-item-wrapper");
|
|
121
|
+
return R((n(), s(h, { widget: t.widget }, {
|
|
122
122
|
default: m(() => [
|
|
123
123
|
(n(), f("div", {
|
|
124
|
-
class:
|
|
125
|
-
style:
|
|
124
|
+
class: L(["box-container-item", [l.customClass]]),
|
|
125
|
+
style: O(l.boxStyle),
|
|
126
126
|
key: t.widget.id
|
|
127
127
|
}, [
|
|
128
|
-
t.widget.
|
|
129
|
-
|
|
130
|
-
ref: "dFormRef",
|
|
131
|
-
"parent-form": t.parentFormRef,
|
|
132
|
-
"disabled-mode": t.widget.options.disabledMode,
|
|
133
|
-
"dynamic-creation": !0
|
|
134
|
-
}, null, 8, ["parent-form", "disabled-mode"])) : g("", !0),
|
|
135
|
-
t.widget.widgetList && t.widget.widgetList.length > 0 ? (n(!0), f(p, { key: 1 }, u(t.widget.widgetList, (i, d) => (n(), f(p, null, [
|
|
136
|
-
i.category === "container" ? (n(), a(w(e.getComponentByContainer(i)), {
|
|
128
|
+
t.widget.widgetList && t.widget.widgetList.length > 0 ? (n(!0), f(p, { key: 0 }, u(t.widget.widgetList, (i, d) => (n(), f(p, null, [
|
|
129
|
+
i.category === "container" ? (n(), s(c(e.getComponentByContainer(i)), {
|
|
137
130
|
widget: i,
|
|
138
131
|
key: d,
|
|
139
132
|
"parent-list": t.widget.widgetList,
|
|
@@ -142,37 +135,37 @@ function N(e, o, t, T, V, l) {
|
|
|
142
135
|
"sub-form-row-id": t.subFormRowId,
|
|
143
136
|
"sub-form-row-index": t.subFormRowIndex,
|
|
144
137
|
"sub-form-col-index": t.subFormColIndex
|
|
145
|
-
},
|
|
138
|
+
}, g({ _: 2 }, [
|
|
146
139
|
u(Object.keys(e.$slots), (r) => ({
|
|
147
140
|
name: r,
|
|
148
|
-
fn: m((
|
|
149
|
-
|
|
141
|
+
fn: m((a) => [
|
|
142
|
+
w(e.$slots, r, b({ ref_for: !0 }, a), void 0, !0)
|
|
150
143
|
])
|
|
151
144
|
}))
|
|
152
|
-
]), 1032, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index"])) : (n(),
|
|
145
|
+
]), 1032, ["widget", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index"])) : (n(), s(c(i.type + "-widget"), {
|
|
153
146
|
field: i,
|
|
154
147
|
designer: null,
|
|
155
148
|
key: d,
|
|
156
149
|
"parent-list": t.widget.widgetList,
|
|
157
150
|
"index-of-parent-list": d,
|
|
158
151
|
"parent-widget": t.widget
|
|
159
|
-
},
|
|
152
|
+
}, g({ _: 2 }, [
|
|
160
153
|
u(Object.keys(e.$slots), (r) => ({
|
|
161
154
|
name: r,
|
|
162
|
-
fn: m((
|
|
163
|
-
|
|
155
|
+
fn: m((a) => [
|
|
156
|
+
w(e.$slots, r, b({ ref_for: !0 }, a), void 0, !0)
|
|
164
157
|
])
|
|
165
158
|
}))
|
|
166
159
|
]), 1032, ["field", "parent-list", "index-of-parent-list", "parent-widget"]))
|
|
167
|
-
], 64))), 256)) :
|
|
160
|
+
], 64))), 256)) : S("", !0)
|
|
168
161
|
], 6))
|
|
169
162
|
]),
|
|
170
163
|
_: 3
|
|
171
164
|
}, 8, ["widget"])), [
|
|
172
|
-
[
|
|
165
|
+
[_, !t.widget.options.hidden]
|
|
173
166
|
]);
|
|
174
167
|
}
|
|
175
|
-
const
|
|
168
|
+
const X = /* @__PURE__ */ v(M, [["render", D], ["__scopeId", "data-v-1828915a"]]);
|
|
176
169
|
export {
|
|
177
|
-
|
|
170
|
+
X as default
|
|
178
171
|
};
|