mirror of
https://github.com/lowdefy/lowdefy.git
synced 2025-02-17 14:30:34 +08:00
Merge branch 'develop' into upgrade-axios
This commit is contained in:
commit
9a58e9e273
@ -226,7 +226,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"actions": {
|
||||
"events": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
|
@ -46,11 +46,11 @@ const ParagraphInput = ({ blockId, events, properties, methods, value }) => {
|
||||
copyable={
|
||||
type.isObject(properties.copyable)
|
||||
? {
|
||||
text: properties.copyable.test || value,
|
||||
text: properties.copyable.text || value,
|
||||
onCopy: () => {
|
||||
methods.triggerEvent({
|
||||
name: 'onCopy',
|
||||
event: { value: properties.copyable.test || value },
|
||||
event: { value: properties.copyable.text || value },
|
||||
});
|
||||
},
|
||||
icon:
|
||||
|
@ -47,6 +47,21 @@ _ref:
|
||||
```
|
||||
Returns: `"George"`.
|
||||
|
||||
###### Use _get to as a switch statement to choose an Icon name:
|
||||
```yaml
|
||||
_get:
|
||||
key:
|
||||
_state: status
|
||||
from:
|
||||
new: PlusCircleTwoTone
|
||||
escalated: ExclamationCircleOutlined
|
||||
investigation_started: ToolTwoTone
|
||||
client_contacted: SoundTwoTone
|
||||
awaiting_confirmation: LikeOutlined
|
||||
closed: StopOutlined
|
||||
```
|
||||
Returns: The icon corresponding to the status in state.
|
||||
|
||||
###### Get from an array (arrays are `0` indexed):
|
||||
```yaml
|
||||
_get:
|
||||
|
Loading…
Reference in New Issue
Block a user