UNPKG

@lowdefy/blocks-antd

Version:

Lowdefy Ant Design Blocks

137 lines (136 loc) 3.74 kB
{ "type": "object", "properties": { "type": "object", "additionalProperties": false, "properties": { "code": { "type": "boolean", "default": false, "description": "Apply code style." }, "color": { "type": "string", "description": "Title color.", "docs": { "displayType": "color" } }, "content": { "type": "string", "description": "Title text content - supports html." }, "copyable": { "default": false, "oneOf": [ { "type": "boolean", "description": "Provide copy text button." }, { "type": "object", "additionalProperties": false, "properties": { "text": { "type": "string", "description": "Paragraph text to copy when clicked." }, "icon": { "type": ["string", "object", "array"], "description": "Copy icon, can be an array or two icons for before and after clicked.", "docs": { "displayType": "icon" } }, "tooltips": { "type": ["string", "array"], "description": "Tooltip text, can be an array or two strings for before and after clicked.", "docs": { "displayType": "string" } } } } ] }, "delete": { "type": "boolean", "default": false, "description": "Apply deleted (strikethrough) style." }, "disabled": { "type": "boolean", "default": false, "description": "Apply disabled style." }, "ellipsis": { "default": false, "oneOf": [ { "type": "boolean", "description": "Display ellipsis when text overflows a single line." }, { "type": "object", "additionalProperties": false, "properties": { "rows": { "type": "number", "description": "Max rows of content." }, "expandable": { "type": "boolean", "description": "Expand hidden content when clicked." }, "suffix": { "type": "string", "description": "Suffix of ellipses content." } } } ] }, "italic": { "type": "boolean", "default": false, "description": "Apply italic style." }, "level": { "type": "number", "default": 1, "enum": [1, 2, 3, 4, 5], "description": "Set title type. Matches with h1, h2, h3 and h4." }, "mark": { "type": "boolean", "default": false, "description": "Apply marked (highlighted) style." }, "type": { "type": "string", "default": "default", "enum": ["secondary", "warning", "danger", "success"], "description": "Additional types. Don't specify for default." }, "underline": { "type": "boolean", "default": false, "description": "Apply underline style." } } }, "events": { "type": "object", "additionalProperties": false, "properties": { "onExpand": { "type": "array", "description": "Trigger action when ellipse expand is clicked." }, "onCopy": { "type": "array", "description": "Trigger action when copy text is clicked." } } } }