shineout 1.7.4 → 1.7.5

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.
@@ -368,7 +368,7 @@ export interface FormFieldSetProps<Value> {
368
368
  *
369
369
  * default:
370
370
  */
371
- defaultValue?: string | number;
371
+ defaultValue?: Value;
372
372
 
373
373
  /**
374
374
  * content with empty
@@ -85,7 +85,10 @@ class Panel extends Component {
85
85
 
86
86
  if (!this.container) return
87
87
  if (this.container === getCommonContainer()) {
88
- this.container.removeChild(this.element)
88
+ // this.container.removeChild(this.element)
89
+ if (this.element && this.element.parentElement) {
90
+ this.element.parentElement.removeChild(this.element)
91
+ }
89
92
  } else {
90
93
  this.container.parentElement.removeChild(this.container)
91
94
  }
package/es/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import './styles/normalize.less'
3
3
  import * as utils from './utils'
4
4
 
5
- export default { utils, version: '1.7.4' }
5
+ export default { utils, version: '1.7.5' }
6
6
  export { utils }
7
7
  export { setLocale } from './locale'
8
8
  export { color, style } from './utils/expose'
package/es/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import './styles/normalize.less'
3
3
  import * as utils from './utils'
4
4
 
5
- export default { utils, version: '1.7.4' }
5
+ export default { utils, version: '1.7.5' }
6
6
  export { utils }
7
7
  export { setLocale } from './locale'
8
8
  export { color, style } from './utils/expose'
@@ -368,7 +368,7 @@ export interface FormFieldSetProps<Value> {
368
368
  *
369
369
  * default:
370
370
  */
371
- defaultValue?: string | number;
371
+ defaultValue?: Value;
372
372
 
373
373
  /**
374
374
  * content with empty
@@ -125,7 +125,10 @@ function (_Component) {
125
125
  if (!this.container) return;
126
126
 
127
127
  if (this.container === (0, _popContainer.default)()) {
128
- this.container.removeChild(this.element);
128
+ // this.container.removeChild(this.element)
129
+ if (this.element && this.element.parentElement) {
130
+ this.element.parentElement.removeChild(this.element);
131
+ }
129
132
  } else {
130
133
  this.container.parentElement.removeChild(this.container);
131
134
  }
package/lib/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  import './styles/normalize.less'
3
3
  import * as utils from './utils'
4
4
 
5
- export default { utils, version: '1.7.4' }
5
+ export default { utils, version: '1.7.5' }
6
6
  export { utils }
7
7
  export { setLocale } from './locale'
8
8
  export { color, style } from './utils/expose'
package/lib/index.js CHANGED
@@ -222,6 +222,6 @@ exports.Upload = _Upload.default;
222
222
  // Created by scripts/src-index.js.
223
223
  var _default = {
224
224
  utils: utils,
225
- version: '1.7.4'
225
+ version: '1.7.5'
226
226
  };
227
227
  exports.default = _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shineout",
3
- "version": "1.7.4",
3
+ "version": "1.7.5",
4
4
  "description": "Shein 前端组件库",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",