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.
@@ -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
@@ -3,7 +3,7 @@ import * as utils from './utils'
3
3
 
4
4
  declare const __default: {
5
5
  utils: typeof utils,
6
- version: '1.12.14'
6
+ version: '1.12.16-beta.0'
7
7
  }
8
8
 
9
9
  export default __default
package/css/index.js CHANGED
@@ -224,6 +224,6 @@ exports.Upload = _Upload.default;
224
224
  // Created by scripts/src-index.js.
225
225
  var _default = {
226
226
  utils: utils,
227
- version: '1.12.14'
227
+ version: '1.12.16-beta.0'
228
228
  };
229
229
  exports.default = _default;
@@ -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).remove();
104
+ if (document.getElementById(id)) {
105
+ document.getElementById(id).remove();
106
+ }
105
107
  };
106
108
  }
107
109