Skip to content

Commit

Permalink
add attrsMap
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyuki committed May 14, 2019
1 parent 3deb086 commit 3d04c5f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function normalizeComponentRules (cfgs, spec) {
const supportedTargets = cfg.supportedTargets || spec.supportedTargets
supportedTargets.forEach((target) => {
result[target] = function (el) {
const rTag = cfg[target] && cfg[target].call(this, el.tag)
const rTag = cfg[target] && cfg[target].call(this, el.tag, { attrsMap: el.attrsMap })
if (rTag) {
el.tag = rTag
}
Expand Down

0 comments on commit 3d04c5f

Please sign in to comment.