@fonixtree/magic-design 0.0.124 → 0.0.125
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.
|
@@ -462,7 +462,7 @@ function ImageModal(_a) {
|
|
|
462
462
|
};
|
|
463
463
|
|
|
464
464
|
var onUpload = function onUpload(data) {
|
|
465
|
-
return fetch(
|
|
465
|
+
return fetch(window.magicDesign.MBaseUrl + "/upload/contents", {
|
|
466
466
|
method: 'POST',
|
|
467
467
|
body: data,
|
|
468
468
|
headers: headers
|
|
@@ -108,6 +108,7 @@ window.magicDesign = {
|
|
|
108
108
|
|
|
109
109
|
var setDesignConfig = function setDesignConfig(data) {
|
|
110
110
|
window.magicDesign = __assign(__assign(__assign({}, window.magicDesign), data), {
|
|
111
|
+
compWidth: Number(data.compWidth),
|
|
111
112
|
compSpacing: Number(data.compSpacing),
|
|
112
113
|
MBaseUrl: data.MBaseUrl || ''
|
|
113
114
|
});
|
|
@@ -88,7 +88,8 @@ var Renderer = function Renderer(props) {
|
|
|
88
88
|
className: "render_wrap",
|
|
89
89
|
magic_design: "",
|
|
90
90
|
style: {
|
|
91
|
-
background: pageBackground
|
|
91
|
+
background: pageBackground,
|
|
92
|
+
overflow: 'aotu'
|
|
92
93
|
}
|
|
93
94
|
}, filterCompFloor().map(function (nodeData) {
|
|
94
95
|
var Clazz = _componentTypes.componentMap[nodeData.type];
|
|
@@ -462,7 +462,7 @@ function ImageModal(_a) {
|
|
|
462
462
|
};
|
|
463
463
|
|
|
464
464
|
var onUpload = function onUpload(data) {
|
|
465
|
-
return fetch(
|
|
465
|
+
return fetch(window.magicDesign.MBaseUrl + "/upload/contents", {
|
|
466
466
|
method: 'POST',
|
|
467
467
|
body: data,
|
|
468
468
|
headers: headers
|
|
@@ -108,6 +108,7 @@ window.magicDesign = {
|
|
|
108
108
|
|
|
109
109
|
var setDesignConfig = function setDesignConfig(data) {
|
|
110
110
|
window.magicDesign = __assign(__assign(__assign({}, window.magicDesign), data), {
|
|
111
|
+
compWidth: Number(data.compWidth),
|
|
111
112
|
compSpacing: Number(data.compSpacing),
|
|
112
113
|
MBaseUrl: data.MBaseUrl || ''
|
|
113
114
|
});
|
|
@@ -88,7 +88,8 @@ var Renderer = function Renderer(props) {
|
|
|
88
88
|
className: "render_wrap",
|
|
89
89
|
magic_design: "",
|
|
90
90
|
style: {
|
|
91
|
-
background: pageBackground
|
|
91
|
+
background: pageBackground,
|
|
92
|
+
overflow: 'aotu'
|
|
92
93
|
}
|
|
93
94
|
}, filterCompFloor().map(function (nodeData) {
|
|
94
95
|
var Clazz = _componentTypes.componentMap[nodeData.type];
|