sun-biz 0.0.3-beta.3 → 0.0.3-beta.5

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.
@@ -618,8 +618,9 @@ const DbgridTableConfig_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(Db
618
618
  /**
619
619
  * 是否为 sass 模式
620
620
  */ MAIN_APP_CONFIG["IS_SASS_MODE"] = "isSassMode";
621
+ /** 是否使用本地打印 */ MAIN_APP_CONFIG["IS_LOCAL_PRINT"] = "isLocalPrint";
621
622
  /**用户信息 */ MAIN_APP_CONFIG["USER_INFO"] = "userInfo";
622
- /** 用户偏好 */ MAIN_APP_CONFIG["PREFERENCE_LIST"] = "userPreferenceList";
623
+ /** 用户偏好 */ MAIN_APP_CONFIG["PREFERENCE_LIST"] = "preferenceList";
623
624
  return MAIN_APP_CONFIG;
624
625
  }({});
625
626
  function useAppConfigData(name) {
@@ -1,5 +1,6 @@
1
1
  export { default as useRequest } from "./use-request/index.ts";
2
2
  export { default as useAppConfigData, MAIN_APP_CONFIG, } from "./use-app-config/index.ts";
3
+ export type { PreferenceData } from "./use-app-config/index.ts";
3
4
  export { default as useDirectionSelect } from "./use-direction-select/index.ts";
4
5
  export { default as useFetchDataset } from "./use-fetch-dataset/index.ts";
5
6
  export { default as useEditableTable } from './use-editable-table/index.ts';
@@ -356,8 +356,9 @@ function useRequest_useRequest(service, options, plugins) {
356
356
  /**
357
357
  * 是否为 sass 模式
358
358
  */ MAIN_APP_CONFIG["IS_SASS_MODE"] = "isSassMode";
359
+ /** 是否使用本地打印 */ MAIN_APP_CONFIG["IS_LOCAL_PRINT"] = "isLocalPrint";
359
360
  /**用户信息 */ MAIN_APP_CONFIG["USER_INFO"] = "userInfo";
360
- /** 用户偏好 */ MAIN_APP_CONFIG["PREFERENCE_LIST"] = "userPreferenceList";
361
+ /** 用户偏好 */ MAIN_APP_CONFIG["PREFERENCE_LIST"] = "preferenceList";
361
362
  return MAIN_APP_CONFIG;
362
363
  }({});
363
364
  function useAppConfigData(name) {
@@ -1,4 +1,5 @@
1
1
  import { AppConfigType } from './types';
2
+ export type { PreferenceData } from './types';
2
3
  /**
3
4
  * 获取主应用配置信息
4
5
  */
@@ -23,10 +24,12 @@ export declare enum MAIN_APP_CONFIG {
23
24
  * 是否为 sass 模式
24
25
  */
25
26
  IS_SASS_MODE = "isSassMode",
27
+ /** 是否使用本地打印 */
28
+ IS_LOCAL_PRINT = "isLocalPrint",
26
29
  /**用户信息 */
27
30
  USER_INFO = "userInfo",
28
31
  /** 用户偏好 */
29
- PREFERENCE_LIST = "userPreferenceList"
32
+ PREFERENCE_LIST = "preferenceList"
30
33
  }
31
34
  declare function useAppConfigData<T extends keyof AppConfigType>(name: T): AppConfigType[T] | undefined;
32
35
  declare function useAppConfigData<T extends keyof AppConfigType>(name: T[]): Partial<AppConfigType>;
@@ -15,6 +15,7 @@ export type UserInfo = {
15
15
  userNo: string;
16
16
  userId: string;
17
17
  userName: string;
18
+ adminFlag: 0 | 1;
18
19
  };
19
20
  export type PreferenceData = {
20
21
  preferId?: string;
@@ -29,12 +30,14 @@ export interface AppConfigType {
29
30
  * 系统菜单ID
30
31
  */
31
32
  menuId: string;
32
- /**
33
+ /**>
33
34
  * 是否为云环境
34
35
  */
35
36
  isCloudEnv: boolean;
36
37
  /** 是否为sass模式 */
37
38
  isSassMode: boolean;
39
+ /** 是否使用本地打印 */
40
+ isLocalPrint: boolean;
38
41
  /**
39
42
  * 当前组织信息
40
43
  */
package/dist/index.d.ts CHANGED
@@ -13,6 +13,7 @@ export { ProForm, FormUnit, convertToWbNo, convertToSpellNo, } from "./component
13
13
  /** hooks ** */
14
14
  export { default as useRequest } from "./hooks/use-request";
15
15
  export { default as useAppConfigData, MAIN_APP_CONFIG, } from "./hooks/use-app-config";
16
+ export type { PreferenceData } from "./hooks/use-app-config";
16
17
  export { default as useDirectionSelect } from "./hooks/use-direction-select";
17
18
  export { default as useFetchDataset } from "./hooks/use-fetch-dataset";
18
19
  export { useEditableTable } from "./hooks/use-editable-table";
package/dist/index.js CHANGED
@@ -619,8 +619,9 @@ const DbgridTableConfig_exports_ = /*#__PURE__*/ (0, exportHelper["default"])(Db
619
619
  /**
620
620
  * 是否为 sass 模式
621
621
  */ MAIN_APP_CONFIG["IS_SASS_MODE"] = "isSassMode";
622
+ /** 是否使用本地打印 */ MAIN_APP_CONFIG["IS_LOCAL_PRINT"] = "isLocalPrint";
622
623
  /**用户信息 */ MAIN_APP_CONFIG["USER_INFO"] = "userInfo";
623
- /** 用户偏好 */ MAIN_APP_CONFIG["PREFERENCE_LIST"] = "userPreferenceList";
624
+ /** 用户偏好 */ MAIN_APP_CONFIG["PREFERENCE_LIST"] = "preferenceList";
624
625
  return MAIN_APP_CONFIG;
625
626
  }({});
626
627
  function useAppConfigData(name) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sun-biz",
3
- "version": "0.0.3-beta.3",
3
+ "version": "0.0.3-beta.5",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {