@kengic/vue 0.13.6-beta.0 → 0.13.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/index.css +1 -1
- package/dist/kengic-vue.js +1723 -1752
- package/dist/src/components/KgModal/KgModal.d.ts +1 -1
- package/dist/src/components/KgResizable/KgResizable.d.ts +4 -4
- package/dist/src/components/KgSubmit/KgSubmit.hooks.d.ts +1 -7
- package/dist/src/config/index.hooks.d.ts +24 -3
- package/package.json +1 -1
- package/dist/src/components/KgModal/KgModal.hooks.d.ts +0 -23
@@ -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,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { Ref, UnwrapRef } from 'vue';
|
2
2
|
import { IKgSubmitHeaderProps } from './components/KgSubmit.Header';
|
3
3
|
import { IKgSubmitProps } from './KgSubmit';
|
4
4
|
export declare function _useFormModel(): {
|
@@ -18,9 +18,3 @@ export declare function _useLayout(): {
|
|
18
18
|
export declare function _useDefaultWidth(): {
|
19
19
|
getDefaultWidth: Ref<number>;
|
20
20
|
};
|
21
|
-
export interface UseModalDragMoveContext {
|
22
|
-
draggable: Ref<boolean> | ComputedRef<boolean>;
|
23
|
-
destroyOnClose: Ref<boolean | undefined> | undefined | ComputedRef<boolean>;
|
24
|
-
visible: Ref<boolean> | ComputedRef<boolean>;
|
25
|
-
}
|
26
|
-
export declare function _useDragModal(context: UseModalDragMoveContext): void;
|
@@ -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;
|
package/package.json
CHANGED
@@ -1,23 +0,0 @@
|
|
1
|
-
import { ComputedRef, Ref } from 'vue';
|
2
|
-
export interface IUseDragModal {
|
3
|
-
draggable: Ref<boolean> | ComputedRef<boolean>;
|
4
|
-
visible: Ref<boolean> | ComputedRef<boolean>;
|
5
|
-
destroyOnClose: Ref<boolean | undefined> | undefined | ComputedRef<boolean>;
|
6
|
-
/**
|
7
|
-
* @default '.ant-modal-wrap'
|
8
|
-
*/
|
9
|
-
containerElementSelector: string;
|
10
|
-
/**
|
11
|
-
* @default '.ant-modal-header'
|
12
|
-
*/
|
13
|
-
handleElementSelector: string;
|
14
|
-
/**
|
15
|
-
* @default '.ant-modal'
|
16
|
-
*/
|
17
|
-
contentElementSelector: string;
|
18
|
-
}
|
19
|
-
/**
|
20
|
-
* 拖拽移动.
|
21
|
-
* @param param 参数.
|
22
|
-
*/
|
23
|
-
export declare function _useDragModal(param: IUseDragModal): void;
|