Showing
1 changed file
with
13 additions
and
27 deletions
| 1 | <!-- | 1 | <!-- |
| 2 | * @Date: 2022-08-29 14:31:20 | 2 | * @Date: 2022-08-29 14:31:20 |
| 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 3 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 4 | - * @LastEditTime: 2023-04-03 13:17:42 | 4 | + * @LastEditTime: 2023-04-03 13:31:03 |
| 5 | * @FilePath: /custom_form/src/components/TextField/index.vue | 5 | * @FilePath: /custom_form/src/components/TextField/index.vue |
| 6 | * @Description: 单行文本输入框(微信扫描功能) | 6 | * @Description: 单行文本输入框(微信扫描功能) |
| 7 | --> | 7 | --> |
| ... | @@ -142,31 +142,18 @@ const clickRightIcon = () => { | ... | @@ -142,31 +142,18 @@ const clickRightIcon = () => { |
| 142 | } | 142 | } |
| 143 | } | 143 | } |
| 144 | 144 | ||
| 145 | -// watch( | 145 | +watch( |
| 146 | -// () => input_value.value, | 146 | + () => input_value.value, |
| 147 | -// (newValue, oldValue) => { | 147 | + (newValue, oldValue) => { |
| 148 | -// console.warn(newValue); | 148 | + props.item.value = { |
| 149 | -// // props.item.value = { | 149 | + key: "input", |
| 150 | -// // key: "input", | 150 | + filed_name: props.item.key, |
| 151 | -// // filed_name: props.item.key, | 151 | + value: newValue, |
| 152 | -// // value: newValue, | 152 | + }; |
| 153 | -// // }; | 153 | + emit("active", props.item.value); |
| 154 | -// // emit("active", props.item.value); | 154 | + }, |
| 155 | -// }, | 155 | + { immediate: true } |
| 156 | -// { immediate: true } | 156 | +); |
| 157 | -// ); | ||
| 158 | - | ||
| 159 | -onMounted(() => { | ||
| 160 | -}) | ||
| 161 | -const changeInput = (val) => { | ||
| 162 | - // props.item.value = { | ||
| 163 | - // key: "input", | ||
| 164 | - // filed_name: props.item.key, | ||
| 165 | - // value: val, | ||
| 166 | - // }; | ||
| 167 | - // emit("active", props.item.value); | ||
| 168 | - // validInput(); | ||
| 169 | -} | ||
| 170 | 157 | ||
| 171 | // 校验模块 | 158 | // 校验模块 |
| 172 | const validInput = () => { | 159 | const validInput = () => { |
| ... | @@ -218,7 +205,6 @@ defineExpose({ validInput }); | ... | @@ -218,7 +205,6 @@ defineExpose({ validInput }); |
| 218 | // padding: 7px 14px !important; | 205 | // padding: 7px 14px !important; |
| 219 | // } | 206 | // } |
| 220 | 207 | ||
| 221 | - | ||
| 222 | input { | 208 | input { |
| 223 | color: #000 !important; | 209 | color: #000 !important; |
| 224 | } | 210 | } | ... | ... |
-
Please register or login to post a comment