Skip to content
This repository has been archived by the owner on Oct 10, 2018. It is now read-only.

设置select 的默认值 #35

Open
chenmiao0212 opened this issue Mar 12, 2018 · 2 comments
Open

设置select 的默认值 #35

chenmiao0212 opened this issue Mar 12, 2018 · 2 comments

Comments

@chenmiao0212
Copy link

No description provided.

@CowSmiles
Copy link

使用default关键字:

"type": {
    "type": "string",
    "title": "类型",
    "default": "tom",
    "widget": {
        "id": "select",
        "data": [
            { "value": "jack", "label": "Jack" },
            { "value": "lucy", "label": "Lucy" },
            { "value": "tom", "label": "Tom", "disabled": true }
        ]
    }
}

@chenmiao0212
Copy link
Author

多谢了,我已经弄好了

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants