docs: Fix color selector docs

This commit is contained in:
SamTolmay 2021-02-09 11:40:00 +02:00
parent 20702367ca
commit 15a3565082
4 changed files with 21 additions and 9 deletions

View File

@ -54,13 +54,19 @@
"#AB149E"
],
"items": {
"type": "string"
"type": "string",
"docs": {
"displayType": "color"
}
}
},
"defaultColor": {
"type": "string",
"default": "#000000",
"description": "Default color to display if input value is null."
"description": "Default color to display if input value is null.",
"docs": {
"displayType": "color"
}
},
"inputStyle": {
"type": "object",

View File

@ -34,13 +34,19 @@
"#D4C4FB"
],
"items": {
"type": "string"
"type": "string",
"docs": {
"displayType": "color"
}
}
},
"defaultColor": {
"type": "string",
"default": "#000000",
"description": "Default color to display if input value is null."
"description": "Default color to display if input value is null.",
"docs": {
"displayType": "color"
}
},
"inputStyle": {
"type": "object",

View File

@ -23,7 +23,7 @@ _ref:
path: ../blocks/blocksAntd/src/blocks/AutoComplete/AutoComplete.json
init_property_values:
options:
- one
- one
- two
description_content: |
The AutoComplete block is a text input that has a list of suggestions for the user. These suggestions are filtered as the user fills in the input. The user is also allowed to fill in an input not part of that list.

View File

@ -40,9 +40,9 @@ events:
- id: init_property_values
type: SetState
skip:
_if_none:
_eq:
- _var: init_property_values
- true
- null
params:
block:
properties:
@ -50,9 +50,9 @@ events:
- id: init_state_values
type: SetState
skip:
_if_none:
_eq:
- _var: init_state_values
- true
- null
params:
_var: init_state_values