2020-03-10 15:25:29 +08:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2020-05-10 22:43:58 +08:00
|
|
|
|
using System.Globalization;
|
2020-03-10 15:25:29 +08:00
|
|
|
|
using System.Text;
|
|
|
|
|
|
2020-05-29 00:33:49 +08:00
|
|
|
|
namespace AntDesign
|
2020-03-10 15:25:29 +08:00
|
|
|
|
{
|
|
|
|
|
public static class JSInteropConstants
|
|
|
|
|
{
|
2020-05-29 00:33:49 +08:00
|
|
|
|
private const string FUNC_PREFIX = "AntDesign.interop.";
|
2020-03-10 15:25:29 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string GetDomInfo => $"{FUNC_PREFIX}getDomInfo";
|
2020-03-10 15:25:29 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string TriggerEvent => $"{FUNC_PREFIX}triggerEvent";
|
2020-07-01 06:49:51 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string AddFileClickEventListener => $"{FUNC_PREFIX}addFileClickEventListener";
|
2020-07-02 14:08:51 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string RemoveFileClickEventListener => $"{FUNC_PREFIX}removeFileClickEventListener";
|
2020-07-02 14:08:51 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string ClearFile => $"{FUNC_PREFIX}clearFile";
|
2020-07-01 06:49:51 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string UploadFile => $"{FUNC_PREFIX}uploadFile";
|
2020-07-01 06:49:51 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string GetObjectURL => $"{FUNC_PREFIX}getObjectURL";
|
2020-07-01 06:49:51 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string GetFileInfo => $"{FUNC_PREFIX}getFileInfo";
|
2020-07-01 06:49:51 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string GetBoundingClientRect => $"{FUNC_PREFIX}getBoundingClientRect";
|
2020-03-10 15:25:29 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string AddDomEventListener => $"{FUNC_PREFIX}addDomEventListener";
|
2020-03-10 15:25:29 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string MatchMedia => $"{FUNC_PREFIX}matchMedia";
|
2020-03-10 15:25:29 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string Copy => $"{FUNC_PREFIX}copy";
|
2020-03-12 13:00:54 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string Log => $"{FUNC_PREFIX}log";
|
2020-03-25 00:32:26 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string Focus => $"{FUNC_PREFIX}focus";
|
2020-03-25 00:32:26 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string Blur => $"{FUNC_PREFIX}blur";
|
2020-06-04 17:03:13 +08:00
|
|
|
|
|
2021-01-20 15:53:32 +08:00
|
|
|
|
public static string BackTop => $"{FUNC_PREFIX}backTop";
|
|
|
|
|
|
|
|
|
|
public static string ScrollTo => $"{FUNC_PREFIX}scrollTo";
|
2020-05-03 17:22:33 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string GetFirstChildDomInfo => $"{FUNC_PREFIX}getFirstChildDomInfo";
|
2020-05-03 17:22:33 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string AddClsToFirstChild => $"{FUNC_PREFIX}addClsToFirstChild";
|
2020-05-03 17:22:33 +08:00
|
|
|
|
|
2020-12-03 12:28:02 +08:00
|
|
|
|
public static string RemoveClsFromFirstChild => $"{FUNC_PREFIX}removeClsFromFirstChild";
|
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string AddDomEventListenerToFirstChild => $"{FUNC_PREFIX}addDomEventListenerToFirstChild";
|
2020-05-03 17:22:33 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string AddElementToBody => $"{FUNC_PREFIX}addElementToBody";
|
2020-05-03 17:22:33 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string DelElementFromBody => $"{FUNC_PREFIX}delElementFromBody";
|
2020-05-09 11:09:07 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string AddElementTo => $"{FUNC_PREFIX}addElementTo";
|
2020-05-09 11:09:07 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string DelElementFrom => $"{FUNC_PREFIX}delElementFrom";
|
2020-06-03 23:11:02 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string GetActiveElement => $"{FUNC_PREFIX}getActiveElement";
|
2020-06-02 14:25:44 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string FocusDialog => $"{FUNC_PREFIX}focusDialog";
|
2020-05-10 22:43:58 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string GetWindow = $"{FUNC_PREFIX}getWindow";
|
2020-06-04 17:03:13 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string DisableBodyScroll => $"{FUNC_PREFIX}disableBodyScroll";
|
2020-06-04 17:03:13 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string EnableBodyScroll => $"{FUNC_PREFIX}enableBodyScroll";
|
2020-06-10 21:44:21 +08:00
|
|
|
|
|
2020-11-18 16:01:31 +08:00
|
|
|
|
public static string DestroyAllDialog => $"{FUNC_PREFIX}destroyAllDialog";
|
|
|
|
|
|
2020-06-10 21:44:21 +08:00
|
|
|
|
public static string CreateIconFromfontCN => $"{FUNC_PREFIX}createIconFromfontCN";
|
2020-06-14 18:54:14 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string GetScroll => $"{FUNC_PREFIX}getScroll";
|
2020-06-14 18:54:14 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string GetInnerText => $"{FUNC_PREFIX}getInnerText";
|
2020-07-11 01:46:35 +08:00
|
|
|
|
|
2020-10-14 17:24:26 +08:00
|
|
|
|
public static string GetMaxZIndex => $"{FUNC_PREFIX}getMaxZIndex";
|
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string GetCursorXY => $"{FUNC_PREFIX}getCursorXY";
|
2020-07-11 01:46:35 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string DisposeObj => $"{FUNC_PREFIX}disposeObj";
|
2020-08-26 07:28:44 +08:00
|
|
|
|
|
2020-11-27 13:13:26 +08:00
|
|
|
|
public static string ElementScrollIntoView => $"{FUNC_PREFIX}elementScrollIntoView";
|
2021-01-09 23:57:31 +08:00
|
|
|
|
|
|
|
|
|
public static string BindTableHeaderAndBodyScroll => $"{FUNC_PREFIX}bindTableHeaderAndBodyScroll";
|
|
|
|
|
public static string UnbindTableHeaderAndBodyScroll => $"{FUNC_PREFIX}unbindTableHeaderAndBodyScroll";
|
2021-02-04 23:40:47 +08:00
|
|
|
|
public static string AddPreventCursorMoveOnArrowUp => $"{FUNC_PREFIX}addPreventCursorMoveOnArrowUp";
|
|
|
|
|
public static string RemovePreventCursorMoveOnArrowUp => $"{FUNC_PREFIX}removePreventCursorMoveOnArrowUp";
|
2021-01-09 23:57:31 +08:00
|
|
|
|
|
2020-08-26 07:28:44 +08:00
|
|
|
|
#region Draggable Modal
|
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string EnableDraggable => $"{FUNC_PREFIX}enableDraggable";
|
2020-08-26 07:28:44 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string DisableDraggable => $"{FUNC_PREFIX}disableDraggable";
|
2020-08-26 07:28:44 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
public static string ResetModalPosition => $"{FUNC_PREFIX}resetModalPosition";
|
2020-08-26 07:28:44 +08:00
|
|
|
|
|
2020-09-09 00:52:14 +08:00
|
|
|
|
#endregion Draggable Modal
|
2020-03-10 15:25:29 +08:00
|
|
|
|
}
|
2020-05-03 17:22:33 +08:00
|
|
|
|
}
|