@kengic/vue 0.13.5 → 0.13.6-beta.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,23 @@
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;
@@ -1,4 +1,4 @@
1
- import { Ref, UnwrapRef } from 'vue';
1
+ import { ComputedRef, 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,3 +18,9 @@ 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;
@@ -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?: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.13.5",
3
+ "version": "0.13.6-beta.0",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",