Skip to content

Commit 9f81048

Browse files
committed
refactor: 变量名变更
1 parent cc5da32 commit 9f81048

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/BootstrapBlazor/Components/Checkbox/CheckboxListGeneric.razor.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,23 +204,23 @@ private async Task<bool> OnBeforeStateChanged(CheckboxState state)
204204
private async Task OnStateChanged(SelectedItem<TValue> item, bool v)
205205
{
206206
item.Active = v;
207-
var vals = new List<TValue?>();
207+
var items = new List<TValue?>();
208208
if (Value != null)
209209
{
210-
vals.AddRange(Value);
210+
items.AddRange(Value);
211211
}
212212

213-
var val = vals.Find(i => IsEquals(item.Value));
213+
var val = items.Find(i => IsEquals(item.Value));
214214
if (v && val == null)
215215
{
216-
vals.Add(item.Value);
216+
items.Add(item.Value);
217217
}
218218
else
219219
{
220-
vals.Remove(val);
220+
items.Remove(val);
221221
}
222222

223-
CurrentValue = vals;
223+
CurrentValue = items;
224224

225225
if (OnSelectedChanged != null)
226226
{

0 commit comments

Comments
 (0)