ls-pro-common 1.1.1 → 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.
- package/dist/common.css +65 -1
- package/dist/common.js +1 -1
- package/dist/common.js.LICENSE.txt +5 -3
- package/dist/common.min.css +65 -1
- package/dist/common.min.js +1 -1
- package/dist/common.min.js.LICENSE.txt +5 -3
- package/es/components/AreaCascader.js +35 -48
- package/es/components/AreaCascaderPanel.js +55 -85
- package/es/components/DescritionCard.js +14 -19
- package/es/components/DtlLayout.js +25 -38
- package/es/components/IconSelector.js +27 -50
- package/es/components/ImageSelector.js +89 -139
- package/es/components/InputMultiLine.js +33 -45
- package/es/components/InputTable.js +118 -160
- package/es/components/Loading.js +3 -6
- package/es/components/common.less +63 -0
- package/es/hooks/useDtl/index.js +676 -947
- package/es/hooks/usePermission/index.js +0 -9
- package/es/hooks/useSingle/index.js +417 -595
- package/es/http/index.js +107 -151
- package/es/index.js +0 -1
- package/es/service/BaseService.js +121 -195
- package/es/utils/index.js +12 -111
- package/lib/components/404.js +1 -6
- package/lib/components/AreaCascader.js +37 -63
- package/lib/components/AreaCascaderPanel.js +57 -105
- package/lib/components/DescritionCard.js +16 -33
- package/lib/components/DtlLayout.js +27 -49
- package/lib/components/IconSelector.js +29 -64
- package/lib/components/ImageSelector.js +91 -162
- package/lib/components/InputMultiLine.js +35 -61
- package/lib/components/InputTable.js +120 -185
- package/lib/components/Loading.js +4 -16
- package/lib/components/common.less +63 -0
- package/lib/hooks/useDtl/index.js +677 -963
- package/lib/hooks/usePermission/index.js +0 -12
- package/lib/hooks/useSingle/index.js +418 -610
- package/lib/http/index.js +105 -160
- package/lib/index.js +2 -21
- package/lib/service/BaseService.js +121 -201
- package/lib/utils/index.js +13 -209
- 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
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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;
|