fix(custom-element): ignore scoped id

This commit is contained in:
Evan You 2024-08-03 13:40:57 +08:00
parent 37d2ce5d8e
commit 7f2c505f92
No known key found for this signature in database
GPG Key ID: 00E9AB7A6704CE0A
1 changed files with 1 additions and 0 deletions

View File

@ -331,6 +331,7 @@ export class VueElement extends BaseClass {
}
protected _setAttr(key: string) {
if (key.startsWith('data-v-')) return
let value = this.hasAttribute(key) ? this.getAttribute(key) : undefined
const camelKey = camelize(key)
if (this._numberProps && this._numberProps[camelKey]) {