@maxtropy/v-components 0.1.3-beta.0 → 0.1.3

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.
@@ -1,3 +1,4 @@
1
+ import { PlatformTitleType } from '../common/entity';
1
2
  export interface UserInfo {
2
3
  name?: string;
3
4
  headPic?: string;
@@ -10,6 +11,9 @@ export interface UserInfo {
10
11
  navigationPreference?: number;
11
12
  navigationId?: number | null;
12
13
  currentId?: number | null;
14
+ iconUrl?: string;
15
+ platformTitleType?: PlatformTitleType;
16
+ platformName?: string;
13
17
  }
14
18
  export declare function getCurrent(): Promise<UserInfo>;
15
19
  export interface UserConfig {
@@ -6,5 +6,5 @@ import SystemContent from './systemcontent';
6
6
  import BreadCrumb from './breadcrumb';
7
7
  import BasicLayout from './basiclayout';
8
8
  import AuthorizedPermission from './authorizedpermission';
9
- import { usePermission } from '../utils/hooks';
10
- export { SwitchStaff, HeadNavigation, SiderMenu, UserContent, SystemContent, BreadCrumb, BasicLayout, AuthorizedPermission, usePermission, };
9
+ import { usePermission, useStaffTitle } from '../utils/hooks';
10
+ export { SwitchStaff, HeadNavigation, SiderMenu, UserContent, SystemContent, BreadCrumb, BasicLayout, AuthorizedPermission, usePermission, useStaffTitle, };
@@ -10,11 +10,13 @@ export declare function useLogout(): void;
10
10
  export declare const getIntegratedAuthorityCurrent: () => import("../common/subject").ISubjectHolder<string[]>;
11
11
  export declare function useIntegratedAuthorityList(callback: (authority?: string[]) => void): void;
12
12
  export declare function usePermission(key: string): import("vue").Ref<boolean>;
13
+ export declare function useStaffTitle(navName?: string): void;
13
14
  declare const _default: {
14
15
  useCurrent: typeof useCurrent;
15
16
  useStaffList: typeof useStaffList;
16
17
  useMenuList: typeof useMenuList;
17
18
  useLogout: typeof useLogout;
18
19
  useIntegratedAuthorityList: typeof useIntegratedAuthorityList;
20
+ useStaffTitle: typeof useStaffTitle;
19
21
  };
20
22
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxtropy/v-components",
3
- "version": "0.1.3-beta.0",
3
+ "version": "0.1.3",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -16,15 +16,15 @@
16
16
  "access": "public"
17
17
  },
18
18
  "scripts": {
19
- "build": "rimraf dist && vue-tsc && vite build",
19
+ "build:components": "rimraf dist && vue-tsc && vite build",
20
20
  "start": "vitepress dev docs",
21
- "docs:build": "vitepress build docs",
21
+ "build": "vitepress build docs",
22
22
  "docs:serve": "vitepress serve docs",
23
23
  "prepare": "husky install",
24
24
  "docker": "./build-docker.sh build",
25
25
  "dockerPush": "./build-docker.sh push",
26
- "release": "npm version patch && npm run build && npm publish && node ./push-notify.js",
27
- "release:beta": "npm version prerelease --preid=beta && npm run build && npm publish --tag beta"
26
+ "release": "npm version patch && npm run build:components && npm publish && node ./push-notify.js",
27
+ "release:beta": "npm version prerelease --preid=beta && npm run build:components && npm publish --tag beta"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "element-plus": ">=2.3.4",