ui: allow direct edit file

This commit is contained in:
undefined committed 2021-05-12 23:14:07 +08:00
1 parent 33211aa7dc
commit 30cad9b80e
7 files changed
+100 -33

No files matched your search

@@ -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`
<div class="dialog withBg ${this.options.classes}" style="display:none">
<div class="dialog__content">
<div class="dialog__body"></div>
<div class="dialog__content" style="${box}">
<div class="dialog__body" style="height:calc(100% - 45px);"></div>
<div class="row"><div class="columns clearfix">
<div class="float-right dialog__action"></div>
</div></div>