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
c3c7f0dc
Commit
c3c7f0dc
authored
Feb 13, 2023
by
李纪文
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改
parent
f6b81241
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
BasicTable.md
packages/base-components/BasicTable/src/BasicTable.md
+5
-3
Summary.tsx
packages/base-components/BasicTable/src/demos/Summary.tsx
+2
-0
index.js
packages/base-components/BasicTable/src/index.js
+3
-0
index.js
packages/extend-components/EC_ConfigurationView/src/index.js
+1
-0
No files found.
packages/base-components/BasicTable/src/BasicTable.md
View file @
c3c7f0dc
...
@@ -34,6 +34,8 @@ api 参考 Antd Table 组件 https://ant.design/components/table-cn/#API
...
@@ -34,6 +34,8 @@ api 参考 Antd Table 组件 https://ant.design/components/table-cn/#API
### Column 新增参数
### Column 新增参数
| 参数 | 说明 | 类型 | 默认值 |
| 参数 | 说明 | 类型 | 默认值 |
| ------ | -------------------------------------------- | ------- | ------ |
| -------- | -------------------------------------------- | ------- | ------ |
| resize | 设置表头可拖拽调整列宽(必须设置列宽 width) | boolean | false |
| resize | 设置表头可拖拽调整列宽(必须设置列宽 width) | boolean | false |
| minWidth | 设置表头可拖拽调整列宽最小值 | number | - |
| maxWidth | 设置表头可拖拽调整列宽最大值 | number | - |
packages/base-components/BasicTable/src/demos/Summary.tsx
View file @
c3c7f0dc
...
@@ -34,6 +34,8 @@ const Demo = () => {
...
@@ -34,6 +34,8 @@ const Demo = () => {
fixed
:
true
,
fixed
:
true
,
width
:
200
,
width
:
200
,
resize
:
true
,
resize
:
true
,
maxWidth
:
250
,
minWidth
:
100
,
});
});
let
dataSource
=
data
[
0
].
NameDate
.
map
((
item
,
index
)
=>
({
key
:
index
,
time
:
item
.
Time
}));
let
dataSource
=
data
[
0
].
NameDate
.
map
((
item
,
index
)
=>
({
key
:
index
,
time
:
item
.
Time
}));
data
.
forEach
((
item
,
index
)
=>
{
data
.
forEach
((
item
,
index
)
=>
{
...
...
packages/base-components/BasicTable/src/index.js
View file @
c3c7f0dc
...
@@ -50,6 +50,9 @@ const BasicTable = (props) => {
...
@@ -50,6 +50,9 @@ const BasicTable = (props) => {
(
index
)
=>
(
index
)
=>
(
e
,
{
size
})
=>
{
(
e
,
{
size
})
=>
{
const
nextColumns
=
[...
cols
];
const
nextColumns
=
[...
cols
];
const
{
minWidth
,
maxWidth
}
=
nextColumns
[
index
];
if
(
minWidth
&&
size
.
width
<=
minWidth
)
return
false
;
if
(
maxWidth
&&
size
.
width
>=
maxWidth
)
return
false
;
// 拖拽是调整宽度
// 拖拽是调整宽度
nextColumns
[
index
]
=
{
nextColumns
[
index
]
=
{
...
nextColumns
[
index
],
...
nextColumns
[
index
],
...
...
packages/extend-components/EC_ConfigurationView/src/index.js
View file @
c3c7f0dc
...
@@ -2250,6 +2250,7 @@ const ConfigurationView = (props) => {
...
@@ -2250,6 +2250,7 @@ const ConfigurationView = (props) => {
wrapClassName
=
{
classNames
(
`
${
prefixCls
}
-jumpModal`
)}
wrapClassName
=
{
classNames
(
`
${
prefixCls
}
-jumpModal`
)}
getContainer
=
{
ConfigurationRef
.
current
}
getContainer
=
{
ConfigurationRef
.
current
}
componentPrefix
=
{
componentPrefix
}
componentPrefix
=
{
componentPrefix
}
destroyOnClose
=
{
true
}
style
=
{{
style
=
{{
height
:
jumpModalProps
.
height
?
`
${
Number
(
jumpModalProps
.
height
)
+
103
}
px`
:
'100%'
,
height
:
jumpModalProps
.
height
?
`
${
Number
(
jumpModalProps
.
height
)
+
103
}
px`
:
'100%'
,
left
:
`calc(50% -
${
jumpModalProps
.
width
?
jumpModalProps
.
width
/
2
+
'px'
:
'50%'
}
)`
,
left
:
`calc(50% -
${
jumpModalProps
.
width
?
jumpModalProps
.
width
/
2
+
'px'
:
'50%'
}
)`
,
...
...
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