forked from opentiny/tiny-vue
fix(dialog-box): [dialog-box] modify smb theme (#1985)
* fix(dialog-box): [dialog-box] modify smb theme * fix(dialog-box): [dialog-box] modify smb theme * fix(dialog-box): modify dialog-box bottom of height
This commit is contained in:
parent
93f956a576
commit
3799ef19c5
|
@ -75,15 +75,18 @@
|
|||
.@{dialog-box-prefix-cls}__title {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
.@{dialog-box-prefix-cls}__btn-tools {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.@{dialog-box-prefix-cls}__headerbtn {
|
||||
position: absolute;
|
||||
position: relative;
|
||||
border: none;
|
||||
background: none;
|
||||
padding: 0;
|
||||
line-height: 1;
|
||||
top: var(--ti-dialog-box-btn-position-top);
|
||||
right: var(--ti-dialog-box-btn-position-right);
|
||||
top: calc(0px - var(--ti-dialog-box-btn-tools-position-top));
|
||||
right: calc(0px - var(--ti-dialog-box-btn-tools-position-right));
|
||||
cursor: pointer;
|
||||
|
||||
&:hover {
|
||||
|
|
|
@ -10,12 +10,12 @@ export const tinyDialogBoxSmbTheme = {
|
|||
'ti-dialog-box-body-text-color': 'var(--ti-common-color-text-primary)',
|
||||
'ti-dialog-box-footer-btn-min-width': 'calc(var(--ti-common-space-base) * 24)',
|
||||
'ti-dialog-box-drawer-divider-border-color': 'transparent',
|
||||
'ti-dialog-box-footer-margin-bottom': 'var(--ti-common-space-6x)',
|
||||
'ti-dialog-box-footer-margin-bottom': 'var(--ti-common-space-8x)',
|
||||
'ti-dialog-box-footer-align': 'right',
|
||||
'ti-dialog-box-footer-padding-top': 'var(--ti-common-space-6x)',
|
||||
'ti-dialog-box-resize-icon-color': 'var(--ti-common-color-icon-normal)',
|
||||
'ti-dialog-box-resize-icon-color-hover': 'var(--ti-common-color-icon-normal)',
|
||||
'ti-dialog-box-resize-icon-size': 'var(--ti-common-font-size-2)',
|
||||
'ti-dialog-box-btn-position-top': 'var(--ti-common-space-5x)',
|
||||
'ti-dialog-box-btn-position-right': 'var(--ti-common-space-5x)'
|
||||
'ti-dialog-box-btn-tools-position-top': 'var(--ti-common-size-3x)',
|
||||
'ti-dialog-box-btn-tools-position-right': 'var(--ti-common-size-3x)'
|
||||
}
|
||||
|
|
|
@ -38,33 +38,35 @@
|
|||
<slot name="title">
|
||||
<span class="tiny-dialog-box__title">{{ title }}</span>
|
||||
</slot>
|
||||
<button
|
||||
v-if="resize && !state.isFull"
|
||||
type="button"
|
||||
class="tiny-dialog-box__headerbtn"
|
||||
aria-label="Resize"
|
||||
@click="toggleFullScreen(true)"
|
||||
>
|
||||
<icon-fullscreen class="tiny-svg-size tiny-dialog-box__resize" />
|
||||
</button>
|
||||
<button
|
||||
v-if="resize && state.isFull"
|
||||
type="button"
|
||||
class="tiny-dialog-box__headerbtn"
|
||||
aria-label="Resize"
|
||||
@click="toggleFullScreen(false)"
|
||||
>
|
||||
<icon-minscreen class="tiny-svg-size tiny-dialog-box__resize" />
|
||||
</button>
|
||||
<button
|
||||
v-if="showClose"
|
||||
type="button"
|
||||
class="tiny-dialog-box__headerbtn"
|
||||
aria-label="Close"
|
||||
@click="handleClose('close', $event)"
|
||||
>
|
||||
<icon-close class="tiny-svg-size tiny-dialog-box__close" />
|
||||
</button>
|
||||
<div class="tiny-dialog-box__btn-tools">
|
||||
<button
|
||||
v-if="resize && !state.isFull"
|
||||
type="button"
|
||||
class="tiny-dialog-box__headerbtn"
|
||||
aria-label="Resize"
|
||||
@click="toggleFullScreen(true)"
|
||||
>
|
||||
<icon-fullscreen class="tiny-svg-size tiny-dialog-box__resize" />
|
||||
</button>
|
||||
<button
|
||||
v-if="resize && state.isFull"
|
||||
type="button"
|
||||
class="tiny-dialog-box__headerbtn"
|
||||
aria-label="Resize"
|
||||
@click="toggleFullScreen(false)"
|
||||
>
|
||||
<icon-minscreen class="tiny-svg-size tiny-dialog-box__resize" />
|
||||
</button>
|
||||
<button
|
||||
v-if="showClose"
|
||||
type="button"
|
||||
class="tiny-dialog-box__headerbtn"
|
||||
aria-label="Close"
|
||||
@click="handleClose('close', $event)"
|
||||
>
|
||||
<icon-close class="tiny-svg-size tiny-dialog-box__close" />
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tiny-dialog-box__body">
|
||||
<slot></slot>
|
||||
|
|
Loading…
Reference in New Issue