antd-management-fast-framework 1.11.18 → 1.11.19
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.
|
@@ -5,9 +5,11 @@ declare class FlexText extends React.PureComponent<any, any, any> {
|
|
|
5
5
|
}
|
|
6
6
|
declare namespace FlexText {
|
|
7
7
|
export namespace defaultProps {
|
|
8
|
+
export const flexAuto: string;
|
|
8
9
|
export const icon: null;
|
|
9
10
|
export const textPrefix: null;
|
|
10
11
|
export const text: string;
|
|
12
|
+
export const ellipsis: boolean;
|
|
11
13
|
export const textEllipsisMaxWidth: number;
|
|
12
14
|
export const subText: string;
|
|
13
15
|
export const subTextStyle: null;
|
|
@@ -60,9 +60,11 @@ var FlexText = /*#__PURE__*/function (_PureComponent) {
|
|
|
60
60
|
key: "render",
|
|
61
61
|
value: function render() {
|
|
62
62
|
var _this$props = this.props,
|
|
63
|
+
flexAutoSource = _this$props.flexAuto,
|
|
63
64
|
icon = _this$props.icon,
|
|
64
65
|
textPrefix = _this$props.textPrefix,
|
|
65
66
|
text = _this$props.text,
|
|
67
|
+
ellipsis = _this$props.ellipsis,
|
|
66
68
|
textEllipsisMaxWidth = _this$props.textEllipsisMaxWidth,
|
|
67
69
|
subText = _this$props.subText,
|
|
68
70
|
subTextStyle = _this$props.subTextStyle,
|
|
@@ -72,11 +74,12 @@ var FlexText = /*#__PURE__*/function (_PureComponent) {
|
|
|
72
74
|
style = _this$props.style;
|
|
73
75
|
return /*#__PURE__*/_react.default.createElement(_FlexBox.default, {
|
|
74
76
|
style: style,
|
|
77
|
+
flexAuto: flexAutoSource,
|
|
75
78
|
left: /*#__PURE__*/_react.default.createElement(_space.default, null, (addonBefore || null) == null ? null : addonBefore, /*#__PURE__*/_react.default.createElement(_IconInfo.default, {
|
|
76
79
|
icon: icon,
|
|
77
80
|
textPrefix: textPrefix,
|
|
78
81
|
text: text,
|
|
79
|
-
ellipsis:
|
|
82
|
+
ellipsis: ellipsis,
|
|
80
83
|
ellipsisMaxWidth: textEllipsisMaxWidth
|
|
81
84
|
}), (subText || null) == null ? null : /*#__PURE__*/_react.default.createElement("span", {
|
|
82
85
|
className: _index.default.subText,
|
|
@@ -91,9 +94,11 @@ var FlexText = /*#__PURE__*/function (_PureComponent) {
|
|
|
91
94
|
}(_react.PureComponent);
|
|
92
95
|
|
|
93
96
|
FlexText.defaultProps = {
|
|
97
|
+
flexAuto: 'left',
|
|
94
98
|
icon: null,
|
|
95
99
|
textPrefix: null,
|
|
96
100
|
text: '',
|
|
101
|
+
ellipsis: true,
|
|
97
102
|
textEllipsisMaxWidth: 0,
|
|
98
103
|
subText: '',
|
|
99
104
|
subTextStyle: null,
|
|
@@ -19,14 +19,6 @@ require("antd/es/form/style");
|
|
|
19
19
|
|
|
20
20
|
var _form = _interopRequireDefault(require("antd/es/form"));
|
|
21
21
|
|
|
22
|
-
require("antd/es/row/style");
|
|
23
|
-
|
|
24
|
-
var _row = _interopRequireDefault(require("antd/es/row"));
|
|
25
|
-
|
|
26
|
-
require("antd/es/col/style");
|
|
27
|
-
|
|
28
|
-
var _col = _interopRequireDefault(require("antd/es/col"));
|
|
29
|
-
|
|
30
22
|
var _react = _interopRequireDefault(require("react"));
|
|
31
23
|
|
|
32
24
|
var _icons = require("@ant-design/icons");
|
|
@@ -35,6 +27,10 @@ var _tools = require("../../../utils/tools");
|
|
|
35
27
|
|
|
36
28
|
var _constants = require("../../../utils/constants");
|
|
37
29
|
|
|
30
|
+
var _IconInfo = _interopRequireDefault(require("../../../customComponents/IconInfo"));
|
|
31
|
+
|
|
32
|
+
var _FlexText = _interopRequireDefault(require("../../../customComponents/FlexText"));
|
|
33
|
+
|
|
38
34
|
var _BaseWindow2 = _interopRequireDefault(require("../../DataOperation/BaseWindow"));
|
|
39
35
|
|
|
40
36
|
var _index = _interopRequireDefault(require("./index.less"));
|
|
@@ -192,16 +188,21 @@ var Base = /*#__PURE__*/function (_BaseWindow) {
|
|
|
192
188
|
};
|
|
193
189
|
|
|
194
190
|
_this.buildTitle = function () {
|
|
195
|
-
var prevText = _this.buildTitlePrevText();
|
|
196
|
-
|
|
197
191
|
var subText = _this.buildTitleSubText();
|
|
198
192
|
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
193
|
+
var subInfo = (0, _tools.stringIsNullOrWhiteSpace)(subText) ? null : /*#__PURE__*/_react.default.createElement(_FlexText.default, {
|
|
194
|
+
flexAuto: "right",
|
|
195
|
+
addonBefore: '【',
|
|
196
|
+
text: subText,
|
|
197
|
+
addonAfter: '】'
|
|
198
|
+
});
|
|
199
|
+
return /*#__PURE__*/_react.default.createElement(_FlexText.default, {
|
|
200
|
+
flexAuto: "right",
|
|
201
|
+
icon: _this.buildTitleIcon(),
|
|
202
|
+
textPrefix: _this.buildTitlePrevText(),
|
|
203
|
+
text: _this.buildTitleText(),
|
|
204
|
+
extra: subInfo
|
|
205
|
+
});
|
|
205
206
|
};
|
|
206
207
|
|
|
207
208
|
_this.formContent = function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "antd-management-fast-framework",
|
|
3
|
-
"version": "1.11.
|
|
3
|
+
"version": "1.11.19",
|
|
4
4
|
"description": "antd-management-fast-framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"antd-management-fast-framework"
|
|
@@ -167,5 +167,5 @@
|
|
|
167
167
|
"bugs": {
|
|
168
168
|
"url": "https://github.com/kityandhero/antd-management-fast-framework/issues"
|
|
169
169
|
},
|
|
170
|
-
"gitHead": "
|
|
170
|
+
"gitHead": "48e23cd378dbe7cda1566614180397fdc06e066d"
|
|
171
171
|
}
|
package/License.txt
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 luzhitao
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|