Skip to content

Commit dff22b3

Browse files
committed
feat: 增加 resetValue 方法
1 parent dae37ad commit dff22b3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/BootstrapBlazor/Components/Select/Select.razor.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,13 @@ export function hide(id) {
5050
}
5151
}
5252

53+
export function resetValue(id, value) {
54+
const input = document.getElementById(id);
55+
if (input) {
56+
input.value = value;
57+
}
58+
}
59+
5360
export function dispose(id) {
5461
const select = Data.get(id)
5562
Data.remove(id)

0 commit comments

Comments
 (0)