weex-native-directive
weex-native-directive copied to clipboard
Weex native directive design
 Ios 上数据源为 null 崩溃,安卓没问题。 **1:facilityClass 初始值为null,会崩溃,** **2: facilityClass 初始值为空数组 [ ],后续赋值为null,不会崩溃**
```html ``` Will be compiled to: ```js { type: 'div', attrs: { class: { '@binding': 'box.classList' } } } ``` Currently, class names and the stylesheet are managed in front-end...
can use section? can use section header and support sticky? 英文不知道怎么说了。就是自动顶上去的效果,现在的list的sticky对象是覆盖的!
Source: ```html ``` Should be compiled to: ```js { style: { fontSize: 15, color: { '@binding': 'item.color' } } } ``` Current is: ```js { style: { '@binding': '{ fontSize:...
### Syntax Change the compiler to support the new syntax. + Use `for` instead of the `list-data`, `alias` and `index`. + Use `switch` instead of the `template-key`. + Use `case`...
Currently it seems `switch` and `case` attributes (previously `template-key` and `template-type`) are always required, even when there is only one ``. I think when there is only one ``, it...
Using callbacks to support filters in the template. ```html {{ item.title | i18n }} ``` Should be compiled to: ```js { type: 'text', attrs: { value: { '@binding': 'item.title' '@filters':...