ui文件中通过@builder装饰器定义样式函数,在组件中传入,子组件使用@builderparam接收 子组件中使用 @BuilderParam left:()=>void 函数方法进行接收直接通过this.left()使用