Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
work-order-web
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
张圳龙
work-order-web
Commits
bbb85edb
Commit
bbb85edb
authored
Jul 21, 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
GenerateFormItem.vue
src/components/VueFormMaking/components/GenerateFormItem.vue
+2
-2
WidgetFormItem.vue
src/components/VueFormMaking/components/WidgetFormItem.vue
+2
-2
componentsConfig.js
src/components/VueFormMaking/components/componentsConfig.js
+17
-17
No files found.
src/components/VueFormMaking/components/GenerateFormItem.vue
View file @
bbb85edb
<
template
>
<
template
>
<el-form-item
<el-form-item
:label-width=
"widget.options.labelWidthStatus?widgetLabelWidth + 'px': '0px'"
:label-width=
"
!
widget.options.labelWidthStatus?widgetLabelWidth + 'px': '0px'"
:label=
"widget.type==='divider' ||
!
widget.options.labelWidthStatus?'':widget.name"
:label=
"widget.type==='divider' || widget.options.labelWidthStatus?'':widget.name"
:prop=
"widget.model"
:prop=
"widget.model"
>
>
<template
v-if=
"widget.type == 'input'"
>
<template
v-if=
"widget.type == 'input'"
>
...
...
src/components/VueFormMaking/components/WidgetFormItem.vue
View file @
bbb85edb
<
template
>
<
template
>
<el-form-item
<el-form-item
v-if=
"element && element.key"
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=
"widget-view "
:class=
"
{active: selectWidget.key === element.key, 'is_req': element.options.required}"
: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)"
@click.native.stop="handleSelectWidget(index)"
>
>
<template
v-if=
"element.type == 'input'"
>
<template
v-if=
"element.type == 'input'"
>
...
...
src/components/VueFormMaking/components/componentsConfig.js
View file @
bbb85edb
...
@@ -12,7 +12,7 @@ export const basicComponents = [
...
@@ -12,7 +12,7 @@ export const basicComponents = [
disabled
:
false
,
disabled
:
false
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
}
},
},
{
{
...
@@ -27,7 +27,7 @@ export const basicComponents = [
...
@@ -27,7 +27,7 @@ export const basicComponents = [
placeholder
:
''
,
placeholder
:
''
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
}
},
},
{
{
...
@@ -44,7 +44,7 @@ export const basicComponents = [
...
@@ -44,7 +44,7 @@ export const basicComponents = [
controlsPosition
:
''
,
controlsPosition
:
''
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
}
},
},
{
{
...
@@ -80,7 +80,7 @@ export const basicComponents = [
...
@@ -80,7 +80,7 @@ export const basicComponents = [
disabled
:
false
,
disabled
:
false
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
}
},
},
{
{
...
@@ -113,7 +113,7 @@ export const basicComponents = [
...
@@ -113,7 +113,7 @@ export const basicComponents = [
disabled
:
false
,
disabled
:
false
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
}
},
},
{
{
...
@@ -135,7 +135,7 @@ export const basicComponents = [
...
@@ -135,7 +135,7 @@ export const basicComponents = [
width
:
''
,
width
:
''
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
}
},
},
{
{
...
@@ -157,7 +157,7 @@ export const basicComponents = [
...
@@ -157,7 +157,7 @@ export const basicComponents = [
width
:
''
,
width
:
''
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
}
},
},
{
{
...
@@ -171,7 +171,7 @@ export const basicComponents = [
...
@@ -171,7 +171,7 @@ export const basicComponents = [
required
:
false
,
required
:
false
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
}
},
},
{
{
...
@@ -184,7 +184,7 @@ export const basicComponents = [
...
@@ -184,7 +184,7 @@ export const basicComponents = [
required
:
false
,
required
:
false
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
}
},
},
{
{
...
@@ -219,7 +219,7 @@ export const basicComponents = [
...
@@ -219,7 +219,7 @@ export const basicComponents = [
remoteFunc
:
''
,
remoteFunc
:
''
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
}
},
},
{
{
...
@@ -231,7 +231,7 @@ export const basicComponents = [
...
@@ -231,7 +231,7 @@ export const basicComponents = [
disabled
:
false
,
disabled
:
false
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
}
},
},
{
{
...
@@ -249,7 +249,7 @@ export const basicComponents = [
...
@@ -249,7 +249,7 @@ export const basicComponents = [
width
:
''
,
width
:
''
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
}
},
},
{
{
...
@@ -261,7 +261,7 @@ export const basicComponents = [
...
@@ -261,7 +261,7 @@ export const basicComponents = [
font_weight
:
'500'
,
// 粗体
font_weight
:
'500'
,
// 粗体
font_family
:
''
,
// 字体属性
font_family
:
''
,
// 字体属性
defaultValue
:
'这是一句话'
,
defaultValue
:
'这是一句话'
,
labelWidthStatus
:
tru
e
,
labelWidthStatus
:
fals
e
,
customClass
:
''
,
customClass
:
''
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
labelWidthDisabled
:
false
...
@@ -277,7 +277,7 @@ export const advanceComponents = [
...
@@ -277,7 +277,7 @@ export const advanceComponents = [
defaultType
:
'String'
,
defaultType
:
'String'
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
}
},
},
{
{
...
@@ -303,7 +303,7 @@ export const advanceComponents = [
...
@@ -303,7 +303,7 @@ export const advanceComponents = [
action
:
'https://jsonplaceholder.typicode.com/photos/'
,
action
:
'https://jsonplaceholder.typicode.com/photos/'
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
}
},
},
{
{
...
@@ -314,7 +314,7 @@ export const advanceComponents = [
...
@@ -314,7 +314,7 @@ export const advanceComponents = [
width
:
''
,
width
:
''
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
tru
e
labelWidthStatus
:
fals
e
}
}
},
},
{
{
...
@@ -336,7 +336,7 @@ export const advanceComponents = [
...
@@ -336,7 +336,7 @@ export const advanceComponents = [
remoteFunc
:
''
,
remoteFunc
:
''
,
labelWidth
:
100
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
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