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.
- package/css/Form/FieldSet.js +0 -1
- package/css/Menu/Root.js +5 -0
- package/css/Spin/styles/spin.css +1 -0
- package/css/Table/SeperateTable.js +1 -0
- package/css/TreeSelect/styles/treeSelect.css +1 -0
- package/css/index.d.ts +1 -1
- package/css/index.js +1 -1
- package/dist/shineout.js +30 -25
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/theme.antd.css +1 -1
- package/dist/theme.antd2.css +1 -1
- package/dist/theme.default.css +1 -1
- package/dist/theme.shineout.css +1 -1
- package/es/Form/FieldSet.js +0 -1
- package/es/Menu/Root.js +3 -0
- package/es/Spin/styles/spin.less +1 -0
- package/es/Table/SeperateTable.js +1 -0
- package/es/TreeSelect/styles/treeSelect.less +1 -0
- package/es/index.d.ts +1 -1
- package/es/index.js +1 -1
- package/lib/Form/FieldSet.js +0 -1
- package/lib/Menu/Root.js +5 -0
- package/lib/Spin/styles/spin.less +1 -0
- package/lib/Table/SeperateTable.js +1 -0
- package/lib/TreeSelect/styles/treeSelect.less +1 -0
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/es/Form/FieldSet.js
CHANGED
|
@@ -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
|
|
package/es/Spin/styles/spin.less
CHANGED
|
@@ -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
|
|
package/es/index.d.ts
CHANGED
package/es/index.js
CHANGED
package/lib/Form/FieldSet.js
CHANGED
|
@@ -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
|
|
|
@@ -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
|
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED