@ccs-ui/rc-pro 1.1.25-beta-4 → 1.1.25-beta-6
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/auth/index.d.ts +1 -1
- package/es/auth/index.js +2 -2
- package/es/pro-grid/index.js +0 -1
- package/es/pro-table/operation.js +15 -21
- package/package.json +1 -1
package/es/auth/index.d.ts
CHANGED
package/es/auth/index.js
CHANGED
|
@@ -93,12 +93,12 @@ function AuthGroup(_ref4) {
|
|
|
93
93
|
okText: '确认',
|
|
94
94
|
cancelText: '取消',
|
|
95
95
|
onOk: function onOk() {
|
|
96
|
-
return onClick && onClick(key);
|
|
96
|
+
return onClick && onClick(key, otherProps === null || otherProps === void 0 ? void 0 : otherProps.selectedRows);
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
return;
|
|
100
100
|
}
|
|
101
|
-
onClick(key);
|
|
101
|
+
onClick(key, otherProps === null || otherProps === void 0 ? void 0 : otherProps.selectedRows);
|
|
102
102
|
};
|
|
103
103
|
|
|
104
104
|
// link类型按钮
|
package/es/pro-grid/index.js
CHANGED
|
@@ -18,7 +18,6 @@ var GridCol = function GridCol(_ref) {
|
|
|
18
18
|
style = _ref.style,
|
|
19
19
|
className = _ref.className,
|
|
20
20
|
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
21
|
-
console.log('restProps', restProps);
|
|
22
21
|
var styles = _objectSpread({}, style);
|
|
23
22
|
if (colWidth) {
|
|
24
23
|
styles.width = colWidth;
|
|
@@ -9,7 +9,7 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
|
|
|
9
9
|
function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
|
|
10
10
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
11
11
|
import { RedoOutlined, SettingOutlined } from '@ant-design/icons';
|
|
12
|
-
import { Button, Checkbox,
|
|
12
|
+
import { Button, Checkbox, Divider, Popover, Tooltip } from 'antd';
|
|
13
13
|
import { useState } from 'react';
|
|
14
14
|
import { CcsFullScreenButton } from '..';
|
|
15
15
|
import { classPrefix } from "./table";
|
|
@@ -98,33 +98,28 @@ export default function TableOperation(_ref) {
|
|
|
98
98
|
|
|
99
99
|
// 列过滤
|
|
100
100
|
var renderCheck = function renderCheck() {
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
label: /*#__PURE__*/_jsx(Checkbox, {
|
|
101
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
102
|
+
children: [/*#__PURE__*/_jsx(Checkbox, {
|
|
104
103
|
indeterminate: !isHalfCheck,
|
|
105
104
|
onChange: onCheckAllChange,
|
|
106
105
|
checked: isCheckAll,
|
|
107
106
|
children: "\u5168\u9009"
|
|
108
|
-
})
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
fc.push({
|
|
116
|
-
key: c.dataIndex,
|
|
117
|
-
label: /*#__PURE__*/_jsx(Checkbox, {
|
|
107
|
+
}), /*#__PURE__*/_jsx(Divider, {
|
|
108
|
+
style: {
|
|
109
|
+
margin: '4px 0'
|
|
110
|
+
}
|
|
111
|
+
}), filterColumns.map(function (c, index) {
|
|
112
|
+
return c.dataIndex ? /*#__PURE__*/_jsx("div", {
|
|
113
|
+
children: /*#__PURE__*/_jsx(Checkbox, {
|
|
118
114
|
checked: !c.hidden,
|
|
119
115
|
onChange: function onChange(e) {
|
|
120
116
|
return onCheckChange(e.target.checked, index);
|
|
121
117
|
},
|
|
122
118
|
children: c.title
|
|
123
119
|
})
|
|
124
|
-
});
|
|
125
|
-
}
|
|
120
|
+
}, c.dataIndex) : null;
|
|
121
|
+
})]
|
|
126
122
|
});
|
|
127
|
-
return fc;
|
|
128
123
|
};
|
|
129
124
|
var onFullScreen = function onFullScreen() {
|
|
130
125
|
var _tableRef$current3;
|
|
@@ -143,15 +138,14 @@ export default function TableOperation(_ref) {
|
|
|
143
138
|
width: 24
|
|
144
139
|
}
|
|
145
140
|
})
|
|
146
|
-
}), filterColumns && /*#__PURE__*/_jsx(
|
|
147
|
-
|
|
148
|
-
items: renderCheck()
|
|
149
|
-
},
|
|
141
|
+
}), filterColumns && /*#__PURE__*/_jsx(Popover, {
|
|
142
|
+
content: renderCheck(),
|
|
150
143
|
trigger: ['click'],
|
|
151
144
|
open: dropdownVisible,
|
|
152
145
|
onOpenChange: function onOpenChange(flag) {
|
|
153
146
|
return setDropdownVisible(flag);
|
|
154
147
|
},
|
|
148
|
+
placement: "bottomLeft",
|
|
155
149
|
children: /*#__PURE__*/_jsx(Tooltip, {
|
|
156
150
|
title: "\u5217\u8BBE\u7F6E",
|
|
157
151
|
children: /*#__PURE__*/_jsx(Button, {
|