Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
W
WebPublic
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
前端开发小组
WebPublic
Commits
08f07cc9
提交
08f07cc9
authored
11月 24, 2022
作者:
钟是志
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
StepDiy 组件样式修改
上级
70ce2f72
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
99 行增加
和
3 行删除
+99
-3
StepDiy.js
one_stop_public/tableCompon/Split_Index/StepDiy.js
+4
-2
index.jsx
one_stop_public/tableCompon/index.jsx
+0
-1
style.less
one_stop_public/tableCompon/style.less
+95
-0
没有找到文件。
one_stop_public/tableCompon/Split_Index/StepDiy.js
浏览文件 @
08f07cc9
import
React
,
{
useState
,
useEffect
,
useMemo
,
useCallback
,
memo
,
useRef
}
from
'react'
;
import
React
,
{
useState
,
useEffect
,
useMemo
,
useCallback
,
memo
,
useRef
}
from
'react'
;
import
{
Steps
}
from
'antd'
;
import
{
Steps
}
from
'antd'
;
import
ZdyTable
from
'@/webPublic/one_stop_public/Table'
;
import
ZdyTable
from
'@/webPublic/one_stop_public/Table'
;
import
styles
from
'../style.less'
;
const
{
Step
}
=
Steps
;
const
{
Step
}
=
Steps
;
const
Child
=
memo
((
props
)
=>
{
const
Child
=
memo
((
props
)
=>
{
...
@@ -62,8 +62,10 @@ const Child = memo((props) => {
...
@@ -62,8 +62,10 @@ const Child = memo((props) => {
[
diyProps
?.
StepsProps
?.
current
],
[
diyProps
?.
StepsProps
?.
current
],
);
);
console
.
log
(
diyProps
.
StepsProps
);
return
(
return
(
<
div
style
=
{
diyProps
.
outSideDivStyle
}
>
<
div
style
=
{
diyProps
.
outSideDivStyle
}
className
=
{
styles
.
stepsInfo
}
>
<
Steps
{...
diyProps
.
StepsProps
}
current
=
{
current
}
>
<
Steps
{...
diyProps
.
StepsProps
}
current
=
{
current
}
>
{
Array
.
isArray
(
diyProps
.
Step
)
&&
{
Array
.
isArray
(
diyProps
.
Step
)
&&
diyProps
.
Step
.
map
((
g
)
=>
{
diyProps
.
Step
.
map
((
g
)
=>
{
...
...
one_stop_public/tableCompon/index.jsx
浏览文件 @
08f07cc9
...
@@ -84,7 +84,6 @@ import giveVarcharRules from '@/webPublic/one_stop_public/tableCompon/Split_Inde
...
@@ -84,7 +84,6 @@ import giveVarcharRules from '@/webPublic/one_stop_public/tableCompon/Split_Inde
import
getPopupContainer
from
'@/webPublic/one_stop_public/tableCompon/Split_Index/getPopupContainer'
;
import
getPopupContainer
from
'@/webPublic/one_stop_public/tableCompon/Split_Index/getPopupContainer'
;
import
StepDiy
from
'@/webPublic/one_stop_public/tableCompon/Split_Index/StepDiy'
;
import
StepDiy
from
'@/webPublic/one_stop_public/tableCompon/Split_Index/StepDiy'
;
const
{
MonthPicker
,
WeekPicker
}
=
DatePicker
;
/**
/**
* 日期组件antd3.x有bug 详情见禅道 27152 毕业跟踪调查管理 毕业时间改为年级筛选
* 日期组件antd3.x有bug 详情见禅道 27152 毕业跟踪调查管理 毕业时间改为年级筛选
*/
*/
...
...
one_stop_public/tableCompon/style.less
浏览文件 @
08f07cc9
...
@@ -236,6 +236,11 @@
...
@@ -236,6 +236,11 @@
}
}
}
}
div[data-cell-component-name] .ant-form-item-label{
line-height: 40px;
}
#mobile_table .am-list-extra {
#mobile_table .am-list-extra {
flex-basis: 60%;
flex-basis: 60%;
overflow: auto;
overflow: auto;
...
@@ -315,3 +320,93 @@
...
@@ -315,3 +320,93 @@
margin-bottom: 20px;
margin-bottom: 20px;
font-weight: 600;
font-weight: 600;
}
}
.stepsInfo{
@media (max-width: 480px) {
:global{
.ant-steps-horizontal.ant-steps-label-horizontal {
display: flex;
}
.ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item {
//display: block;
//overflow: visible;
}
.ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-icon {
//float: left;
//margin-right: 16px;
}
.ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-content {
//display: block;
//min-height: 48px;
//overflow: hidden;
}
.ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-title {
//line-height: 32px;
}
.ant-steps-horizontal.ant-steps-label-horizontal .ant-steps-item-description {
//padding-bottom: 12px;
}
.ant-steps-horizontal.ant-steps-label-horizontal > .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {
//position: absolute;
//top: 0;
//left: 16px;
//width: 1px;
//height: 100%;
//padding: 38px 0 6px;
}
.ant-steps-horizontal.ant-steps-label-horizontal > .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail::after {
//width: 1px;
//height: 100%;
}
.ant-steps-horizontal.ant-steps-label-horizontal > .ant-steps-item:not(:last-child) > .ant-steps-item-container > .ant-steps-item-tail {
//display: block;
}
.ant-steps-horizontal.ant-steps-label-horizontal > .ant-steps-item > .ant-steps-item-container > .ant-steps-item-content > .ant-steps-item-title::after {
//display: none;
}
.ant-steps-horizontal.ant-steps-label-horizontal.ant-steps-small .ant-steps-item-container .ant-steps-item-tail {
//position: absolute;
//top: 0;
//left: 12px;
//padding: 30px 0 6px;
}
.ant-steps-horizontal.ant-steps-label-horizontal.ant-steps-small .ant-steps-item-container .ant-steps-item-title {
//line-height: 24px;
}
.ant-steps-navigation > .ant-steps-item {
//margin-right: 0 !important;
}
.ant-steps-navigation > .ant-steps-item::before {
//display: none;
}
.ant-steps-navigation > .ant-steps-item.ant-steps-item-active::before {
top: 57px;
//right: 0;
//left: unset;
display: block;
width: 100%;
height: 3px;
}
.ant-steps-navigation > .ant-steps-item::after {
position: absolute;
top: 50%;
left: 100%;
display: inline-block;
width: 12px;
height: 12px;
margin-top: -14px;
margin-left: -2px;
border: 1px solid rgba(0, 0, 0, 0.25);
border-bottom: none;
border-left: none;
transform: rotate(45deg);
content: '';
}
.ant-steps-navigation > .ant-steps-item > .ant-steps-item-container > .ant-steps-item-tail {
//visibility: hidden;
}
}
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论