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-03 14:25:29 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
f0b69cc0b949b5718ee32cf01b771d0f421fd8eb
f0b69cc0
1 parent
d35c0f10
✨ feat(单行文本): 监听数据变化调整
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
27 deletions
src/components/TextField/index.vue
src/components/TextField/index.vue
View file @
f0b69cc
<!--
* @Date: 2022-08-29 14:31:20
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2023-04-03 13:
17:42
* @LastEditTime: 2023-04-03 13:
31:03
* @FilePath: /custom_form/src/components/TextField/index.vue
* @Description: 单行文本输入框(微信扫描功能)
-->
...
...
@@ -142,31 +142,18 @@ const clickRightIcon = () => {
}
}
// watch(
// () => input_value.value,
// (newValue, oldValue) => {
// console.warn(newValue);
// // props.item.value = {
// // key: "input",
// // filed_name: props.item.key,
// // value: newValue,
// // };
// // emit("active", props.item.value);
// },
// { immediate: true }
// );
onMounted(() => {
})
const changeInput = (val) => {
// props.item.value = {
// key: "input",
// filed_name: props.item.key,
// value: val,
// };
// emit("active", props.item.value);
// validInput();
}
watch(
() => input_value.value,
(newValue, oldValue) => {
props.item.value = {
key: "input",
filed_name: props.item.key,
value: newValue,
};
emit("active", props.item.value);
},
{ immediate: true }
);
// 校验模块
const validInput = () => {
...
...
@@ -218,7 +205,6 @@ defineExpose({ validInput });
// padding: 7px 14px !important;
// }
input {
color: #000 !important;
}
...
...
Please
register
or
login
to post a comment