Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-easy-ui
Project
Project
Details
Activity
Releases
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
easyUI
hls-easy-ui
Commits
e895f1e7
Commit
e895f1e7
authored
Aug 09, 2019
by
JingChao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
layout
parent
2eecde67
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
291 additions
and
74 deletions
+291
-74
index.vue
packages/components/HForm/index.vue
+169
-64
right-arrow@2x.png
packages/components/HForm/right-arrow@2x.png
+0
-0
index.vue
packages/components/Switch/index.vue
+2
-7
form.vue
src/pages/form.vue
+42
-2
layout.json
src/pages/layout.json
+78
-1
No files found.
packages/components/HForm/index.vue
View file @
e895f1e7
This diff is collapsed.
Click to expand it.
packages/components/HForm/right-arrow@2x.png
0 → 100644
View file @
e895f1e7
14.9 KB
packages/components/Switch/index.vue
View file @
e895f1e7
...
...
@@ -32,19 +32,14 @@ export default {
}
},
computed
:
{
/* value() {
return value ? value : false
} */
},
watch
:
{
value
(
val
)
{
this
.
$emit
(
'input'
,
val
)
this
.
value
=
val
},
},
methods
:
{
checked
()
{
if
(
!
this
.
disable
)
{
this
.
$emit
(
'input'
,
!
this
.
value
)
this
.
$emit
(
'switchClick'
,
!
this
.
value
)
}
},
...
...
src/pages/form.vue
View file @
e895f1e7
...
...
@@ -14,8 +14,9 @@
</h-header>
<h-form
:layout-data=
"layoutData"
:show-form-title=
"showFormTitle"
:show-btn-divider=
"true"
:show-tab-divider=
"true"
:formData
.
sync=
"data"
v-model=
"data"
@
tabClick=
"tabClick"
@
showSelect=
"showSelect"
@
showTime=
"showTime"
/>
:show-tab-divider=
"true"
:formData=
"data"
v-model=
"data"
@
tabClick=
"tabClick"
@
showSelect=
"showSelect"
@
showTime=
"showTime"
@
switchClick=
"switchClick"
@
filedClick=
"filedClick"
@
btnClick=
"btnClick"
/>
</h-view>
</
template
>
...
...
@@ -34,6 +35,7 @@ export default {
contract
:
{
postion
:
'01'
,
postion_n
:
'技术顾问'
,
enable_flag
:
false
,
},
},
postionList
:
[
...
...
@@ -47,6 +49,10 @@ export default {
},
methods
:
{
/**
* tab的点击事件
* @param index
*/
tabClick
(
index
)
{
this
.
tabIndex
=
index
},
...
...
@@ -62,6 +68,11 @@ export default {
},
})
},
/**
* 下拉框点击事件
* @param configCode
* @param filedCode
*/
showSelect
(
configCode
,
filedCode
)
{
let
vm
=
this
switch
(
filedCode
)
{
...
...
@@ -79,6 +90,11 @@ export default {
},
})
},
/**
* 事件选择事件
* @param configCode
* @param filedCode
*/
showTime
(
configCode
,
filedCode
)
{
let
vm
=
this
switch
(
filedCode
)
{
...
...
@@ -88,6 +104,30 @@ export default {
default
:
}
},
/**
* switch的点开事件
* @param configCode
* @param filedCode
* @param value
*/
switchClick
(
configCode
,
filedCode
,
value
)
{
debugger
},
/**
* 其他字端的点击事件
* @param configCode
* @param filedCode
*/
filedClick
(
configCode
,
filedCode
)
{
debugger
},
/**
* 按钮点击事件
* @param btn
*/
btnClick
(
btn
)
{
debugger
},
},
}
</
script
>
...
...
src/pages/layout.json
View file @
e895f1e7
...
...
@@ -201,7 +201,7 @@
"inputType"
:
"text"
,
"placeholder"
:
"请选择岗位"
,
"filedOrder"
:
"3"
,
"inputMode"
:
"
other
"
,
"inputMode"
:
"
readOnly
"
,
"leftIcon"
:
null
,
"rightIcon"
:
null
,
"format"
:
"N"
,
...
...
@@ -616,6 +616,83 @@
"cssClass"
:
null
}
]
},
{
"_token"
:
"db3ad35d036691c5b0caa2e273d31f25"
,
"objectVersionNumber"
:
null
,
"configId"
:
"5c95cde581a64f42a86900712c53502a"
,
"layoutId"
:
"1"
,
"configCode"
:
"BUTTON"
,
"configName"
:
"底部按钮"
,
"configType"
:
"BUTTON"
,
"configOrder"
:
"40"
,
"tabFlag"
:
"N"
,
"tabConfigId"
:
null
,
"tabFiledId"
:
null
,
"cssClass"
:
"btn-button"
,
"enableFlag"
:
"Y"
,
"hideForm"
:
false
,
"tabConfigCode"
:
null
,
"tabFiledCode"
:
null
,
"tabFiledName"
:
null
,
"layoutFiledList"
:
[
{
"_token"
:
"7e61d576cfa5d12ee68bdf7ec36d99b2"
,
"objectVersionNumber"
:
2
,
"filedId"
:
"3d7ba60e16594e1fb170790d166c8bb1"
,
"layoutId"
:
"1"
,
"configId"
:
"5c95cde581a64f42a86900712c53502a"
,
"filedCode"
:
"save"
,
"filedName"
:
"保存"
,
"defaultValue"
:
null
,
"filedType"
:
"OTHES"
,
"inputType"
:
"text"
,
"placeholder"
:
null
,
"filedOrder"
:
"1"
,
"inputMode"
:
"other"
,
"leftIcon"
:
null
,
"rightIcon"
:
null
,
"format"
:
"N"
,
"proportion"
:
"1,2"
,
"showName"
:
true
,
"showContent"
:
true
,
"showArrow"
:
false
,
"hasBorder"
:
true
,
"filedHeight"
:
45
,
"enableFlag"
:
"Y"
,
"tabContent"
:
null
,
"btnContent"
:
null
,
"cssClass"
:
"save-btn"
},
{
"_token"
:
"974a18dedc6a0960a4ad0f6be96dacea"
,
"objectVersionNumber"
:
1
,
"filedId"
:
"f64a1e6b0c834f5fa0db15e999e84eb0"
,
"layoutId"
:
"1"
,
"configId"
:
"5c95cde581a64f42a86900712c53502a"
,
"filedCode"
:
"submit"
,
"filedName"
:
"提交"
,
"defaultValue"
:
null
,
"filedType"
:
"OTHES"
,
"inputType"
:
"text"
,
"placeholder"
:
null
,
"filedOrder"
:
"2"
,
"inputMode"
:
"other"
,
"leftIcon"
:
null
,
"rightIcon"
:
null
,
"format"
:
"N"
,
"proportion"
:
"1,2"
,
"showName"
:
true
,
"showContent"
:
true
,
"showArrow"
:
false
,
"hasBorder"
:
true
,
"filedHeight"
:
45
,
"enableFlag"
:
"Y"
,
"tabContent"
:
null
,
"btnContent"
:
null
,
"cssClass"
:
null
}
]
}
]
}
...
...
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