• 1.10.7 f54a5a3653

    v1.10.7 Stable

    yutent released this 2023-09-19 13:39:40 +08:00 | 25 commits to master since this release

    • keepAlive设为保留关键字, 不可用于自定义props。(组件设为keepAlive时, 事件不会自动销毁, 请慎用该属性)
    • 修复复杂类型属性的监听
    • 增加静态属性watches的支持。(在props默认的处理逻辑不满足需求时, 可自行编写处理逻辑, 需要监听属性时, 可自行添加)
    
    class Foo extends Component {
    
      static watches = ['xx']
    
      get xx(){
        //
      }
    
      set(v){
        // 
      } 
    }
    
    
    Downloads
     
  • 1.10.6 0483d6efc3

    v1.10.6 Stable

    yutent released this 2023-09-04 14:18:17 +08:00 | 28 commits to master since this release

    • 生命周期回调改为异步, 在回调中修改数据支持自动更新视图, 不再需要手动更新或放nextTick
    • 属性定义, 类型为Obejct/Array时, 支持子属性的监听
    Downloads
     
  • 1.10.4 4c3d3eae21

    v1.10.4 Stable

    yutent released this 2023-08-15 14:36:16 +08:00 | 31 commits to master since this release

    • 兼容wkitd的状态管理
    Downloads
     
  • 1.10.2 8c1b1350b0

    v1.10.2 Stable

    yutent released this 2023-08-15 11:45:03 +08:00 | 33 commits to master since this release

    • 修复属性定义, 遵循W3C规范
    Downloads
     
  • 1.10.1 c0eb316f87

    v1.10.1 Stable

    yutent released this 2023-08-11 19:11:16 +08:00 | 35 commits to master since this release

    • 修复props声明
    • 修复动画配置(类定义时可传custom)
    • 动画增加增加立刻执行设定()
    • 修改模板缓存逻辑(以保持rawhtml的表现一致)
    • 增加keepalive支持, 同时新增activateddeactivated2个生命周期 (仅使用wkitd创建应用时)
    Downloads
     
  • 1.10.0 e9d5add0d0

    v1.10.0 Stable

    yutent released this 2023-08-11 10:20:03 +08:00 | 40 commits to master since this release

    • props定义中的ArrayObject, 改用Proxy(), 现支持对子属性的直接修改。
    • props定义简单类型, 如StringNumberBoolean, 可以快速的定义非显式属性。

    对应3种特殊的prefix字符, 即str!num!bool!, 叹号后面可以带上默认值, 框架会自动按类型转换, 其中布尔类型的默认值, 除'false'''之外, 全部为true

    
    class Foo extends Component {
      static props = {
        foo: 'str!',  // 等价于 foo: { type: String, default: '', attribute: false }
        bar: 'num!666',  // 等价于 foo: { type: Number, default: 666, attribute: false }
        goo: 'bool!false'  // 等价于 foo: { type: Boolean, default: false, attribute: false }
      }
    }
    
    
    
    Downloads
     
  • 1.9.5 da5e5fd4a4

    v1.9.5 Stable

    yutent released this 2023-05-08 19:17:55 +08:00 | 51 commits to master since this release

    • 修复props定义

    props定义变化如 #1.9.3 所示

    Downloads
     
  • 1.9.4 ecd46ba23d

    v1.9.4 Stable

    yutent released this 2023-05-08 18:43:04 +08:00 | 52 commits to master since this release

    • $emit()增加禁止事件冒泡的支持
    Downloads
     
  • 1.9.3 134e465dd0

    v1.9.3 Stable

    yutent released this 2023-05-06 11:59:58 +08:00 | 53 commits to master since this release

    • 优化props定义
      1. 原生布尔属性, 直接赋值按照驼峰风格, 在attribute上转为全小写。(此为原生的规范)
      2. 非原生布尔属性, 直接赋值按你定义的key原值。 attribute时, 转为连字符风格
    
    class Foo extends Component {
      static props = {
        readonly: true,
        isMap: true,
        fooBar: 2133,
        'bal-bla': 6666
      }
    }
    
    // 最终的表现为
    <wc-foo readonly ismap foo-bar="2133" bla-bla="6666"></wc-foo>
    
    // 需要直接赋值时
    
    foo = $('wc-foo')
    
    foo.readOnly = true // or false
    foo.setAttribute('readonly', '')     // or  foo.removeAttribute('readonly') 
    
    foo.isMap = true // or false
    foo.setAttribute('ismap', '')     //  or foo.removeAttribute('ismap')  
    
    foo.fooBar = 2333      // 等价于
    foo.setAttribute('foo-bar', 2333)
    
    // 注意, 这里无法通过 foo['bla-bla'] 访问
    foo.blaBla = 2333   // 等价于
    foo.setAttribute('bla-bla', 2333)
    
    
    Downloads
     
  • 1.9.2 5e1a5d7ebd

    v1.9.2 Stable

    yutent released this 2023-04-26 19:09:46 +08:00 | 54 commits to master since this release

    • 优化在iframe中运行时,调用document.open()导致的报错
    Downloads