Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue-gjjs
Overview
Overview
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
zhouqian
vue-gjjs
Commits
18874ab7
Commit
18874ab7
authored
Jan 14, 2022
by
fukai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加弹性框
parent
9fcba26d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
46 additions
and
0 deletions
+46
-0
Fullbox.vue
src/components/Fullbox.vue
+43
-0
index.js
src/components/index.js
+3
-0
No files found.
src/components/Fullbox.vue
0 → 100644
View file @
18874ab7
<
template
>
<div
style=
"display:flex"
v-bind:class=
"classObj"
>
<div
style=
"flex:1"
>
<slot>
</slot>
</div>
<div
style=
"display:inline-block"
>
<slot
name=
"footer"
></slot>
</div>
</div>
</
template
>
<
script
>
export
default
{
prop
:{
align
:
{
type
:
[
String
],
default
:
'row'
},
},
computed
:{
classObj
(){
return
{
fullbox
:
true
,
'fullbox-alignRow'
:
this
.
align
!=
'col'
,
'fullbox-alignCol'
:
this
.
align
==
'col'
}
}
}
}
</
script
>
<
style
>
.fullbox
{
display
:
flex
;
}
.fullbox-alignRow
{
flex-direction
:
row
;
}
.fullbox-alignCol
{
flex-direction
:
column
;
}
</
style
>
\ No newline at end of file
src/components/index.js
View file @
18874ab7
...
...
@@ -47,6 +47,7 @@ import BusinessButon from "./BusinessButton"
import
InfSearchGroup
from
"./InfSearchGroup"
import
InputSelect
from
"./InputSelect"
import
Fullbox
from
"./Fullbox"
export
default
{
install
(
Vue
)
{
...
...
@@ -97,5 +98,6 @@ export default {
Vue
.
component
(
"c-infsearch-group"
,
InfSearchGroup
)
Vue
.
component
(
"c-codelabel"
,
CodeLabel
)
Vue
.
component
(
"c-inputselect"
,
InputSelect
)
Vue
.
component
(
"c-fullbox"
,
Fullbox
)
}
}
\ No newline at end of file
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