diff --git a/packages/ui-default/components/dialog/index.js b/packages/ui-default/components/dialog/index.js index ea9d84581..889dbbe9d 100644 --- a/packages/ui-default/components/dialog/index.js +++ b/packages/ui-default/components/dialog/index.js @@ -10,10 +10,13 @@ export default class Dialog { $action: null, ...options, }; + let box = ''; + if (options.width) box += `width:${options.width};max-width:${options.width};`; + if (options.height) box += `height:${options.height};max-height:${options.height};`; this.$dom = $(tpl`