diff --git a/api-generator/components/dialog.js b/api-generator/components/dialog.js index 1b13bc3b5..89283f007 100644 --- a/api-generator/components/dialog.js +++ b/api-generator/components/dialog.js @@ -100,7 +100,31 @@ const DialogProps = [ 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 displayed full screen." + }, + { + name: "minX", + type: "number", + default: "0", + description: "Minimum value for the left coordinate of dialog in dragging." + }, + { + name: "minY", + type: "number", + default: "0", + description: "Minimum value for the top coordinate of dialog in dragging." + }, + { + name: "keepInViewport", + type: "boolean", + default: "true", + description: "Keeps dialog in the viewport when dragging." + }, ]; const DialogEvents = [ diff --git a/src/components/dialog/Dialog.d.ts b/src/components/dialog/Dialog.d.ts index a4ce714ef..7e7351db1 100755 --- a/src/components/dialog/Dialog.d.ts +++ b/src/components/dialog/Dialog.d.ts @@ -18,6 +18,10 @@ interface DialogProps { position?: string; maximizable?: boolean; breakpoints?: {[key: string]: string}; + draggable: boolean; + keepInViewPort: boolean; + minX: number; + minY: number; } declare class Dialog { diff --git a/src/components/dialog/Dialog.vue b/src/components/dialog/Dialog.vue index 3b350c6fa..834d45856 100755 --- a/src/components/dialog/Dialog.vue +++ b/src/components/dialog/Dialog.vue @@ -3,7 +3,7 @@