@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.
@@ -15,7 +15,7 @@ export type CcsAuthGroupProps = {
15
15
  /** 更多文字 */
16
16
  moreText?: string;
17
17
  /** 点击事件 */
18
- onClick?: (key: string) => void;
18
+ onClick?: (key: string, selectedRows?: any[]) => void;
19
19
  };
20
20
  export type CcsAuthProps = {
21
21
  /** 权限标识 */
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类型按钮
@@ -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, Dropdown, Tooltip } from 'antd';
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
- var fc = [{
102
- key: '1',
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
- key: '2',
111
- type: 'divider'
112
- }];
113
- filterColumns.forEach(function (c, index) {
114
- if (c.dataIndex) {
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(Dropdown, {
147
- menu: {
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, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccs-ui/rc-pro",
3
- "version": "1.1.25-beta-4",
3
+ "version": "1.1.25-beta-6",
4
4
  "description": "验证码组件兼容暗黑模式;proTable封装rowselection代码;proTable添加传统布局模式;",
5
5
  "license": "MIT",
6
6
  "author": {