mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 17:31:42 +08:00
f20d863bc3
* Add TestDomEventService to TestBase * chore(tests): update to net5 * feat(testdomeventservice): override eventdomservice to null * fix(AddEventListener): make AddEventListener virtual * feat(test): add basic overlay test * fix(name): make name .cs
28 lines
770 B
C#
28 lines
770 B
C#
// Licensed to the .NET Foundation under one or more agreements.
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
using Microsoft.JSInterop;
|
|
|
|
namespace AntDesign.Tests
|
|
{
|
|
public class TestDomEventService : AntDesign.JsInterop.DomEventService
|
|
{
|
|
public TestDomEventService(IJSRuntime js) : base(js)
|
|
{
|
|
|
|
}
|
|
|
|
public override void AddEventListener<T>(object dom, string eventName, Action<T> callback, bool exclusive = true, bool preventDefault = false)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
}
|