shineout 1.12.14 → 1.12.16-beta.0
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/Select/Select.js +5 -0
- package/css/index.d.ts +1 -1
- package/css/index.js +1 -1
- package/css/utils/expose.js +3 -1
- package/dist/shineout.js +650 -445
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/es/Select/Select.js +5 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/es/utils/expose.js +3 -1
- package/lib/Select/Select.js +5 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/utils/expose.js +3 -1
- package/package.json +1 -1
package/css/Select/Select.js
CHANGED
|
@@ -535,6 +535,11 @@ function (_PureComponent) {
|
|
|
535
535
|
hideCreateOption = _this$props10.hideCreateOption;
|
|
536
536
|
var hideCreate = onCreate && hideCreateOption;
|
|
537
537
|
|
|
538
|
+
if (onCreate && !hideCreateOption) {
|
|
539
|
+
// 创建选项的时候 选择第一个
|
|
540
|
+
if (this.optionList.handleHover) this.optionList.handleHover(0, true);
|
|
541
|
+
}
|
|
542
|
+
|
|
538
543
|
if (hideCreate) {
|
|
539
544
|
this.optionList.handleHover(-1, true);
|
|
540
545
|
}
|
package/css/index.d.ts
CHANGED
package/css/index.js
CHANGED
package/css/utils/expose.js
CHANGED
|
@@ -101,7 +101,9 @@ function setStyle(options, custom, config) {
|
|
|
101
101
|
if (config.injectType === 'tag') {
|
|
102
102
|
var id = (0, _varsInject.injectTag)(custom);
|
|
103
103
|
return function () {
|
|
104
|
-
document.getElementById(id)
|
|
104
|
+
if (document.getElementById(id)) {
|
|
105
|
+
document.getElementById(id).remove();
|
|
106
|
+
}
|
|
105
107
|
};
|
|
106
108
|
}
|
|
107
109
|
|