重新封装了表单窗体,支持关闭时变更检测;
优化模版代码及内部注释,更快速开发;
开发文档中的代码片段可以复制成用户片段模版
This commit is contained in:
2021-04-30 21:58:31 +08:00
parent a41311327c
commit 03a88be5ce
30 changed files with 562 additions and 792 deletions

View File

@@ -207,22 +207,34 @@
}
}
.yo-drawer-form {
.ant-drawer-wrapper-body {
display: flex;
flex-direction: column;
}
.ant-drawer-header {
position: absolute;
top: 0;
left: 0;
z-index: 7;
width: 100%;
flex: 0 0 auto;
}
.ant-drawer-body {
padding: @padding-lg + 56px @padding-lg;
position: relative;
flex: 1 1 100%;
padding: 0;
}
.yo-drawer-form--body {
position: absolute;
top: 0;
bottom: @border-width-base + 20px + @padding-md * 2;
overflow: auto;
width: 100%;
padding: @padding-lg;
}
.ant-drawer-footer {
position: absolute;
left: 0;
bottom: 0;
z-index: 7;
width: 100%;
padding: 10px @padding-md;

View File

@@ -1,3 +1,4 @@
@import (reference) '~@/assets/style/extend.less';
.hide {
visibility: hidden !important;
}

View File

@@ -1,3 +0,0 @@
.w-100-p {
width: 100%;
}

View File

@@ -1,3 +1,4 @@
@import (reference) '~@/assets/style/extend.less';
.w-100-p {
width: 100%;
}