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
bbb85edb
Commit
bbb85edb
authored
Jul 22, 2020
by
Mr. Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug.
parent
9c320785
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
21 deletions
+21
-21
src/components/VueFormMaking/components/GenerateFormItem.vue
+2
-2
src/components/VueFormMaking/components/WidgetFormItem.vue
+2
-2
src/components/VueFormMaking/components/componentsConfig.js
+17
-17
No files found.
src/components/VueFormMaking/components/GenerateFormItem.vue
View file @
bbb85edb
<
template
>
<el-form-item
:label-width=
"widget.options.labelWidthStatus?widgetLabelWidth + 'px': '0px'"
:label=
"widget.type==='divider' ||
!
widget.options.labelWidthStatus?'':widget.name"
:label-width=
"
!
widget.options.labelWidthStatus?widgetLabelWidth + 'px': '0px'"
:label=
"widget.type==='divider' || widget.options.labelWidthStatus?'':widget.name"
:prop=
"widget.model"
>
<template
v-if=
"widget.type == 'input'"
>
...
...
src/components/VueFormMaking/components/WidgetFormItem.vue
View file @
bbb85edb
<
template
>
<el-form-item
v-if=
"element && element.key"
:label-width=
"element.options.labelWidthStatus?elementLabelWidth + 'px': '0px'"
:label-width=
"
!
element.options.labelWidthStatus?elementLabelWidth + 'px': '0px'"
class=
"widget-view "
:class=
"
{active: selectWidget.key === element.key, 'is_req': element.options.required}"
:label="element.type==='divider' ||
!
element.options.labelWidthStatus?'':element.name"
:label="element.type==='divider' || element.options.labelWidthStatus?'':element.name"
@click.native.stop="handleSelectWidget(index)"
>
<template
v-if=
"element.type == 'input'"
>
...
...
src/components/VueFormMaking/components/componentsConfig.js
View file @
bbb85edb
...
...
@@ -12,7 +12,7 @@ export const basicComponents = [
disabled
:
false
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
},
{
...
...
@@ -27,7 +27,7 @@ export const basicComponents = [
placeholder
:
''
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
},
{
...
...
@@ -44,7 +44,7 @@ export const basicComponents = [
controlsPosition
:
''
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
},
{
...
...
@@ -80,7 +80,7 @@ export const basicComponents = [
disabled
:
false
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
},
{
...
...
@@ -113,7 +113,7 @@ export const basicComponents = [
disabled
:
false
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
},
{
...
...
@@ -135,7 +135,7 @@ export const basicComponents = [
width
:
''
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
},
{
...
...
@@ -157,7 +157,7 @@ export const basicComponents = [
width
:
''
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
},
{
...
...
@@ -171,7 +171,7 @@ export const basicComponents = [
required
:
false
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
},
{
...
...
@@ -184,7 +184,7 @@ export const basicComponents = [
required
:
false
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
},
{
...
...
@@ -219,7 +219,7 @@ export const basicComponents = [
remoteFunc
:
''
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
},
{
...
...
@@ -231,7 +231,7 @@ export const basicComponents = [
disabled
:
false
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
},
{
...
...
@@ -249,7 +249,7 @@ export const basicComponents = [
width
:
''
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
},
{
...
...
@@ -261,7 +261,7 @@ export const basicComponents = [
font_weight
:
'500'
,
// 粗体
font_family
:
''
,
// 字体属性
defaultValue
:
'这是一句话'
,
labelWidthStatus
:
tru
e
,
labelWidthStatus
:
fals
e
,
customClass
:
''
,
labelWidth
:
100
,
labelWidthDisabled
:
false
...
...
@@ -277,7 +277,7 @@ export const advanceComponents = [
defaultType
:
'String'
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
},
{
...
...
@@ -303,7 +303,7 @@ export const advanceComponents = [
action
:
'https://jsonplaceholder.typicode.com/photos/'
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
},
{
...
...
@@ -314,7 +314,7 @@ export const advanceComponents = [
width
:
''
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
},
{
...
...
@@ -336,7 +336,7 @@ export const advanceComponents = [
remoteFunc
:
''
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
}
]
...
...
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