packages/okam-build/lib/processor/template/transform/wx2swan/element.js
function transformTemplateElement(element) {
    let {attribs: attrs} = element;
    let data = attrs && attrs.data;
    if (data) {
        attrs.data = `{${data}}`;
    }
}
function transformTemplateElement(element) {
    let {attribs: attrs} = element;
    let data = attrs && attrs.data;
    if (data) {
        attrs.data = `{${data}}`;
    }
}
function transformTemplateElement ( element ) { let { attribs : attrs } = element ; let data = attrs && attrs . data ; if ( data ) { attrs . data = ` ${ data } ` ; } }
template data属性转换
data 属性 加单 花括号: template

@param  {Object} element element
template data属性转换 data 属性 加单 花括号 : template