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