UNPKG

@dolphinweex/dof-weex-vue-precompiler

Version:

a precompiler for weex-vue-render.

22 lines (20 loc) 368 B
const ast = require('../util/ast') exports.processRecycleList = function ( el, attrsMap, attrsList, attrs, staticClass ) { const recycleFor = ast.parseFor(attrsMap.for) attrs.push({ name: '_items', value: recycleFor.for }) if (attrsMap['switch']) { attrs.push({ name: '_switch', value: `"${attrsMap['switch']}"` }) } }