@kp-ui/lowcode-pc-v2 0.0.11 → 0.0.12
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/assets/styles/style.css +204 -146
- package/core/src/lang/en-US.js +2 -0
- package/core/src/lang/zh-CN.js +2 -0
- package/core/src/utils/getWidgetCompontent.js +1 -1
- package/package.json +1 -1
- package/src/components/public/CustomerModal/CustomerModal.vue_vue_type_script_setup_true_lang.js +8 -9
- package/src/widgets/base/radio/schema.js +1 -0
- package/src/widgets/containers/collapse/index-render.js +1 -1
- package/src/widgets/containers/collapse/index-render.vue_vue_type_script_setup_true_lang.js +139 -20
- package/src/widgets/containers/collapse/schema.js +6 -1
- package/src/widgets/render.js +46 -85
- package/src/widgets/widgetTypes.js +1 -0
- package/stats.html +1 -1
|
@@ -3,14 +3,22 @@ import RenderWidgetList_default from "../../../../core/src/components/common/ren
|
|
|
3
3
|
import { ComponentNameEnum } from "../../../../core/src/constants/WidgetTypeEnum.js";
|
|
4
4
|
import { useField } from "../../../../core/src/hooks/useField.js";
|
|
5
5
|
import { WidgetType, getWidgetName } from "../../widgetTypes.js";
|
|
6
|
-
import { createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeStyle, openBlock, unref, withCtx } from "vue";
|
|
7
|
-
import {
|
|
6
|
+
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, normalizeStyle, openBlock, renderList, resolveComponent, toDisplayString, unref, withCtx, withModifiers } from "vue";
|
|
7
|
+
import { SvgIcon } from "tmgc2-share";
|
|
8
8
|
//#region src/widgets/containers/collapse/index-render.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var _hoisted_1 = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "collapse-container"
|
|
12
12
|
};
|
|
13
|
-
var _hoisted_2 = { class: "collapse-
|
|
13
|
+
var _hoisted_2 = { class: "tpf-like-collapse-header-content" };
|
|
14
|
+
var _hoisted_3 = { class: "tpf-like-collapse-title" };
|
|
15
|
+
var _hoisted_4 = { class: "tpf-like-collapse-header-content" };
|
|
16
|
+
var _hoisted_5 = { class: "tpf-like-collapse-title" };
|
|
17
|
+
var _hoisted_6 = {
|
|
18
|
+
key: 0,
|
|
19
|
+
class: "collapse-right"
|
|
20
|
+
};
|
|
21
|
+
var legacyPaneKey = "legacy-collapse-pane";
|
|
14
22
|
var index_render_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
15
23
|
inheritAttrs: false,
|
|
16
24
|
name: getWidgetName(WidgetType.Collapse),
|
|
@@ -19,27 +27,138 @@ var index_render_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ d
|
|
|
19
27
|
props: { widget: {} },
|
|
20
28
|
setup(__props, { expose: __expose }) {
|
|
21
29
|
const { handleHidden, defineExposed } = useField(__props.widget);
|
|
30
|
+
const isCollapsePaneWidget = (child) => {
|
|
31
|
+
return child.type === WidgetType.CollapsePane;
|
|
32
|
+
};
|
|
33
|
+
const paneItems = computed(() => {
|
|
34
|
+
var _props$widget$childre;
|
|
35
|
+
return ((_props$widget$childre = __props.widget.children) !== null && _props$widget$childre !== void 0 ? _props$widget$childre : []).filter(isCollapsePaneWidget).map((child) => {
|
|
36
|
+
var _child$children, _child$headerChildren;
|
|
37
|
+
(_child$children = child.children) !== null && _child$children !== void 0 || (child.children = []);
|
|
38
|
+
(_child$headerChildren = child.headerChildren) !== null && _child$headerChildren !== void 0 || (child.headerChildren = []);
|
|
39
|
+
return child;
|
|
40
|
+
});
|
|
41
|
+
});
|
|
42
|
+
const isPaneMode = computed(() => paneItems.value.length > 0);
|
|
43
|
+
const normalizeActiveKeys = (value) => {
|
|
44
|
+
return Array.isArray(value) ? value : [value].filter(Boolean);
|
|
45
|
+
};
|
|
46
|
+
const paneActiveKeys = computed({
|
|
47
|
+
get: () => {
|
|
48
|
+
var _props$widget$props$a;
|
|
49
|
+
return (_props$widget$props$a = __props.widget.props.activeKeys) !== null && _props$widget$props$a !== void 0 ? _props$widget$props$a : [];
|
|
50
|
+
},
|
|
51
|
+
set: (value) => {
|
|
52
|
+
__props.widget.props.activeKeys = normalizeActiveKeys(value);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
const legacyActiveKeys = computed({
|
|
56
|
+
get: () => {
|
|
57
|
+
var _props$widget$props$a2;
|
|
58
|
+
return ((_props$widget$props$a2 = __props.widget.props.activeKeys) === null || _props$widget$props$a2 === void 0 ? void 0 : _props$widget$props$a2.length) ? __props.widget.props.activeKeys : [legacyPaneKey];
|
|
59
|
+
},
|
|
60
|
+
set: (value) => {
|
|
61
|
+
__props.widget.props.activeKeys = normalizeActiveKeys(value);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
const isActivePane = (key) => {
|
|
65
|
+
var _props$widget$props$a3;
|
|
66
|
+
return (_props$widget$props$a3 = __props.widget.props.activeKeys) === null || _props$widget$props$a3 === void 0 ? void 0 : _props$widget$props$a3.includes(key);
|
|
67
|
+
};
|
|
68
|
+
const isLegacyActive = computed(() => legacyActiveKeys.value.includes(legacyPaneKey));
|
|
22
69
|
__expose({ ...defineExposed });
|
|
23
70
|
return (_ctx, _cache) => {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
"
|
|
71
|
+
const _component_a_collapse_panel = resolveComponent("a-collapse-panel");
|
|
72
|
+
const _component_a_collapse = resolveComponent("a-collapse");
|
|
73
|
+
return !unref(handleHidden) ? (openBlock(), createElementBlock("div", _hoisted_1, [isPaneMode.value ? (openBlock(), createBlock(_component_a_collapse, {
|
|
74
|
+
key: 0,
|
|
75
|
+
activeKey: paneActiveKeys.value,
|
|
76
|
+
"onUpdate:activeKey": _cache[1] || (_cache[1] = ($event) => paneActiveKeys.value = $event),
|
|
77
|
+
class: "tpf-like-collapse",
|
|
78
|
+
accordion: _ctx.widget.props.accordion,
|
|
79
|
+
bordered: false
|
|
80
|
+
}, {
|
|
81
|
+
default: withCtx(() => [(openBlock(true), createElementBlock(Fragment, null, renderList(paneItems.value, (pane) => {
|
|
82
|
+
return openBlock(), createBlock(_component_a_collapse_panel, {
|
|
83
|
+
key: pane.props.key,
|
|
84
|
+
"show-arrow": false,
|
|
85
|
+
disabled: pane.props.disabled,
|
|
86
|
+
collapsible: pane.props.collapsible
|
|
87
|
+
}, {
|
|
88
|
+
header: withCtx(() => [createElementVNode("div", _hoisted_2, [createElementVNode("span", _hoisted_3, toDisplayString(pane.props.label), 1), createVNode(unref(SvgIcon), {
|
|
89
|
+
type: isActivePane(pane.props.key) ? "icon-xiangshang" : "icon-xiangxia",
|
|
90
|
+
size: 24,
|
|
91
|
+
shadow: "",
|
|
92
|
+
cursor: ""
|
|
93
|
+
}, null, 8, ["type"])])]),
|
|
94
|
+
extra: withCtx(() => [createElementVNode("div", {
|
|
95
|
+
class: "collapse-right",
|
|
96
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(() => {}, ["stop"]))
|
|
97
|
+
}, [createVNode(unref(RenderWidgetList_default), {
|
|
98
|
+
list: pane.headerChildren,
|
|
99
|
+
"onUpdate:list": ($event) => pane.headerChildren = $event,
|
|
100
|
+
parentWidget: _ctx.widget
|
|
101
|
+
}, null, 8, [
|
|
102
|
+
"list",
|
|
103
|
+
"onUpdate:list",
|
|
104
|
+
"parentWidget"
|
|
105
|
+
])])]),
|
|
106
|
+
default: withCtx(() => {
|
|
107
|
+
var _ctx$widget$style;
|
|
108
|
+
return [createElementVNode("div", {
|
|
109
|
+
class: "tpf-collapse-content-wrapper",
|
|
110
|
+
style: normalizeStyle({ height: unref(transformPx)((_ctx$widget$style = _ctx.widget.style) === null || _ctx$widget$style === void 0 ? void 0 : _ctx$widget$style.height) })
|
|
111
|
+
}, [createVNode(unref(RenderWidgetList_default), {
|
|
112
|
+
list: pane.children,
|
|
113
|
+
"onUpdate:list": ($event) => pane.children = $event,
|
|
114
|
+
parentWidget: _ctx.widget
|
|
115
|
+
}, null, 8, [
|
|
116
|
+
"list",
|
|
117
|
+
"onUpdate:list",
|
|
118
|
+
"parentWidget"
|
|
119
|
+
])], 4)];
|
|
120
|
+
}),
|
|
121
|
+
_: 2
|
|
122
|
+
}, 1032, ["disabled", "collapsible"]);
|
|
123
|
+
}), 128))]),
|
|
124
|
+
_: 1
|
|
125
|
+
}, 8, ["activeKey", "accordion"])) : (openBlock(), createBlock(_component_a_collapse, {
|
|
126
|
+
key: 1,
|
|
127
|
+
activeKey: legacyActiveKeys.value,
|
|
128
|
+
"onUpdate:activeKey": _cache[4] || (_cache[4] = ($event) => legacyActiveKeys.value = $event),
|
|
129
|
+
class: "tpf-like-collapse",
|
|
130
|
+
bordered: false
|
|
131
|
+
}, {
|
|
132
|
+
default: withCtx(() => [(openBlock(), createBlock(_component_a_collapse_panel, {
|
|
133
|
+
key: legacyPaneKey,
|
|
134
|
+
"show-arrow": false
|
|
135
|
+
}, {
|
|
136
|
+
header: withCtx(() => [createElementVNode("div", _hoisted_4, [createElementVNode("span", _hoisted_5, toDisplayString(_ctx.widget.props.label), 1), createVNode(unref(SvgIcon), {
|
|
137
|
+
type: isLegacyActive.value ? "icon-xiangshang" : "icon-xiangxia",
|
|
138
|
+
size: 24,
|
|
139
|
+
shadow: "",
|
|
140
|
+
cursor: ""
|
|
141
|
+
}, null, 8, ["type"])])]),
|
|
142
|
+
extra: withCtx(() => [isLegacyActive.value ? (openBlock(), createElementBlock("div", _hoisted_6, [createVNode(unref(RenderWidgetList_default), {
|
|
143
|
+
list: _ctx.widget.headerChildren,
|
|
144
|
+
"onUpdate:list": _cache[2] || (_cache[2] = ($event) => _ctx.widget.headerChildren = $event),
|
|
38
145
|
parentWidget: _ctx.widget
|
|
39
|
-
}, null, 8, ["list", "parentWidget"])],
|
|
40
|
-
|
|
146
|
+
}, null, 8, ["list", "parentWidget"])])) : createCommentVNode("", true)]),
|
|
147
|
+
default: withCtx(() => {
|
|
148
|
+
var _ctx$widget$style2;
|
|
149
|
+
return [createElementVNode("div", {
|
|
150
|
+
class: "tpf-collapse-content-wrapper",
|
|
151
|
+
style: normalizeStyle({ height: unref(transformPx)((_ctx$widget$style2 = _ctx.widget.style) === null || _ctx$widget$style2 === void 0 ? void 0 : _ctx$widget$style2.height) })
|
|
152
|
+
}, [createVNode(unref(RenderWidgetList_default), {
|
|
153
|
+
list: _ctx.widget.children,
|
|
154
|
+
"onUpdate:list": _cache[3] || (_cache[3] = ($event) => _ctx.widget.children = $event),
|
|
155
|
+
parentWidget: _ctx.widget
|
|
156
|
+
}, null, 8, ["list", "parentWidget"])], 4)];
|
|
157
|
+
}),
|
|
158
|
+
_: 1
|
|
159
|
+
}))]),
|
|
41
160
|
_: 1
|
|
42
|
-
}, 8, ["
|
|
161
|
+
}, 8, ["activeKey"]))])) : createCommentVNode("", true);
|
|
43
162
|
};
|
|
44
163
|
}
|
|
45
164
|
});
|
|
@@ -17,8 +17,13 @@ var Collapse = {
|
|
|
17
17
|
name: "",
|
|
18
18
|
label: "折叠面板",
|
|
19
19
|
hidden: false,
|
|
20
|
-
customClass: []
|
|
20
|
+
customClass: [],
|
|
21
|
+
activeKeys: [],
|
|
22
|
+
accordion: false,
|
|
23
|
+
bordered: true,
|
|
24
|
+
items: []
|
|
21
25
|
}
|
|
22
26
|
};
|
|
27
|
+
WidgetType.CollapsePane;
|
|
23
28
|
//#endregion
|
|
24
29
|
export { Collapse };
|
package/src/widgets/render.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { getWidgetCompontent } from "../../core/src/utils/getWidgetCompontent.js";
|
|
2
|
+
import { WidgetType } from "./widgetTypes.js";
|
|
2
3
|
import { Input } from "./base/input/schema.js";
|
|
3
4
|
import { Html } from "./base/html/schema.js";
|
|
4
5
|
import { Button } from "./base/button/schema.js";
|
|
@@ -19,26 +20,6 @@ import { Slider } from "./base/slider/schema.js";
|
|
|
19
20
|
import { StaticText } from "./base/static-text/schema.js";
|
|
20
21
|
import { Divider } from "./base/divider/schema.js";
|
|
21
22
|
import { Cascader } from "./base/cascader/schema.js";
|
|
22
|
-
import input_default from "./base/input/index.js";
|
|
23
|
-
import html_default from "./base/html/index.js";
|
|
24
|
-
import button_default from "./base/button/index.js";
|
|
25
|
-
import button_list_default from "./base/button-list/index.js";
|
|
26
|
-
import textarea_default from "./base/textarea/index.js";
|
|
27
|
-
import number_default from "./base/number/index.js";
|
|
28
|
-
import radio_default from "./base/radio/index.js";
|
|
29
|
-
import checkbox_default from "./base/checkbox/index.js";
|
|
30
|
-
import select_default from "./base/select/index.js";
|
|
31
|
-
import time_default from "./base/time/index.js";
|
|
32
|
-
import time_range_default from "./base/time-range/index.js";
|
|
33
|
-
import date_default from "./base/date/index.js";
|
|
34
|
-
import date_range_default from "./base/date-range/index.js";
|
|
35
|
-
import switch_default from "./base/switch/index.js";
|
|
36
|
-
import rate_default from "./base/rate/index.js";
|
|
37
|
-
import color_default from "./base/color/index.js";
|
|
38
|
-
import slider_default from "./base/slider/index.js";
|
|
39
|
-
import static_text_default from "./base/static-text/index.js";
|
|
40
|
-
import divider_default from "./base/divider/index.js";
|
|
41
|
-
import cascader_default from "./base/cascader/index.js";
|
|
42
23
|
import { CodeEditor } from "./advanced/code-editor/schema.js";
|
|
43
24
|
import { FileUpload } from "./advanced/file-upload/schema.js";
|
|
44
25
|
import { RichEditor } from "./advanced/rich-editor/schema.js";
|
|
@@ -46,13 +27,6 @@ import { TreeSelect } from "./advanced/tree-select/schema.js";
|
|
|
46
27
|
import { Tree } from "./advanced/tree/schema.js";
|
|
47
28
|
import { DataTable } from "./advanced/data-table/schema.js";
|
|
48
29
|
import { CustomRender } from "./advanced/custom-render/schema.js";
|
|
49
|
-
import code_editor_default from "./advanced/code-editor/index.js";
|
|
50
|
-
import file_upload_default from "./advanced/file-upload/index.js";
|
|
51
|
-
import rich_editor_default from "./advanced/rich-editor/index.js";
|
|
52
|
-
import tree_select_default from "./advanced/tree-select/index.js";
|
|
53
|
-
import tree_default from "./advanced/tree/index.js";
|
|
54
|
-
import data_table_default from "./advanced/data-table/index.js";
|
|
55
|
-
import custom_render_default from "./advanced/custom-render/index.js";
|
|
56
30
|
import { Grid } from "./containers/grid/schema.js";
|
|
57
31
|
import { GridCol } from "./containers/grid-col/schema.js";
|
|
58
32
|
import { Tab } from "./containers/tab/schema.js";
|
|
@@ -65,20 +39,8 @@ import { Space } from "./containers/space/schema.js";
|
|
|
65
39
|
import { Flex } from "./containers/flex/schema.js";
|
|
66
40
|
import { List } from "./containers/list/schema.js";
|
|
67
41
|
import { SecondaryPage } from "./template/SecondaryPage/schema.js";
|
|
68
|
-
import
|
|
69
|
-
|
|
70
|
-
import index_render_default$2 from "./containers/tab/index-render.js";
|
|
71
|
-
import index_render_default$3 from "./containers/tab-pane/index-render.js";
|
|
72
|
-
import index_render_default$4 from "./containers/box/index-render.js";
|
|
73
|
-
import index_render_default$5 from "./containers/collapse/index-render.js";
|
|
74
|
-
import index_render_default$6 from "./containers/dialog/index-render.js";
|
|
75
|
-
import index_render_default$7 from "./containers/form/index-render.js";
|
|
76
|
-
import index_render_default$8 from "./containers/space/index-render.js";
|
|
77
|
-
import index_render_default$9 from "./containers/flex/index-render.js";
|
|
78
|
-
import index_render_default$10 from "./containers/list/index-render.js";
|
|
79
|
-
import index_render_default$11 from "./template/SecondaryPage/index-render.js";
|
|
80
|
-
//#region src/widgets/render.ts
|
|
81
|
-
var renderSchemas = [
|
|
42
|
+
import { defineAsyncComponent } from "vue";
|
|
43
|
+
new Map([
|
|
82
44
|
Input,
|
|
83
45
|
Html,
|
|
84
46
|
Button,
|
|
@@ -118,50 +80,49 @@ var renderSchemas = [
|
|
|
118
80
|
Flex,
|
|
119
81
|
List,
|
|
120
82
|
SecondaryPage
|
|
121
|
-
];
|
|
122
|
-
var
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
]
|
|
163
|
-
|
|
164
|
-
var renderRegistryComponents = new Map(renderComponents.map((component) => [component.name, component]));
|
|
83
|
+
].map((schema) => [schema.type, schema]));
|
|
84
|
+
var lazyWidget = (loader) => defineAsyncComponent(loader);
|
|
85
|
+
var renderRegistryComponents = new Map([
|
|
86
|
+
[WidgetType.Input, lazyWidget(() => import("./base/input/index.js"))],
|
|
87
|
+
[WidgetType.Html, lazyWidget(() => import("./base/html/index.js"))],
|
|
88
|
+
[WidgetType.Button, lazyWidget(() => import("./base/button/index.js"))],
|
|
89
|
+
[WidgetType.ButtonList, lazyWidget(() => import("./base/button-list/index.js"))],
|
|
90
|
+
[WidgetType.Textarea, lazyWidget(() => import("./base/textarea/index.js"))],
|
|
91
|
+
[WidgetType.Number, lazyWidget(() => import("./base/number/index.js"))],
|
|
92
|
+
[WidgetType.Radio, lazyWidget(() => import("./base/radio/index.js"))],
|
|
93
|
+
[WidgetType.Checkbox, lazyWidget(() => import("./base/checkbox/index.js"))],
|
|
94
|
+
[WidgetType.Select, lazyWidget(() => import("./base/select/index.js"))],
|
|
95
|
+
[WidgetType.Time, lazyWidget(() => import("./base/time/index.js"))],
|
|
96
|
+
[WidgetType.TimeRange, lazyWidget(() => import("./base/time-range/index.js"))],
|
|
97
|
+
[WidgetType.Date, lazyWidget(() => import("./base/date/index.js"))],
|
|
98
|
+
[WidgetType.DateRange, lazyWidget(() => import("./base/date-range/index.js"))],
|
|
99
|
+
[WidgetType.Switch, lazyWidget(() => import("./base/switch/index.js"))],
|
|
100
|
+
[WidgetType.Rate, lazyWidget(() => import("./base/rate/index.js"))],
|
|
101
|
+
[WidgetType.Color, lazyWidget(() => import("./base/color/index.js"))],
|
|
102
|
+
[WidgetType.Slider, lazyWidget(() => import("./base/slider/index.js"))],
|
|
103
|
+
[WidgetType.StaticText, lazyWidget(() => import("./base/static-text/index.js"))],
|
|
104
|
+
[WidgetType.Divider, lazyWidget(() => import("./base/divider/index.js"))],
|
|
105
|
+
[WidgetType.Cascader, lazyWidget(() => import("./base/cascader/index.js"))],
|
|
106
|
+
[WidgetType.CodeEditor, lazyWidget(() => import("./advanced/code-editor/index.js"))],
|
|
107
|
+
[WidgetType.FileUpload, lazyWidget(() => import("./advanced/file-upload/index.js"))],
|
|
108
|
+
[WidgetType.RichEditor, lazyWidget(() => import("./advanced/rich-editor/index.js"))],
|
|
109
|
+
[WidgetType.TreeSelect, lazyWidget(() => import("./advanced/tree-select/index.js"))],
|
|
110
|
+
[WidgetType.Tree, lazyWidget(() => import("./advanced/tree/index.js"))],
|
|
111
|
+
[WidgetType.DataTable, lazyWidget(() => import("./advanced/data-table/index.js"))],
|
|
112
|
+
[WidgetType.CustomRender, lazyWidget(() => import("./advanced/custom-render/index.js"))],
|
|
113
|
+
[WidgetType.Grid, lazyWidget(() => import("./containers/grid/index-render.js"))],
|
|
114
|
+
[WidgetType.GridCol, lazyWidget(() => import("./containers/grid-col/index-render.js"))],
|
|
115
|
+
[WidgetType.Tab, lazyWidget(() => import("./containers/tab/index-render.js"))],
|
|
116
|
+
[WidgetType.TabPane, lazyWidget(() => import("./containers/tab-pane/index-render.js"))],
|
|
117
|
+
[WidgetType.Box, lazyWidget(() => import("./containers/box/index-render.js"))],
|
|
118
|
+
[WidgetType.Collapse, lazyWidget(() => import("./containers/collapse/index-render.js"))],
|
|
119
|
+
[WidgetType.Dialog, lazyWidget(() => import("./containers/dialog/index-render.js"))],
|
|
120
|
+
[WidgetType.Form, lazyWidget(() => import("./containers/form/index-render.js"))],
|
|
121
|
+
[WidgetType.Space, lazyWidget(() => import("./containers/space/index-render.js"))],
|
|
122
|
+
[WidgetType.Flex, lazyWidget(() => import("./containers/flex/index-render.js"))],
|
|
123
|
+
[WidgetType.List, lazyWidget(() => import("./containers/list/index-render.js"))],
|
|
124
|
+
[WidgetType.SecondaryPage, lazyWidget(() => import("./template/SecondaryPage/index-render.js"))]
|
|
125
|
+
]);
|
|
165
126
|
var getRenderWidget = (widget) => {
|
|
166
127
|
return getWidgetCompontent(widget, renderRegistryComponents, false);
|
|
167
128
|
};
|
|
@@ -37,6 +37,7 @@ var WidgetType = /* @__PURE__ */ function(WidgetType) {
|
|
|
37
37
|
WidgetType["TabPane"] = "tab-pane";
|
|
38
38
|
WidgetType["Box"] = "box";
|
|
39
39
|
WidgetType["Collapse"] = "collapse";
|
|
40
|
+
WidgetType["CollapsePane"] = "collapse-pane";
|
|
40
41
|
WidgetType["Dialog"] = "dialog";
|
|
41
42
|
WidgetType["GridSubForm"] = "grid-sub-form";
|
|
42
43
|
WidgetType["Space"] = "space";
|