Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
submodule
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
submodule
Commits
0851954f
Commit
0851954f
authored
Sep 01, 2020
by
zhangwenshuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
b59fdde2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
Cell.tsx
components/apolloTable/component/Cell.tsx
+1
-1
Table.tsx
components/apolloTable/component/Table.tsx
+2
-1
index.tsx
...onents/apolloTable/component/base/edit/textarea/index.tsx
+1
-1
No files found.
components/apolloTable/component/Cell.tsx
View file @
0851954f
...
...
@@ -79,7 +79,7 @@ const Cell = (props: CellProps) => {
return
;
}
let
temp
:
CellDataProps
[]
=
[];
cellData
.
map
((
item
:
CellDataProps
)
=>
{
cellData
&&
cellData
.
map
((
item
:
CellDataProps
)
=>
{
temp
.
push
({
text
:
item
.
text
,
value
:
item
.
value
});
});
if
(
temp
.
length
===
0
)
{
...
...
components/apolloTable/component/Table.tsx
View file @
0851954f
...
...
@@ -332,6 +332,7 @@ export default class AirTable extends Component<TableProps, TableState> {
onEmitMsg
,
tableId
,
renderFirstLeft
,
bordered
=
false
,
}
=
this
.
props
;
if
(
showColumns
.
length
===
0
||
showData
.
length
===
0
)
{
return
;
...
...
@@ -346,7 +347,7 @@ export default class AirTable extends Component<TableProps, TableState> {
const
cellData
:
any
=
columnData
&&
columnData
.
cellValueList
;
// 列数据
const
{
cellClassName
,
cellStyle
,
bordered
=
false
}
=
columnConfig
;
const
{
cellClassName
,
cellStyle
}
=
columnConfig
;
const
rowClassNameStr
=
getMergeClassName
(
styles
.
bodyRow
,
rowClassName
,
{
rowIndex
});
const
rowStyleObj
=
getMergeStyle
({},
rowStyle
,
{
rowIndex
});
...
...
components/apolloTable/component/base/edit/textarea/index.tsx
View file @
0851954f
...
...
@@ -89,9 +89,9 @@ export const ApolloTextArea = (props: ApolloTextAreaProps) => {
if
(
newValue
)
{
newValue
=
newValue
[
0
]
&&
newValue
[
0
].
value
;
setCurValue
(
newValue
);
setVisible
(
true
);
}
}
setVisible
(
true
);
};
if
(
origin
===
'editForm'
)
{
return
(
...
...
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