Commit 47e1046e by chenwq

style(module-entry): 调整并统一各页面入口网格的样式与变量

统一报表和任务页面的入口网格尺寸,将组件内硬编码样式替换为CSS自定义变量,调整图标大小、间距及标签字体大小适配新规格
1 parent e9bd5a8d
......@@ -85,7 +85,7 @@ function onEntryClick(key: string): void {
<style scoped lang="scss">
.module-entry-grid {
width: 100%;
min-height: 40px;
min-height: var(--module-entry-grid-min-height, 48px);
height: 100%;
background-color: var(--module-entry-grid-bg, #ffffff);
border-radius: var(--module-entry-grid-radius, 8px);
......@@ -95,7 +95,7 @@ function onEntryClick(key: string): void {
.module-entry-grid__list {
width: 100%;
min-height: 40px;
min-height: var(--module-entry-grid-list-min-height, var(--module-entry-grid-min-height, 48px));
height: 100%;
display: flex;
flex-direction: row;
......@@ -108,8 +108,8 @@ function onEntryClick(key: string): void {
.module-entry-grid__item {
flex: 1;
min-height: 40px;
height: 40px;
min-height: var(--module-entry-grid-item-min-height, 48px);
height: var(--module-entry-grid-item-height, 48px);
flex-shrink: 1;
display: flex;
flex-direction: row;
......@@ -129,14 +129,14 @@ function onEntryClick(key: string): void {
}
.module-entry-grid__icon {
width: 15px;
height: 15px;
margin-right: 4px;
width: var(--module-entry-grid-icon-size, 20px);
height: var(--module-entry-grid-icon-size, 20px);
margin-right: var(--module-entry-grid-icon-margin-right, 6px);
margin-bottom: 0px;
}
.module-entry-grid__label {
font-size: 13px;
font-size: var(--module-entry-grid-label-size, 15px);
color: var(--module-entry-grid-label-color, #202939);
font-weight: 400;
}
......
......@@ -13,12 +13,19 @@ export default {
"--reports-layout-padding": "10px 0 0",
"--reports-entry-flex": "0 0 auto",
"--reports-entry-width": "100%",
"--reports-entry-height": "38px",
"--reports-entry-min-height": "38px",
"--reports-entry-height": "50px",
"--reports-entry-min-height": "50px",
"--reports-entry-margin-right": "0px",
"--reports-entry-margin-bottom": "12px",
"--reports-entry-grid-wrap-height": "38px",
"--reports-entry-grid-wrap-height": "50px",
"--reports-entry-grid-wrap-margin-top": "0px",
"--module-entry-grid-min-height": "50px",
"--module-entry-grid-list-min-height": "50px",
"--module-entry-grid-item-min-height": "50px",
"--module-entry-grid-item-height": "50px",
"--module-entry-grid-icon-size": "22px",
"--module-entry-grid-icon-margin-right": "7px",
"--module-entry-grid-label-size": "15px",
"--reports-entry-overview-display": "none",
"--reports-entry-overview-margin": "0px",
"--reports-entry-overview-padding": "0px",
......
......@@ -20,12 +20,19 @@ export default {
"--tasks-content-padding": "0px",
"--tasks-entry-panel-flex": "0 0 auto",
"--tasks-entry-panel-width": "100%",
"--tasks-entry-panel-height": "40px",
"--tasks-entry-panel-min-height": "40px",
"--tasks-entry-panel-height": "50px",
"--tasks-entry-panel-min-height": "50px",
"--tasks-entry-panel-margin-right": "0px",
"--tasks-entry-panel-margin-bottom": "12px",
"--tasks-entry-grid-wrap-height": "40px",
"--tasks-entry-grid-wrap-height": "50px",
"--tasks-entry-grid-wrap-margin-top": "0px",
"--module-entry-grid-min-height": "50px",
"--module-entry-grid-list-min-height": "50px",
"--module-entry-grid-item-min-height": "50px",
"--module-entry-grid-item-height": "50px",
"--module-entry-grid-icon-size": "22px",
"--module-entry-grid-icon-margin-right": "7px",
"--module-entry-grid-label-size": "15px",
"--tasks-entry-overview-display": "none",
"--tasks-entry-overview-margin": "0px",
"--tasks-entry-overview-padding": "0px",
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!