@kp-ui/lowcode 1.0.27 → 1.0.29
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.
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
if (typeof window !== "undefined") {
|
|
2
2
|
let loadSvg = function() {
|
|
3
3
|
var body = document.body;
|
|
4
|
-
var svgDom = document.getElementById("
|
|
4
|
+
var svgDom = document.getElementById("__svg__icons__dom__1745576657427__");
|
|
5
5
|
if (!svgDom) {
|
|
6
6
|
svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
7
7
|
svgDom.style.position = "absolute";
|
|
8
8
|
svgDom.style.width = "0";
|
|
9
9
|
svgDom.style.height = "0";
|
|
10
|
-
svgDom.id = "
|
|
10
|
+
svgDom.id = "__svg__icons__dom__1745576657427__";
|
|
11
11
|
svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
|
|
12
12
|
svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -15,7 +15,7 @@ function useCustomRender() {
|
|
|
15
15
|
if (!component) {
|
|
16
16
|
const instance = getCurrentInstance();
|
|
17
17
|
if (instance && instance.appContext) {
|
|
18
|
-
const outSysCompontents = (instance == null ? void 0 : instance.appContext.config.globalProperties.
|
|
18
|
+
const outSysCompontents = (instance == null ? void 0 : instance.appContext.config.globalProperties.components) || {};
|
|
19
19
|
const globalSysCompontents = instance.appContext.components || {};
|
|
20
20
|
const compontents = { ...outSysCompontents, ...globalSysCompontents };
|
|
21
21
|
console.log({ compontents });
|
|
@@ -89,14 +89,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
89
89
|
class: normalizeClass([!!$props.designState ? "slot-wrapper-design" : "slot-wrapper-render"])
|
|
90
90
|
}, [
|
|
91
91
|
!!$props.designState ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString($props.field.options.label), 1)) : (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
92
|
-
(openBlock(), createBlock(resolveDynamicComponent($options.renderComponent(
|
|
92
|
+
(openBlock(), createBlock(resolveDynamicComponent($options.renderComponent($props.field.options.slotCompontent, { data: $data.attachmentList }))))
|
|
93
93
|
]))
|
|
94
94
|
], 2)
|
|
95
95
|
]),
|
|
96
96
|
_: 1
|
|
97
97
|
}, 8, ["designer", "field", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
|
|
98
98
|
}
|
|
99
|
-
const slotWidget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
|
99
|
+
const slotWidget = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-1f999c26"]]);
|
|
100
100
|
export {
|
|
101
101
|
slotWidget as default
|
|
102
102
|
};
|