shineout 1.12.13 → 1.12.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.
- package/css/Input/Input.js +2 -1
- package/css/Tooltip/Container.js +4 -1
- package/css/index.d.ts +1 -1
- package/css/index.js +1 -1
- package/dist/shineout.js +557 -542
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/es/Input/Input.js +2 -1
- package/es/Tooltip/Container.js +3 -1
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/Input/Input.js +2 -1
- package/lib/Tooltip/Container.js +4 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/es/Input/Input.js
CHANGED
|
@@ -257,7 +257,8 @@ function (_PureComponent) {
|
|
|
257
257
|
clearToUndefined = _this$props7.clearToUndefined,
|
|
258
258
|
placeholder = _this$props7.placeholder,
|
|
259
259
|
coin = _this$props7.coin,
|
|
260
|
-
|
|
260
|
+
cancelBlurChange = _this$props7.cancelBlurChange,
|
|
261
|
+
other = _objectWithoutPropertiesLoose(_this$props7, ["type", "defaultValue", "digits", "className", "clearable", "htmlName", "forceChange", "onEnterPress", "forwardedRef", "innerTitle", "inputFocus", "clearToUndefined", "placeholder", "coin", "cancelBlurChange"]);
|
|
261
262
|
|
|
262
263
|
var value = this.props.value == null || this.props.value === undefined ? '' : this.props.value;
|
|
263
264
|
var needClearUndefined = clearToUndefined && this.props.value !== undefined;
|
package/es/Tooltip/Container.js
CHANGED
|
@@ -7,6 +7,7 @@ import { tooltipClass } from './styles';
|
|
|
7
7
|
import { scrollConsumer } from '../Scroll/context';
|
|
8
8
|
import { getUidStr } from '../utils/uid';
|
|
9
9
|
import { getPosition as _getPosition } from '../utils/dom/popover';
|
|
10
|
+
import getCommonContainer from '../utils/dom/popContainer';
|
|
10
11
|
export default function (options) {
|
|
11
12
|
var show = options.show,
|
|
12
13
|
hide = options.hide,
|
|
@@ -54,9 +55,10 @@ export default function (options) {
|
|
|
54
55
|
};
|
|
55
56
|
|
|
56
57
|
_proto.getPosition = function getPosition() {
|
|
58
|
+
var container = getCommonContainer();
|
|
57
59
|
var position = this.props.position;
|
|
58
60
|
var el = this.getElement();
|
|
59
|
-
return _getPosition(position, el);
|
|
61
|
+
return _getPosition(position, el, container);
|
|
60
62
|
};
|
|
61
63
|
|
|
62
64
|
_proto.elementRef = function elementRef(el) {
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
package/lib/Input/Input.js
CHANGED
|
@@ -276,7 +276,8 @@ function (_PureComponent) {
|
|
|
276
276
|
clearToUndefined = _this$props7.clearToUndefined,
|
|
277
277
|
placeholder = _this$props7.placeholder,
|
|
278
278
|
coin = _this$props7.coin,
|
|
279
|
-
|
|
279
|
+
cancelBlurChange = _this$props7.cancelBlurChange,
|
|
280
|
+
other = (0, _objectWithoutPropertiesLoose2.default)(_this$props7, ["type", "defaultValue", "digits", "className", "clearable", "htmlName", "forceChange", "onEnterPress", "forwardedRef", "innerTitle", "inputFocus", "clearToUndefined", "placeholder", "coin", "cancelBlurChange"]);
|
|
280
281
|
var value = this.props.value == null || this.props.value === undefined ? '' : this.props.value;
|
|
281
282
|
var needClearUndefined = clearToUndefined && this.props.value !== undefined;
|
|
282
283
|
var showClear = !other.disabled && clearable && (value !== '' || needClearUndefined);
|
package/lib/Tooltip/Container.js
CHANGED
|
@@ -25,6 +25,8 @@ var _uid = require("../utils/uid");
|
|
|
25
25
|
|
|
26
26
|
var _popover = require("../utils/dom/popover");
|
|
27
27
|
|
|
28
|
+
var _popContainer = _interopRequireDefault(require("../utils/dom/popContainer"));
|
|
29
|
+
|
|
28
30
|
function _default(options) {
|
|
29
31
|
var show = options.show,
|
|
30
32
|
hide = options.hide,
|
|
@@ -72,9 +74,10 @@ function _default(options) {
|
|
|
72
74
|
};
|
|
73
75
|
|
|
74
76
|
_proto.getPosition = function getPosition() {
|
|
77
|
+
var container = (0, _popContainer.default)();
|
|
75
78
|
var position = this.props.position;
|
|
76
79
|
var el = this.getElement();
|
|
77
|
-
return (0, _popover.getPosition)(position, el);
|
|
80
|
+
return (0, _popover.getPosition)(position, el, container);
|
|
78
81
|
};
|
|
79
82
|
|
|
80
83
|
_proto.elementRef = function elementRef(el) {
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED