@kp-ui/lowcode 2.15.0-alpha.2 → 2.15.0-alpha.3
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 -5
- package/src/components/form-designer/form-widget/container-widget/grid-col-widget.vue2.js +19 -19
- package/src/components/form-designer/form-widget/field-widget/textarea-widget.vue2.js +16 -16
- package/src/components/form-designer/form-widget/field-widget/time-widget.vue2.js +16 -16
- package/src/components/form-render/container-items/grid-col-widget.vue2.js +9 -9
- package/stats.html +1 -1
package/package.json
CHANGED
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kp-ui/lowcode",
|
|
3
|
-
"version": "2.15.0-alpha.
|
|
3
|
+
"version": "2.15.0-alpha.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
7
7
|
"module": "install.js",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"vxe-pc-ui": "^4.10.29",
|
|
10
|
-
"vxe-table": "4.17.18",
|
|
11
|
-
"@surely-vue/table": "5.0.3",
|
|
12
|
-
"monaco-editor": "^0.44.0",
|
|
13
9
|
"animate.css": "^4.1.1",
|
|
14
10
|
"ant-design-vue": "4.2.6",
|
|
15
11
|
"axios": "^1.3.5",
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useI18n as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { useContainerWidget as
|
|
6
|
-
import { useAppRef as
|
|
7
|
-
import { ComponentNameEnum as
|
|
8
|
-
const
|
|
1
|
+
import { defineComponent as g, computed as c, ref as y } from "vue";
|
|
2
|
+
import { useI18n as _ } from "../../../../utils/i18n.js";
|
|
3
|
+
import h from "../RenderDesignerWigetList.vue.js";
|
|
4
|
+
import C from "../widgetAction.vue.js";
|
|
5
|
+
import { useContainerWidget as q } from "./useContainerWidget.js";
|
|
6
|
+
import { useAppRef as w } from "../../useAppRef.js";
|
|
7
|
+
import { ComponentNameEnum as b, ContainerTypeEnum as W } from "../../../../constants/WidgetTypeEnum.js";
|
|
8
|
+
const D = /* @__PURE__ */ g({
|
|
9
9
|
name: W.GridColWidget,
|
|
10
|
-
componentName:
|
|
10
|
+
componentName: b.ContainerWidget,
|
|
11
11
|
inheritAttrs: !1,
|
|
12
12
|
__name: "grid-col-widget",
|
|
13
13
|
props: {
|
|
14
|
-
widget: { type:
|
|
15
|
-
field: { type:
|
|
16
|
-
parentWidget: { type:
|
|
14
|
+
widget: { type: null, required: !0 },
|
|
15
|
+
field: { type: null, required: !0 },
|
|
16
|
+
parentWidget: { type: null, required: !0 },
|
|
17
17
|
parentList: { type: Array, required: !0 },
|
|
18
18
|
indexOfParentList: { type: Number, required: !1 },
|
|
19
19
|
subFormRowIndex: { type: Number, required: !1 },
|
|
@@ -22,24 +22,24 @@ const H = /* @__PURE__ */ c({
|
|
|
22
22
|
},
|
|
23
23
|
setup(i, { expose: o }) {
|
|
24
24
|
o();
|
|
25
|
-
const e = i, { i18nt: n } =
|
|
25
|
+
const e = i, { i18nt: n } = _(), {
|
|
26
26
|
designState: s,
|
|
27
27
|
selected: p,
|
|
28
28
|
selectWidget: u,
|
|
29
29
|
customClass: d,
|
|
30
|
-
onContainerDragAdd:
|
|
31
|
-
onContainerDragUpdate:
|
|
32
|
-
} =
|
|
30
|
+
onContainerDragAdd: l,
|
|
31
|
+
onContainerDragUpdate: a
|
|
32
|
+
} = q(e), m = c(() => e.colHeight ? { height: e.colHeight } : {}), f = y({
|
|
33
33
|
span: e.widget.options.span || 12,
|
|
34
34
|
offset: e.widget.options.offset || 0,
|
|
35
35
|
push: e.widget.options.push || 0,
|
|
36
36
|
pull: e.widget.options.pull || 0
|
|
37
|
-
}), { initRefList: t } =
|
|
37
|
+
}), { initRefList: t } = w(e);
|
|
38
38
|
t();
|
|
39
|
-
const r = { props: e, i18nt: n, designState: s, selected: p, selectWidget: u, customClass: d, onContainerDragAdd:
|
|
39
|
+
const r = { props: e, i18nt: n, designState: s, selected: p, selectWidget: u, customClass: d, onContainerDragAdd: l, onContainerDragUpdate: a, colHeightStyle: m, layoutProps: f, initRefList: t, RenderDesignerWigetList: h, WidgetAction: C };
|
|
40
40
|
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
43
|
export {
|
|
44
|
-
|
|
44
|
+
D as default
|
|
45
45
|
};
|
|
@@ -3,13 +3,13 @@ import { useEmitter as q } from "../../../../utils/useEmitter.js";
|
|
|
3
3
|
import F from "./form-item-wrapper.vue.js";
|
|
4
4
|
import { useField as x } from "./useField.js";
|
|
5
5
|
import { ComponentNameEnum as N, WidgetTypeEnum as h } from "../../../../constants/WidgetTypeEnum.js";
|
|
6
|
-
const
|
|
6
|
+
const I = /* @__PURE__ */ _({
|
|
7
7
|
name: h.textarea,
|
|
8
8
|
componentName: N.FieldWidget,
|
|
9
9
|
__name: "textarea-widget",
|
|
10
10
|
props: {
|
|
11
|
-
widget: { type:
|
|
12
|
-
field: { type:
|
|
11
|
+
widget: { type: null, required: !0 },
|
|
12
|
+
field: { type: null, required: !0 },
|
|
13
13
|
designer: { type: null, required: !1 },
|
|
14
14
|
parentWidget: { type: [Object, null], required: !1 },
|
|
15
15
|
parentList: { type: [Array, null], required: !1 },
|
|
@@ -19,32 +19,32 @@ const j = /* @__PURE__ */ _({
|
|
|
19
19
|
subFormColIndex: { type: Number, required: !1 }
|
|
20
20
|
},
|
|
21
21
|
setup(u, { expose: s }) {
|
|
22
|
-
const { dispatch:
|
|
23
|
-
rules:
|
|
22
|
+
const { dispatch: l } = q(), e = u, {
|
|
23
|
+
rules: a,
|
|
24
24
|
i18nt: r,
|
|
25
25
|
field: t,
|
|
26
26
|
fieldModel: i,
|
|
27
|
-
isReadMode:
|
|
28
|
-
size:
|
|
27
|
+
isReadMode: m,
|
|
28
|
+
size: p,
|
|
29
29
|
handleHidden: f,
|
|
30
30
|
handleDisabled: c,
|
|
31
|
-
handleFocusCustomEvent:
|
|
32
|
-
handleBlurCustomEvent:
|
|
33
|
-
getWidgetRef:
|
|
34
|
-
getFormRef:
|
|
35
|
-
getPropName:
|
|
31
|
+
handleFocusCustomEvent: y,
|
|
32
|
+
handleBlurCustomEvent: g,
|
|
33
|
+
getWidgetRef: n,
|
|
34
|
+
getFormRef: d,
|
|
35
|
+
getPropName: b
|
|
36
36
|
} = x(e);
|
|
37
37
|
s({
|
|
38
38
|
i18nt: r,
|
|
39
39
|
field: t,
|
|
40
40
|
fieldModel: i,
|
|
41
|
-
getFormRef:
|
|
42
|
-
getWidgetRef:
|
|
41
|
+
getFormRef: d,
|
|
42
|
+
getWidgetRef: n
|
|
43
43
|
});
|
|
44
|
-
const o = { dispatch:
|
|
44
|
+
const o = { dispatch: l, props: e, rules: a, i18nt: r, field: t, fieldModel: i, isReadMode: m, size: p, handleHidden: f, handleDisabled: c, handleFocusCustomEvent: y, handleBlurCustomEvent: g, getWidgetRef: n, getFormRef: d, getPropName: b, FormItemWrapper: F };
|
|
45
45
|
return Object.defineProperty(o, "__isScriptSetup", { enumerable: !1, value: !0 }), o;
|
|
46
46
|
}
|
|
47
47
|
});
|
|
48
48
|
export {
|
|
49
|
-
|
|
49
|
+
I as default
|
|
50
50
|
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as c } from "vue";
|
|
2
|
+
import y from "./form-item-wrapper.vue.js";
|
|
3
3
|
import { useField as _ } from "./useField.js";
|
|
4
4
|
import { ComponentNameEnum as q, WidgetTypeEnum as g } from "../../../../constants/WidgetTypeEnum.js";
|
|
5
|
-
const N = /* @__PURE__ */
|
|
5
|
+
const N = /* @__PURE__ */ c({
|
|
6
6
|
name: g.time,
|
|
7
7
|
componentName: q.FieldWidget,
|
|
8
8
|
__name: "time-widget",
|
|
9
9
|
props: {
|
|
10
|
-
widget: { type:
|
|
11
|
-
field: { type:
|
|
10
|
+
widget: { type: Object, required: !0 },
|
|
11
|
+
field: { type: Object, required: !0 },
|
|
12
12
|
designer: { type: null, required: !1 },
|
|
13
13
|
parentWidget: { type: [Object, null], required: !1 },
|
|
14
14
|
parentList: { type: [Array, null], required: !1 },
|
|
@@ -17,24 +17,24 @@ const N = /* @__PURE__ */ b({
|
|
|
17
17
|
subFormRowId: { type: String, required: !1 },
|
|
18
18
|
subFormColIndex: { type: Number, required: !1 }
|
|
19
19
|
},
|
|
20
|
-
setup(
|
|
21
|
-
const e =
|
|
22
|
-
rules:
|
|
23
|
-
i18nt:
|
|
24
|
-
field:
|
|
25
|
-
fieldModel:
|
|
26
|
-
isReadMode:
|
|
27
|
-
size:
|
|
20
|
+
setup(i, { expose: d }) {
|
|
21
|
+
const e = i, {
|
|
22
|
+
rules: n,
|
|
23
|
+
i18nt: o,
|
|
24
|
+
field: u,
|
|
25
|
+
fieldModel: s,
|
|
26
|
+
isReadMode: p,
|
|
27
|
+
size: l,
|
|
28
28
|
handleHidden: m,
|
|
29
29
|
handleDisabled: a,
|
|
30
30
|
handleFocusCustomEvent: f,
|
|
31
|
-
handleBlurCustomEvent:
|
|
31
|
+
handleBlurCustomEvent: b,
|
|
32
32
|
defineExposed: r
|
|
33
33
|
} = _(e);
|
|
34
|
-
|
|
34
|
+
d({
|
|
35
35
|
...r
|
|
36
36
|
});
|
|
37
|
-
const t = { props: e, rules:
|
|
37
|
+
const t = { props: e, rules: n, i18nt: o, field: u, fieldModel: s, isReadMode: p, size: l, handleHidden: m, handleDisabled: a, handleFocusCustomEvent: f, handleBlurCustomEvent: b, defineExposed: r, FormItemWrapper: y };
|
|
38
38
|
return Object.defineProperty(t, "__isScriptSetup", { enumerable: !1, value: !0 }), t;
|
|
39
39
|
}
|
|
40
40
|
});
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { defineComponent as u, computed as s, ref as
|
|
2
|
-
import
|
|
1
|
+
import { defineComponent as u, computed as s, ref as d } from "vue";
|
|
2
|
+
import l from "../RenderWigetList.vue.js";
|
|
3
3
|
import { ComponentNameEnum as m, ContainerTypeEnum as a } from "../../../constants/WidgetTypeEnum.js";
|
|
4
4
|
import { useAppRef as f } from "../../form-designer/useAppRef.js";
|
|
5
|
-
const
|
|
5
|
+
const _ = /* @__PURE__ */ u({
|
|
6
6
|
name: a.GridColWidget,
|
|
7
7
|
componentName: m.ContainerWidget,
|
|
8
8
|
inheritAttrs: !1,
|
|
9
9
|
__name: "grid-col-widget",
|
|
10
10
|
props: {
|
|
11
|
-
widget: { type:
|
|
12
|
-
field: { type:
|
|
13
|
-
parentWidget: { type: null, required: !0 },
|
|
11
|
+
widget: { type: Object, required: !0 },
|
|
12
|
+
field: { type: Object, required: !0 },
|
|
13
|
+
parentWidget: { type: [Object, null], required: !0 },
|
|
14
14
|
parentList: { type: Array, required: !0 },
|
|
15
15
|
indexOfParentList: { type: Number, required: !1 },
|
|
16
16
|
subFormRowIndex: { type: Number, required: !1 },
|
|
@@ -19,17 +19,17 @@ const h = /* @__PURE__ */ u({
|
|
|
19
19
|
},
|
|
20
20
|
setup(i, { expose: o }) {
|
|
21
21
|
o();
|
|
22
|
-
const e = i, n = s(() => e.colHeight ? { height: e.colHeight } : {}), p =
|
|
22
|
+
const e = i, n = s(() => e.colHeight ? { height: e.colHeight } : {}), p = d({
|
|
23
23
|
span: e.widget.options.span || 12,
|
|
24
24
|
offset: e.widget.options.offset || 0,
|
|
25
25
|
push: e.widget.options.push || 0,
|
|
26
26
|
pull: e.widget.options.pull || 0
|
|
27
27
|
}), { initRefList: t } = f();
|
|
28
28
|
t();
|
|
29
|
-
const r = { props: e, colHeightStyle: n, layoutProps: p, initRefList: t, RenderWigetList:
|
|
29
|
+
const r = { props: e, colHeightStyle: n, layoutProps: p, initRefList: t, RenderWigetList: l };
|
|
30
30
|
return Object.defineProperty(r, "__isScriptSetup", { enumerable: !1, value: !0 }), r;
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
export {
|
|
34
|
-
|
|
34
|
+
_ as default
|
|
35
35
|
};
|