assui 3.1.13 → 3.1.16
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 +1 -1
- package/es/button-drawer/index.js +3 -1
- package/es/button-modal/index.js +1 -2
- package/es/label-range-picker/style/index.css +3 -0
- package/es/label-range-picker/style/index.less +6 -0
- package/lib/button-drawer/index.js +3 -1
- package/lib/button-modal/index.js +1 -2
- package/lib/label-range-picker/style/index.css +3 -0
- package/lib/label-range-picker/style/index.less +6 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -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
|
})));
|
package/es/button-modal/index.js
CHANGED
|
@@ -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
|
-
|
|
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();
|
|
@@ -1263,6 +1263,9 @@ html {
|
|
|
1263
1263
|
border-color: #000;
|
|
1264
1264
|
box-shadow: none;
|
|
1265
1265
|
}
|
|
1266
|
+
.label-range-picker .ant-picker-range .ant-picker-clear {
|
|
1267
|
+
right: 15px;
|
|
1268
|
+
}
|
|
1266
1269
|
.label-range-picker .ant-picker-range-separator {
|
|
1267
1270
|
position: relative;
|
|
1268
1271
|
top: 8px;
|
|
@@ -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
|
-
|
|
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();
|
|
@@ -1263,6 +1263,9 @@ html {
|
|
|
1263
1263
|
border-color: #000;
|
|
1264
1264
|
box-shadow: none;
|
|
1265
1265
|
}
|
|
1266
|
+
.label-range-picker .ant-picker-range .ant-picker-clear {
|
|
1267
|
+
right: 15px;
|
|
1268
|
+
}
|
|
1266
1269
|
.label-range-picker .ant-picker-range-separator {
|
|
1267
1270
|
position: relative;
|
|
1268
1271
|
top: 8px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "assui",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.16",
|
|
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": "
|
|
83
|
+
"gitHead": "7a102c18c41a0d3e940d7f56e08882aca367ccbb"
|
|
84
84
|
}
|