shineout 1.12.7 → 1.12.8

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/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.7'
6
+ version: '1.12.8'
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.7'
227
+ version: '1.12.8'
228
228
  };
229
229
  exports.default = _default;
@@ -66,7 +66,10 @@ function resetTheme() {
66
66
 
67
67
  function setStyle(options, custom, config) {
68
68
  if (config === void 0) {
69
- config = {};
69
+ config = {
70
+ injectType: 'body',
71
+ target: 'body'
72
+ };
70
73
  }
71
74
 
72
75
  (0, _varsInject.setThemeConfig)(config);
@@ -72,6 +72,7 @@ function getInjectType() {
72
72
  }
73
73
 
74
74
  function setInjectType(type) {
75
+ console.error("[shineout:] setInjectType is not support; please use setStyle(your_theme_config, your_custom_config, {injectType: " + type + ")");
75
76
  config.injectType = type;
76
77
  }
77
78