mirror of
https://github.com/Theaninova/TheaninovOS.git
synced 2026-02-15 21:12:51 +00:00
update ags
This commit is contained in:
@@ -1,27 +1,26 @@
|
||||
import { App, Widget } from '../../imports.js';
|
||||
const { Revealer, Box, Window } = Widget;
|
||||
import {App, Widget} from "../../imports.js"
|
||||
const {Revealer, Box, Window} = Widget
|
||||
|
||||
|
||||
export default ({
|
||||
name,
|
||||
child,
|
||||
showClassName,
|
||||
hideClassName,
|
||||
...props
|
||||
}) => Window({
|
||||
export default ({name, child, showClassName, hideClassName, ...props}) =>
|
||||
Window({
|
||||
name,
|
||||
popup: true,
|
||||
visible: false,
|
||||
layer: 'overlay',
|
||||
layer: "overlay",
|
||||
...props,
|
||||
|
||||
child: Box({
|
||||
className: `${showClassName} ${hideClassName}`,
|
||||
connections: [[App, (self, currentName, visible) => {
|
||||
className: `${showClassName} ${hideClassName}`,
|
||||
connections: [
|
||||
[
|
||||
App,
|
||||
(self, currentName, visible) => {
|
||||
if (currentName === name) {
|
||||
self.toggleClassName(hideClassName, !visible);
|
||||
self.toggleClassName(hideClassName, !visible)
|
||||
}
|
||||
}]],
|
||||
child: child,
|
||||
},
|
||||
],
|
||||
],
|
||||
child: child,
|
||||
}),
|
||||
});
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user