@indfnd/utils 0.1.5 → 0.1.7

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 (51) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/ind-utils.es.js +7 -6
  3. package/dist/ind-utils.umd.cjs +10 -10
  4. package/package.json +1 -1
  5. package/src/config/base.config.ts +11 -6
  6. package/types/api/com.d.ts +2 -2
  7. package/types/api/index-desc.d.ts +2 -2
  8. package/types/api/index.d.ts +6 -6
  9. package/types/api/item.d.ts +4 -4
  10. package/types/api/platform/dict.d.ts +4 -4
  11. package/types/api/platform/index.d.ts +5 -5
  12. package/types/api/platform/menu.d.ts +17 -11
  13. package/types/api/platform/oss.d.ts +12 -6
  14. package/types/api/platform/user.d.ts +17 -12
  15. package/types/api/user.d.ts +2 -2
  16. package/types/config/base.config.d.ts +30 -30
  17. package/types/config/base.config.d.ts.map +1 -1
  18. package/types/config/dev.config.d.ts +3 -3
  19. package/types/config/index.d.ts +57 -57
  20. package/types/config/prod.config.d.ts +3 -3
  21. package/types/index.d.ts +4 -4
  22. package/types/utils/base64.d.ts +22 -22
  23. package/types/utils/blob.d.ts +3 -3
  24. package/types/utils/cache/dict-cache.d.ts +3 -3
  25. package/types/utils/cache/index-desc.d.ts +4 -4
  26. package/types/utils/cache/index.d.ts +4 -4
  27. package/types/utils/cache/permission-cache.d.ts +4 -4
  28. package/types/utils/cache/user-cache.d.ts +4 -4
  29. package/types/utils/date.d.ts +4 -4
  30. package/types/utils/enum.d.ts +43 -39
  31. package/types/utils/event.d.ts +13 -5
  32. package/types/utils/excel.d.ts +4 -4
  33. package/types/utils/half-year.d.ts +6 -6
  34. package/types/utils/index.d.ts +20 -20
  35. package/types/utils/is-type.d.ts +33 -33
  36. package/types/utils/mime-type.d.ts +67 -67
  37. package/types/utils/number.d.ts +8 -8
  38. package/types/utils/quarter.d.ts +7 -7
  39. package/types/utils/request/axios.extends.d.ts +7 -3
  40. package/types/utils/request/cache-rules.d.ts +3 -3
  41. package/types/utils/request/content-type.d.ts +9 -9
  42. package/types/utils/request/index.d.ts +8 -8
  43. package/types/utils/request/interceptors.d.ts +4 -4
  44. package/types/utils/request/url-params.d.ts +6 -6
  45. package/types/utils/sm3/index.d.ts +6 -6
  46. package/types/utils/sm3/sm3.d.ts +3 -3
  47. package/types/utils/storage.d.ts +8 -8
  48. package/types/utils/table.d.ts +40 -31
  49. package/types/utils/token.d.ts +3 -3
  50. package/types/utils/uuid.d.ts +4 -4
  51. package/types/utils/validate.d.ts +5 -5
package/CHANGELOG.md CHANGED
@@ -2,6 +2,21 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.7](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.6...v0.1.7) (2024-04-26)
6
+
7
+
8
+ ### Features
9
+
10
+ * 兼容云庭 ([efa008a](http://git.inspur.com/imp-ec/ind-front/ind-utils/commit/efa008a8ba6fbf9d814a9ee9861794648905a179))
11
+
12
+ ### [0.1.6](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.5...v0.1.6) (2024-04-25)
13
+
14
+
15
+ ### Features
16
+
17
+ * 修改label宽度 ([8b56d81](http://git.inspur.com/imp-ec/ind-front/ind-utils/commit/8b56d813c1b66e59abb99a307827852f385e2369))
18
+ * label宽度自适应 ([daf83ea](http://git.inspur.com/imp-ec/ind-front/ind-utils/commit/daf83ea75f2dbd4677c5db5590e95250c75aa880))
19
+
5
20
  ### [0.1.5](http://git.inspur.com/imp-ec/ind-front/ind-utils/compare/v0.1.4...v0.1.5) (2024-04-16)
6
21
 
7
22
 
@@ -3228,6 +3228,7 @@ const Cookie = {
3228
3228
  }
3229
3229
  }
3230
3230
  };
3231
+ const ratio = typeof window !== "undefined" ? (window.top ? window.top.innerWidth : window.innerWidth) / 1920 : 1;
3231
3232
  var baseConfig = {
3232
3233
  title: "",
3233
3234
  icomId: "",
@@ -3247,12 +3248,12 @@ var baseConfig = {
3247
3248
  errorMessage: "\u7CFB\u7EDF\u5F00\u5C0F\u5DEE\u4E86\uFF0C\u8BF7\u7A0D\u540E\u5C1D\u8BD5",
3248
3249
  leftLockDays: 7,
3249
3250
  labelStyle: {
3250
- labelWidthButton: 50,
3251
- labelWidthSmall: 100 + 40,
3252
- labelWidthMiddle: 120 + 40,
3253
- labelWidthMiddleLarge: 140 + 40,
3254
- labelWidthLarge: 160 + 40,
3255
- labelWidthSuperLarge: 180 + 40
3251
+ labelWidthButton: 50 * ratio,
3252
+ labelWidthSmall: (100 + 40) * ratio,
3253
+ labelWidthMiddle: (120 + 40) * ratio,
3254
+ labelWidthMiddleLarge: (140 + 40) * ratio,
3255
+ labelWidthLarge: (160 + 40) * ratio,
3256
+ labelWidthSuperLarge: (180 + 40) * ratio
3256
3257
  },
3257
3258
  linkColor: "#488AFF"
3258
3259
  };