@rbxts/app-forge 0.7.2-prototype.11 → 0.7.2-prototype.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/out/renders.luau +17 -12
- package/package.json +1 -1
package/out/renders.luau
CHANGED
|
@@ -31,8 +31,7 @@ do
|
|
|
31
31
|
super.constructor(self)
|
|
32
32
|
self.__px = false
|
|
33
33
|
end
|
|
34
|
-
function Renders:Render(
|
|
35
|
-
local props = _param.props
|
|
34
|
+
function Renders:Render(props)
|
|
36
35
|
print(props)
|
|
37
36
|
print(AppRegistry)
|
|
38
37
|
print(AppSources)
|
|
@@ -56,18 +55,24 @@ do
|
|
|
56
55
|
end
|
|
57
56
|
if target then
|
|
58
57
|
mount(function()
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
58
|
+
local _result
|
|
59
|
+
if root then
|
|
60
|
+
_result = root
|
|
61
|
+
else
|
|
62
|
+
local _attributes = table.clone(props)
|
|
63
|
+
setmetatable(_attributes, nil)
|
|
64
|
+
_result = (Vide.jsx("screengui", {
|
|
65
|
+
Name = "App Tree",
|
|
66
|
+
ZIndexBehavior = "Sibling",
|
|
67
|
+
ResetOnSpawn = false,
|
|
68
|
+
}, Vide.jsx(self.Render, _attributes)))
|
|
69
|
+
end
|
|
70
|
+
return _result
|
|
66
71
|
end)
|
|
67
72
|
else
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
73
|
+
local _attributes = table.clone(props)
|
|
74
|
+
setmetatable(_attributes, nil)
|
|
75
|
+
return Vide.jsx(self.Render, _attributes)
|
|
71
76
|
end
|
|
72
77
|
end
|
|
73
78
|
end
|