Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wisdom-components
Project
Project
Details
Activity
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
ReactWeb5
wisdom-components
Commits
7a26031b
Commit
7a26031b
authored
May 26, 2021
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 组件优化
parent
be355bb1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
6 deletions
+18
-6
Basic.tsx
packages/base-components/BasicTable/src/demos/Basic.tsx
+2
-2
index.js
packages/base-components/BasicTable/src/index.js
+0
-1
index.less
packages/base-components/BasicTable/src/index.less
+11
-2
Basic.tsx
...ages/extend-components/EC_QuotaSelect/src/demos/Basic.tsx
+1
-0
index.js
packages/extend-components/EC_QuotaSelect/src/index.js
+4
-1
No files found.
packages/base-components/BasicTable/src/demos/Basic.tsx
View file @
7a26031b
...
...
@@ -50,8 +50,8 @@ const Demo = () => {
<
BasicTable
dataSource=
{
dataSource
}
columns=
{
columns
}
bordered
pagination=
{
{
current
:
1
,
pageSize
:
20
,
size
:
'default'
}
}
bordered
=
{
false
}
pagination=
{
{
pageSize
:
20
,
size
:
'default'
}
}
/>
)
}
{
!
dataSource
.
length
&&
<
Empty
description=
{
'暂无数据'
}
/>
}
...
...
packages/base-components/BasicTable/src/index.js
View file @
7a26031b
...
...
@@ -9,7 +9,6 @@ const BasicTable = (props) => {
const
prefixCls
=
getPrefixCls
(
'basic-table'
);
const
pagination
=
typeof
props
.
pagination
!==
'undefined'
?
props
.
pagination
:
{};
const
showTotal
=
(
total
)
=>
{
debugger
;
return
`共
${
Math
.
ceil
(
total
/
(
props
.
pagination
?
props
.
pagination
.
pageSize
||
10
:
10
),
)}
页 / 共
${
total
}
条记录`
;
...
...
packages/base-components/BasicTable/src/index.less
View file @
7a26031b
...
...
@@ -125,11 +125,20 @@
border-left: 0;
}
.ant-table-header,
.ant-table-body {
.ant-table
.ant-table-bordered .ant-table
-header,
.ant-table
.ant-table-bordered .ant-table
-body {
border-left: 1px solid #dbe7fb;
}
.ant-table-body {
overflow-y: auto !important;
}
.ant-table-cell-scrollbar {
border-left: 0px;
box-shadow: none;
}
.ant-table-summary {
tr td {
position: sticky;
...
...
packages/extend-components/EC_QuotaSelect/src/demos/Basic.tsx
View file @
7a26031b
...
...
@@ -105,6 +105,7 @@ const Demo = () => {
<
h3
>
无 user, 无“保存修改”按钮
</
h3
>
<
PandaQuotaSelect
buttonProps=
{
{}
}
// defaultSelect={'all'}
deviceList=
{
deviceList
}
quotaListService=
{
getQuotaList
}
pointType=
{
pointType
}
...
...
packages/extend-components/EC_QuotaSelect/src/index.js
View file @
7a26031b
...
...
@@ -44,12 +44,13 @@ const QuotaSelect = ({
maximum
,
user
,
treeProps
,
defaultSelect
,
})
=>
{
const
{
getPrefixCls
}
=
useContext
(
ConfigProvider
.
ConfigContext
);
const
prefixCls
=
getPrefixCls
(
'ec-quota-select'
);
const
[
visible
,
setVisible
]
=
useState
(
false
);
const
[
targetValue
,
setTargetValue
]
=
useState
(
'emphasis'
);
const
[
targetValue
,
setTargetValue
]
=
useState
(
defaultSelect
);
const
[
allQuotaList
,
setAllQuotaList
]
=
useState
([]);
const
[
quotaList
,
setQuotaList
]
=
useState
([]);
const
[
groupQuotaList
,
setGroupQuotaList
]
=
useState
([]);
...
...
@@ -463,6 +464,7 @@ QuotaSelect.defaultProps = {
onModalCancel
:
()
=>
{},
onModalOk
:
()
=>
{},
onModalClose
:
()
=>
{},
defaultSelect
:
'emphasis'
,
};
QuotaSelect
.
propTypes
=
{
...
...
@@ -485,6 +487,7 @@ QuotaSelect.propTypes = {
onModalCancel
:
PropTypes
.
func
,
onModalOk
:
PropTypes
.
func
,
onModalClose
:
PropTypes
.
func
,
defaultSelect
:
PropTypes
.
string
,
};
export
default
QuotaSelect
;
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