@titaui/pc 1.7.20 → 1.7.24

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.
Files changed (33) hide show
  1. package/lib/components/cascader/index.css +38 -11
  2. package/lib/components/cascader/index.js +10 -5
  3. package/lib/components/cascader/time.js +31 -0
  4. package/lib/components/form/form-fields/group/index.js +2 -1
  5. package/lib/components/menus/components/menu-tree/index.css +4 -0
  6. package/lib/components/nav-top/components/user-own-menu/utils.js +1 -1
  7. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +4 -2
  8. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -2
  9. package/lib/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -2
  10. package/lib/components/scrollbar/index.js +13 -3
  11. package/lib/components/select-tags/index.css +51 -40
  12. package/lib/components/select-tags/index.js +8 -10
  13. package/lib/components/upvote/index.js +19 -14
  14. package/lib/index.js +8 -0
  15. package/lib/utils/bs-global.js +0 -7
  16. package/package.json +1 -1
  17. package/src/components/cascader/index.scss +50 -27
  18. package/src/components/cascader/index.tsx +18 -16
  19. package/src/components/cascader/time.js +13 -0
  20. package/src/components/form/form-fields/group/index.tsx +3 -3
  21. package/src/components/menus/components/menu-tree/index.scss +3 -0
  22. package/src/components/menus/export-modules/manage-menus/index.tsx +1 -1
  23. package/src/components/nav-top/components/user-own-menu/utils.ts +1 -1
  24. package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-project.js +1 -1
  25. package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task-level2.js +2 -2
  26. package/src/components/okr-detail/components/okr-tree/tree-node/e-node/e-task.js +2 -2
  27. package/src/components/scrollbar/index.tsx +2 -1
  28. package/src/components/select-tags/index.scss +129 -105
  29. package/src/components/select-tags/index.tsx +32 -32
  30. package/src/components/upvote/index.tsx +12 -9
  31. package/src/index.d.ts +2 -1
  32. package/src/index.js +2 -1
  33. package/src/utils/bs-global.js +0 -10
package/src/index.js CHANGED
@@ -77,8 +77,9 @@ export { default as LikeRankingPage } from "./pages/like-ranking";
77
77
  export { default as NewOkrListPage } from "./pages/new-okr-list";
78
78
  export { default as PersonalInfoPage } from "./pages/personal-info";
79
79
  export { default as ErrorBoundary } from "./components/error-boundary";
80
- export { ERROR_LEVEL } from "./utils/error-level";
80
+ export { ERROR_LEVEL as ERROR_LEVEL } from "./utils/error-level";
81
81
  export { default as SelectTags } from "./components/select-tags";
82
82
  export { default as Cascader } from "./components/cascader";
83
83
  export { default as requestApi } from "./utils/request";
84
84
  export { default as PointDemo} from './components/point-demo'
85
+ export { default as Scrollbar } from './components/scrollbar'
@@ -1,32 +1,22 @@
1
- import { BSGlobal } from "./mock-bsglobal";
2
1
 
3
2
  export const getUserInfo = () => {
4
- if (window.location.host.indexOf("127.0.0.1") !== -1)
5
- return BSGlobal.loginUserInfo;
6
3
  return window.BSGlobal && window.BSGlobal.loginUserInfo;
7
4
  };
8
5
 
9
6
  export const getTenantInfo = () => {
10
- if (window.location.host.indexOf("127.0.0.1") !== -1)
11
- return BSGlobal.tenantInfo;
12
7
  return window.BSGlobal && window.BSGlobal.tenantInfo;
13
8
  };
14
9
 
15
10
  export const getBSGlobal = (key) => {
16
- if (window.location.host.indexOf("127.0.0.1") !== -1) return BSGlobal[key];
17
11
  return window.BSGlobal[key];
18
12
  };
19
13
 
20
14
  export const getOkrAdvancedSetting = () => {
21
- if (window.location.host.indexOf("127.0.0.1") !== -1)
22
- return BSGlobal["OkrAdvancedSetting"];
23
15
  return window.BSGlobal["OkrAdvancedSetting"];
24
16
  };
25
17
 
26
18
  export const getVersion = () => {
27
19
  // version 1 试用版
28
- if (window.location.host.indexOf("127.0.0.1") !== -1)
29
- return BSGlobal["tenantAuthentication"].Version;
30
20
  return window.BSGlobal["tenantAuthentication"].Version;
31
21
  };
32
22