• 1.7.0 8770c32e5b

    v1.7.0 Stable

    yutent released this 2023-03-27 16:13:46 +08:00 | 73 commits to master since this release

    • 增加classMapstyleMap 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