@dolphinweex/dof-weex-vue-precompiler
Version:
a precompiler for weex-vue-render.
16 lines (14 loc) • 396 B
JavaScript
const { processResize } = require('../components/image')
const { processLines } = require('../components/text')
module.exports = function noneStandardHook (
el,
attrsMap,
attrsList,
attrs,
staticClass
) {
// for image: transform 'resize' attr to directives.
processResize.call(this, el, attrs)
// for text: transform 'lines' style to staticStyle.
processLines.call(this, el)
}