-
v1.7.0 Stable
released this
2023-03-27 16:13:46 +08:00 | 73 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
- 增加