mirror of
				https://gitee.com/hhyykk/ipms-sjy-ui.git
				synced 2025-11-04 04:08:44 +08:00 
			
		
		
		
	update src/components/Dialog/src/Dialog.vue.
解决了单独使用elementplus diaolog组件时,样式被篡改的问题 Signed-off-by: AKING <2734339436@qq.com>
This commit is contained in:
		@@ -67,6 +67,7 @@ const dialogStyle = computed(() => {
 | 
			
		||||
    lock-scroll
 | 
			
		||||
    draggable
 | 
			
		||||
    top="0"
 | 
			
		||||
    class="com-dialog"
 | 
			
		||||
    :show-close="false"
 | 
			
		||||
  >
 | 
			
		||||
    <template #header="{ close }">
 | 
			
		||||
@@ -107,13 +108,14 @@ const dialogStyle = computed(() => {
 | 
			
		||||
</template>
 | 
			
		||||
 | 
			
		||||
<style lang="scss">
 | 
			
		||||
.#{$elNamespace}-overlay-dialog {
 | 
			
		||||
.com-dialog {
 | 
			
		||||
  .#{$elNamespace}-overlay-dialog {
 | 
			
		||||
    display: flex;
 | 
			
		||||
    justify-content: center;
 | 
			
		||||
    align-items: center;
 | 
			
		||||
}
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
.#{$elNamespace}-dialog {
 | 
			
		||||
  .#{$elNamespace}-dialog {
 | 
			
		||||
    margin: 0 !important;
 | 
			
		||||
 | 
			
		||||
    &__header {
 | 
			
		||||
@@ -134,5 +136,6 @@ const dialogStyle = computed(() => {
 | 
			
		||||
    &__headerbtn {
 | 
			
		||||
      top: 0;
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
</style>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user