cnhis-design-vue 3.1.15-beta.9 → 3.1.16-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/packages/big-table/src/hooks/useAnnotation.js +1 -2
- package/es/packages/big-table/src/hooks/useColumnConfigAdaptor.js +7 -2
- package/es/packages/big-table/src/hooks/useEdit.js +16 -8
- package/es/packages/fabric-chart/src/hooks/useDraw.js +1 -0
- package/es/packages/fabric-chart/src/hooks/useLeft.js +1 -2
- package/es/packages/form-config/index.d.ts +1749 -0
- package/es/packages/form-config/src/FormConfig.vue.d.ts +1749 -0
- package/es/packages/form-config/src/components/FormConfigEdit.js +3 -3
- package/es/packages/form-config/src/components/FormConfigEdit.vue.d.ts +1747 -0
- package/es/packages/form-config/style/index.css +1 -1
- package/es/packages/form-render/src/components/renderer/combination/index.js +3 -3
- package/es/packages/form-render/src/components/renderer/formItem.js +1 -2
- package/es/packages/form-render/src/hooks/useFieldListAdaptor.js +2 -2
- package/es/packages/form-render/src/types/fieldItem.d.ts +8 -0
- package/es/packages/form-render/src/utils/index.d.ts +1 -0
- package/es/packages/form-render/src/utils/index.js +9 -2
- package/es/packages/form-table/src/hooks/useNuiThemeOverrides.js +1 -1
- package/es/packages/index.css +1 -1
- package/es/packages/index.d.ts +1 -0
- package/es/packages/index.js +1 -1
- package/es/packages/scale-view/src/hooks/scaleview-init.js +35 -35
- package/es/packages/shortcut-provider/index.d.ts +17 -2
- package/es/packages/shortcut-provider/index.js +1 -1
- package/es/packages/shortcut-provider/src/ShortcutProvider.js +5 -1
- package/es/packages/shortcut-provider/src/ShortcutProvider.vue.d.ts +17 -2
- package/es/packages/shortcut-provider/src/hooks/index.js +1 -1
- package/es/packages/shortcut-provider/src/hooks/useShortcuts.d.ts +10 -10
- package/es/packages/shortcut-provider/src/hooks/useShortcuts.js +45 -38
- package/es/packages/shortcut-provider/src/types/index.d.ts +2 -19
- package/es/packages/shortcut-setter/index.d.ts +1698 -4283
- package/es/packages/shortcut-setter/src/ShortcutSetter.js +63 -10
- package/es/packages/shortcut-setter/src/ShortcutSetter.vue.d.ts +1723 -4306
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.js +26 -95
- package/es/packages/shortcut-setter/src/ShortcutSetterItem.vue.d.ts +30 -3363
- package/es/packages/shortcut-setter/src/types/index.d.ts +6 -0
- package/es/packages/shortcut-setter/src/types/index.js +1 -0
- package/package.json +1 -1
- package/es/packages/shortcut-setter/constant/index.d.ts +0 -4
- package/es/packages/shortcut-setter/constant/index.js +0 -7
|
@@ -1,37 +1,21 @@
|
|
|
1
|
-
import { ArrayAble, WithUndefined } from '../../../../../es/src/types';
|
|
2
|
-
import { VNode } from 'vue';
|
|
3
1
|
import { ShortcutStatus } from '../../../../../es/packages/shortcut-provider/src/constants';
|
|
4
|
-
declare type Render = () => ArrayAble<VNode>;
|
|
5
2
|
export interface ShortcutSignatureInfo {
|
|
6
3
|
ctrl?: boolean;
|
|
7
4
|
shift?: boolean;
|
|
8
5
|
alt?: boolean;
|
|
9
6
|
key: string;
|
|
10
7
|
}
|
|
11
|
-
declare type UpdateResult = Promise<WithUndefined<ShortcutSignatureInfo> | void>;
|
|
12
8
|
export declare type ShortcutOption = {
|
|
13
|
-
label: string
|
|
9
|
+
label: string;
|
|
14
10
|
shortcutSignature: ShortcutSignatureInfo;
|
|
15
11
|
callback(): void;
|
|
16
12
|
} & Partial<{
|
|
17
|
-
/**
|
|
18
|
-
* @description 重置时回调
|
|
19
|
-
* @param key
|
|
20
|
-
*/
|
|
21
|
-
onReset(key: string): Promise<any>;
|
|
22
13
|
/**
|
|
23
14
|
* @description 更新快捷键回调
|
|
24
15
|
* @param key
|
|
25
16
|
* @param newSignature 用户输入的快捷键签名
|
|
26
|
-
* @return
|
|
27
|
-
*/
|
|
28
|
-
onUpdate(key: string, newSignature?: ShortcutSignatureInfo): UpdateResult;
|
|
29
|
-
/**
|
|
30
|
-
* @description 更新快捷键disabled状态回调
|
|
31
|
-
* @param key
|
|
32
|
-
* @param newState
|
|
33
17
|
*/
|
|
34
|
-
|
|
18
|
+
onUpdate(key: string, newSignature?: ShortcutSignatureInfo): Promise<void>;
|
|
35
19
|
/**
|
|
36
20
|
* 快捷键输入框展位文本
|
|
37
21
|
*/
|
|
@@ -57,4 +41,3 @@ export interface ShortcutItem extends ShortcutOption {
|
|
|
57
41
|
currentKeySignature: string;
|
|
58
42
|
key: string;
|
|
59
43
|
}
|
|
60
|
-
export {};
|