amis-editor 4.2.0-beta.0 → 4.2.0-beta.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@ import type { Action } from 'amis/lib/types';
6
6
  import type { IScopedContext } from 'amis-core';
7
7
  import type { FormControlProps } from 'amis-core';
8
8
  import type { FormSchema } from 'amis/lib/Schema';
9
- import type { Offset } from 'amis-ui/lib/components/PopOver';
9
+ import type { Offset } from 'amis-core/lib/components/PopOver';
10
10
  export interface PopoverEditProps extends FormControlProps {
11
11
  className?: string;
12
12
  popOverclassName?: string;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ export interface ShortcutKeyProps {
3
+ title?: string;
4
+ size?: string;
5
+ closeOnEsc?: boolean;
6
+ closeOnOutside?: boolean;
7
+ ShortcutKeyList?: Array<ShortcutKeyItem>;
8
+ }
9
+ interface ShortcutKeyItem {
10
+ title: string;
11
+ letters: Array<string>;
12
+ tooltip?: string;
13
+ }
14
+ export interface ShortcutKeyStates {
15
+ visible: boolean;
16
+ }
17
+ export default class ShortcutKey extends React.Component<ShortcutKeyProps, ShortcutKeyStates> {
18
+ constructor(props: any);
19
+ closeShortcutKeyModal(): void;
20
+ showShortcutKeyModal(): void;
21
+ render(): JSX.Element;
22
+ }
23
+ export {};