|
@@ -28,6 +28,7 @@ export interface ConfirmOptions {
|
|
export interface ListOptions<T> {
|
|
export interface ListOptions<T> {
|
|
title?: string
|
|
title?: string
|
|
cancel?: Btn
|
|
cancel?: Btn
|
|
|
|
+ autoCancel?: boolean
|
|
index?: number
|
|
index?: number
|
|
alignment?: DialogAlignment
|
|
alignment?: DialogAlignment
|
|
values: Array<T>
|
|
values: Array<T>
|
|
@@ -273,7 +274,7 @@ export class ToolsHelper {
|
|
const dialogTag = ToolsHelper.getUuid()
|
|
const dialogTag = ToolsHelper.getUuid()
|
|
promptAction.openCustomDialog({
|
|
promptAction.openCustomDialog({
|
|
cornerRadius: 0,
|
|
cornerRadius: 0,
|
|
- autoCancel: false,
|
|
|
|
|
|
+ autoCancel: options.autoCancel ?? false,
|
|
width: '100%',
|
|
width: '100%',
|
|
// height: options.values === undefined ? '20%' :
|
|
// height: options.values === undefined ? '20%' :
|
|
// options.values?.length < 8 ? `${options.values?.length / 16 * 100+10}%` : '50%',
|
|
// options.values?.length < 8 ? `${options.values?.length / 16 * 100+10}%` : '50%',
|