MrWindlike

Results 7 comments of MrWindlike

> Why do these two buttons share the same trigger Because they use the same fetch trait to call the same API, they use the same `trigger`. However, the things...

They can't reuse the parameters and some common logic and so on if use the different fetch traits to call the same API. I think this isn't the best way...

I think the runtime should catch the error and fall back to the property's `defaultValue` first. If the property has no `defaultValue`, then pass the `undefined` as the component property...

> Yanzhen worries about it will cause silent bug if we fallback to default value. Maybe displaying error message maybe could avoid this problem. I think the component developers should...

> I don't think we have parameters for the event handler at this moment, do you mean reading an out-date state in the event handler? Yes. > Could you show...

This is the screenshot of the chart demo: And the JSON schema is: ```json { "version": "sunmao/v1", "kind": "Application", "metadata": { "name": "Chart Application" }, "spec": { "components": [ {...

我觉得 default value 和 `exampleProperties` 不一定是可替代关系。 default value 可能用于某些场景下将属性处理为默认值,比如新增数组项、表达式转换为普通值等。 `exampleProperties` 可能用于新增组件时默认展示该组件的使用示例,可以和属性的默认值是不同的。