@zykj2024/much-library 1.0.10-beta.1 → 1.0.10-beta.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,6 +30,8 @@ export type PropsType = {
30
30
  onCancel?: () => void;
31
31
  tableProps?: TableProps<any>;
32
32
  tableRender?: ReactNode;
33
+ /** 折叠事件的回调 */
34
+ onCollapse?: (v: boolean) => void;
33
35
  [key: string]: any;
34
36
  };
35
37
  export type McContainerRef = {
@@ -36,7 +36,8 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
36
36
  batchBtns = props.batchBtns,
37
37
  onCancel = props.onCancel,
38
38
  tableProps = props.tableProps,
39
- tableRender = props.tableRender;
39
+ tableRender = props.tableRender,
40
+ onCollapse = props.onCollapse;
40
41
  var _useState = useState(false),
41
42
  _useState2 = _slicedToArray(_useState, 2),
42
43
  collapse = _useState2[0],
@@ -67,6 +68,9 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
67
68
  return actionBarResizeObserver.disconnect();
68
69
  };
69
70
  }, []);
71
+ useEffect(function () {
72
+ onCollapse === null || onCollapse === void 0 || onCollapse(collapse);
73
+ }, [collapse]);
70
74
 
71
75
  // 为设置过name属性的查询项添加value属性和onChange事件,从而收集查询项的值(查询项自身已绑定value属性的除外,需自行编写相关业务逻辑代码进行状态管理)
72
76
  var mapQuerys = function mapQuerys(items) {
@@ -321,14 +325,10 @@ var McContainer = /*#__PURE__*/forwardRef(function (props, ref) {
321
325
  }), actionBar && /*#__PURE__*/_jsx("div", {
322
326
  ref: actionBarRef,
323
327
  className: "mc-container__action-bar",
324
- style: {
325
- backgroundColor: backgroundColor
326
- },
327
328
  children: actionBar
328
329
  }), batchNum > 0 && /*#__PURE__*/_jsx("div", {
329
330
  className: "mc-container__batch-bar",
330
331
  style: {
331
- backgroundColor: backgroundColor,
332
332
  top: actionBarHeight ? actionBarHeight - 24 : 0
333
333
  },
334
334
  children: /*#__PURE__*/_jsxs("div", {
@@ -121,7 +121,7 @@
121
121
  "Cascader": {
122
122
  "colorBgContainerDisabled": "rgba(240, 242, 245, 0.5)",
123
123
  "colorSplit": "rgba(5, 5, 5, 0)",
124
- "colorBorder": "rgba(217, 217, 217, 0)"
124
+ "colorBorder": "rgba(217, 217, 217)"
125
125
  },
126
126
  "Switch": {
127
127
  "handleShadow": "-1px 0px 2px 0px rgba(0, 0, 0, 0.1)",
package/dist/index.d.ts CHANGED
@@ -1,10 +1,7 @@
1
- import McCascader from './McCascader';
2
1
  import McContainer from './McContainer';
3
- import McDateRange from './McDateRange';
4
2
  import McFonts from './McFonts';
5
3
  import McGroupPanel from './McGroupPanel';
6
4
  import McIconFont from './McIconFont';
7
- import McInput from './McInput';
8
5
  import McInputNumber from './McInputNumber';
9
6
  import McModalProvider from './McModalProvider';
10
7
  import McPeriodSelect from './McPeriodSelect';
@@ -12,11 +9,18 @@ import McPopoverButton from './McPopoverButton';
12
9
  import McPopoverForm from './McPopoverForm';
13
10
  import McProSelect from './McProSelect';
14
11
  import McResult from './McResult';
15
- import McSelect from './McSelect';
16
12
  import McTag from './McTag';
17
13
  import McLazyLoader from './McLazyLoader';
18
14
  import McThemeConfig from './McThemeConfig';
19
15
  import McTreePanel from './McTreePanel';
20
16
  import McTreeSelect from './McTreeSelect';
17
+ export * from './McCascader';
18
+ export { default as McCascader } from './McCascader';
19
+ export * from './McDateRange';
20
+ export { default as McDateRange } from './McDateRange';
21
+ export * from './McInput';
22
+ export { default as McInput } from './McInput';
23
+ export * from './McSelect';
24
+ export { default as McSelect } from './McSelect';
21
25
  import * as Utils from './Utils';
22
- export { McCascader, McContainer, McDateRange, McFonts, McGroupPanel, McIconFont, McInput, McInputNumber, McLazyLoader, McModalProvider, McPeriodSelect, McPopoverButton, McPopoverForm, McProSelect, McResult, McSelect, McTag, McThemeConfig, McTreePanel, McTreeSelect, Utils, };
26
+ export { McContainer, McFonts, McGroupPanel, McIconFont, McInputNumber, McLazyLoader, McModalProvider, McPeriodSelect, McPopoverButton, McPopoverForm, McProSelect, McResult, McTag, McThemeConfig, McTreePanel, McTreeSelect, Utils, };
package/dist/index.js CHANGED
@@ -1,10 +1,7 @@
1
- import McCascader from "./McCascader";
2
1
  import McContainer from "./McContainer";
3
- import McDateRange from "./McDateRange";
4
2
  import McFonts from "./McFonts";
5
3
  import McGroupPanel from "./McGroupPanel";
6
4
  import McIconFont from "./McIconFont";
7
- import McInput from "./McInput";
8
5
  import McInputNumber from "./McInputNumber";
9
6
  import McModalProvider from "./McModalProvider";
10
7
  import McPeriodSelect from "./McPeriodSelect";
@@ -12,11 +9,18 @@ import McPopoverButton from "./McPopoverButton";
12
9
  import McPopoverForm from "./McPopoverForm";
13
10
  import McProSelect from "./McProSelect";
14
11
  import McResult from "./McResult";
15
- import McSelect from "./McSelect";
16
12
  import McTag from "./McTag";
17
13
  import McLazyLoader from "./McLazyLoader";
18
14
  import McThemeConfig from "./McThemeConfig";
19
15
  import McTreePanel from "./McTreePanel";
20
16
  import McTreeSelect from "./McTreeSelect";
17
+ export * from "./McCascader";
18
+ export { default as McCascader } from "./McCascader";
19
+ export * from "./McDateRange";
20
+ export { default as McDateRange } from "./McDateRange";
21
+ export * from "./McInput";
22
+ export { default as McInput } from "./McInput";
23
+ export * from "./McSelect";
24
+ export { default as McSelect } from "./McSelect";
21
25
  import * as Utils from "./Utils";
22
- export { McCascader, McContainer, McDateRange, McFonts, McGroupPanel, McIconFont, McInput, McInputNumber, McLazyLoader, McModalProvider, McPeriodSelect, McPopoverButton, McPopoverForm, McProSelect, McResult, McSelect, McTag, McThemeConfig, McTreePanel, McTreeSelect, Utils };
26
+ export { McContainer, McFonts, McGroupPanel, McIconFont, McInputNumber, McLazyLoader, McModalProvider, McPeriodSelect, McPopoverButton, McPopoverForm, McProSelect, McResult, McTag, McThemeConfig, McTreePanel, McTreeSelect, Utils };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zykj2024/much-library",
3
- "version": "1.0.10-beta.1",
3
+ "version": "1.0.10-beta.3",
4
4
  "description": "react library",
5
5
  "license": "MIT",
6
6
  "module": "dist/index.js",