mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 22:25: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') {
|
||||
return attr
|
||||
}
|
||||
return `${attr}="${attrObj[attr].replace('"', '\'')}"`
|
||||
|
||||
const val = attrObj[attr].replace('"', '\'')
|
||||
|
||||
if (attr === 'hid') {
|
||||
attr = 'data-hid'
|
||||
}
|
||||
|
||||
return `${attr}="${val}"`
|
||||
}).join(' ')
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user