Commit 6305e25e authored by 前端-钟卫鹏's avatar 前端-钟卫鹏

fix: 招投标/请购/e账户等锚点样式更改

parent 21561974
...@@ -33,14 +33,17 @@ ...@@ -33,14 +33,17 @@
.detailHeader { .detailHeader {
background: #fff; background: #fff;
padding: 16px 18px 0; padding: 16px 18px 0;
position: fixed;
width: 100%;
z-index: 999;
:global { :global {
.ant-row { .ant-row {
.ant-col-2 { .ant-col-2 {
.ant-btn { .ant-btn {
// position: absolute; position: fixed;
// top: 0; // top: 0;
// right: 0; right: 16px;
margin-bottom: 8px; // margin-bottom: 8px;
} }
} }
} }
......
...@@ -102,7 +102,12 @@ const FormDetailHeader: React.FC<FormDetailHeaderProps> = ({ ...@@ -102,7 +102,12 @@ const FormDetailHeader: React.FC<FormDetailHeaderProps> = ({
<Row> <Row>
<Col> <Col>
<div className={style.anchorTitle} id="anchorTitle"> <div className={style.anchorTitle} id="anchorTitle">
<Anchor onClick={(e) => e.preventDefault()} showInkInFixed={false} targetOffset={200}> <Anchor
onClick={(e) => e.preventDefault()}
showInkInFixed={false}
targetOffset={200}
getContainer={() => document.querySelector('main.ant-pro-basicLayout-content') as HTMLElement}
>
{ {
schema['properties'] && Object.values(schema['properties']).map((item: itemProps, index) => { schema['properties'] && Object.values(schema['properties']).map((item: itemProps, index) => {
const { countAmountMap } = ctx.formContext const { countAmountMap } = ctx.formContext
......
...@@ -21,13 +21,16 @@ ...@@ -21,13 +21,16 @@
background: #fff; background: #fff;
padding-left: 24px; padding-left: 24px;
line-height: 48px; line-height: 48px;
position: fixed;
width: 100%;
z-index: 999;
:global { :global {
.ant-row { .ant-row {
.ant-col-2 { .ant-col-2 {
.ant-btn { .ant-btn {
position: absolute; position: fixed;
top: 0; // top: 0;
right: 0; right: 16px;
} }
} }
} }
......
...@@ -99,7 +99,12 @@ const EDetailHeader: React.FC<EDetailHeaderProps> = ({ ...@@ -99,7 +99,12 @@ const EDetailHeader: React.FC<EDetailHeaderProps> = ({
<Row> <Row>
<Col> <Col>
<div className={style.anchorTitle} id="anchorTitle"> <div className={style.anchorTitle} id="anchorTitle">
<Anchor onClick={(e) => e.preventDefault()} showInkInFixed={false} targetOffset={200}> <Anchor
onClick={(e) => e.preventDefault()}
showInkInFixed={false}
targetOffset={200}
getContainer={() => document.querySelector('main.ant-pro-basicLayout-content') as HTMLElement}
>
{ {
anchorList.map((item, index) => ( anchorList.map((item, index) => (
<Link key={index} href={`#${item['id']}`} title={item['title']} /> <Link key={index} href={`#${item['id']}`} title={item['title']} />
......
...@@ -20,13 +20,16 @@ ...@@ -20,13 +20,16 @@
.detailHeader { .detailHeader {
background: #fff; background: #fff;
padding: 24px 24px 0; padding: 24px 24px 0;
position: fixed;
width: 100%;
z-index: 999;
:global { :global {
.ant-row { .ant-row {
.ant-col-2 { .ant-col-2 {
.ant-btn { .ant-btn {
position: absolute; position: absolute;
top: 0; // top: 0;
right: 0; right: 16px;
} }
} }
} }
......
...@@ -87,7 +87,12 @@ const BidDetailHeader: React.FC<BidDetailHeaderProps> = ({ ...@@ -87,7 +87,12 @@ const BidDetailHeader: React.FC<BidDetailHeaderProps> = ({
<Row> <Row>
<Col> <Col>
<div className={style.anchorTitle} id="anchorTitle"> <div className={style.anchorTitle} id="anchorTitle">
<Anchor onClick={(e) => e.preventDefault()} showInkInFixed={false} targetOffset={200}> <Anchor
onClick={(e) => e.preventDefault()}
showInkInFixed={false}
targetOffset={200}
getContainer={() => document.querySelector('main.ant-pro-basicLayout-content') as HTMLElement}
>
{ {
anchorList.map((item, index) => ( anchorList.map((item, index) => (
<Link key={index} href={`#${item['id']}`} title={item['title']} /> <Link key={index} href={`#${item['id']}`} title={item['title']} />
......
...@@ -20,13 +20,16 @@ ...@@ -20,13 +20,16 @@
.detailHeader { .detailHeader {
background: #fff; background: #fff;
padding: 24px 24px 0; padding: 24px 24px 0;
position: fixed;
width: 100%;
z-index: 999;
:global { :global {
.ant-row { .ant-row {
.ant-col-2 { .ant-col-2 {
.ant-btn { .ant-btn {
position: absolute; position: fixed;
top: 0; // top: 0;
right: 0; right: 16px;
} }
} }
} }
......
...@@ -86,7 +86,12 @@ const BillDetailHeader: React.FC<BillDetailHeaderProps> = ({ ...@@ -86,7 +86,12 @@ const BillDetailHeader: React.FC<BillDetailHeaderProps> = ({
<Row> <Row>
<Col> <Col>
<div className={style.anchorTitle} id="anchorTitle"> <div className={style.anchorTitle} id="anchorTitle">
<Anchor onClick={(e) => e.preventDefault()} showInkInFixed={false} targetOffset={200}> <Anchor
onClick={(e) => e.preventDefault()}
showInkInFixed={false}
targetOffset={200}
getContainer={() => document.querySelector('main.ant-pro-basicLayout-content') as HTMLElement}
>
{ {
anchorList.map((item, index) => ( anchorList.map((item, index) => (
<Link key={index} href={`#${item['id']}`} title={item['title']} /> <Link key={index} href={`#${item['id']}`} title={item['title']} />
......
.anchorContentWrap { .anchorContentWrap {
margin-top: 100px;
div { div {
&:target { &:target {
padding-top: 200px; padding-top: 200px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment