dialog调整
This commit is contained in:
parent
e5336ed74e
commit
eaf84b5fe6
@ -16,11 +16,12 @@
|
||||
}"
|
||||
style="max-width: 2000px"
|
||||
>
|
||||
<q-scroll-area
|
||||
<!-- <q-scroll-area
|
||||
v-if="props.height"
|
||||
id="draggable-dialog-scroll"
|
||||
:style="`width: ${props.width}px;height: ${props.height}px`"
|
||||
style="max-height: 90vh"
|
||||
>
|
||||
> -->
|
||||
<div style="position: sticky; top: 0px; z-index: 9">
|
||||
<q-bar
|
||||
ref="headerRef"
|
||||
@ -44,19 +45,21 @@
|
||||
<q-btn dense flat icon="sym_o_close" v-close-popup></q-btn>
|
||||
</q-bar>
|
||||
</div>
|
||||
|
||||
<q-scroll-area
|
||||
v-if="props.height"
|
||||
id="draggable-dialog-scroll"
|
||||
:style="`width: ${props.width}px;height: ${props.height}px`"
|
||||
style="max-height: calc(90vh - 100px)"
|
||||
>
|
||||
<slot></slot>
|
||||
|
||||
<div :style="`width: ${props.width}px`">
|
||||
</q-scroll-area>
|
||||
<slot name="footer"></slot>
|
||||
</div>
|
||||
<div
|
||||
:style="`width: ${props.width}px`"
|
||||
style="position: sticky; bottom: 0px"
|
||||
>
|
||||
<slot name="sticky-footer"></slot>
|
||||
</div>
|
||||
</q-scroll-area>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
</template>
|
||||
|
Loading…
Reference in New Issue
Block a user