@kengic/vue 0.4.4 → 0.4.5-beta.0

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.
@@ -204,7 +204,7 @@ export declare class VarGridDetail {
204
204
  /** 是否可见(VisibleFlag). */
205
205
  vis_flg?: number | null;
206
206
  /** 列宽(Width). */
207
- width?: number | null;
207
+ width?: string | null;
208
208
  constructor(obj?: VarGridDetail);
209
209
  }
210
210
  /** 表格视图. */
@@ -361,7 +361,7 @@ export declare class VarProfileMaster {
361
361
  frm_id?: string | null;
362
362
  /** 分组(GroupName). */
363
363
  grp_nam?: string | null;
364
- /** 主键 */
364
+ /** 主键. */
365
365
  id?: string | null;
366
366
  /** 查询条件变量名称(ProfileVariableName). */
367
367
  prf_var_nam?: string | null;
@@ -381,7 +381,7 @@ export declare class VarProfileMasterDTO {
381
381
  frm_id?: string | null;
382
382
  /** 分组(GroupName). */
383
383
  grp_nam?: string | null;
384
- /** 主键 */
384
+ /** 主键. */
385
385
  id?: string | null;
386
386
  /** 查询条件变量名称(ProfileVariableName). */
387
387
  prf_var_nam?: string | null;
@@ -1,4 +1,4 @@
1
- import { IRemoveEventListenerHandler } from '../../consts/index.vm';
1
+ import { IRemoveEventListenerHandler } from '../../consts';
2
2
  import { IKgButtonBeforeUpdateCb, IKgButtonClickCb, IKgButtonDeleteOkCb, IKgButtonStore } from './index.store';
3
3
  export declare type IUseKgButton = {
4
4
  formID: string;
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { IRemoveEventListenerHandler } from '../../consts/index.vm';
2
+ import { IRemoveEventListenerHandler } from '../../consts';
3
3
  import { IKgSearchReadyCb, IKgSearchResetCb, IKgSearchSearchCb, IKgSearchStore } from './index.store';
4
4
  export declare type IUseKgSearch = {
5
5
  formID: string;
@@ -1,4 +1,4 @@
1
- import { IRemoveEventListenerHandler } from '../../consts/index.vm';
1
+ import { IRemoveEventListenerHandler } from '../../consts';
2
2
  import { IKgSubmitBeforeOkCb, IKgSubmitCloseCb, IKgSubmitOkCb, IKgSubmitOpenCb, IKgSubmitStore } from './index.store';
3
3
  export declare type IUseKgSubmit = {
4
4
  formID: string;
@@ -1,5 +1,5 @@
1
- import { ComputedRef, Ref, UnwrapRef } from 'vue';
2
1
  import { ColumnsType } from 'ant-design-vue/es/table';
2
+ import { ComputedRef, Ref, UnwrapRef } from 'vue';
3
3
  import { IKgTableRecord } from './index.vm';
4
4
  export declare type IUseColumns = {
5
5
  /** 表格的列. */
@@ -1,5 +1,5 @@
1
1
  import { ComputedRef } from 'vue';
2
- import { IRemoveEventListenerHandler } from '../../consts/index.vm';
2
+ import { IRemoveEventListenerHandler } from '../../consts';
3
3
  import { IKgTableRetrieveCb, IKgTableRowDoubleClickCb, IKgTableStore } from './index.store';
4
4
  export declare type IUseKgTable = {
5
5
  formID: string;
@@ -1,4 +1,5 @@
1
1
  export * from './i18n';
2
+ export * from './index.vm';
2
3
  export * from './injection-keys.const';
3
4
  /** 模块. */
4
5
  export declare const enum KG_APP {
@@ -1,2 +1,13 @@
1
1
  /** 移除监听函数. */
2
2
  export declare type IRemoveEventListenerHandler = () => void;
3
+ /** 菜单. */
4
+ export interface Menu {
5
+ id: string;
6
+ app: string;
7
+ name: string;
8
+ title: string;
9
+ path: string;
10
+ icon?: string;
11
+ hideMenu?: boolean;
12
+ children?: Menu[];
13
+ }
@@ -1,3 +1,4 @@
1
+ import { Menu } from '../consts';
1
2
  export declare class KgRouteUtil {
2
3
  /**
3
4
  * 给所有模块都添加在线表单的路由.
@@ -5,4 +6,10 @@ export declare class KgRouteUtil {
5
6
  * @param routes 当前路由列表.
6
7
  */
7
8
  static addOnlineRoutesForAllApps(routes: any[]): any[];
9
+ /**
10
+ * 根据地址获取菜单.
11
+ * @param menus 菜单列表.
12
+ * @param path 菜单地址.
13
+ */
14
+ static getMenuByPath(menus: Array<Menu>, path: string): Menu | null;
8
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kengic/vue",
3
- "version": "0.4.4",
3
+ "version": "0.4.5-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",