assui 3.1.10 → 3.1.12

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## 轻松上手
2
2
 
3
3
  ```bash
4
- // 安装依赖1
4
+ // 安装依赖
5
5
  npm i assui --save
6
6
  ```
@@ -47,6 +47,7 @@ var __read = this && this.__read || function (o, n) {
47
47
  import * as React from 'react';
48
48
  import isFunction from 'lodash/isFunction';
49
49
  import Modal from "antd/es/modal";
50
+ import CloseOutlined from "a-icons/es/CloseOutlined";
50
51
  var ButtonModal = function ButtonModal(props, ref) {
51
52
  var _a = __read(React.useState(false), 2),
52
53
  visible = _a[0],
@@ -57,7 +58,8 @@ var ButtonModal = function ButtonModal(props, ref) {
57
58
  onClose = props.onClose,
58
59
  onOk = props.onOk,
59
60
  onCancel = props.onCancel,
60
- restModalProps = __rest(props, ["children", "trigger", "onOpen", "onClose", "onOk", "onCancel"]);
61
+ className = props.className,
62
+ restModalProps = __rest(props, ["children", "trigger", "onOpen", "onClose", "onOk", "onCancel", "className"]);
61
63
  var openModal = function openModal() {
62
64
  setModalVisible(true);
63
65
  onOpen === null || onOpen === void 0 ? void 0 : onOpen();
@@ -94,7 +96,8 @@ var ButtonModal = function ButtonModal(props, ref) {
94
96
  onOk: handleModalOk,
95
97
  onCancel: handleModalCancel,
96
98
  centered: true,
97
- maskClosable: false
99
+ maskClosable: false,
100
+ closeIcon: /*#__PURE__*/React.createElement(CloseOutlined, null)
98
101
  }, restModalProps), isFunction(children) ? children(modalActionRef.current) : /*#__PURE__*/React.cloneElement(children, {
99
102
  modalAction: modalActionRef.current
100
103
  })));
@@ -10,7 +10,8 @@
10
10
  width: 100%;
11
11
  height: 100%;
12
12
 
13
- .@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input) .@{ant-prefix}-select-selector {
13
+ .@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input)
14
+ .@{ant-prefix}-select-selector {
14
15
  height: 45px;
15
16
  border: 1px solid #e5e5e5;
16
17
  border-radius: @border-radius-base;
@@ -90,6 +90,7 @@ Object.defineProperty(exports, "__esModule", {
90
90
  var React = __importStar(require("react"));
91
91
  var isFunction_1 = __importDefault(require("lodash/isFunction"));
92
92
  var modal_1 = __importDefault(require("antd/lib/modal"));
93
+ var CloseOutlined_1 = __importDefault(require("a-icons/lib/CloseOutlined"));
93
94
  var ButtonModal = function ButtonModal(props, ref) {
94
95
  var _a = __read(React.useState(false), 2),
95
96
  visible = _a[0],
@@ -100,7 +101,8 @@ var ButtonModal = function ButtonModal(props, ref) {
100
101
  onClose = props.onClose,
101
102
  onOk = props.onOk,
102
103
  onCancel = props.onCancel,
103
- restModalProps = __rest(props, ["children", "trigger", "onOpen", "onClose", "onOk", "onCancel"]);
104
+ className = props.className,
105
+ restModalProps = __rest(props, ["children", "trigger", "onOpen", "onClose", "onOk", "onCancel", "className"]);
104
106
  var openModal = function openModal() {
105
107
  setModalVisible(true);
106
108
  onOpen === null || onOpen === void 0 ? void 0 : onOpen();
@@ -137,7 +139,8 @@ var ButtonModal = function ButtonModal(props, ref) {
137
139
  onOk: handleModalOk,
138
140
  onCancel: handleModalCancel,
139
141
  centered: true,
140
- maskClosable: false
142
+ maskClosable: false,
143
+ closeIcon: React.createElement(CloseOutlined_1["default"], null)
141
144
  }, restModalProps), (0, isFunction_1["default"])(children) ? children(modalActionRef.current) : React.cloneElement(children, {
142
145
  modalAction: modalActionRef.current
143
146
  })));
@@ -10,7 +10,8 @@
10
10
  width: 100%;
11
11
  height: 100%;
12
12
 
13
- .@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input) .@{ant-prefix}-select-selector {
13
+ .@{ant-prefix}-select:not(.@{ant-prefix}-select-customize-input)
14
+ .@{ant-prefix}-select-selector {
14
15
  height: 45px;
15
16
  border: 1px solid #e5e5e5;
16
17
  border-radius: @border-radius-base;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "3.1.10",
3
+ "version": "3.1.12",
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": "857d6b3cbe2a5edbe94f168f12b2a49b76a48790"
83
+ "gitHead": "efd022f8320aef24b08747da6c11b4f28fbfc45c"
84
84
  }