mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 16:12:12 +00:00
hid -> data-hid
This commit is contained in:
parent
a078a631eb
commit
80db40fc1f
@ -158,7 +158,14 @@ export function attrsStr (attrObj = {}, exclude = []) {
|
|||||||
if (typeof attrObj[attr] !== 'string') {
|
if (typeof attrObj[attr] !== 'string') {
|
||||||
return attr
|
return attr
|
||||||
}
|
}
|
||||||
return `${attr}="${attrObj[attr].replace('"', '\'')}"`
|
|
||||||
|
const val = attrObj[attr].replace('"', '\'')
|
||||||
|
|
||||||
|
if (attr === 'hid') {
|
||||||
|
attr = 'data-hid'
|
||||||
|
}
|
||||||
|
|
||||||
|
return `${attr}="${val}"`
|
||||||
}).join(' ')
|
}).join(' ')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user