Run
Auto Run
define('my-app', class extends WeElement { popoverIt = (evt) => { this.popoverShow = !this.popoverShow this.popoverTarget = evt.target this.direction = evt.target.innerText this.update() } onClose = () => { this.popoverShow = false this.update() } css() { return `.btn{ margin-right:5px !important; }` } render() { return (
top-left
top
top-right
left-top
left
left-bottom
bottom-left
bottom
bottom-right
right-top
right
right-bottom
测试内容....
测试内容
测试内容测试内容
) } }) render(
, 'body')