Showing
1 changed file
with
14 additions
and
2 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-09-02 10:46:03 | 2 | * @Date: 2022-09-02 10:46:03 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-02-09 15:55:56 | 4 | + * @LastEditTime: 2023-03-17 11:06:49 |
| 5 | * @FilePath: /data-table/src/components/PhoneField/index.vue | 5 | * @FilePath: /data-table/src/components/PhoneField/index.vue |
| 6 | * @Description: 手机输入框 | 6 | * @Description: 手机输入框 |
| 7 | --> | 7 | --> |
| ... | @@ -11,7 +11,7 @@ | ... | @@ -11,7 +11,7 @@ |
| 11 | <span v-if="item.component_props.required"> *</span> | 11 | <span v-if="item.component_props.required"> *</span> |
| 12 | {{ item.component_props.label }} | 12 | {{ item.component_props.label }} |
| 13 | </div> | 13 | </div> |
| 14 | - <van-field | 14 | + <!-- <van-field |
| 15 | :id="item.name" | 15 | :id="item.name" |
| 16 | v-model="item.value" | 16 | v-model="item.value" |
| 17 | :name="item.name" | 17 | :name="item.name" |
| ... | @@ -24,6 +24,18 @@ | ... | @@ -24,6 +24,18 @@ |
| 24 | :readonly="readonly" | 24 | :readonly="readonly" |
| 25 | @touchstart.stop="openKeyboard($event)" | 25 | @touchstart.stop="openKeyboard($event)" |
| 26 | :border="false" | 26 | :border="false" |
| 27 | + > --> | ||
| 28 | + <van-field | ||
| 29 | + :id="item.name" | ||
| 30 | + v-model="item.value" | ||
| 31 | + :name="item.name" | ||
| 32 | + type="digit" | ||
| 33 | + maxlength="11" | ||
| 34 | + :placeholder="item.component_props.placeholder ? item.component_props.placeholder : '请输入手机号码'" | ||
| 35 | + :rules="rules" | ||
| 36 | + :required="item.component_props.required" | ||
| 37 | + :disabled="item.component_props.readonly" | ||
| 38 | + :border="false" | ||
| 27 | > | 39 | > |
| 28 | </van-field> | 40 | </van-field> |
| 29 | <van-field | 41 | <van-field | ... | ... |
-
Please register or login to post a comment