assui 2.0.132 → 2.0.135

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.
@@ -8,7 +8,7 @@ export interface ButtonModalProps extends ModalProps {
8
8
  onClose?: () => void;
9
9
  onOpen?: () => void;
10
10
  trigger?: React.ReactElement;
11
- children: (v: ModalAction) => React.ReactElement | React.ReactElement;
11
+ children: ((v: ModalAction) => React.ReactElement) | React.ReactElement;
12
12
  }
13
13
  declare const ForwardRefButtonModal: React.ForwardRefExoticComponent<ButtonModalProps & React.RefAttributes<unknown>>;
14
14
  export default ForwardRefButtonModal;
@@ -44,7 +44,7 @@ var __read = this && this.__read || function (o, n) {
44
44
  import React from 'react';
45
45
  import useControllableValue from 'ahooks/lib/useControllableValue';
46
46
  import Select from 'antd/lib/select';
47
- import isUndefined from 'lodash/isUndefined';
47
+ import { isUndefined, isNull } from 'lodash';
48
48
  import classNames from 'classnames';
49
49
  import ArrowDropDownFilled from 'a-icons/lib/ArrowDropDownFilled';
50
50
  import omit from 'lodash/omit';
@@ -88,7 +88,7 @@ var LabelSelect = function LabelSelect(props) {
88
88
  return /*#__PURE__*/React.createElement("div", {
89
89
  className: classNames({
90
90
  'label-select': true,
91
- 'label-select-label-scale': open || !isUndefined(value)
91
+ 'label-select-label-scale': open || !isUndefined(value) && !isNull(value)
92
92
  }, className)
93
93
  }, /*#__PURE__*/React.createElement(Select, __assign({}, omit(props, ['open', 'onChange', 'className', 'label']), {
94
94
  open: open,
@@ -8,7 +8,7 @@ export interface ButtonModalProps extends ModalProps {
8
8
  onClose?: () => void;
9
9
  onOpen?: () => void;
10
10
  trigger?: React.ReactElement;
11
- children: (v: ModalAction) => React.ReactElement | React.ReactElement;
11
+ children: ((v: ModalAction) => React.ReactElement) | React.ReactElement;
12
12
  }
13
13
  declare const ForwardRefButtonModal: React.ForwardRefExoticComponent<ButtonModalProps & React.RefAttributes<unknown>>;
14
14
  export default ForwardRefButtonModal;
@@ -60,7 +60,7 @@ var useControllableValue_1 = __importDefault(require("ahooks/lib/useControllable
60
60
 
61
61
  var select_1 = __importDefault(require("antd/lib/select"));
62
62
 
63
- var isUndefined_1 = __importDefault(require("lodash/isUndefined"));
63
+ var lodash_1 = require("lodash");
64
64
 
65
65
  var classnames_1 = __importDefault(require("classnames"));
66
66
 
@@ -108,7 +108,7 @@ var LabelSelect = function LabelSelect(props) {
108
108
  return react_1["default"].createElement("div", {
109
109
  className: classnames_1["default"]({
110
110
  'label-select': true,
111
- 'label-select-label-scale': open || !isUndefined_1["default"](value)
111
+ 'label-select-label-scale': open || !lodash_1.isUndefined(value) && !lodash_1.isNull(value)
112
112
  }, className)
113
113
  }, react_1["default"].createElement(select_1["default"], __assign({}, omit_1["default"](props, ['open', 'onChange', 'className', 'label']), {
114
114
  open: open,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "2.0.132",
3
+ "version": "2.0.135",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -33,7 +33,7 @@
33
33
  "@ahooksjs/use-url-state": "^2.5.8",
34
34
  "@tinymce/tinymce-react": "^3.13.0",
35
35
  "@types/react-beautiful-dnd": "^13.1.2",
36
- "a-icons": "^1.0.58",
36
+ "a-icons": "^1.0.59",
37
37
  "ahooks": "^3.0.8",
38
38
  "bignumber.js": "^9.0.1",
39
39
  "copy-to-clipboard": "^3.3.1",
@@ -69,5 +69,5 @@
69
69
  "node": ">=10.0.0"
70
70
  },
71
71
  "license": "MIT",
72
- "gitHead": "b3a42ec046bc4a661b60c9b4b57d72ba1afe5fd6"
72
+ "gitHead": "9360c537a65ffb7e0523bd02990b7869d5d0beca"
73
73
  }