Commit 47e1046e by chenwq

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

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