release: WRNexusJS 0.6.0
This commit is contained in:
@@ -1,30 +1,33 @@
|
||||
component PortalDashboard {
|
||||
outputs {
|
||||
action(payload: { item: string | number | boolean | null | object; value: string | number | boolean; index: number })
|
||||
navigate(payload: { item: string | number | boolean | null | object; value: string | number | boolean; index: number })
|
||||
}
|
||||
|
||||
props {
|
||||
@event action = function
|
||||
@event navigate = function
|
||||
size = "default"
|
||||
color = "primary"
|
||||
eyebrow = "Overview"
|
||||
eyebrowKey = ""
|
||||
title = "Dashboard"
|
||||
titleKey = ""
|
||||
description = ""
|
||||
descriptionKey = ""
|
||||
userName = ""
|
||||
metrics = []
|
||||
actions = []
|
||||
updates = []
|
||||
tasks = []
|
||||
class = ""
|
||||
size: string = "default"
|
||||
color: string = "primary"
|
||||
eyebrow: string = "Overview"
|
||||
eyebrowKey: string = ""
|
||||
title: string = "Dashboard"
|
||||
titleKey: string = ""
|
||||
description: string = ""
|
||||
descriptionKey: string = ""
|
||||
userName: string = ""
|
||||
metrics: unknown[] = []
|
||||
actions: unknown[] = []
|
||||
updates: unknown[] = []
|
||||
tasks: unknown[] = []
|
||||
class: string = ""
|
||||
}
|
||||
|
||||
functions {
|
||||
function chooseAction(item, index) {
|
||||
$emit("action", { item: item, value: item.value || "", index: index })
|
||||
client function chooseAction(item, index) {
|
||||
output.action({ item: item, value: item.value || "", index: index })
|
||||
}
|
||||
|
||||
function chooseNavigation(item, index) {
|
||||
$emit("navigate", { item: item, value: item.value || "", index: index })
|
||||
client function chooseNavigation(item, index) {
|
||||
output.navigate({ item: item, value: item.value || "", index: index })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user