refactor(web/menu)!: pass scrollIndex or checked in the same value

If the button is a scroll button then `isScroll` is passed into args, if a button is a checkbox then `isCheck` is passed into args.

Requires `args` to always be of type `table`
This commit is contained in:
Luke
2022-10-29 15:52:59 +02:00
parent c227282ce0
commit 9cc7b9270e
3 changed files with 45 additions and 38 deletions

View File

@@ -10,7 +10,7 @@ interface MenuOptions {
values?: Array<string | { label: string; description: string }>;
description?: string;
defaultIndex?: number;
args?: any;
args?: Record<any, any>;
close?: boolean;
}