@kengic/vue 0.13.5 → 0.13.6
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/dist/index.css +1 -1
- package/dist/kengic-vue.js +2188 -2137
- package/dist/src/components/KgModal/KgModal.d.ts +1 -1
- package/dist/src/components/KgResizable/KgResizable.d.ts +4 -4
- package/dist/src/config/index.hooks.d.ts +24 -3
- package/dist/src/config/index.store.d.ts +10 -0
- package/package.json +1 -1
@@ -374,6 +374,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
374
374
|
originVNode: import("ant-design-vue/es/_util/type").VueNode;
|
375
375
|
}) => import("ant-design-vue/es/_util/type").VueNode>;
|
376
376
|
}>>, {
|
377
|
+
mask: boolean;
|
377
378
|
visible: boolean;
|
378
379
|
kgShowFullscreenButton: boolean;
|
379
380
|
kgShowCancelButton: boolean;
|
@@ -388,7 +389,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
388
389
|
getContainer: string | false | HTMLElement | (() => HTMLElement);
|
389
390
|
bodyStyle: import("vue").CSSProperties;
|
390
391
|
maskStyle: import("vue").CSSProperties;
|
391
|
-
mask: boolean;
|
392
392
|
keyboard: boolean;
|
393
393
|
focusTriggerAfterClose: boolean;
|
394
394
|
}>;
|
@@ -3,7 +3,7 @@ import './KgResizable.less';
|
|
3
3
|
export declare const getProps: () => {
|
4
4
|
/** 拖拽条的位置. */
|
5
5
|
kgType: {
|
6
|
-
type: PropType<"
|
6
|
+
type: PropType<"left" | "top" | "right" | "bottom">;
|
7
7
|
default: string;
|
8
8
|
};
|
9
9
|
/** 是否禁用. */
|
@@ -47,7 +47,7 @@ export declare type IKgResizableProps = Partial<ExtractPropTypes<ReturnType<type
|
|
47
47
|
declare const _default: import("vue").DefineComponent<{
|
48
48
|
/** 拖拽条的位置. */
|
49
49
|
kgType: {
|
50
|
-
type: PropType<"
|
50
|
+
type: PropType<"left" | "top" | "right" | "bottom">;
|
51
51
|
default: string;
|
52
52
|
};
|
53
53
|
/** 是否禁用. */
|
@@ -89,7 +89,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
89
89
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:kgWidth" | "update:kgHeight")[], "update:kgWidth" | "update:kgHeight", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
90
90
|
/** 拖拽条的位置. */
|
91
91
|
kgType: {
|
92
|
-
type: PropType<"
|
92
|
+
type: PropType<"left" | "top" | "right" | "bottom">;
|
93
93
|
default: string;
|
94
94
|
};
|
95
95
|
/** 是否禁用. */
|
@@ -132,7 +132,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
132
132
|
"onUpdate:kgWidth"?: ((...args: any[]) => any) | undefined;
|
133
133
|
"onUpdate:kgHeight"?: ((...args: any[]) => any) | undefined;
|
134
134
|
}, {
|
135
|
-
kgType: "
|
135
|
+
kgType: "left" | "top" | "right" | "bottom";
|
136
136
|
kgWidth: number;
|
137
137
|
kgMinWidth: number;
|
138
138
|
kgMaxWidth: number;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Pinia } from 'pinia';
|
2
|
-
import { ComputedRef } from 'vue';
|
2
|
+
import { ComputedRef, Ref } from 'vue';
|
3
3
|
import { Router } from 'vue-router';
|
4
4
|
import { IKgLocale } from '../consts';
|
5
5
|
import { IKgStateOption, IKgStore, P, T } from './index.store';
|
@@ -16,7 +16,28 @@ export declare type IUseKg = {
|
|
16
16
|
p: P;
|
17
17
|
};
|
18
18
|
/**
|
19
|
-
* 在某些地方调用时(比如在路由守卫中), pinia 尚未设置, 此时需要手动传入 pinia 实例.
|
20
|
-
* @param pinia
|
19
|
+
* @param pinia 在某些地方调用时(比如在路由守卫中), pinia 尚未设置, 此时需要手动传入 pinia 实例.
|
21
20
|
*/
|
22
21
|
export declare function useKg(pinia?: Pinia): IUseKg;
|
22
|
+
export interface IUseKgDragModal {
|
23
|
+
draggable: Ref<boolean> | ComputedRef<boolean>;
|
24
|
+
visible: Ref<boolean> | ComputedRef<boolean>;
|
25
|
+
destroyOnClose: Ref<boolean | undefined> | undefined | ComputedRef<boolean>;
|
26
|
+
/**
|
27
|
+
* @default '.ant-modal-wrap'
|
28
|
+
*/
|
29
|
+
containerElementSelector: string;
|
30
|
+
/**
|
31
|
+
* @default '.ant-modal-header'
|
32
|
+
*/
|
33
|
+
handleElementSelector: string;
|
34
|
+
/**
|
35
|
+
* @default '.ant-modal'
|
36
|
+
*/
|
37
|
+
contentElementSelector: string;
|
38
|
+
}
|
39
|
+
/**
|
40
|
+
* 拖拽移动.
|
41
|
+
* @param param 参数.
|
42
|
+
*/
|
43
|
+
export declare function useKgDragModal(param: IUseKgDragModal): void;
|
@@ -14,6 +14,16 @@ export declare type IKgStateOption = {
|
|
14
14
|
/** 默认为 '/sys/index'. */
|
15
15
|
[KG_APP.SYS]?: string;
|
16
16
|
};
|
17
|
+
KgModal?: {
|
18
|
+
/** 拖拽移动. */
|
19
|
+
drag?: {
|
20
|
+
/**
|
21
|
+
* 是否启用功能.
|
22
|
+
* @default false
|
23
|
+
*/
|
24
|
+
on?: boolean;
|
25
|
+
};
|
26
|
+
};
|
17
27
|
KgSearch?: {
|
18
28
|
/** 高级查询. */
|
19
29
|
dynamicQuery?: {
|