Skip to content

Commit

Permalink
add: 增加input组件confirm示例
Browse files Browse the repository at this point in the history
  • Loading branch information
jry committed Aug 2, 2024
1 parent e4b4233 commit 35a7914
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/pages/componentsC/input/input.nvue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
placeholder="请输入内容"
border="surround"
v-model="value"
@change="change"
@change="change"
confirmType="search"
@confirm="handleSearch"
></up-input>
<up-button @click="value = Math.random().toString()">变化</up-button>
{{value}}
Expand Down Expand Up @@ -200,6 +202,10 @@
},
change(e) {
console.log('change', e);
},
handleSearch(e) {
uni.$u.toast('@confirm触发');
console.log('change', e);
}
}
}
Expand Down

0 comments on commit 35a7914

Please sign in to comment.