@kengic/vue 0.13.6-beta.0 → 0.13.7

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.
@@ -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<"top" | "left" | "right" | "bottom">;
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<"top" | "left" | "right" | "bottom">;
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<"top" | "left" | "right" | "bottom">;
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: "top" | "left" | "right" | "bottom";
135
+ kgType: "left" | "top" | "right" | "bottom";
136
136
  kgWidth: number;
137
137
  kgMinWidth: number;
138
138
  kgMaxWidth: number;
@@ -1,4 +1,4 @@
1
- import { ComputedRef, Ref, UnwrapRef } from 'vue';
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;
@@ -74,6 +74,7 @@ export declare class KgUtil {
74
74
  * @param key 属性名.
75
75
  * @param value 参数的原始值.
76
76
  * @param formID 界面标识.
77
+ * @param isPad 是否补齐日期格式. 即将 `YYYY-MM-DD` 补齐为 `YYYY-MM-DD 00:00:00`, 将 `HH:mm:ss` 补齐为 `1970-01-01 HH:mm:ss`.
77
78
  */
78
79
  private static parseParamFromDayJS;
79
80
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.13.6-beta.0",
3
+ "version": "0.13.7",
4
4
  "scripts": {
5
5
  "build": "rimraf dist && vue-tsc && vite build",
6
6
  "build:dev": "rimraf dist && vue-tsc && vite build --mode development",
@@ -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;