Showing
1 changed file
with
17 additions
and
3 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-14 14:44:30 | 2 | * @Date: 2022-09-14 14:44:30 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-04-06 10:16:18 | 4 | + * @LastEditTime: 2023-04-07 09:30:49 |
| 5 | * @FilePath: /custom_form/src/components/IdentityField/index.vue | 5 | * @FilePath: /custom_form/src/components/IdentityField/index.vue |
| 6 | * @Description: 身份证输入控件 | 6 | * @Description: 身份证输入控件 |
| 7 | --> | 7 | --> |
| ... | @@ -12,10 +12,24 @@ | ... | @@ -12,10 +12,24 @@ |
| 12 | {{ item.component_props.label }} | 12 | {{ item.component_props.label }} |
| 13 | </div> | 13 | </div> |
| 14 | <!-- <div v-if="item.component_props.readonly" style="padding: 0.5rem 1rem;">{{ item.value }}</div> --> | 14 | <!-- <div v-if="item.component_props.readonly" style="padding: 0.5rem 1rem;">{{ item.value }}</div> --> |
| 15 | + <!-- <van-field | ||
| 16 | + ref="fieldRef" | ||
| 17 | + v-model="item.value" | ||
| 18 | + :id="item.name" | ||
| 19 | + :name="item.name" | ||
| 20 | + :placeholder="item.component_props.placeholder" | ||
| 21 | + :rules="rules" | ||
| 22 | + :required="item.component_props.required" | ||
| 23 | + :disabled="item.component_props.readonly" | ||
| 24 | + :readonly="!edit_mode" | ||
| 25 | + right-icon="edit" @click-right-icon="clickRightIcon" | ||
| 26 | + @touchstart.stop="openKeyboard($event)" | ||
| 27 | + :border="false" | ||
| 28 | + > | ||
| 29 | + </van-field> --> | ||
| 15 | <van-field ref="fieldRef" v-model="item.value" :id="item.name" :name="item.name" | 30 | <van-field ref="fieldRef" v-model="item.value" :id="item.name" :name="item.name" |
| 16 | :placeholder="item.component_props.placeholder" :rules="rules" :required="item.component_props.required" | 31 | :placeholder="item.component_props.placeholder" :rules="rules" :required="item.component_props.required" |
| 17 | - :disabled="item.component_props.readonly" :readonly="!edit_mode" right-icon="edit" | 32 | + :disabled="item.component_props.readonly" :border="false"> |
| 18 | - @click-right-icon="clickRightIcon" @touchstart.stop="openKeyboard($event)" :border="false"> | ||
| 19 | </van-field> | 33 | </van-field> |
| 20 | <!-- <div v-if="gender" class="gender"><span>性别:</span>{{ gender }}</div> --> | 34 | <!-- <div v-if="gender" class="gender"><span>性别:</span>{{ gender }}</div> --> |
| 21 | <van-number-keyboard v-model="item.value" :show="show" extra-key="X" close-button-text="完成" @blur="blurKeyboard()" | 35 | <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