@kengic/vue 0.32.4-beta.0 → 0.32.4

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.
@@ -6,14 +6,14 @@ import { ValidateMessages } from 'ant-design-vue/es/form/interface';
6
6
  import { ButtonShape, ButtonType } from 'ant-design-vue/lib/button';
7
7
  import { CSSProperties, ExtractPropTypes, HTMLAttributes, PropType } from 'vue';
8
8
  export declare const formProps: () => {
9
- layout: PropType<"inline" | "horizontal" | "vertical">;
9
+ layout: PropType<"vertical" | "horizontal" | "inline">;
10
10
  labelCol: {
11
11
  type: PropType<Partial<ExtractPropTypes<{
12
- span: (StringConstructor | NumberConstructor)[];
13
- order: (StringConstructor | NumberConstructor)[];
14
- offset: (StringConstructor | NumberConstructor)[];
15
- push: (StringConstructor | NumberConstructor)[];
16
- pull: (StringConstructor | NumberConstructor)[];
12
+ span: (NumberConstructor | StringConstructor)[];
13
+ order: (NumberConstructor | StringConstructor)[];
14
+ offset: (NumberConstructor | StringConstructor)[];
15
+ push: (NumberConstructor | StringConstructor)[];
16
+ pull: (NumberConstructor | StringConstructor)[];
17
17
  xs: {
18
18
  type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
19
19
  default: string | number | import("ant-design-vue/lib/grid").ColSize;
@@ -43,16 +43,16 @@ export declare const formProps: () => {
43
43
  default: string | number | import("ant-design-vue/lib/grid").ColSize;
44
44
  };
45
45
  prefixCls: StringConstructor;
46
- flex: (StringConstructor | NumberConstructor)[];
46
+ flex: (NumberConstructor | StringConstructor)[];
47
47
  }>> & HTMLAttributes>;
48
48
  };
49
49
  wrapperCol: {
50
50
  type: PropType<Partial<ExtractPropTypes<{
51
- span: (StringConstructor | NumberConstructor)[];
52
- order: (StringConstructor | NumberConstructor)[];
53
- offset: (StringConstructor | NumberConstructor)[];
54
- push: (StringConstructor | NumberConstructor)[];
55
- pull: (StringConstructor | NumberConstructor)[];
51
+ span: (NumberConstructor | StringConstructor)[];
52
+ order: (NumberConstructor | StringConstructor)[];
53
+ offset: (NumberConstructor | StringConstructor)[];
54
+ push: (NumberConstructor | StringConstructor)[];
55
+ pull: (NumberConstructor | StringConstructor)[];
56
56
  xs: {
57
57
  type: PropType<string | number | import("ant-design-vue/lib/grid").ColSize>;
58
58
  default: string | number | import("ant-design-vue/lib/grid").ColSize;
@@ -82,7 +82,7 @@ export declare const formProps: () => {
82
82
  default: string | number | import("ant-design-vue/lib/grid").ColSize;
83
83
  };
84
84
  prefixCls: StringConstructor;
85
- flex: (StringConstructor | NumberConstructor)[];
85
+ flex: (NumberConstructor | StringConstructor)[];
86
86
  }>> & HTMLAttributes>;
87
87
  };
88
88
  colon: {
@@ -166,7 +166,7 @@ export declare const modalProps: () => {
166
166
  type: BooleanConstructor;
167
167
  default: undefined;
168
168
  };
169
- width: (StringConstructor | NumberConstructor)[];
169
+ width: (NumberConstructor | StringConstructor)[];
170
170
  footer: PropType<any>;
171
171
  okText: PropType<any>;
172
172
  okType: PropType<LegacyButtonType>;
@@ -340,8 +340,8 @@ export declare const imageProps: () => {
340
340
  type: PropType<(event: Event | string, source?: string, lineno?: number, colno?: number, error?: Error) => any>;
341
341
  };
342
342
  id: StringConstructor;
343
- width: (StringConstructor | NumberConstructor)[];
344
- height: (StringConstructor | NumberConstructor)[];
343
+ width: (NumberConstructor | StringConstructor)[];
344
+ height: (NumberConstructor | StringConstructor)[];
345
345
  style: StringConstructor;
346
346
  };
347
347
  export {};
@@ -1,4 +1,30 @@
1
- export * from './event.util';
2
- export * from './kg-auth.util';
1
+ import { KgUtil } from './kg.util';
3
2
  export * from './kg.util';
4
- export * from './kg-route.util';
3
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
4
+ export declare class KgRouteUtil {
5
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
6
+ static translateMenus: typeof KgUtil.translateMenus;
7
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
8
+ static transformMenus: typeof KgUtil.transformMenus;
9
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
10
+ static isPathInApp: typeof KgUtil.isPathInApp;
11
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
12
+ static getAppByPath: typeof KgUtil.getAppByPath;
13
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
14
+ static getAppIndexPath: typeof KgUtil.getAppIndexPath;
15
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
16
+ static getFirstLeafMenu: typeof KgUtil.getFirstLeafMenu;
17
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
18
+ static getMenuByPath: typeof KgUtil.getMenuByPath;
19
+ }
20
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
21
+ export declare class KgAuthUtil {
22
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
23
+ static isAdminUser: typeof KgUtil.isAdminUser;
24
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
25
+ static isAppAuthenticated: typeof KgUtil.isAppAuthenticated;
26
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
27
+ static isPathAuthenticated: typeof KgUtil.isPathAuthenticated;
28
+ /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
29
+ static getPermissionType: typeof KgUtil.getPermissionType;
30
+ }
@@ -1,8 +1,9 @@
1
- import { KgCoreUtil } from '@kengic/core.core';
1
+ import { IKgEventListener, IKgRemoveEventListener, KgCoreUtil } from '@kengic/core.core';
2
2
  import { ModalFuncProps } from 'ant-design-vue/lib/modal/Modal';
3
3
  import dayjs, { Dayjs } from 'dayjs';
4
+ import { Slots } from 'vue';
4
5
  import { IKgVarButtonModalProperties } from '../model';
5
- import { Menu } from '../project/src/router/types';
6
+ import { Menu } from '../project';
6
7
  /**
7
8
  * 工具方法.
8
9
  */
@@ -320,6 +321,42 @@ export declare class KgUtil {
320
321
  whereSql05: string;
321
322
  whereSqlSegmentRecordJSON: string;
322
323
  };
324
+ /**
325
+ * <p>构造事件监听.</p>
326
+ * <p>在 {@link onEventFactory} 的基础上, 支持在组件卸载时自动取消监听.</p>
327
+ *
328
+ * @param param.event 事件名称.
329
+ * @param param.id 唯一标识.
330
+ * @param param.addEventListener 添加事件监听.
331
+ * @param param.removeEventListener 移除事件监听.
332
+ */
333
+ static kgOnEventFactory<E extends string, L extends IKgEventListener = any>(param: {
334
+ event: E;
335
+ eventListeners: Record<string, Record<E, Array<L>>> | any;
336
+ id?: string | undefined;
337
+ }): (listener: L, isOnce?: boolean) => IKgRemoveEventListener;
338
+ /**
339
+ * 根据名称渲染单个插槽.
340
+ *
341
+ * @param param.slotRecord 插槽对象.
342
+ * @param param.name 插槽名称.
343
+ */
344
+ static renderSlot(param: {
345
+ name: string;
346
+ slotRecord: Slots;
347
+ }): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
348
+ [key: string]: any;
349
+ }>[] | null;
350
+ /**
351
+ * 渲染插槽.
352
+ *
353
+ * @param param.slotRecord 插槽对象.
354
+ * @param param.excludeSlotList 要排除的插槽名称列表.
355
+ */
356
+ static renderSlotList(param: {
357
+ excludeSlotList?: string[];
358
+ slotRecord: Slots;
359
+ }): any;
323
360
  }
324
361
  export declare type ModalFunc = {
325
362
  destroy: () => void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.32.4-beta.0",
3
+ "version": "0.32.4",
4
4
  "scripts": {
5
5
  "build": "npm run use-node && rimraf dist && vue-tsc && vite build",
6
6
  "build--development": "npm run use-node && rimraf dist && vue-tsc && vite build --mode development",
@@ -22,6 +22,7 @@
22
22
  "copy-to--luotao--smartfactory.tyre.haohua.basic.was-java--PcrTireWeb": "npm run build--development && tsx script/copy-to--luotao--smartfactory.tyre.haohua.basic.was-java--PcrTireWeb.ts",
23
23
  "copy-to--luotao--smartfactory.product.wms.wms--hiway": "npm run build--development && tsx script/copy-to--luotao--smartfactory.product.wms.wms--hiway.ts",
24
24
  "copy-to--luotao--smartfactory.tyre.product-cp.view--FMS3.2": "npm run build--development && tsx script/copy-to--luotao--smartfactory.tyre.product-cp.view--FMS3.2.ts",
25
+ "copy-to--luotao--smartfactory.product.wms.wms--hhsl-th": "npm run build--development && tsx script/copy-to--luotao--smartfactory.product.wms.wms--hhsl-th.ts",
25
26
  "----- --------------------------------------------": "",
26
27
  "bump--major": "npm run use-node && tsx script/bump.ts major",
27
28
  "bump--minor": "npm run use-node && tsx script/bump.ts minor",
@@ -1,15 +0,0 @@
1
- import { IKgEventListener, IKgRemoveEventListener } from '@kengic/core.core';
2
- /**
3
- * <p>构造事件监听.</p>
4
- * <p>在 {@link onEventFactory} 的基础上, 支持在组件卸载时自动取消监听.</p>
5
- *
6
- * @param param.event 事件名称.
7
- * @param param.id 唯一标识.
8
- * @param param.addEventListener 添加事件监听.
9
- * @param param.removeEventListener 移除事件监听.
10
- */
11
- export declare function kgOnEventFactory<E extends string, L extends IKgEventListener = any>(param: {
12
- event: E;
13
- eventListeners: Record<string, Record<E, Array<L>>> | any;
14
- id?: string | undefined;
15
- }): (listener: L, isOnce?: boolean) => IKgRemoveEventListener;
@@ -1,12 +0,0 @@
1
- import { KgUtil } from './kg.util';
2
- /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
3
- export declare class KgAuthUtil {
4
- /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
5
- static isAdminUser: typeof KgUtil.isAdminUser;
6
- /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
7
- static isAppAuthenticated: typeof KgUtil.isAppAuthenticated;
8
- /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
9
- static isPathAuthenticated: typeof KgUtil.isPathAuthenticated;
10
- /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
11
- static getPermissionType: typeof KgUtil.getPermissionType;
12
- }
@@ -1,18 +0,0 @@
1
- import { KgUtil } from './kg.util';
2
- /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
3
- export declare class KgRouteUtil {
4
- /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
5
- static translateMenus: typeof KgUtil.translateMenus;
6
- /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
7
- static transformMenus: typeof KgUtil.transformMenus;
8
- /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
9
- static isPathInApp: typeof KgUtil.isPathInApp;
10
- /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
11
- static getAppByPath: typeof KgUtil.getAppByPath;
12
- /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
13
- static getAppIndexPath: typeof KgUtil.getAppIndexPath;
14
- /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
15
- static getFirstLeafMenu: typeof KgUtil.getFirstLeafMenu;
16
- /** @deprecated 已弃用, 请使用 KgUtil 中的同名方法. */
17
- static getMenuByPath: typeof KgUtil.getMenuByPath;
18
- }
@@ -1,23 +0,0 @@
1
- import { Slots } from 'vue';
2
- /**
3
- * 根据名称渲染单个插槽.
4
- *
5
- * @param param.slotRecord 插槽对象.
6
- * @param param.name 插槽名称.
7
- */
8
- export declare function renderSlot(param: {
9
- name: string;
10
- slotRecord: Slots;
11
- }): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
12
- [key: string]: any;
13
- }>[] | null;
14
- /**
15
- * 渲染插槽.
16
- *
17
- * @param param.slotRecord 插槽对象.
18
- * @param param.excludeSlotList 要排除的插槽名称列表.
19
- */
20
- export declare function renderSlotList(param: {
21
- excludeSlotList?: string[];
22
- slotRecord: Slots;
23
- }): any;