pull/1/head 1.5.11
yutent 2023-03-22 18:56:14 +08:00
parent c416622f72
commit f397c57c37
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@bd/core", "name": "@bd/core",
"version": "1.5.10", "version": "1.5.11",
"type": "module", "type": "module",
"description": "百搭UI组件库的核心", "description": "百搭UI组件库的核心",
"main": "dist/index.js", "main": "dist/index.js",

View File

@ -289,7 +289,7 @@ class TemplateInstance {
#checkRef(node, walker, options) { #checkRef(node, walker, options) {
do { do {
if (node.nodeType === 1 && node.getAttribute('ref')) { if (node?.nodeType === 1 && node?.getAttribute('ref')) {
options.host.$refs[node.getAttribute('ref')] = node options.host.$refs[node.getAttribute('ref')] = node
node.removeAttribute('ref') node.removeAttribute('ref')
} }