shineout 2.0.7-beta.1 → 2.0.7
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/Password.js +1 -1
- package/css/Message/index.d.ts +7 -7
- package/css/Message/messager.d.ts +1 -1
- package/css/Select/Select.js +5 -0
- package/css/index.js +1 -1
- package/dist/shineout.js +656 -469
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/es/Input/Password.js +1 -1
- package/es/Message/index.d.ts +7 -7
- package/es/Message/messager.d.ts +1 -1
- package/es/Select/Select.js +5 -0
- package/es/index.js +1 -1
- package/lib/Input/Password.js +1 -1
- package/lib/Message/index.d.ts +7 -7
- package/lib/Message/messager.d.ts +1 -1
- package/lib/Select/Select.js +5 -0
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/css/Input/Password.js
CHANGED
|
@@ -69,7 +69,7 @@ function (_PureComponent) {
|
|
|
69
69
|
value = _this$props2$value === void 0 ? DefaultValue.value : _this$props2$value,
|
|
70
70
|
others = (0, _objectWithoutPropertiesLoose2.default)(_this$props2, ["point", "value"]);
|
|
71
71
|
var transValue = Array.from({
|
|
72
|
-
length: value.length
|
|
72
|
+
length: (value || '').length
|
|
73
73
|
}, function () {
|
|
74
74
|
return point;
|
|
75
75
|
}).join('');
|
package/css/Message/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MessageOptions, PositionType } from './Props';
|
|
3
3
|
declare const _default: {
|
|
4
|
-
show: (content: import("react").ReactNode, duration?: number | undefined, options?: MessageOptions | undefined) => Promise<void>;
|
|
5
|
-
success: (content: import("react").ReactNode, duration?: number | undefined, options?: MessageOptions | undefined) => Promise<void>;
|
|
6
|
-
info: (content: import("react").ReactNode, duration?: number | undefined, options?: MessageOptions | undefined) => Promise<void>;
|
|
7
|
-
warn: (content: import("react").ReactNode, duration?: number | undefined, options?: MessageOptions | undefined) => Promise<void>;
|
|
8
|
-
warning: (content: import("react").ReactNode, duration?: number | undefined, options?: MessageOptions | undefined) => Promise<void>;
|
|
9
|
-
danger: (content: import("react").ReactNode, duration?: number | undefined, options?: MessageOptions | undefined) => Promise<void>;
|
|
10
|
-
error: (content: import("react").ReactNode, duration?: number | undefined, options?: MessageOptions | undefined) => Promise<void>;
|
|
4
|
+
show: (content: import("react").ReactNode, duration?: number | undefined, options?: MessageOptions | undefined) => Promise<() => void>;
|
|
5
|
+
success: (content: import("react").ReactNode, duration?: number | undefined, options?: MessageOptions | undefined) => Promise<() => void>;
|
|
6
|
+
info: (content: import("react").ReactNode, duration?: number | undefined, options?: MessageOptions | undefined) => Promise<() => void>;
|
|
7
|
+
warn: (content: import("react").ReactNode, duration?: number | undefined, options?: MessageOptions | undefined) => Promise<() => void>;
|
|
8
|
+
warning: (content: import("react").ReactNode, duration?: number | undefined, options?: MessageOptions | undefined) => Promise<() => void>;
|
|
9
|
+
danger: (content: import("react").ReactNode, duration?: number | undefined, options?: MessageOptions | undefined) => Promise<() => void>;
|
|
10
|
+
error: (content: import("react").ReactNode, duration?: number | undefined, options?: MessageOptions | undefined) => Promise<() => void>;
|
|
11
11
|
close: (key?: PositionType | undefined) => void;
|
|
12
12
|
setOptions: (options: MessageOptions) => void;
|
|
13
13
|
};
|
package/css/Select/Select.js
CHANGED
|
@@ -583,6 +583,11 @@ function (_PureComponent) {
|
|
|
583
583
|
hideCreateOption = _this$props10.hideCreateOption;
|
|
584
584
|
var hideCreate = onCreate && hideCreateOption;
|
|
585
585
|
|
|
586
|
+
if (onCreate && !hideCreateOption) {
|
|
587
|
+
// 创建选项的时候 选择第一个
|
|
588
|
+
if (this.optionList.handleHover) this.optionList.handleHover(0, true);
|
|
589
|
+
}
|
|
590
|
+
|
|
586
591
|
if (hideCreate) {
|
|
587
592
|
if (this.optionList.handleHover) this.optionList.handleHover(-1, true);
|
|
588
593
|
}
|