Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
npm
/
glsx-components
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 1ea10144
authored
Jul 13, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
other:调整table search为5个一行
1 parent
1f58e39f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
src/App.vue
src/packages/GlCombiForm/src/index.vue
src/App.vue
View file @
1ea1014
...
...
@@ -134,7 +134,7 @@
<el-input size="small" v-model="input" placeholder="请输入内容"></el-input>
</GLSearchItem>
</GLSearch> -->
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"
2
"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
@
handleOk=
"handleOkFn"
@
handleRest=
"handleRestFn"
></GLCombiForm>
<GLCombiForm
ref=
"showSearch"
:rowNumber=
"
1
"
:formObj=
"searchForm"
:searchSelectObj=
"searchSelectObj"
:formData=
"searchFormData"
@
handleOk=
"handleOkFn"
@
handleRest=
"handleRestFn"
></GLCombiForm>
<hr
/>
...
...
src/packages/GlCombiForm/src/index.vue
View file @
1ea1014
...
...
@@ -247,17 +247,17 @@ export default {
const
clientWidth
=
window
.
innerWidth
if
(
clientWidth
<=
1062
)
{
// 1个1行
this
.
hasExpand
=
this
.
ifHasExpand
(
1
)
}
else
if
(
clientWidth
<=
1440
&&
clientWidth
>
1062
)
{
// 2个1行
this
.
hasExpand
=
this
.
ifHasExpand
(
2
)
}
else
if
(
clientWidth
<=
1
720
&&
clientWidth
>
1440
)
{
}
else
if
(
clientWidth
<=
1
440
&&
clientWidth
>
1062
)
{
// 3个1行
this
.
hasExpand
=
this
.
ifHasExpand
(
3
)
}
else
{
}
else
if
(
clientWidth
<=
1720
&&
clientWidth
>
1440
)
{
// 4个1行
this
.
hasExpand
=
this
.
ifHasExpand
(
4
)
}
else
{
// 5个1行
this
.
hasExpand
=
this
.
ifHasExpand
(
5
)
}
},
100
)
},
...
...
@@ -310,7 +310,7 @@ export default {
} */
@media
screen
and
(
max-width
:
1062px
)
{
.glsx-combi-form
.el-form-item--small
{
width
:
10
0%
;
width
:
5
0%
;
}
.glsx-combi-form
.el-form-item--small
.el-form-item__content
{
width
:
100%
;
...
...
@@ -321,7 +321,7 @@ export default {
}
@media
screen
and
(
min-width
:
1062px
)
and
(
max-width
:
1440px
)
{
.glsx-combi-form
.el-form-item--small
{
width
:
50
%
;
width
:
33.33
%
;
}
.glsx-combi-form
.el-form-item--small
.el-form-item__content
{
width
:
100%
;
...
...
@@ -332,7 +332,7 @@ export default {
}
@media
screen
and
(
min-width
:
1440px
)
and
(
max-width
:
1720px
)
{
.glsx-combi-form
.el-form-item--small
{
width
:
33.33
%
;
width
:
25
%
;
}
.glsx-combi-form
.el-form-item--small
.el-form-item__content
{
width
:
100%
;
...
...
@@ -343,7 +343,7 @@ export default {
}
@media
screen
and
(
min-width
:
1720px
)
{
.glsx-combi-form
.el-form-item--small
{
width
:
25
%
;
width
:
20
%
;
}
.glsx-combi-form
.el-form-item--small
.el-form-item__content
{
width
:
100%
;
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment