Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

组件的公开函数不能生成文档 #504

Closed
chensi66666 opened this issue Oct 12, 2023 · 2 comments
Closed

组件的公开函数不能生成文档 #504

chensi66666 opened this issue Oct 12, 2023 · 2 comments

Comments

@chensi66666
Copy link

chensi66666 commented Oct 12, 2023

代码如下:

/**
 * 空组件
 * @public
 */
@Component({
    selector: 'ry-empty',
    standalone: true,
    templateUrl: './empty.component.html',
    styleUrls: ['./empty.component.scss']
})
export class EmptyComponent {

    /**
     * 撒的发生的
     * @param p1 s
     * @public
     */
    public test(p1: string) {
        return p1;
    }

}

文档如下:
企业微信截图_16970812638968

@chensi66666
Copy link
Author

它的使用场景是这样的。在使用一些公共组件时,会通过@ViewChild 拿到组件。然后调用组件的方法去做一些操作。如一些弹框的关闭,一些值的清除等。常见的一些组件库组件都有自己的方法。如 devExtreme 和 openTiny 等

@why520crazy
Copy link
Member

please bump @docgnei/* to 2.2.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants