Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Chatopera OpenSource
/
ferry_web
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
19645386
authored
Sep 07, 2020
by
Mr. Lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 表单设计器的input支持密码类型输入。Issue #37
parent
10705879
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
2 deletions
src/components/VueFormMaking/components/GenerateFormItem.vue
src/components/VueFormMaking/components/WidgetConfig.vue
src/components/VueFormMaking/components/componentsConfig.js
src/components/VueFormMaking/lang/zh-CN.js
src/views/process/list/handle.vue
src/components/VueFormMaking/components/GenerateFormItem.vue
View file @
19645386
...
...
@@ -60,6 +60,9 @@
</span>
</el-divider>
</
template
>
<
template
v-if=
"widget.type === 'input' && widget.options.showPassword"
>
<input
:value=
"dataModel"
type=
"password"
style=
"border: none; background-color: #ffffff; color: #303133"
disabled=
"disabled"
>
</
template
>
<
template
v-else
>
<div>
{{
dataModel
}}
...
...
@@ -75,6 +78,7 @@
:placeholder=
"widget.options.placeholder"
:style=
"
{width: widget.options.width}"
:disabled="widget.options.disabled"
:show-password="widget.options.showPassword"
/>
<el-input
v-else
...
...
@@ -83,6 +87,7 @@
:disabled=
"widget.options.disabled"
:placeholder=
"widget.options.placeholder"
:style=
"
{width: widget.options.width}"
:show-password="widget.options.showPassword"
/>
</
template
>
...
...
src/components/VueFormMaking/components/WidgetConfig.vue
View file @
19645386
...
...
@@ -390,6 +390,7 @@
<el-form-item
:label=
"$t('fm.config.widget.attribute')"
>
<el-checkbox
v-if=
"Object.keys(data.options).indexOf('readonly')>=0"
v-model=
"data.options.readonly"
>
{{
$t
(
'fm.config.widget.readonly'
)
}}
</el-checkbox>
<el-checkbox
v-if=
"Object.keys(data.options).indexOf('disabled')>=0"
v-model=
"data.options.disabled"
>
{{
$t
(
'fm.config.widget.disabled'
)
}}
</el-checkbox>
<el-checkbox
v-if=
"Object.keys(data.options).indexOf('showPassword')>=0"
v-model=
"data.options.showPassword"
>
{{
$t
(
'fm.config.widget.showPassword'
)
}}
</el-checkbox>
<el-checkbox
v-if=
"Object.keys(data.options).indexOf('editable')>=0"
v-model=
"data.options.editable"
>
{{
$t
(
'fm.config.widget.editable'
)
}}
</el-checkbox>
<el-checkbox
v-if=
"Object.keys(data.options).indexOf('clearable')>=0"
v-model=
"data.options.clearable"
>
{{
$t
(
'fm.config.widget.clearable'
)
}}
</el-checkbox>
<el-checkbox
v-if=
"Object.keys(data.options).indexOf('arrowControl')>=0"
v-model=
"data.options.arrowControl"
>
{{
$t
(
'fm.config.widget.arrowControl'
)
}}
</el-checkbox>
...
...
src/components/VueFormMaking/components/componentsConfig.js
View file @
19645386
...
...
@@ -10,6 +10,7 @@ export const basicComponents = [
pattern
:
''
,
placeholder
:
''
,
disabled
:
false
,
showPassword
:
false
,
labelWidth
:
100
,
labelWidthDisabled
:
false
,
labelWidthStatus
:
true
...
...
src/components/VueFormMaking/lang/zh-CN.js
View file @
19645386
...
...
@@ -166,7 +166,7 @@ export default {
arrowControl
:
'使用箭头进行时间选择'
,
isDelete
:
'删除'
,
isEdit
:
'编辑'
,
showPassword
:
'
显示
密码'
,
showPassword
:
'密码'
,
validate
:
'校验'
,
required
:
'必填'
,
patternPlaceholder
:
'填写正则表达式'
,
...
...
src/views/process/list/handle.vue
View file @
19645386
...
...
@@ -64,7 +64,7 @@
<fm-generate-form
v-show=
"currentNode.hideTpls===undefined ||
currentNode.hideTpls===null ||
currentNode.hideTpls.indexOf(tplItem.id)===-1"
currentNode.hideTpls.indexOf(tplItem.
form_structure.
id)===-1"
:key=
"tplIndex"
:ref=
"'generateForm-'+tplItem.id"
:preview=
"currentNode.writeTpls===undefined ||
...
...
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