chore: sort imports

This commit is contained in:
陈嘉涵
2020-01-19 19:29:30 +08:00
parent 77756f30e6
commit bb53c3c758
56 changed files with 219 additions and 55 deletions

View File

@@ -1,18 +1,32 @@
// Utils
import { createNamespace } from '../utils';
import { TouchMixin } from '../mixins/touch';
import { ParentMixin } from '../mixins/relation';
import { BindEventMixin } from '../mixins/bind-event';
import { GREEN } from '../utils/constant';
import { preventDefault } from '../utils/dom/event';
import { isHidden } from '../utils/dom/style';
import { preventDefault } from '../utils/dom/event';
import {
getScroller,
getScrollTop,
getElementTop,
getRootScrollTop,
setRootScrollTop,
getScroller,
} from '../utils/dom/scroll';
// Mixins
import { TouchMixin } from '../mixins/touch';
import { ParentMixin } from '../mixins/relation';
import { BindEventMixin } from '../mixins/bind-event';
function genAlphabet() {
const indexList = [];
const charCodeOfA = 'A'.charCodeAt(0);
for (let i = 0; i < 26; i++) {
indexList.push(String.fromCharCode(charCodeOfA + i));
}
return indexList;
}
const [createComponent, bem] = createNamespace('index-bar');
export default createComponent({
@@ -47,16 +61,7 @@ export default createComponent({
},
indexList: {
type: Array,
default() {
const indexList = [];
const charCodeOfA = 'A'.charCodeAt(0);
for (let i = 0; i < 26; i++) {
indexList.push(String.fromCharCode(charCodeOfA + i));
}
return indexList;
},
default: genAlphabet,
},
},