ls-pro-common 1.1.0 → 1.1.2

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 (52) hide show
  1. package/dist/common.css +138 -1
  2. package/dist/common.js +1 -1
  3. package/dist/common.js.LICENSE.txt +5 -3
  4. package/dist/common.min.css +138 -1
  5. package/dist/common.min.js +1 -1
  6. package/dist/common.min.js.LICENSE.txt +5 -3
  7. package/es/components/AreaCascader.js +35 -48
  8. package/es/components/AreaCascaderPanel.d.ts +5 -0
  9. package/es/components/AreaCascaderPanel.js +230 -0
  10. package/es/components/DescritionCard.js +14 -19
  11. package/es/components/DtlLayout.js +25 -38
  12. package/es/components/IconSelector.js +27 -50
  13. package/es/components/ImageSelector.js +89 -139
  14. package/es/components/InputMultiLine.js +33 -45
  15. package/es/components/InputTable.d.ts +2 -0
  16. package/es/components/InputTable.js +118 -160
  17. package/es/components/Loading.js +3 -6
  18. package/es/components/common.less +158 -1
  19. package/es/hooks/useDtl/index.d.ts +2 -0
  20. package/es/hooks/useDtl/index.js +676 -941
  21. package/es/hooks/usePermission/index.js +0 -9
  22. package/es/hooks/useSingle/index.d.ts +2 -0
  23. package/es/hooks/useSingle/index.js +440 -599
  24. package/es/http/index.js +113 -149
  25. package/es/index.d.ts +2 -1
  26. package/es/index.js +2 -2
  27. package/es/service/BaseService.js +121 -195
  28. package/es/utils/index.js +12 -111
  29. package/lib/components/404.js +1 -6
  30. package/lib/components/AreaCascader.js +37 -63
  31. package/lib/components/AreaCascaderPanel.d.ts +5 -0
  32. package/lib/components/AreaCascaderPanel.js +239 -0
  33. package/lib/components/DescritionCard.js +16 -33
  34. package/lib/components/DtlLayout.js +27 -49
  35. package/lib/components/IconSelector.js +29 -64
  36. package/lib/components/ImageSelector.js +91 -162
  37. package/lib/components/InputMultiLine.js +35 -61
  38. package/lib/components/InputTable.d.ts +2 -0
  39. package/lib/components/InputTable.js +120 -185
  40. package/lib/components/Loading.js +4 -16
  41. package/lib/components/common.less +158 -1
  42. package/lib/hooks/useDtl/index.d.ts +2 -0
  43. package/lib/hooks/useDtl/index.js +677 -957
  44. package/lib/hooks/usePermission/index.js +0 -12
  45. package/lib/hooks/useSingle/index.d.ts +2 -0
  46. package/lib/hooks/useSingle/index.js +441 -614
  47. package/lib/http/index.js +111 -158
  48. package/lib/index.d.ts +2 -1
  49. package/lib/index.js +9 -20
  50. package/lib/service/BaseService.js +121 -201
  51. package/lib/utils/index.js +13 -209
  52. package/package.json +2 -2
@@ -1,40 +1,28 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
4
  Object.defineProperty(exports, "__esModule", {
6
5
  value: true
7
6
  });
8
7
  exports.default = void 0;
9
-
10
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
11
-
12
9
  require("antd/es/spin/style");
13
-
14
10
  var _spin = _interopRequireDefault(require("antd/es/spin"));
15
-
16
11
  var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
17
-
18
12
  var _react = _interopRequireDefault(require("react"));
19
-
20
13
  require("./common.less");
21
-
22
14
  var _excluded = ["Text", "className"];
23
-
24
15
  var _default = function _default(props) {
25
16
  var _props$Text = props.Text,
26
- Text = _props$Text === void 0 ? '加载中...' : _props$Text,
27
- className = props.className,
28
- rest = (0, _objectWithoutProperties2.default)(props, _excluded);
17
+ Text = _props$Text === void 0 ? '加载中...' : _props$Text,
18
+ className = props.className,
19
+ rest = (0, _objectWithoutProperties2.default)(props, _excluded);
29
20
  var cls = "loading";
30
-
31
21
  if (className) {
32
22
  cls += " " + className;
33
23
  }
34
-
35
24
  return /*#__PURE__*/_react.default.createElement("div", (0, _extends2.default)({
36
25
  className: cls
37
26
  }, rest), " ", /*#__PURE__*/_react.default.createElement(_spin.default, null), Text);
38
27
  };
39
-
40
28
  exports.default = _default;
@@ -82,6 +82,69 @@ body {
82
82
  // --ant-info-color-deprecated-border : #ccebff;
83
83
  }
84
84
 
85
+
86
+ body.theme-yellow {
87
+ --ant-primary-color: #fa8500;
88
+ --ant-primary-color-hover: #ffa229;
89
+ --ant-primary-color-active: #d46a00;
90
+ --ant-primary-color-outline: rgba(250, 133, 0, 0.2);
91
+ --ant-primary-bg: #fff;
92
+ --ant-primary-side: #fff7e6;
93
+ --ant-primary-0: #ffd9ad;
94
+ --ant-primary-1: #fff7e6;
95
+ --ant-primary-2: #ffe0a3;
96
+ --ant-primary-3: #ffce7a;
97
+ --ant-primary-4: #ffba52;
98
+ --ant-primary-5: #ffa229;
99
+ --ant-primary-6: #fa8500;
100
+ --ant-primary-7: #d46a00;
101
+ --ant-primary-color-deprecated-pure: #ffd9ad;
102
+ --ant-primary-color-deprecated-l-35: #ffd9ad;
103
+ --ant-primary-color-deprecated-l-20: #ffb561;
104
+ --ant-primary-color-deprecated-t-20: #fb9d33;
105
+ --ant-primary-color-deprecated-t-50: #fdc280;
106
+ --ant-primary-color-deprecated-f-12: rgba(250, 133, 0, 0.12);
107
+ --ant-primary-color-active-deprecated-f-30: rgba(255, 247, 230, 0.3);
108
+ --ant-primary-color-active-deprecated-d-02: #fff4dc;
109
+ --ant-success-color: #52c41a;
110
+ --ant-success-color-hover: #73d13d;
111
+ --ant-success-color-active: #389e0d;
112
+ --ant-success-color-outline: rgba(82, 196, 26, 0.2);
113
+ --ant-success-color-deprecated-bg: #f6ffed;
114
+ --ant-success-color-deprecated-border: #b7eb8f;
115
+ --ant-error-color: #ff4d4f;
116
+ --ant-error-color-hover: #ff7875;
117
+ --ant-error-color-active: #d9363e;
118
+ --ant-error-color-outline: rgba(255, 77, 79, 0.2);
119
+ --ant-error-color-deprecated-bg: #fff2f0;
120
+ --ant-error-color-deprecated-border: #ffccc7;
121
+ --ant-warning-color: #faad14;
122
+ --ant-warning-color-hover: #ffc53d;
123
+ --ant-warning-color-active: #d48806;
124
+ --ant-warning-color-outline: rgba(250, 173, 20, 0.2);
125
+ --ant-warning-color-deprecated-bg: #fffbe6;
126
+ --ant-warning-color-deprecated-border: #ffe58f;
127
+ --ant-info-color: #fa8500;
128
+ --ant-info-color-deprecated-bg: #fff7e6;
129
+ --ant-info-color-deprecated-border: #ffce7a;
130
+ --antd-wave-shadow-color: #fa8500;
131
+
132
+ .ant-table-cell,
133
+ .ant-pro-table-alert-info-content {
134
+ a {
135
+ color: var(--ant-primary-color);
136
+ }
137
+
138
+ a:hover {
139
+ color: var(--ant-primary-color-hover);
140
+ }
141
+
142
+ a:active {
143
+ color: var(--ant-primary-color-active);
144
+ }
145
+ }
146
+ }
147
+
85
148
  .dtl-layout {
86
149
  position : absolute;
87
150
  top : 0;
@@ -351,4 +414,98 @@ a:hover {
351
414
 
352
415
  .ant-row {
353
416
  width: 100%;
354
- }
417
+ }
418
+
419
+ .ant-popover {
420
+ max-width: min-content !important;
421
+ }
422
+ //-------------------省市区组件样式-----------
423
+ //最外层盒子
424
+ .ls-area-cascaded-box {
425
+ width: 600px;
426
+ display: flex;
427
+ flex-direction: column;
428
+ transition: all 0.3s;
429
+
430
+ .ls-area-cascaded-header {
431
+ width: 100%;
432
+ padding: 2px 0 6px;
433
+ border-bottom: 1px solid #f0f0f0;
434
+ display: flex;
435
+ flex-direction: row;
436
+ justify-content: space-around;
437
+ justify-content: center;
438
+
439
+ .ls-word-box-display {
440
+ margin: 0 10px;
441
+ font-size: 14px;
442
+ font-weight: 100;
443
+
444
+ button {
445
+ border: none;
446
+ background-color: var(--ant-primary-2, #f0f9ff);
447
+
448
+ &[disabled] {
449
+ background-color: #fafafa !important;
450
+
451
+ .ls-myself-select-title-style {
452
+ color: var(--ant-primary-4, #a3d7ff);
453
+ transition: all 0.3s;
454
+ }
455
+ }
456
+ }
457
+
458
+ .ls-myself-select-title-style {
459
+ color: var(--ant-primary-color, rgb(69, 154, 220));
460
+ font-size: 14px;
461
+ font-weight: 600;
462
+ transition: all 0.3s;
463
+ }
464
+ }
465
+
466
+ .ls-icon-box-display {
467
+ display: flex;
468
+ align-items: center;
469
+ }
470
+ }
471
+
472
+ .ls-area-cascaded-body {
473
+ width: 100%;
474
+ min-height: 100px;
475
+ max-height: 350px;
476
+ overflow: auto;
477
+ padding: 8px 12px 4px;
478
+ display: grid;
479
+ grid-template-columns: repeat(4, 1fr);
480
+ gap: 4px;
481
+ justify-content: start;
482
+ align-content: flex-start;
483
+ align-items: center;
484
+
485
+ .ls-area-cascaded-span {
486
+ text-align: center;
487
+ padding: 6px 10px;
488
+
489
+ //文字不换行,超出省略
490
+ overflow: hidden;
491
+ text-overflow: ellipsis;
492
+ white-space: nowrap;
493
+ cursor: pointer;
494
+
495
+ &.ls-area-selected,
496
+ &:hover {
497
+ color: var(--ant-primary-color, rgb(69, 154, 220));
498
+ transition: all 0.3s;
499
+ }
500
+ }
501
+ }
502
+ }
503
+
504
+ //手动指定盒子位置
505
+ .ls-area-box-position {
506
+ .ls-ant-select-dropdown {
507
+ top: 36px !important;
508
+ }
509
+ }
510
+
511
+ //-------------------省市区组件样式-----------
@@ -19,6 +19,8 @@ export declare type DtlParamType = SingleParamType & {
19
19
  billType?: string;
20
20
  /**@name 动态编码规则字段,主从表一起保存传参 */
21
21
  codeRuleDynamicField?: string;
22
+ /**@是否查询历史数据 */
23
+ ifHistoryData?: 0 | 1;
22
24
  };
23
25
  declare function useDtl(dtlParam: DtlParamType): {
24
26
  formRef: import("react").MutableRefObject<ProFormInstance<any> | undefined>;