适配wkit1.12.3, 自定义组件名

master
yutent 2024-12-06 18:56:38 +08:00
parent a9ff9f0323
commit f30eac2195
3 changed files with 4 additions and 9 deletions

View File

@ -1,6 +1,6 @@
{
"name": "wkitd",
"version": "1.3.10",
"version": "1.3.11",
"type": "module",
"main": "dist/index.js",
"files": [

View File

@ -92,7 +92,7 @@ export function createApp({
}
}
}
App.reg('app')
App.reg('app', 'v')
}
})()
}

View File

@ -191,10 +191,5 @@ class RouterLink extends Component {
}
}
if (!customElements.get('router-view')) {
customElements.define('router-view', RouterView)
}
if (!customElements.get('router-link')) {
customElements.define('router-link', RouterLink)
}
RouterView.reg('view', 'router')
RouterLink.reg('link', 'router')