assui 3.0.57 → 3.0.59
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/es/keep-tab/index.js +5 -5
- package/es/keep-tab/style/index.css +14 -0
- package/es/keep-tab/style/index.d.ts +1 -2
- package/es/keep-tab/style/index.js +1 -2
- package/es/keep-tab/style/index.less +19 -0
- package/es/label-range-number/index.d.ts +1 -0
- package/es/label-range-number/index.js +2 -0
- package/lib/keep-tab/index.js +5 -5
- package/lib/keep-tab/style/index.css +14 -0
- package/lib/keep-tab/style/index.d.ts +1 -2
- package/lib/keep-tab/style/index.js +1 -2
- package/lib/keep-tab/style/index.less +19 -0
- package/lib/label-range-number/index.d.ts +1 -0
- package/lib/label-range-number/index.js +2 -0
- package/package.json +2 -2
package/es/keep-tab/index.js
CHANGED
|
@@ -94,11 +94,11 @@ var KeepTab = function KeepTab(props) {
|
|
|
94
94
|
var count = item === null || item === void 0 ? void 0 : item.count;
|
|
95
95
|
if (count) {
|
|
96
96
|
return __assign(__assign({}, item), {
|
|
97
|
-
label: /*#__PURE__*/React.createElement(
|
|
98
|
-
className: "tab-badge"
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
}, badgeProps)
|
|
97
|
+
label: /*#__PURE__*/React.createElement("div", {
|
|
98
|
+
className: "tab-badge"
|
|
99
|
+
}, /*#__PURE__*/React.createElement("div", null, item.label), /*#__PURE__*/React.createElement(Badge, __assign({
|
|
100
|
+
count: count
|
|
101
|
+
}, badgeProps)))
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
return item;
|
|
@@ -1084,3 +1084,17 @@
|
|
|
1084
1084
|
opacity: 0;
|
|
1085
1085
|
}
|
|
1086
1086
|
}
|
|
1087
|
+
.tab-badge {
|
|
1088
|
+
position: relative;
|
|
1089
|
+
}
|
|
1090
|
+
.tab-badge .ant-badge {
|
|
1091
|
+
position: absolute;
|
|
1092
|
+
top: -10px;
|
|
1093
|
+
left: calc(100% - 4px);
|
|
1094
|
+
transform: scale(0.8);
|
|
1095
|
+
transform-origin: left bottom;
|
|
1096
|
+
}
|
|
1097
|
+
.tab-badge .ant-badge-count {
|
|
1098
|
+
padding: 0 6px;
|
|
1099
|
+
background-color: #dc4946;
|
|
1100
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import 'antd/lib/badge/style';
|
|
1
|
+
import './index.less';
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "antd/es/badge/style";
|
|
1
|
+
import './index.less';
|
|
@@ -1,2 +1,21 @@
|
|
|
1
1
|
@import '~antd/lib/tabs/style/index.less';
|
|
2
2
|
@import '~antd/lib/badge/style/index.less';
|
|
3
|
+
|
|
4
|
+
@color_dc4946: #dc4946;
|
|
5
|
+
|
|
6
|
+
.tab-badge {
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
.@{ant-prefix}-badge {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: -10px;
|
|
12
|
+
left: calc(100% - 4px);
|
|
13
|
+
transform: scale(0.8);
|
|
14
|
+
transform-origin: left bottom;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.@{ant-prefix}-badge-count {
|
|
18
|
+
padding: 0 6px;
|
|
19
|
+
background-color: @color_dc4946;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -9,6 +9,7 @@ export interface LabelRangeNumberProps {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
label: React.ReactNode;
|
|
11
11
|
value?: RangeNumberValue;
|
|
12
|
+
onBlur?: (value: RangeNumberValue) => void;
|
|
12
13
|
onChange?: (value: RangeNumberValue) => void;
|
|
13
14
|
enableMinus?: boolean;
|
|
14
15
|
numberType?: 'int' | 'float';
|
|
@@ -52,6 +52,7 @@ var LabelDatePicker = function LabelDatePicker(props) {
|
|
|
52
52
|
dataType = props.dataType,
|
|
53
53
|
precision = props.precision,
|
|
54
54
|
connector = props.connector,
|
|
55
|
+
onBlur = props.onBlur,
|
|
55
56
|
startNumberInputProps = props.startNumberInputProps,
|
|
56
57
|
endNumberInputProps = props.endNumberInputProps;
|
|
57
58
|
var containerRef = React.useRef(null);
|
|
@@ -72,6 +73,7 @@ var LabelDatePicker = function LabelDatePicker(props) {
|
|
|
72
73
|
onChangeValue = _b[1];
|
|
73
74
|
useClickAway(function () {
|
|
74
75
|
onFocus(false);
|
|
76
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(value);
|
|
75
77
|
}, containerRef);
|
|
76
78
|
var onStartChange = function onStartChange(startInterval) {
|
|
77
79
|
onChangeValue(__assign(__assign({}, value), {
|
package/lib/keep-tab/index.js
CHANGED
|
@@ -137,11 +137,11 @@ var KeepTab = function KeepTab(props) {
|
|
|
137
137
|
var count = item === null || item === void 0 ? void 0 : item.count;
|
|
138
138
|
if (count) {
|
|
139
139
|
return __assign(__assign({}, item), {
|
|
140
|
-
label: React.createElement(
|
|
141
|
-
className: "tab-badge"
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
}, badgeProps)
|
|
140
|
+
label: React.createElement("div", {
|
|
141
|
+
className: "tab-badge"
|
|
142
|
+
}, React.createElement("div", null, item.label), React.createElement(badge_1["default"], __assign({
|
|
143
|
+
count: count
|
|
144
|
+
}, badgeProps)))
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
return item;
|
|
@@ -1084,3 +1084,17 @@
|
|
|
1084
1084
|
opacity: 0;
|
|
1085
1085
|
}
|
|
1086
1086
|
}
|
|
1087
|
+
.tab-badge {
|
|
1088
|
+
position: relative;
|
|
1089
|
+
}
|
|
1090
|
+
.tab-badge .ant-badge {
|
|
1091
|
+
position: absolute;
|
|
1092
|
+
top: -10px;
|
|
1093
|
+
left: calc(100% - 4px);
|
|
1094
|
+
transform: scale(0.8);
|
|
1095
|
+
transform-origin: left bottom;
|
|
1096
|
+
}
|
|
1097
|
+
.tab-badge .ant-badge-count {
|
|
1098
|
+
padding: 0 6px;
|
|
1099
|
+
background-color: #dc4946;
|
|
1100
|
+
}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
import '
|
|
2
|
-
import 'antd/lib/badge/style';
|
|
1
|
+
import './index.less';
|
|
@@ -1,2 +1,21 @@
|
|
|
1
1
|
@import '~antd/lib/tabs/style/index.less';
|
|
2
2
|
@import '~antd/lib/badge/style/index.less';
|
|
3
|
+
|
|
4
|
+
@color_dc4946: #dc4946;
|
|
5
|
+
|
|
6
|
+
.tab-badge {
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
.@{ant-prefix}-badge {
|
|
10
|
+
position: absolute;
|
|
11
|
+
top: -10px;
|
|
12
|
+
left: calc(100% - 4px);
|
|
13
|
+
transform: scale(0.8);
|
|
14
|
+
transform-origin: left bottom;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.@{ant-prefix}-badge-count {
|
|
18
|
+
padding: 0 6px;
|
|
19
|
+
background-color: @color_dc4946;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -9,6 +9,7 @@ export interface LabelRangeNumberProps {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
label: React.ReactNode;
|
|
11
11
|
value?: RangeNumberValue;
|
|
12
|
+
onBlur?: (value: RangeNumberValue) => void;
|
|
12
13
|
onChange?: (value: RangeNumberValue) => void;
|
|
13
14
|
enableMinus?: boolean;
|
|
14
15
|
numberType?: 'int' | 'float';
|
|
@@ -62,6 +62,7 @@ var LabelDatePicker = function LabelDatePicker(props) {
|
|
|
62
62
|
dataType = props.dataType,
|
|
63
63
|
precision = props.precision,
|
|
64
64
|
connector = props.connector,
|
|
65
|
+
onBlur = props.onBlur,
|
|
65
66
|
startNumberInputProps = props.startNumberInputProps,
|
|
66
67
|
endNumberInputProps = props.endNumberInputProps;
|
|
67
68
|
var containerRef = react_1["default"].useRef(null);
|
|
@@ -82,6 +83,7 @@ var LabelDatePicker = function LabelDatePicker(props) {
|
|
|
82
83
|
onChangeValue = _b[1];
|
|
83
84
|
(0, useClickAway_1["default"])(function () {
|
|
84
85
|
onFocus(false);
|
|
86
|
+
onBlur === null || onBlur === void 0 ? void 0 : onBlur(value);
|
|
85
87
|
}, containerRef);
|
|
86
88
|
var onStartChange = function onStartChange(startInterval) {
|
|
87
89
|
onChangeValue(__assign(__assign({}, value), {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.59",
|
|
4
4
|
"description": "react ui library",
|
|
5
5
|
"author": "jason <usochen@gmail.com>",
|
|
6
6
|
"main": "./lib/index.js",
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"node": ">=10.0.0"
|
|
81
81
|
},
|
|
82
82
|
"license": "MIT",
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "de4dae336227d141698fc5a9f28a88940b8a016a"
|
|
84
84
|
}
|