fix(table): typo (#2463)

* fix(table): typo

* fix: indent of package.json
pull/1773/head
易良 2020-06-22 16:44:39 +08:00 committed by GitHub
parent 6c71de6e70
commit d6cdd2ea85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 220 additions and 222 deletions

View File

@ -7,4 +7,3 @@ es/
lib/
_site/
dist/
package.json

View File

@ -1,5 +1,4 @@
**/*.svg
package.json
lib/
es/
dist/

View File

@ -84,7 +84,7 @@ const responsiveObserve = {
};
this.dispatch(pointMap);
},
// Keep a empty destory to avoid triggering unmatch when unregister
// Keep a empty destroy to avoid triggering unmatch when unregister
destroy() {},
}),
);

View File

@ -11,7 +11,7 @@ function getDisplayName(WrappedComponent) {
const defaultMapStateToProps = () => ({});
export default function connect(mapStateToProps) {
const shouldSubscribe = !!mapStateToProps;
const finnalMapStateToProps = mapStateToProps || defaultMapStateToProps;
const finalMapStateToProps = mapStateToProps || defaultMapStateToProps;
return function wrapWithConnect(WrappedComponent) {
const tempProps = omit(WrappedComponent.props || {}, ['store']);
const props = {
@ -30,13 +30,13 @@ export default function connect(mapStateToProps) {
this.store = this.storeContext.store;
this.preProps = omit(getOptionProps(this), ['__propsSymbol__']);
return {
subscribed: finnalMapStateToProps(this.store.getState(), this.$props),
subscribed: finalMapStateToProps(this.store.getState(), this.$props),
};
},
watch: {
__propsSymbol__() {
if (mapStateToProps && mapStateToProps.length === 2) {
this.subscribed = finnalMapStateToProps(this.store.getState(), this.$props);
this.subscribed = finalMapStateToProps(this.store.getState(), this.$props);
}
},
},
@ -53,7 +53,7 @@ export default function connect(mapStateToProps) {
return;
}
const props = omit(getOptionProps(this), ['__propsSymbol__']);
const nextSubscribed = finnalMapStateToProps(this.store.getState(), props);
const nextSubscribed = finalMapStateToProps(this.store.getState(), props);
if (
!shallowEqual(this.preProps, props) ||
!shallowEqual(this.subscribed, nextSubscribed)

View File

@ -54,7 +54,7 @@ export default {
const attributeName = this.getAttributeName();
node.removeAttribute(attributeName);
node.setAttribute(attributeName, 'true');
// Not white or transparnt or grey
// Not white or transparent or grey
styleForPesudo = styleForPesudo || document.createElement('style');
if (
waveColor &&