在我的 Stencil 组件中,我想使用传递下来的 prop 值来启动我的状态变量。如何在模板中做到这一点?
我尝试将值分配给 componentWillLoad 中的状态变量,但它不起作用。
@Prop() passedVal @State() someVal = ??
我是 Stencil 的新手,而且我来自 VueJS,所以请忍受我看似幼稚的问题。
智慧大石
相关分类