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
|
|
|
|
|
|
|
|
|
public static string getDomInfo => $"{FUNC_PREFIX}getDomInfo";
|
|
|
|
|
|
2020-07-01 06:49:51 +08:00
|
|
|
|
public static string triggerEvent => $"{FUNC_PREFIX}triggerEvent";
|
|
|
|
|
|
2020-07-02 14:08:51 +08:00
|
|
|
|
public static string addFileClickEventListener => $"{FUNC_PREFIX}addFileClickEventListener";
|
|
|
|
|
|
|
|
|
|
public static string removeFileClickEventListener => $"{FUNC_PREFIX}removeFileClickEventListener";
|
|
|
|
|
|
2020-07-01 06:49:51 +08:00
|
|
|
|
public static string clearFile => $"{FUNC_PREFIX}clearFile";
|
|
|
|
|
|
|
|
|
|
public static string uploadFile => $"{FUNC_PREFIX}uploadFile";
|
|
|
|
|
|
|
|
|
|
public static string getObjectURL => $"{FUNC_PREFIX}getObjectURL";
|
|
|
|
|
|
|
|
|
|
public static string getFileInfo => $"{FUNC_PREFIX}getFileInfo";
|
|
|
|
|
|
2020-03-10 15:25:29 +08:00
|
|
|
|
public static string getBoundingClientRect => $"{FUNC_PREFIX}getBoundingClientRect";
|
|
|
|
|
|
|
|
|
|
public static string addDomEventListener => $"{FUNC_PREFIX}addDomEventListener";
|
|
|
|
|
|
2020-03-15 23:54:48 +08:00
|
|
|
|
public static string matchMedia => $"{FUNC_PREFIX}matchMedia";
|
2020-03-10 15:25:29 +08:00
|
|
|
|
|
|
|
|
|
public static string copy => $"{FUNC_PREFIX}copy";
|
2020-03-12 13:00:54 +08:00
|
|
|
|
|
|
|
|
|
public static string log => $"{FUNC_PREFIX}log";
|
2020-03-25 00:32:26 +08:00
|
|
|
|
|
|
|
|
|
public static string focus => $"{FUNC_PREFIX}focus";
|
|
|
|
|
|
|
|
|
|
public static string blur => $"{FUNC_PREFIX}blur";
|
2020-06-04 17:03:13 +08:00
|
|
|
|
|
2020-03-27 17:24:16 +08:00
|
|
|
|
public static string backTop => $"{FUNC_PREFIX}BackTop";
|
2020-05-03 17:22:33 +08:00
|
|
|
|
|
|
|
|
|
public static string getFirstChildDomInfo => $"{FUNC_PREFIX}getFirstChildDomInfo";
|
|
|
|
|
|
|
|
|
|
public static string addClsToFirstChild => $"{FUNC_PREFIX}addClsToFirstChild";
|
|
|
|
|
|
|
|
|
|
public static string addDomEventListenerToFirstChild => $"{FUNC_PREFIX}addDomEventListenerToFirstChild";
|
|
|
|
|
|
|
|
|
|
public static string addElementToBody => $"{FUNC_PREFIX}addElementToBody";
|
|
|
|
|
|
|
|
|
|
public static string delElementFromBody => $"{FUNC_PREFIX}delElementFromBody";
|
2020-05-09 11:09:07 +08:00
|
|
|
|
|
|
|
|
|
public static string addElementTo => $"{FUNC_PREFIX}addElementTo";
|
|
|
|
|
|
|
|
|
|
public static string delElementFrom => $"{FUNC_PREFIX}delElementFrom";
|
2020-06-03 23:11:02 +08:00
|
|
|
|
|
2020-06-02 14:25:44 +08:00
|
|
|
|
public static string getActiveElement => $"{FUNC_PREFIX}getActiveElement";
|
|
|
|
|
|
|
|
|
|
public static string focusDialog => $"{FUNC_PREFIX}focusDialog";
|
2020-05-10 22:43:58 +08:00
|
|
|
|
|
2020-06-03 23:11:02 +08:00
|
|
|
|
public static string getWindow = $"{FUNC_PREFIX}getWindow";
|
2020-06-04 17:03:13 +08:00
|
|
|
|
|
|
|
|
|
public static string disableBodyScroll => $"{FUNC_PREFIX}disableBodyScroll";
|
|
|
|
|
|
2020-09-05 16:09:58 +08:00
|
|
|
|
public static string enableBodyScroll => $"{FUNC_PREFIX}enableBodyScroll";
|
2020-06-10 21:44:21 +08:00
|
|
|
|
|
|
|
|
|
public static string CreateIconFromfontCN => $"{FUNC_PREFIX}createIconFromfontCN";
|
2020-06-14 18:54:14 +08:00
|
|
|
|
|
|
|
|
|
public static string getScroll => $"{FUNC_PREFIX}getScroll";
|
|
|
|
|
|
|
|
|
|
public static string getInnerText => $"{FUNC_PREFIX}getInnerText";
|
2020-07-11 01:46:35 +08:00
|
|
|
|
|
|
|
|
|
public static string getCursorXY => $"{FUNC_PREFIX}getCursorXY";
|
|
|
|
|
|
|
|
|
|
public static string disposeObj => $"{FUNC_PREFIX}disposeObj";
|
2020-08-26 07:28:44 +08:00
|
|
|
|
|
|
|
|
|
#region Draggable Modal
|
|
|
|
|
|
|
|
|
|
public static string enableDraggable => $"{FUNC_PREFIX}enableDraggable";
|
|
|
|
|
|
|
|
|
|
public static string disableDraggable => $"{FUNC_PREFIX}disableDraggable";
|
|
|
|
|
|
|
|
|
|
public static string resetModalPosition => $"{FUNC_PREFIX}resetModalPosition";
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
2020-03-10 15:25:29 +08:00
|
|
|
|
}
|
2020-05-03 17:22:33 +08:00
|
|
|
|
}
|