Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
airtable
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
web_component
airtable
Commits
762f5814
Commit
762f5814
authored
Dec 07, 2019
by
zhangwenshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
temp
parent
e03e522d
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
357 additions
and
106 deletions
+357
-106
.fatherrc.ts
.fatherrc.ts
+0
-0
package.json
package.json
+1
-1
Cell.tsx
src/apollo-table/component/Cell.tsx
+1
-1
Table.less
src/apollo-table/component/Table.less
+14
-24
Table.tsx
src/apollo-table/component/Table.tsx
+299
-80
common.less
src/common.less
+40
-0
index.mdx
src/index.mdx
+2
-0
No files found.
.
umirc.library
.ts
→
.
fatherrc
.ts
View file @
762f5814
File moved
package.json
View file @
762f5814
...
...
@@ -36,7 +36,7 @@
"lint-staged:ts"
:
{
"src/**/*.{ts,tsx}"
:
[
"prettier --write"
,
"tslint --fix"
,
"tslint --fix"
]
}
}
src/apollo-table/component/Cell.tsx
View file @
762f5814
import
React
,
{
ReactComponentElement
}
from
'react'
;
import
React
from
'react'
;
import
{
message
,
Popover
,
Modal
}
from
'antd'
;
import
{
getComponent
}
from
'./base'
;
...
...
src/apollo-table/component/Table.less
View file @
762f5814
@import '../../common';
.tableCell {
//padding: 0 !important;
&.sortCol {
background:
rgba(92, 153, 255, 0.2)
;
background:
@hoverColor
;
}
}
...
...
@@ -18,23 +19,13 @@
:global(.ant-table-thead > tr > th) {
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) {
padding: 0;
height: 40px;
}
//:global(.ant-table-tbody > tr > td:first-child) {
// border-right: none;
//}
:global(.ant-table-tbody > tr > td:last-child) {
text-align: left;
}
...
...
@@ -48,13 +39,6 @@
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) {
.unchecked {
display: block;
...
...
@@ -80,7 +64,7 @@
box-sizing: border-box;
&.disabled {
background:
#f9f9f9
;
background:
@disabledColor
;
&:hover {
box-shadow: none;
...
...
@@ -88,7 +72,7 @@
}
&:hover {
box-shadow: inset 0 0 0 1px
#85b6ff
;
box-shadow: inset 0 0 0 1px
@operateColor
;
.showFormBtn {
visibility: visible;
...
...
@@ -106,9 +90,11 @@
.cellNo {
display: flex;
align-items: center;
min-width: 50px;
}
.cellContent {
flex: 1;
overflow: hidden;
height: 100%;
...
...
@@ -143,6 +129,11 @@
display: flex;
flex-direction: row;
background: #fff;
.LeftSideContainer{
box-shadow: 6px 0 6px -4px rgba(0, 0, 0, 0.15);
position: absolute;
z-index: 1;
}
}
.GridColumn {
...
...
@@ -157,7 +148,6 @@
z-index: 10;
background: #fff;
border-left: 1px solid #e8e8e8;
box-shadow: 6px 0 6px -4px rgba(0, 0, 0, 0.15);
}
.LeftSideGrid {
...
...
@@ -181,7 +171,7 @@
box-sizing: border-box;
.cellNo {
m
argin-right: 5
px;
m
in-width: 50
px;
}
.cellContent {
...
...
@@ -206,7 +196,7 @@
justify-content: center;
align-items: center;
text-align: center;
padding: 0
0
.5em;
padding: 0 .5em;
}
.headerCell,
...
...
src/apollo-table/component/Table.tsx
View file @
762f5814
This diff is collapsed.
Click to expand it.
src/common.less
0 → 100644
View file @
762f5814
//全局布局
@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;
src/index.mdx
View file @
762f5814
...
...
@@ -11,4 +11,6 @@ import ApolloTable from './apollo-table';
## Normal ApolloTable
<div style={{position:"relative",margin:"0 20px"}}>
<ApolloTable>Hi</ApolloTable>
</div>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment