sh-view 2.5.1 → 2.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
<div class="sh-drawer-body" :style="styles">
|
|
22
22
|
<slot v-if="modelValue || !destroyOnClose"></slot>
|
|
23
23
|
</div>
|
|
24
|
+
<div v-if="slots.footer" class="sh-drawer-footer">
|
|
25
|
+
<slot name="footer"></slot>
|
|
26
|
+
</div>
|
|
24
27
|
</div>
|
|
25
28
|
<div v-if="draggable && (placement === 'left' || placement === 'right')" class="sh-drawer-drag" :class="'sh-drawer-drag-' + placement" @mousedown="handleTriggerMousedown">
|
|
26
29
|
<slot name="trigger">
|
|
@@ -337,6 +340,7 @@ export default defineComponent({
|
|
|
337
340
|
})
|
|
338
341
|
|
|
339
342
|
return {
|
|
343
|
+
slots,
|
|
340
344
|
visible,
|
|
341
345
|
handleMask,
|
|
342
346
|
wrapClasses,
|
|
@@ -422,9 +426,8 @@ export default defineComponent({
|
|
|
422
426
|
&-content {
|
|
423
427
|
width: 100%;
|
|
424
428
|
height: 100%;
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
bottom: 0;
|
|
429
|
+
display: flex;
|
|
430
|
+
flex-direction: column;
|
|
428
431
|
background-color: var(--vxe-table-body-background-color);
|
|
429
432
|
border: 0;
|
|
430
433
|
background-clip: padding-box;
|
|
@@ -463,16 +466,19 @@ export default defineComponent({
|
|
|
463
466
|
}
|
|
464
467
|
&-body {
|
|
465
468
|
width: 100%;
|
|
466
|
-
|
|
469
|
+
flex: 1;
|
|
467
470
|
padding: 16px;
|
|
468
471
|
font-size: var(--vxe-font-size);
|
|
469
472
|
line-height: 1.5;
|
|
470
473
|
word-wrap: break-word;
|
|
471
|
-
position:
|
|
474
|
+
position: relative;
|
|
472
475
|
overflow: auto;
|
|
473
476
|
}
|
|
474
|
-
&-
|
|
475
|
-
|
|
477
|
+
&-footer {
|
|
478
|
+
position: relative;
|
|
479
|
+
border-top: 1px solid var(--vxe-table-border-color);
|
|
480
|
+
padding: 14px 16px;
|
|
481
|
+
line-height: 1;
|
|
476
482
|
}
|
|
477
483
|
&-no-mask {
|
|
478
484
|
pointer-events: none;
|