mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-05-04 21:22:07 +00:00
[test] Add component test for TreeSelect Vue widget (#5551)
* add tree select widget component test * [refactor] export TreeNode type from component - addresses review feedback Co-authored-by: DrJKL <DrJKL@users.noreply.github.com> * [refactor] move createTreeData to module scope - addresses review feedback Co-authored-by: DrJKL <DrJKL@users.noreply.github.com> --------- Co-authored-by: DrJKL <DrJKL@users.noreply.github.com>
This commit is contained in:
@@ -25,6 +25,15 @@ import {
|
||||
|
||||
import WidgetLayoutField from './layout/WidgetLayoutField.vue'
|
||||
|
||||
export type TreeNode = {
|
||||
key: string
|
||||
label?: string
|
||||
data?: unknown
|
||||
children?: TreeNode[]
|
||||
leaf?: boolean
|
||||
selectable?: boolean
|
||||
}
|
||||
|
||||
const props = defineProps<{
|
||||
widget: SimplifiedWidget<any>
|
||||
modelValue: any
|
||||
|
||||
Reference in New Issue
Block a user