返回组件库

A new opening.

一个 CSS 文件、一个 JS 文件、一个素材目录。直接将下方结构用于你的原生网页。

<link rel="stylesheet" href="overture.css">
<script src="overture.js"></script>
<div id="host"></div>
<script>
Overture.configure({ assetBase: 'assets/' });
const instance = Overture.mount('Range', '#host', {
  label: '曝光', value: 42,
  onChange: ({value}) => console.log(value)
});
// 在页面卸载或切换时调用 instance.destroy()
</script>