Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Import the current UI component using es6, the button click event appears to be disabled #1

Closed
GengineJS opened this issue May 14, 2019 · 7 comments

Comments

@GengineJS
Copy link

image
This project makes a lot of sense and saves a lot of UI work

@GengineJS
Copy link
Author

When the button and check box are clicked, the event does not respond, but the mouseover event appears to be valid

@xense
Copy link
Owner

xense commented May 14, 2019

@JumpNote please, show your code.

@GengineJS
Copy link
Author

image
as picture,I just changed the method exported by the phasercomps class

@GengineJS
Copy link
Author

/**
 * @namespace PhaserComps
 */

import ComponentClip from "./clip/ComponentClip";
import UIComponents from "./components/UIComponents";
import Plugin from "./plugin/Plugin";
import UIManager from "./manager/UIManager";

var PhaserComps = {
	ComponentClip: ComponentClip,
	UIComponents: UIComponents,
	Plugin: Plugin,
	UIManager: UIManager
};
export default PhaserComps

@tong3d
Copy link

tong3d commented May 15, 2019

I have the same question

@xense
Copy link
Owner

xense commented May 15, 2019

PhaserComps object is available globally now, so you don't really need to import it.
But I'll try to fix import problem soon.

@GengineJS
Copy link
Author

I may have to use the import method because I'm using a build with the vue cli

@xense xense closed this as completed in 7cf974b Aug 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants