Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
custom_form
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
hookehuyr
2023-04-07 13:53:50 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
667cfa9c62b4088d39766a540f925e8c0a62b6c8
667cfa9c
1 parent
ad88fd98
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
src/components/IdentityField/index.vue
src/components/IdentityField/index.vue
View file @
667cfa9
<!--
* @Date: 2022-09-14 14:44:30
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-04-0
6 10:16:18
* @LastEditTime: 2023-04-0
7 09:30:49
* @FilePath: /custom_form/src/components/IdentityField/index.vue
* @Description: 身份证输入控件
-->
...
...
@@ -12,10 +12,24 @@
{{ item.component_props.label }}
</div>
<!-- <div v-if="item.component_props.readonly" style="padding: 0.5rem 1rem;">{{ item.value }}</div> -->
<!-- <van-field
ref="fieldRef"
v-model="item.value"
:id="item.name"
:name="item.name"
:placeholder="item.component_props.placeholder"
:rules="rules"
:required="item.component_props.required"
:disabled="item.component_props.readonly"
:readonly="!edit_mode"
right-icon="edit" @click-right-icon="clickRightIcon"
@touchstart.stop="openKeyboard($event)"
:border="false"
>
</van-field> -->
<van-field ref="fieldRef" v-model="item.value" :id="item.name" :name="item.name"
:placeholder="item.component_props.placeholder" :rules="rules" :required="item.component_props.required"
:disabled="item.component_props.readonly" :readonly="!edit_mode" right-icon="edit"
@click-right-icon="clickRightIcon" @touchstart.stop="openKeyboard($event)" :border="false">
:disabled="item.component_props.readonly" :border="false">
</van-field>
<!-- <div v-if="gender" class="gender"><span>性别:</span>{{ gender }}</div> -->
<van-number-keyboard v-model="item.value" :show="show" extra-key="X" close-button-text="完成" @blur="blurKeyboard()"
...
...
Please
register
or
login
to post a comment