diff --git a/src/assets/styles/common.scss b/src/assets/styles/common.scss index c8de5d0..6053090 100644 --- a/src/assets/styles/common.scss +++ b/src/assets/styles/common.scss @@ -1,18 +1,38 @@ :root { --first-card-height: 0px; --el-card-border-radius: 4px; - --card-height-with-tags: calc(100vh - 50px - 34px - 31px - var(--first-card-height)); - --card-height-without-tags: calc(100vh - 50px - 31px - var(--first-card-height)); + --card-height-with-tags: calc( + 100vh - 50px - 34px - 31px - var(--first-card-height) + ); + --card-height-without-tags: calc( + 100vh - 50px - 31px - var(--first-card-height) + ); + --table-font-size-large: #{$table-font-size-large}; + --table-font-size-default: #{$table-font-size-default}; + --table-font-size-small: #{$table-font-size-small}; + --table-font-size: var(--table-font-size-default); // 默认值 } .app-container-bg { background-color: #f2f2f2; } +// 应用到所有el-table组件 +.el-table { + font-size: var(--table-font-size); + + .el-table__header th, + .el-table__body td { + font-size: var(--table-font-size); + } +} .el-card-p { height: var(--el-card-height, var(--card-height-without-tags)) !important; box-sizing: border-box; min-height: 0; background-color: #fff; } +.scroll-bar { + overflow-y: auto; +} .card-shadow { box-shadow: 0 2px 12px 0 rgba(0, 0, 0, 0.1); border-radius: var(--el-card-border-radius); @@ -110,7 +130,6 @@ overflow-x: hidden !important; } - .vxe-select--panel.is--transfer { z-index: 999999 !important; -} \ No newline at end of file +} diff --git a/src/assets/styles/variables.module.scss b/src/assets/styles/variables.module.scss index a20f2bd..3b17fdb 100644 --- a/src/assets/styles/variables.module.scss +++ b/src/assets/styles/variables.module.scss @@ -44,6 +44,11 @@ $--color-info: #909399; $base-sidebar-width: 200px; + +$table-font-size-large: 18px; +$table-font-size-default: 14px; +$table-font-size-small: 12px; + // the :export directive is the magic sauce for webpack // https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass :export { diff --git a/src/components/ChartsBar/index.vue b/src/components/ChartsBar/index.vue new file mode 100644 index 0000000..0dff2b7 --- /dev/null +++ b/src/components/ChartsBar/index.vue @@ -0,0 +1,316 @@ + + + \ No newline at end of file diff --git a/src/components/ChartsBarLine/index.vue b/src/components/ChartsBarLine/index.vue new file mode 100644 index 0000000..593a7bf --- /dev/null +++ b/src/components/ChartsBarLine/index.vue @@ -0,0 +1,310 @@ + + + \ No newline at end of file diff --git a/src/components/ChartsTimeBar/index.vue b/src/components/ChartsTimeBar/index.vue new file mode 100644 index 0000000..0ca5275 --- /dev/null +++ b/src/components/ChartsTimeBar/index.vue @@ -0,0 +1,382 @@ + + + \ No newline at end of file diff --git a/src/components/ChartsTimeLine/index.vue b/src/components/ChartsTimeLine/index.vue new file mode 100644 index 0000000..64d1f54 --- /dev/null +++ b/src/components/ChartsTimeLine/index.vue @@ -0,0 +1,369 @@ + + + \ No newline at end of file diff --git a/src/components/ESelectSingle/index.vue b/src/components/ESelectSingle/index.vue new file mode 100644 index 0000000..638477f --- /dev/null +++ b/src/components/ESelectSingle/index.vue @@ -0,0 +1,81 @@ + + + + \ No newline at end of file diff --git a/src/components/ETree/index.vue b/src/components/ETree/index.vue new file mode 100644 index 0000000..6b731eb --- /dev/null +++ b/src/components/ETree/index.vue @@ -0,0 +1,138 @@ + + + + + + \ No newline at end of file diff --git a/src/components/SingleStation/index.vue b/src/components/SingleStation/index.vue new file mode 100644 index 0000000..d1d24ff --- /dev/null +++ b/src/components/SingleStation/index.vue @@ -0,0 +1,54 @@ + + + \ No newline at end of file diff --git a/src/components/SizeSelect/index.vue b/src/components/SizeSelect/index.vue index a17332e..0dc4e41 100644 --- a/src/components/SizeSelect/index.vue +++ b/src/components/SizeSelect/index.vue @@ -1,3 +1,4 @@ +