Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
ferry_web
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jianan
ferry_web
Commits
a5f08359
Commit
a5f08359
authored
Jul 21, 2020
by
Mr. Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug.
parent
8dfa3606
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
4 deletions
+8
-4
src/components/VueFormMaking/components/GenerateFormItem.vue
+1
-2
src/components/VueFormMaking/components/WidgetConfig.vue
+1
-1
src/components/VueFormMaking/components/WidgetFormItem.vue
+6
-1
No files found.
src/components/VueFormMaking/components/GenerateFormItem.vue
View file @
a5f08359
...
...
@@ -300,8 +300,7 @@ export default {
// label width
if
(
this
.
widget
.
options
.
labelWidthDisabled
)
{
this
.
widgetLabelWidth
=
this
.
widget
.
options
.
labelWidth
}
else
if
(
this
.
widget
.
type
===
'divider'
||
(
this
.
widget
.
type
===
'text'
&&
this
.
widget
.
options
.
textLabelStatus
===
false
))
{
}
else
if
(
this
.
widget
.
type
===
'divider'
)
{
this
.
widgetLabelWidth
=
0
}
else
{
this
.
widgetLabelWidth
=
this
.
data
.
config
.
labelWidth
...
...
src/components/VueFormMaking/components/WidgetConfig.vue
View file @
a5f08359
...
...
@@ -23,7 +23,7 @@
:label=
"$t('fm.config.widget.labelWidth')"
>
<el-checkbox
v-model=
"data.options.labelWidthDisabled"
>
自定义
</el-checkbox>
<el-input-number
v-model=
"data.options.labelWidth"
:min=
"
1
"
:disabled=
"!data.options.labelWidthDisabled"
/>
<el-input-number
v-model=
"data.options.labelWidth"
:min=
"
0"
:step=
"10
"
:disabled=
"!data.options.labelWidthDisabled"
/>
</el-form-item>
<!-- 兰玉磊结束添加 -->
...
...
src/components/VueFormMaking/components/WidgetFormItem.vue
View file @
a5f08359
...
...
@@ -258,6 +258,11 @@ export default {
},
'element.options.labelWidthDisabled'
:
function
(
val
)
{
this
.
setLabelWidth
(
val
)
},
'dataConfig.config.labelWidth'
:
function
(
val
)
{
if
(
!
this
.
element
.
options
.
labelWidthDisabled
&&
this
.
element
.
type
!==
'divider'
)
{
this
.
elementLabelWidth
=
val
}
}
},
mounted
()
{
...
...
@@ -270,7 +275,7 @@ export default {
}
if
(
status
)
{
this
.
elementLabelWidth
=
this
.
element
.
options
.
labelWidth
}
else
if
(
this
.
element
.
type
===
'divider'
||
(
this
.
element
.
type
===
'text'
&&
element
.
options
.
textLabelStatus
===
false
)
)
{
}
else
if
(
this
.
element
.
type
===
'divider'
)
{
this
.
elementLabelWidth
=
0
}
else
{
// 全局
...
...
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