widget/Container.php
public static function plugForm(Field $field, string $type = null)
    {
        $className = $field->plugName;
        if (empty($className) || !class_exists($className)) {
            throw new \Exception('没有找到插件的类 ' . $className);
        }
        if ($type) {
            return new $className($type);
        }
        return new $className($field->getForm()->getType());
    }
public static function plugForm(Field $field, string $type = null)
    {
        $className = $field->plugName;
        if (empty($className) || !class_exists($className)) {
            throw new \Exception('没有找到插件的类 ' . $className);
        }
        if ($type) {
            return new $className($type);
        }
        return new $className($field->getForm()->getType());
    }
获取插件表单
@param Field $field
@param string|null $type
@return Form
@throws \Exception