Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-platform
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
黄庭坚
jinfa-platform
Commits
32893082
Commit
32893082
authored
Jun 16, 2021
by
卢均锐
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 修改detaillayout
parent
3603796b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
index.tsx
src/pages/transaction/components/detailLayout/index.tsx
+5
-2
No files found.
src/pages/transaction/components/detailLayout/index.tsx
View file @
32893082
...
...
@@ -14,7 +14,7 @@ export type tabLink = {
export
interface
IProps
{
/** 单号 */
no
?:
string
,
no
?:
string
|
React
.
ReactNode
,
/** 详情描述 */
detail
?:
string
,
/** 锚点Link */
...
...
@@ -23,6 +23,8 @@ export interface IProps {
effect
?:
React
.
ReactNode
,
/** 页面的组件 */
components
?:
React
.
ReactNode
,
/** 隐藏头部分割线 */
hideBreak
?:
boolean
}
const
PeripheralLayout
:
React
.
FC
<
IProps
>
=
(
props
:
any
)
=>
{
...
...
@@ -32,6 +34,7 @@ const PeripheralLayout: React.FC<IProps> = (props: any) => {
tabLink
,
effect
,
components
,
hideBreak
}
=
props
;
const
dataSource
=
useContext
(
Context
)
...
...
@@ -71,7 +74,7 @@ const PeripheralLayout: React.FC<IProps> = (props: any) => {
<
ArrowLeftOutlined
className=
{
style
.
goBack
}
onClick=
{
()
=>
history
.
goBack
()
}
/>
<
span
className=
{
style
.
titleContext
}
>
{
detail
?
detail
:
dataSource
.
details
}
|
{
!
hideBreak
&&
'|'
}
{
no
}
</
span
>
</
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