mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2026-01-18 15:02:09 +00:00
28 lines
696 B
HTML
28 lines
696 B
HTML
<!DOCTYPE html>
|
|
|
|
<html lang="zh-cn">
|
|
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Input Test</title>
|
|
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
|
|
<link href="../../assets/css/main.css" rel="stylesheet" />
|
|
</head>
|
|
|
|
<body>
|
|
<script src="../../node_modules/three/build/three.js"></script>
|
|
<script src="../../dist/ShadowEditor.js"></script>
|
|
<script>
|
|
var control = Shadow.UI.create({
|
|
xtype: 'input',
|
|
value: '123',
|
|
onChange: function () {
|
|
UI.msg(`Value: ${this.getValue()}`);
|
|
}
|
|
});
|
|
|
|
control.render();
|
|
</script>
|
|
</body>
|
|
|
|
</html> |