-
v1.8.0 Stable
released this
2023-03-29 12:08:37 +08:00 | 71 commits to master since this release- 增加动画的支持, 并内置4种简单的动画 (
fade, scale, bounce, rotate
)
用法
对组件本身定义动画
class Foo extends { static animation = { type: 'fade', // 可以是4种内置之一 // 如果内置的动画不满足需求, 可以自定义, 语法详见 HTML的`Element.animate`文档 custom: [ {opacity: 0, ...}, // 阶段样式定义 {opacity: 0.5, ...}, ... ] } } // 声明之后, 便可在适当时机, 手动触发动画 // 出场动画 // this.$anim.start() // 离场动画 // this.$anim.start(true)
对组件内的节点配置动画
class Foo extends { render() { // 配置同上 let options = { type: 'fade' } return html`<div ref="foo" #animation=${options}>这个是有动画的节点</div>` } } // 声明之后, 便可在适当时机, 手动触发动画 // 出场动画 // this.$refs.foo.$anim.start() // 离场动画 // this.$refs.foo.$anim.start(true)
Downloads
- 增加动画的支持, 并内置4种简单的动画 (
-
v1.7.1 Stable
released this
2023-03-27 18:56:14 +08:00 | 74 commits to master since this release- 修复原生开发时,设置attribute为false时,初始值不生效的bug
Downloads
-
v1.7.0 Stable
released this
2023-03-27 16:13:46 +08:00 | 76 commits to master since this release- 增加
classMap
和styleMap
2个函数
let classes = classMap({ foo: true, bar: this.bar, ['goo-' + this.id]: true }) let styles = styleMap({ width: '888px', height: '200px', backgroundColor: '#f30' }) let output = html` <div class=${classes} style=${styles}>demo</div> `
Downloads
- 增加
-
v1.6.0 Stable
released this
2023-03-24 16:45:39 +08:00 | 77 commits to master since this release- 增加事件自动销毁机制
Downloads
-
v1.5.14 Stable
released this
2023-03-24 11:29:39 +08:00 | 78 commits to master since this release- 修复noop未定义的bug
- 优化代码,减少一些不必须的symbol
Downloads
-
released this
2023-03-23 11:50:28 +08:00 | 80 commits to master since this release- 修复ref解析部分缺失的bug
Downloads
-
v1.5.12 Stable
released this
2023-03-23 11:17:55 +08:00 | 81 commits to master since this release- 修复组件内组件的mounted不触发的bug
Downloads
-
v1.5.11 Stable
released this
2023-03-22 18:56:14 +08:00 | 82 commits to master since this release- 修复1.5.10的bug
Downloads
-
v1.5.10 Stable
released this
2023-03-22 18:49:46 +08:00 | 83 commits to master since this release- 修复ref解析丢失的bug
Downloads
-
v1.5.9 Stable
released this
2023-03-21 23:06:40 +08:00 | 84 commits to master since this release- 修复因兼容vue二次渲染引起的bug
Downloads