* zin: support to create h5 node with createWg.

This commit is contained in:
sunhao
2024-04-19 11:15:22 +08:00
parent 1c790512a9
commit ca52ce3cb5
3 changed files with 8 additions and 0 deletions
+5
View File
@@ -42,6 +42,11 @@ function createWg($name, $args, ?string $fallbackWgName = null): node
$wgVer = getWgVer($name);
$wgName = "\\zin\\$name";
if(in_array($name, h::$h5Tags))
{
return h::$name($args);
}
if(!class_exists($wgName))
{
include_once dirname(__DIR__) . DS . 'wg' . DS . $name . DS . "v$wgVer.php";