diff --git a/api-generator/components/confirmdialog.js b/api-generator/components/confirmdialog.js index cfcad100c0..6e39797cae 100644 --- a/api-generator/components/confirmdialog.js +++ b/api-generator/components/confirmdialog.js @@ -10,6 +10,12 @@ const ConfirmDialogProps = [ type: 'object', default: 'null', description: 'Object literal to define widths per screen size.' + }, + { + name: 'draggable', + type: 'boolean', + default: 'true', + description: 'Whether the dialog can be relocated by dragging.' } ]; diff --git a/components/confirmdialog/ConfirmDialog.d.ts b/components/confirmdialog/ConfirmDialog.d.ts index bce238c4b9..15866fd0f2 100644 --- a/components/confirmdialog/ConfirmDialog.d.ts +++ b/components/confirmdialog/ConfirmDialog.d.ts @@ -46,6 +46,11 @@ export interface ConfirmDialogProps { * @see ConfirmDialogBreakpoints */ breakpoints?: ConfirmDialogBreakpoints; + /** + * Enables dragging to change the position using header. + * @defaultValue true + */ + draggable?: boolean | undefined; } /** diff --git a/components/confirmdialog/ConfirmDialog.vue b/components/confirmdialog/ConfirmDialog.vue index 2d49a49146..44ad632e07 100644 --- a/components/confirmdialog/ConfirmDialog.vue +++ b/components/confirmdialog/ConfirmDialog.vue @@ -1,5 +1,17 @@