Skip to content

Feature: 组件可不可以支持初始交互状态 #659

@PittyXu

Description

@PittyXu

Is your feature request related to a problem? Please describe.

我们想要直接在playground界面就可以和组件交互设置属性,比如一个图片组件,拖入playground有一个初始的状态,比如上传图片组件(线框+加法),然后点击playground的的这个初始线框可以弹出让用户上传图片的交互。
这样可以方便一些小白用户,直接隐藏右侧的属性面板等。

Describe the solution you'd like

定义组件的时候可以有一个初始组件的定义,在组件数据为空的情况下展示此初始组件,然后可以定义该组件在playground中的交互,在编译打包的时候可以去除这一部分的代码不打包到runtime中。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions