shineout 1.7.3 → 1.7.4

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.
@@ -123,7 +123,6 @@ class FieldSet extends Component {
123
123
  result.push(empty(this.handleInsert.bind(this, 0)))
124
124
  } else {
125
125
  const errorList = (Array.isArray(errors) ? errors : [errors]).filter(Boolean)
126
- console.log(errorList)
127
126
  values.forEach((v, i) => {
128
127
  result.push(
129
128
  <Provider key={i} value={{ path: `${name}[${i}]`, val: this.validate }}>
package/es/Menu/Root.js CHANGED
@@ -119,6 +119,9 @@ class Root extends React.Component {
119
119
  const { active } = this.props
120
120
  const act = typeof active === 'function' ? active(data) : id === this.state.activeKey
121
121
  if (act) this.state.activeKey = id
122
+ if (!act && this.state.activeKey === id) {
123
+ this.state.activeKey = ''
124
+ }
122
125
  return act
123
126
  }
124
127
 
@@ -16,6 +16,7 @@
16
16
  &-tip {
17
17
  margin: auto;
18
18
  text-align: center;
19
+ padding-top: 5px;
19
20
  }
20
21
  &-container {
21
22
  position: relative;
@@ -121,6 +121,7 @@ class SeperateTable extends PureComponent {
121
121
  const { offsetLeft, currentIndex } = this.state
122
122
  if (currentIndex === index && !oldHeight) {
123
123
  this.lastScrollTop += height - this.props.rowHeight
124
+ if (this.lastScrollTop < 0) this.lastScrollTop = 0
124
125
  setTranslate(this.tbody, `-${offsetLeft}px`, `-${this.lastScrollTop}px`)
125
126
  }
126
127
 
@@ -86,6 +86,7 @@
86
86
  margin-bottom: @padding-base-vertical;
87
87
  outline: none;
88
88
  white-space: pre-wrap;
89
+ cursor: text;
89
90
 
90
91
  &:after {
91
92
  content: '\feff ';
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.3' }
5
+ export default { utils, version: '1.7.4' }
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.3' }
5
+ export default { utils, version: '1.7.4' }
6
6
  export { utils }
7
7
  export { setLocale } from './locale'
8
8
  export { color, style } from './utils/expose'
@@ -193,7 +193,6 @@ function (_Component) {
193
193
  result.push(empty(this.handleInsert.bind(this, 0)));
194
194
  } else {
195
195
  var errorList = (Array.isArray(errors) ? errors : [errors]).filter(Boolean);
196
- console.log(errorList);
197
196
  values.forEach(function (v, i) {
198
197
  result.push(_react.default.createElement(Provider, {
199
198
  key: i,
package/lib/Menu/Root.js CHANGED
@@ -158,6 +158,11 @@ function (_React$Component) {
158
158
  var active = this.props.active;
159
159
  var act = typeof active === 'function' ? active(data) : id === this.state.activeKey;
160
160
  if (act) this.state.activeKey = id;
161
+
162
+ if (!act && this.state.activeKey === id) {
163
+ this.state.activeKey = '';
164
+ }
165
+
161
166
  return act;
162
167
  };
163
168
 
@@ -16,6 +16,7 @@
16
16
  &-tip {
17
17
  margin: auto;
18
18
  text-align: center;
19
+ padding-top: 5px;
19
20
  }
20
21
  &-container {
21
22
  position: relative;
@@ -187,6 +187,7 @@ function (_PureComponent) {
187
187
 
188
188
  if (currentIndex === index && !oldHeight) {
189
189
  this.lastScrollTop += height - this.props.rowHeight;
190
+ if (this.lastScrollTop < 0) this.lastScrollTop = 0;
190
191
  (0, _translate.setTranslate)(this.tbody, "-" + offsetLeft + "px", "-" + this.lastScrollTop + "px");
191
192
  }
192
193
 
@@ -86,6 +86,7 @@
86
86
  margin-bottom: @padding-base-vertical;
87
87
  outline: none;
88
88
  white-space: pre-wrap;
89
+ cursor: text;
89
90
 
90
91
  &:after {
91
92
  content: '\feff ';
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.3' }
5
+ export default { utils, version: '1.7.4' }
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.3'
225
+ version: '1.7.4'
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.3",
3
+ "version": "1.7.4",
4
4
  "description": "Shein 前端组件库",
5
5
  "main": "./lib/index.js",
6
6
  "typings": "./lib/index.d.ts",