Commit 762f5814 authored by zhangwenshuai's avatar zhangwenshuai

temp

parent e03e522d
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
"lint-staged:ts": { "lint-staged:ts": {
"src/**/*.{ts,tsx}": [ "src/**/*.{ts,tsx}": [
"prettier --write", "prettier --write",
"tslint --fix", "tslint --fix"
] ]
} }
} }
import React, { ReactComponentElement } from 'react'; import React from 'react';
import { message, Popover, Modal } from 'antd'; import { message, Popover, Modal } from 'antd';
import { getComponent } from './base'; import { getComponent } from './base';
......
@import '../../common';
.tableCell { .tableCell {
//padding: 0 !important;
&.sortCol { &.sortCol {
background: rgba(92, 153, 255, 0.2); background: @hoverColor;
} }
} }
...@@ -18,23 +19,13 @@ ...@@ -18,23 +19,13 @@
:global(.ant-table-thead > tr > th) { :global(.ant-table-thead > tr > th) {
padding: 0; padding: 0;
//margin-bottom: 1px;
//text-align: center;
} }
//:global(.ant-table-thead > tr > th:first-child) {
// border-right: none;
//}
:global(.ant-table-tbody > tr > td) { :global(.ant-table-tbody > tr > td) {
padding: 0; padding: 0;
height: 40px; height: 40px;
} }
//:global(.ant-table-tbody > tr > td:first-child) {
// border-right: none;
//}
:global(.ant-table-tbody > tr > td:last-child) { :global(.ant-table-tbody > tr > td:last-child) {
text-align: left; text-align: left;
} }
...@@ -48,13 +39,6 @@ ...@@ -48,13 +39,6 @@
background: white; background: white;
} }
//:global(.ant-table-bordered.ant-table-fixed-header
// .ant-table-header
// + .ant-table-body
// > table) {
// border-top: 0px solid #e8e8e8;
//}
:global(.ant-table-row-hover) { :global(.ant-table-row-hover) {
.unchecked { .unchecked {
display: block; display: block;
...@@ -80,7 +64,7 @@ ...@@ -80,7 +64,7 @@
box-sizing: border-box; box-sizing: border-box;
&.disabled { &.disabled {
background: #f9f9f9; background: @disabledColor;
&:hover { &:hover {
box-shadow: none; box-shadow: none;
...@@ -88,7 +72,7 @@ ...@@ -88,7 +72,7 @@
} }
&:hover { &:hover {
box-shadow: inset 0 0 0 1px #85b6ff; box-shadow: inset 0 0 0 1px @operateColor;
.showFormBtn { .showFormBtn {
visibility: visible; visibility: visible;
...@@ -106,9 +90,11 @@ ...@@ -106,9 +90,11 @@
.cellNo { .cellNo {
display: flex; display: flex;
align-items: center; align-items: center;
min-width: 50px;
} }
.cellContent { .cellContent {
flex: 1; flex: 1;
overflow: hidden; overflow: hidden;
height: 100%; height: 100%;
...@@ -143,6 +129,11 @@ ...@@ -143,6 +129,11 @@
display: flex; display: flex;
flex-direction: row; flex-direction: row;
background: #fff; background: #fff;
.LeftSideContainer{
box-shadow: 6px 0 6px -4px rgba(0, 0, 0, 0.15);
position: absolute;
z-index: 1;
}
} }
.GridColumn { .GridColumn {
...@@ -157,7 +148,6 @@ ...@@ -157,7 +148,6 @@
z-index: 10; z-index: 10;
background: #fff; background: #fff;
border-left: 1px solid #e8e8e8; border-left: 1px solid #e8e8e8;
box-shadow: 6px 0 6px -4px rgba(0, 0, 0, 0.15);
} }
.LeftSideGrid { .LeftSideGrid {
...@@ -181,7 +171,7 @@ ...@@ -181,7 +171,7 @@
box-sizing: border-box; box-sizing: border-box;
.cellNo { .cellNo {
margin-right: 5px; min-width: 50px;
} }
.cellContent { .cellContent {
...@@ -206,7 +196,7 @@ ...@@ -206,7 +196,7 @@
justify-content: center; justify-content: center;
align-items: center; align-items: center;
text-align: center; text-align: center;
padding: 0 0.5em; padding: 0 .5em;
} }
.headerCell, .headerCell,
......
This diff is collapsed.
//全局布局
@secondSliderBg: #F8FAFA; //二级菜单背景
@contentBg: #F5F5F5; //内容区背景
//全局color
@primaryColor: #04B4AD; //主题色 --关键行动点,操作状态、重要信息高亮,图形化等场
@textPrimaryColor: #2C3F53; //重要文字颜色 --用于重要级文字信息、内页标题信息(label)
@textGeneralColor: #5A6876; //普通文字颜色 --用于普通级段落信息、内标题信息(如详情段落标题信息)(value)
@textSupplyColor: #848F9B; //辅助文字颜色 --用于辅助、次要文字信息、普通按钮描边
@textHolderColor: #AEB4BA; // --用于表格输入框文字提示、缺省图下方文案
@borderColor: #ECECEC; // --分割线及边框颜色
@tableHoverBgColor: #F9FBFF; // --用于表格的选中底色
@disabledColor: #F9F9F9; //禁用颜色
@errorColor: #FF5363; //错误提示颜色
@hoverColor: #04B4AD; //鼠标悬停颜色
@operateColor: #04B4AD; //表格操作按钮颜色
// 菜单颜色
@sliderWidth: 70px; //一级菜单宽度
@secondSliderWidth: 180px; //二级菜单宽度
@headerHeight: 60px; //三级标题菜单高度
//全局字号
@textFontLgX: 18px; //标题
@textFontLg: 16px; //小标题&需醒目区别的正文
@textFontGen: 14px; //正文
@textFontSm: 12px; //正文和辅助文字
//全局间距
@marginLgX: 24px;
@marginLg: 16px;
@marginGen: 10px;
@marginSm: 8px;
@marginSmX: 5px;
@paddingLgX: 24px;
@paddingLg: 16px;
@paddingGen: 10px;
@paddingSm: 8px;
@paddingSmX: 5px;
//全局圆角
@borderRadius: 4px;
...@@ -11,4 +11,6 @@ import ApolloTable from './apollo-table'; ...@@ -11,4 +11,6 @@ import ApolloTable from './apollo-table';
## Normal ApolloTable ## Normal ApolloTable
<div style={{position:"relative",margin:"0 20px"}}>
<ApolloTable>Hi</ApolloTable> <ApolloTable>Hi</ApolloTable>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment