mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +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