@zgfe/modules-page 1.0.1 → 1.0.3
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.
|
@@ -117,7 +117,7 @@ export var getColumns = function getColumns(type, hasUserGroup, onClickCallback,
|
|
|
117
117
|
align: 'right',
|
|
118
118
|
className: 'thread-right',
|
|
119
119
|
sorter: function sorter(a, b) {
|
|
120
|
-
return a
|
|
120
|
+
return getNum(a) - getNum(b);
|
|
121
121
|
},
|
|
122
122
|
showSorterTooltip: false,
|
|
123
123
|
render: function render(_txt, record) {
|
|
@@ -166,6 +166,12 @@ export var getNumPer = function getNumPer(viewUser, clickUser) {
|
|
|
166
166
|
}
|
|
167
167
|
return viewUser ? (clickUser / viewUser * 100).toFixed(1) + '%' : 0 + '%';
|
|
168
168
|
};
|
|
169
|
+
var getNum = function getNum(data) {
|
|
170
|
+
var viewUser = data.viewUser,
|
|
171
|
+
clickUser = data.clickUser;
|
|
172
|
+
if (!viewUser || viewUser === -1) return 0;
|
|
173
|
+
return Number((clickUser / viewUser * 100).toFixed(1));
|
|
174
|
+
};
|
|
169
175
|
export var toThousands = function toThousands(num) {
|
|
170
176
|
if (util.isNumber(num)) {
|
|
171
177
|
return num === -1 ? '-' : util.toThousands(num);
|
|
@@ -45,12 +45,14 @@ var GroupModal = function GroupModal(props) {
|
|
|
45
45
|
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
46
46
|
key: "submit",
|
|
47
47
|
type: "primary",
|
|
48
|
+
disabled: isDemo,
|
|
48
49
|
onClick: onOk
|
|
49
50
|
}, "\u786E\u5B9A")];
|
|
50
51
|
if (props.value) {
|
|
51
52
|
btnGroup.unshift( /*#__PURE__*/React.createElement(Button, {
|
|
52
53
|
key: "delete",
|
|
53
54
|
type: "text",
|
|
55
|
+
disabled: isDemo,
|
|
54
56
|
className: "".concat(classPrefix, "-footer-del"),
|
|
55
57
|
onClick: onDelete,
|
|
56
58
|
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
@@ -181,11 +181,14 @@
|
|
|
181
181
|
font-size: 16px !important;
|
|
182
182
|
line-height: 1;
|
|
183
183
|
}
|
|
184
|
-
&.ant-btn-text:hover {
|
|
184
|
+
&.ant-btn-text[disabled]:hover {
|
|
185
|
+
color: rgba(0, 0, 0, 0.25) !important;
|
|
186
|
+
}
|
|
187
|
+
&.ant-btn-text:not([disabled]):hover {
|
|
185
188
|
color: #fb5547 !important;
|
|
186
189
|
background: #f2f3f4 !important;
|
|
187
190
|
}
|
|
188
|
-
&.ant-btn-text:focus {
|
|
191
|
+
&.ant-btn-text:not([disabled]):focus {
|
|
189
192
|
color: #e24c40 !important;
|
|
190
193
|
background: #f2f3f4 !important;
|
|
191
194
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-page",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -50,5 +50,5 @@
|
|
|
50
50
|
"prettier": "^2.2.1",
|
|
51
51
|
"yorkie": "^2.0.0"
|
|
52
52
|
},
|
|
53
|
-
"gitHead": "
|
|
53
|
+
"gitHead": "c49c16d82c243e839dadd1f854ac98739f08a524"
|
|
54
54
|
}
|