Skip to content

Commit 0cf0cd3

Browse files
committed
refactor: 增加脚本
1 parent 66c5176 commit 0cf0cd3

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/BootstrapBlazor/Components/Input/OtpInput.razor.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ namespace BootstrapBlazor.Components;
88
/// <summary>
99
/// OTP input component
1010
/// </summary>
11+
[BootstrapModuleAutoLoader("Input/OtpInput.razor.js")]
1112
public partial class OtpInput
1213
{
1314
/// <summary>
@@ -54,7 +55,7 @@ public partial class OtpInput
5455
private string? TypeModeString => Type switch
5556
{
5657
OtpInputType.Number => "numeric",
57-
_ => "text"
58+
_ => null
5859
};
5960

6061
private char[] _values = [];
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export function init(id) {
2+
console.log(id);
3+
}
4+
5+
export function dispose(id) {
6+
console.log(id);
7+
}

0 commit comments

Comments
 (0)