assui 3.1.13 → 3.1.14

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.
@@ -48,6 +48,7 @@ import React, { useState, useRef, useImperativeHandle } from 'react';
48
48
  import Drawer from "antd/es/drawer";
49
49
  import isFunction from 'lodash/isFunction';
50
50
  import classNames from 'classnames';
51
+ import CloseOutlined from "a-icons/es/CloseOutlined";
51
52
  var ButtonDrawer = function ButtonDrawer(props, ref) {
52
53
  var _a = __read(useState(false), 2),
53
54
  drawerVisible = _a[0],
@@ -90,7 +91,8 @@ var ButtonDrawer = function ButtonDrawer(props, ref) {
90
91
  className: classNames('button-drawer', className),
91
92
  title: title,
92
93
  onClose: closeDrawer,
93
- open: drawerVisible
94
+ open: drawerVisible,
95
+ closeIcon: /*#__PURE__*/React.createElement(CloseOutlined, null)
94
96
  }, restProps), isFunction(children) ? children(actionRef.current) : /*#__PURE__*/React.cloneElement(children, {
95
97
  drawerAction: actionRef.current
96
98
  })));
@@ -58,8 +58,7 @@ var ButtonModal = function ButtonModal(props, ref) {
58
58
  onClose = props.onClose,
59
59
  onOk = props.onOk,
60
60
  onCancel = props.onCancel,
61
- className = props.className,
62
- restModalProps = __rest(props, ["children", "trigger", "onOpen", "onClose", "onOk", "onCancel", "className"]);
61
+ restModalProps = __rest(props, ["children", "trigger", "onOpen", "onClose", "onOk", "onCancel"]);
63
62
  var openModal = function openModal() {
64
63
  setModalVisible(true);
65
64
  onOpen === null || onOpen === void 0 ? void 0 : onOpen();
@@ -91,6 +91,7 @@ var react_1 = __importStar(require("react"));
91
91
  var drawer_1 = __importDefault(require("antd/lib/drawer"));
92
92
  var isFunction_1 = __importDefault(require("lodash/isFunction"));
93
93
  var classnames_1 = __importDefault(require("classnames"));
94
+ var CloseOutlined_1 = __importDefault(require("a-icons/lib/CloseOutlined"));
94
95
  var ButtonDrawer = function ButtonDrawer(props, ref) {
95
96
  var _a = __read((0, react_1.useState)(false), 2),
96
97
  drawerVisible = _a[0],
@@ -133,7 +134,8 @@ var ButtonDrawer = function ButtonDrawer(props, ref) {
133
134
  className: (0, classnames_1["default"])('button-drawer', className),
134
135
  title: title,
135
136
  onClose: closeDrawer,
136
- open: drawerVisible
137
+ open: drawerVisible,
138
+ closeIcon: react_1["default"].createElement(CloseOutlined_1["default"], null)
137
139
  }, restProps), (0, isFunction_1["default"])(children) ? children(actionRef.current) : react_1["default"].cloneElement(children, {
138
140
  drawerAction: actionRef.current
139
141
  })));
@@ -101,8 +101,7 @@ var ButtonModal = function ButtonModal(props, ref) {
101
101
  onClose = props.onClose,
102
102
  onOk = props.onOk,
103
103
  onCancel = props.onCancel,
104
- className = props.className,
105
- restModalProps = __rest(props, ["children", "trigger", "onOpen", "onClose", "onOk", "onCancel", "className"]);
104
+ restModalProps = __rest(props, ["children", "trigger", "onOpen", "onClose", "onOk", "onCancel"]);
106
105
  var openModal = function openModal() {
107
106
  setModalVisible(true);
108
107
  onOpen === null || onOpen === void 0 ? void 0 : onOpen();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "3.1.13",
3
+ "version": "3.1.14",
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": "8a011bfdc9d92f9213038d686160735f9fc5848d"
83
+ "gitHead": "a215dd15907620146fdd5e403e8a19bee6b5161d"
84
84
  }