fix(components): 修正 Divider 组件弃用属性

2.0
LiuJiaNan 2026-06-23 14:47:44 +08:00
parent 5e9764fdfb
commit 31571d1466
3 changed files with 11 additions and 11 deletions

View File

@ -512,7 +512,7 @@ const FormItemsRenderer = ({
if (option.render === FORM_ITEM_RENDER_ENUM.DIVIDER) { if (option.render === FORM_ITEM_RENDER_ENUM.DIVIDER) {
return ( return (
<Col key={getKey(option) || index} span={col.span} style={style}> <Col key={getKey(option) || index} span={col.span} style={style}>
<Divider orientation="left" {...componentProps}>{option.label}</Divider> <Divider titlePlacement="start" {...componentProps}>{option.label}</Divider>
</Col> </Col>
); );
} }

View File

@ -22,7 +22,7 @@ function HeaderBack(props) {
<ArrowLeftOutlined style={{ fontSize: 14 }} /> <ArrowLeftOutlined style={{ fontSize: 14 }} />
<span>返回</span> <span>返回</span>
</div> </div>
<Divider type="vertical" style={{ backgroundColor: "#dcdfe6", marginLeft: 15, marginRight: 15 }} /> <Divider orientation="vertical" style={{ backgroundColor: "#dcdfe6", marginLeft: 15, marginRight: 15 }} />
</> </>
) )
} }

View File

@ -131,7 +131,7 @@ function HiddenInfo(props) {
return ( return (
<div> <div>
<Spin spinning={loading || downloadFileLoading}> <Spin spinning={loading || downloadFileLoading}>
<Divider orientation="left">隐患信息</Divider> <Divider titlePlacement="start">隐患信息</Divider>
<Descriptions <Descriptions
bordered bordered
column={1} column={1}
@ -193,7 +193,7 @@ function HiddenInfo(props) {
{ {
(info.hiddenUserPresetsCO && Object.keys(info.hiddenUserPresetsCO).length > 0) && ( (info.hiddenUserPresetsCO && Object.keys(info.hiddenUserPresetsCO).length > 0) && (
<> <>
<Divider orientation="left">整改信息发现人预填</Divider> <Divider titlePlacement="start">整改信息发现人预填</Divider>
<Descriptions <Descriptions
bordered bordered
column={1} column={1}
@ -223,7 +223,7 @@ function HiddenInfo(props) {
{ {
(info.hiddenConfirmUserCO && info.hiddenConfirmUserCO.length > 0) && ( (info.hiddenConfirmUserCO && info.hiddenConfirmUserCO.length > 0) && (
<> <>
<Divider orientation="left">隐患确认</Divider> <Divider titlePlacement="start">隐患确认</Divider>
{ {
info.hiddenConfirmUserCO.map(item => ( info.hiddenConfirmUserCO.map(item => (
<Descriptions <Descriptions
@ -256,7 +256,7 @@ function HiddenInfo(props) {
{ {
info.hiddenExtensionList && info.hiddenExtensionList.length > 0 && ( info.hiddenExtensionList && info.hiddenExtensionList.length > 0 && (
<> <>
<Divider orientation="left">延期信息</Divider> <Divider titlePlacement="start">延期信息</Divider>
{ {
info.hiddenExtensionList.map(item => ( info.hiddenExtensionList.map(item => (
<Descriptions <Descriptions
@ -319,7 +319,7 @@ function HiddenInfo(props) {
{ {
info.hiddenSpecialList && info.hiddenSpecialList.length > 0 && ( info.hiddenSpecialList && info.hiddenSpecialList.length > 0 && (
<> <>
<Divider orientation="left">特殊处置审核信息</Divider> <Divider titlePlacement="start">特殊处置审核信息</Divider>
{ {
info.hiddenSpecialList.map(item => ( info.hiddenSpecialList.map(item => (
<Descriptions <Descriptions
@ -405,7 +405,7 @@ function HiddenInfo(props) {
{ {
(info.hiddenRectifyUserCO && info.hiddenRectifyUserCO.length > 0) && ( (info.hiddenRectifyUserCO && info.hiddenRectifyUserCO.length > 0) && (
<> <>
<Divider orientation="left">整改信息</Divider> <Divider titlePlacement="start">整改信息</Divider>
{ {
info.hiddenRectifyUserCO.map((item, index) => ( info.hiddenRectifyUserCO.map((item, index) => (
<Descriptions <Descriptions
@ -454,7 +454,7 @@ function HiddenInfo(props) {
info.hiddenAcceptQualifiedUserCO.length > 0 info.hiddenAcceptQualifiedUserCO.length > 0
? ( ? (
<> <>
<Divider orientation="left">验收信息</Divider> <Divider titlePlacement="start">验收信息</Divider>
{ {
info.hiddenAcceptQualifiedUserCO.map((item, index) => ( info.hiddenAcceptQualifiedUserCO.map((item, index) => (
<Descriptions <Descriptions
@ -482,7 +482,7 @@ function HiddenInfo(props) {
info.hiddenAcceptUnqualifiedUserCO.length > 0 info.hiddenAcceptUnqualifiedUserCO.length > 0
? ( ? (
<> <>
<Divider orientation="left">验收打回信息</Divider> <Divider titlePlacement="start">验收打回信息</Divider>
{ {
info.hiddenAcceptUnqualifiedUserCO.map(item => ( info.hiddenAcceptUnqualifiedUserCO.map(item => (
<Descriptions <Descriptions
@ -507,7 +507,7 @@ function HiddenInfo(props) {
(info.hiddenInspecCO && Object.keys(info.hiddenInspecCO).length > 0) (info.hiddenInspecCO && Object.keys(info.hiddenInspecCO).length > 0)
? ( ? (
<> <>
<Divider orientation="left">安全环保验收信息</Divider> <Divider titlePlacement="start">安全环保验收信息</Divider>
<Descriptions <Descriptions
bordered bordered
column={1} column={1}