是否可以将函数传递给stencilJs组件?
stencilJs
就像是:
@Prop() okFunc: () => void;
我有一个模态,想Ok在模态页脚中单击的按钮上动态调用传递的函数,就像onClick在普通 HTML 按钮上一样。
Ok
onClick
html function stencils web-component
function ×1
html ×1
stencils ×1
web-component ×1