mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore: sort imports
This commit is contained in:
parent
77756f30e6
commit
bb53c3c758
@ -1,7 +1,12 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { emit, inherit } from '../utils/functional';
|
import { emit, inherit } from '../utils/functional';
|
||||||
import { BORDER_TOP } from '../utils/constant';
|
import { BORDER_TOP } from '../utils/constant';
|
||||||
|
|
||||||
|
// Mixins
|
||||||
import { popupMixinProps } from '../mixins/popup';
|
import { popupMixinProps } from '../mixins/popup';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
import Popup from '../popup';
|
import Popup from '../popup';
|
||||||
import Loading from '../loading';
|
import Loading from '../loading';
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { isAndroid } from '../utils/validate/system';
|
import { isAndroid } from '../utils/validate/system';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Cell from '../cell';
|
import Cell from '../cell';
|
||||||
import Field from '../field';
|
import Field from '../field';
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, isObj } from '../utils';
|
import { createNamespace, isObj } from '../utils';
|
||||||
import { isMobile } from '../utils/validate/mobile';
|
import { isMobile } from '../utils/validate/mobile';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Area from '../area';
|
import Area from '../area';
|
||||||
import Field from '../field';
|
import Field from '../field';
|
||||||
import Popup from '../popup';
|
import Popup from '../popup';
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { emit, inherit } from '../utils/functional';
|
import { emit, inherit } from '../utils/functional';
|
||||||
|
|
||||||
|
// Components
|
||||||
|
import Tag from '../tag';
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
import Cell from '../cell';
|
import Cell from '../cell';
|
||||||
import Radio from '../radio';
|
import Radio from '../radio';
|
||||||
import Tag from '../tag';
|
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
import { CreateElement, RenderContext } from 'vue/types';
|
import { CreateElement, RenderContext } from 'vue/types';
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { emit, inherit } from '../utils/functional';
|
import { emit, inherit } from '../utils/functional';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Button from '../button';
|
import Button from '../button';
|
||||||
import RadioGroup from '../radio-group';
|
import RadioGroup from '../radio-group';
|
||||||
import AddressItem, { AddressItemData } from './Item';
|
import AddressItem, { AddressItemData } from './Item';
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { emit, inherit } from '../utils/functional';
|
import { emit, inherit } from '../utils/functional';
|
||||||
import { BORDER_SURROUND, WHITE } from '../utils/constant';
|
import { BORDER_SURROUND, WHITE } from '../utils/constant';
|
||||||
import { routeProps, RouteProps, functionalRoute } from '../utils/router';
|
import { routeProps, RouteProps, functionalRoute } from '../utils/router';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
import Loading, { LoadingType } from '../loading';
|
import Loading, { LoadingType } from '../loading';
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Utils
|
||||||
import { isDate } from '../utils/validate/date';
|
import { isDate } from '../utils/validate/date';
|
||||||
import { getScrollTop } from '../utils/dom/scroll';
|
import { getScrollTop } from '../utils/dom/scroll';
|
||||||
import {
|
import {
|
||||||
@ -11,6 +12,7 @@ import {
|
|||||||
ROW_HEIGHT,
|
ROW_HEIGHT,
|
||||||
} from './utils';
|
} from './utils';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Popup from '../popup';
|
import Popup from '../popup';
|
||||||
import Button from '../button';
|
import Button from '../button';
|
||||||
import Toast from '../toast';
|
import Toast from '../toast';
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, isDef } from '../utils';
|
import { createNamespace, isDef } from '../utils';
|
||||||
import { emit, inherit } from '../utils/functional';
|
import { emit, inherit } from '../utils/functional';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Tag from '../tag';
|
import Tag from '../tag';
|
||||||
import Image from '../image';
|
import Image from '../image';
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { inherit } from '../utils/functional';
|
import { inherit } from '../utils/functional';
|
||||||
import { BORDER_TOP_BOTTOM } from '../utils/constant';
|
import { BORDER_TOP_BOTTOM } from '../utils/constant';
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, isDef } from '../utils';
|
import { createNamespace, isDef } from '../utils';
|
||||||
import { cellProps, SharedCellProps } from './shared';
|
|
||||||
import { emit, inherit } from '../utils/functional';
|
import { emit, inherit } from '../utils/functional';
|
||||||
import { routeProps, RouteProps, functionalRoute } from '../utils/router';
|
import { routeProps, RouteProps, functionalRoute } from '../utils/router';
|
||||||
|
import { cellProps, SharedCellProps } from './shared';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
|
@ -1,9 +1,14 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, isDef } from '../utils';
|
import { createNamespace, isDef } from '../utils';
|
||||||
import { BORDER_TOP } from '../utils/constant';
|
import { BORDER_TOP } from '../utils/constant';
|
||||||
import { raf, doubleRaf } from '../utils/dom/raf';
|
import { raf, doubleRaf } from '../utils/dom/raf';
|
||||||
|
|
||||||
|
// Mixins
|
||||||
|
import { ChildrenMixin } from '../mixins/relation';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Cell from '../cell';
|
import Cell from '../cell';
|
||||||
import { cellProps } from '../cell/shared';
|
import { cellProps } from '../cell/shared';
|
||||||
import { ChildrenMixin } from '../mixins/relation';
|
|
||||||
|
|
||||||
const [createComponent, bem] = createNamespace('collapse-item');
|
const [createComponent, bem] = createNamespace('collapse-item');
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { emit, inherit } from '../utils/functional';
|
import { emit, inherit } from '../utils/functional';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Cell from '../cell';
|
import Cell from '../cell';
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import Button from '../button';
|
import { isMobile } from '../utils/validate/mobile';
|
||||||
|
|
||||||
|
// Components
|
||||||
|
import Cell from '../cell';
|
||||||
import Field from '../field';
|
import Field from '../field';
|
||||||
|
import Button from '../button';
|
||||||
import Dialog from '../dialog';
|
import Dialog from '../dialog';
|
||||||
import Switch from '../switch';
|
import Switch from '../switch';
|
||||||
import Cell from '../cell';
|
|
||||||
import { isMobile } from '../utils/validate/mobile';
|
|
||||||
|
|
||||||
const [createComponent, bem, t] = createNamespace('contact-edit');
|
const [createComponent, bem, t] = createNamespace('contact-edit');
|
||||||
|
|
||||||
|
@ -1,16 +1,19 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { RED } from '../utils/constant';
|
import { RED } from '../utils/constant';
|
||||||
import { emit, inherit } from '../utils/functional';
|
import { emit, inherit } from '../utils/functional';
|
||||||
|
|
||||||
|
// Components
|
||||||
|
import Tag from '../tag';
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
import Cell from '../cell';
|
import Cell from '../cell';
|
||||||
import Tag from '../tag';
|
|
||||||
import Button from '../button';
|
|
||||||
import Radio from '../radio';
|
import Radio from '../radio';
|
||||||
|
import Button from '../button';
|
||||||
import RadioGroup from '../radio-group';
|
import RadioGroup from '../radio-group';
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
import { CreateElement, RenderContext, VNode } from 'vue/types';
|
|
||||||
import { DefaultSlots } from '../utils/types';
|
import { DefaultSlots } from '../utils/types';
|
||||||
|
import { CreateElement, RenderContext, VNode } from 'vue/types';
|
||||||
|
|
||||||
export type ContactListItem = {
|
export type ContactListItem = {
|
||||||
id: string | number;
|
id: string | number;
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { inherit } from '../utils/functional';
|
import { inherit } from '../utils/functional';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Cell from '../cell';
|
import Cell from '../cell';
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Tab from '../tab';
|
import Tab from '../tab';
|
||||||
import Tabs from '../tabs';
|
import Tabs from '../tabs';
|
||||||
import Field from '../field';
|
import Field from '../field';
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { inherit } from '../utils/functional';
|
import { inherit } from '../utils/functional';
|
||||||
|
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
|
import { on, off } from '../utils/dom/event';
|
||||||
|
|
||||||
|
// Mixins
|
||||||
import { PortalMixin } from '../mixins/portal';
|
import { PortalMixin } from '../mixins/portal';
|
||||||
import { ChildrenMixin } from '../mixins/relation';
|
import { ChildrenMixin } from '../mixins/relation';
|
||||||
import { on, off } from '../utils/dom/event';
|
|
||||||
|
// Components
|
||||||
import Cell from '../cell';
|
import Cell from '../cell';
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
import Popup from '../popup';
|
import Popup from '../popup';
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { BORDER_TOP_BOTTOM } from '../utils/constant';
|
import { BORDER_TOP_BOTTOM } from '../utils/constant';
|
||||||
|
import { getScroller } from '../utils/dom/scroll';
|
||||||
|
|
||||||
|
// Mixins
|
||||||
import { ParentMixin } from '../mixins/relation';
|
import { ParentMixin } from '../mixins/relation';
|
||||||
import { ClickOutsideMixin } from '../mixins/click-outside';
|
import { ClickOutsideMixin } from '../mixins/click-outside';
|
||||||
import { getScroller } from '../utils/dom/scroll';
|
|
||||||
|
|
||||||
const [createComponent, bem] = createNamespace('dropdown-menu');
|
const [createComponent, bem] = createNamespace('dropdown-menu');
|
||||||
|
|
||||||
|
@ -1,11 +1,14 @@
|
|||||||
|
// Utils
|
||||||
|
import { formatNumber } from './utils';
|
||||||
|
import { isIOS } from '../utils/validate/system';
|
||||||
|
import { preventDefault } from '../utils/dom/event';
|
||||||
|
import { resetScroll } from '../utils/dom/reset-scroll';
|
||||||
|
import { createNamespace, isObj, isDef, addUnit } from '../utils';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
import Cell from '../cell';
|
import Cell from '../cell';
|
||||||
import { cellProps } from '../cell/shared';
|
import { cellProps } from '../cell/shared';
|
||||||
import { preventDefault } from '../utils/dom/event';
|
|
||||||
import { resetScroll } from '../utils/dom/reset-scroll';
|
|
||||||
import { isIOS } from '../utils/validate/system';
|
|
||||||
import { formatNumber } from './utils';
|
|
||||||
import { createNamespace, isObj, isDef, addUnit } from '../utils';
|
|
||||||
|
|
||||||
const [createComponent, bem] = createNamespace('field');
|
const [createComponent, bem] = createNamespace('field');
|
||||||
|
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, addUnit } from '../utils';
|
import { createNamespace, addUnit } from '../utils';
|
||||||
import { BORDER } from '../utils/constant';
|
import { BORDER } from '../utils/constant';
|
||||||
import { ChildrenMixin } from '../mixins/relation';
|
|
||||||
import { route, routeProps } from '../utils/router';
|
import { route, routeProps } from '../utils/router';
|
||||||
|
|
||||||
|
// Mixins
|
||||||
|
import { ChildrenMixin } from '../mixins/relation';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Info from '../info';
|
import Info from '../info';
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { createNamespace, addUnit } from '../utils';
|
import { createNamespace, addUnit } from '../utils';
|
||||||
import { ParentMixin } from '../mixins/relation';
|
|
||||||
import { BORDER_TOP } from '../utils/constant';
|
import { BORDER_TOP } from '../utils/constant';
|
||||||
|
import { ParentMixin } from '../mixins/relation';
|
||||||
|
|
||||||
const [createComponent, bem] = createNamespace('grid');
|
const [createComponent, bem] = createNamespace('grid');
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, addUnit } from '../utils';
|
import { createNamespace, addUnit } from '../utils';
|
||||||
import { inherit } from '../utils/functional';
|
import { inherit } from '../utils/functional';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Info from '../info';
|
import Info from '../info';
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
|
@ -1,11 +1,16 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { range } from '../utils/format/number';
|
import { range } from '../utils/format/number';
|
||||||
import { on, preventDefault } from '../utils/dom/event';
|
import { on, preventDefault } from '../utils/dom/event';
|
||||||
|
|
||||||
|
// Mixins
|
||||||
import { PopupMixin } from '../mixins/popup';
|
import { PopupMixin } from '../mixins/popup';
|
||||||
import { TouchMixin } from '../mixins/touch';
|
import { TouchMixin } from '../mixins/touch';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Image from '../image';
|
import Image from '../image';
|
||||||
import Loading from '../loading';
|
|
||||||
import Swipe from '../swipe';
|
import Swipe from '../swipe';
|
||||||
|
import Loading from '../loading';
|
||||||
import SwipeItem from '../swipe-item';
|
import SwipeItem from '../swipe-item';
|
||||||
|
|
||||||
const [createComponent, bem] = createNamespace('image-preview');
|
const [createComponent, bem] = createNamespace('image-preview');
|
||||||
|
@ -1,18 +1,32 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../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 { GREEN } from '../utils/constant';
|
||||||
import { preventDefault } from '../utils/dom/event';
|
|
||||||
import { isHidden } from '../utils/dom/style';
|
import { isHidden } from '../utils/dom/style';
|
||||||
|
import { preventDefault } from '../utils/dom/event';
|
||||||
import {
|
import {
|
||||||
|
getScroller,
|
||||||
getScrollTop,
|
getScrollTop,
|
||||||
getElementTop,
|
getElementTop,
|
||||||
getRootScrollTop,
|
getRootScrollTop,
|
||||||
setRootScrollTop,
|
setRootScrollTop,
|
||||||
getScroller,
|
|
||||||
} from '../utils/dom/scroll';
|
} 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');
|
const [createComponent, bem] = createNamespace('index-bar');
|
||||||
|
|
||||||
export default createComponent({
|
export default createComponent({
|
||||||
@ -47,16 +61,7 @@ export default createComponent({
|
|||||||
},
|
},
|
||||||
indexList: {
|
indexList: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default() {
|
default: genAlphabet,
|
||||||
const indexList = [];
|
|
||||||
const charCodeOfA = 'A'.charCodeAt(0);
|
|
||||||
|
|
||||||
for (let i = 0; i < 26; i++) {
|
|
||||||
indexList.push(String.fromCharCode(charCodeOfA + i));
|
|
||||||
}
|
|
||||||
|
|
||||||
return indexList;
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, isDef } from '../utils';
|
import { createNamespace, isDef } from '../utils';
|
||||||
import { inherit } from '../utils/functional';
|
import { inherit } from '../utils/functional';
|
||||||
|
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { isHidden } from '../utils/dom/style';
|
import { isHidden } from '../utils/dom/style';
|
||||||
import { BindEventMixin } from '../mixins/bind-event';
|
|
||||||
import { getScroller } from '../utils/dom/scroll';
|
import { getScroller } from '../utils/dom/scroll';
|
||||||
|
|
||||||
|
// Mixins
|
||||||
|
import { BindEventMixin } from '../mixins/bind-event';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Loading from '../loading';
|
import Loading from '../loading';
|
||||||
|
|
||||||
const [createComponent, bem, t] = createNamespace('list');
|
const [createComponent, bem, t] = createNamespace('list');
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, addUnit } from '../utils';
|
import { createNamespace, addUnit } from '../utils';
|
||||||
import { inherit } from '../utils/functional';
|
import { inherit } from '../utils/functional';
|
||||||
|
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, noop } from '../utils';
|
import { createNamespace, noop } from '../utils';
|
||||||
import { inherit } from '../utils/functional';
|
import { inherit } from '../utils/functional';
|
||||||
import { BORDER_BOTTOM } from '../utils/constant';
|
import { BORDER_BOTTOM } from '../utils/constant';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { WHITE } from '../utils/constant';
|
import { WHITE } from '../utils/constant';
|
||||||
import { inherit } from '../utils/functional';
|
import { inherit } from '../utils/functional';
|
||||||
|
|
||||||
|
// Mixins
|
||||||
import { popupMixinProps } from '../mixins/popup';
|
import { popupMixinProps } from '../mixins/popup';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Popup from '../popup';
|
import Popup from '../popup';
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, isDef } from '../utils';
|
import { createNamespace, isDef } from '../utils';
|
||||||
import { inherit } from '../utils/functional';
|
import { inherit } from '../utils/functional';
|
||||||
import { preventDefault } from '../utils/dom/event';
|
import { preventDefault } from '../utils/dom/event';
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { inherit } from '../utils/functional';
|
import { inherit } from '../utils/functional';
|
||||||
import { BORDER_TOP } from '../utils/constant';
|
import { BORDER_TOP } from '../utils/constant';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Cell from '../cell';
|
import Cell from '../cell';
|
||||||
import CellGroup from '../cell-group';
|
import CellGroup from '../cell-group';
|
||||||
|
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, addUnit } from '../utils';
|
import { createNamespace, addUnit } from '../utils';
|
||||||
import { emit, inherit } from '../utils/functional';
|
import { emit, inherit } from '../utils/functional';
|
||||||
import { BORDER_LEFT, BORDER_SURROUND } from '../utils/constant';
|
import { BORDER_LEFT, BORDER_SURROUND } from '../utils/constant';
|
||||||
|
@ -1,8 +1,11 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { preventDefault } from '../utils/dom/event';
|
import { preventDefault } from '../utils/dom/event';
|
||||||
import { deepClone } from '../utils/deep-clone';
|
import { deepClone } from '../utils/deep-clone';
|
||||||
import { pickerProps } from './shared';
|
|
||||||
import { BORDER_TOP_BOTTOM, BORDER_UNSET_TOP_BOTTOM } from '../utils/constant';
|
import { BORDER_TOP_BOTTOM, BORDER_UNSET_TOP_BOTTOM } from '../utils/constant';
|
||||||
|
import { pickerProps } from './shared';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Loading from '../loading';
|
import Loading from '../loading';
|
||||||
import PickerColumn from './PickerColumn';
|
import PickerColumn from './PickerColumn';
|
||||||
|
|
||||||
|
@ -1,7 +1,12 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { preventDefault } from '../utils/dom/event';
|
import { preventDefault } from '../utils/dom/event';
|
||||||
import { TouchMixin } from '../mixins/touch';
|
|
||||||
import { getScrollTop, getScroller } from '../utils/dom/scroll';
|
import { getScrollTop, getScroller } from '../utils/dom/scroll';
|
||||||
|
|
||||||
|
// Mixins
|
||||||
|
import { TouchMixin } from '../mixins/touch';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Loading from '../loading';
|
import Loading from '../loading';
|
||||||
|
|
||||||
const [createComponent, bem, t] = createNamespace('pull-refresh');
|
const [createComponent, bem, t] = createNamespace('pull-refresh');
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { inherit, emit } from '../utils/functional';
|
import { inherit, emit } from '../utils/functional';
|
||||||
import { preventDefault } from '../utils/dom/event';
|
import { preventDefault } from '../utils/dom/event';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Field from '../field';
|
import Field from '../field';
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, addUnit } from '../utils';
|
import { createNamespace, addUnit } from '../utils';
|
||||||
import { inherit } from '../utils/functional';
|
import { inherit } from '../utils/functional';
|
||||||
|
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../../utils';
|
import { createNamespace } from '../../utils';
|
||||||
import { inherit } from '../../utils/functional';
|
import { inherit } from '../../utils/functional';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Button from '../../button';
|
import Button from '../../button';
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
import Vue, { CreateElement, RenderContext } from 'vue/types';
|
|
||||||
import { DefaultSlots } from '../../utils/types';
|
import { DefaultSlots } from '../../utils/types';
|
||||||
|
import Vue, { CreateElement, RenderContext } from 'vue/types';
|
||||||
|
|
||||||
export type SkuActionsProps = {
|
export type SkuActionsProps = {
|
||||||
buyText?: string;
|
buyText?: string;
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../../utils';
|
import { createNamespace } from '../../utils';
|
||||||
import { inherit } from '../../utils/functional';
|
import { inherit } from '../../utils/functional';
|
||||||
import { BORDER_BOTTOM } from '../../utils/constant';
|
import { BORDER_BOTTOM } from '../../utils/constant';
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../../utils';
|
import { createNamespace } from '../../utils';
|
||||||
import { inherit } from '../../utils/functional';
|
import { inherit } from '../../utils/functional';
|
||||||
|
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../../utils';
|
import { createNamespace } from '../../utils';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Icon from '../../icon';
|
import Icon from '../../icon';
|
||||||
import Loading from '../../loading';
|
import Loading from '../../loading';
|
||||||
import Uploader from '../../uploader';
|
import Uploader from '../../uploader';
|
||||||
|
@ -1,9 +1,12 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../../utils';
|
import { createNamespace } from '../../utils';
|
||||||
import Cell from '../../cell';
|
|
||||||
import CellGroup from '../../cell-group';
|
|
||||||
import Field from '../../field';
|
|
||||||
import { isEmail } from '../../utils/validate/email';
|
import { isEmail } from '../../utils/validate/email';
|
||||||
import { isNumeric } from '../../utils/validate/number';
|
import { isNumeric } from '../../utils/validate/number';
|
||||||
|
|
||||||
|
// Components
|
||||||
|
import Cell from '../../cell';
|
||||||
|
import Field from '../../field';
|
||||||
|
import CellGroup from '../../cell-group';
|
||||||
import SkuImgUploader from './SkuImgUploader';
|
import SkuImgUploader from './SkuImgUploader';
|
||||||
|
|
||||||
const [createComponent, bem, t] = createNamespace('sku-messages');
|
const [createComponent, bem, t] = createNamespace('sku-messages');
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../../utils';
|
import { createNamespace } from '../../utils';
|
||||||
import { inherit } from '../../utils/functional';
|
import { inherit } from '../../utils/functional';
|
||||||
import { BORDER_BOTTOM } from '../../utils/constant';
|
import { BORDER_BOTTOM } from '../../utils/constant';
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
import { createNamespace } from '../../utils';
|
import { createNamespace } from '../../utils';
|
||||||
import Stepper from '../../stepper';
|
|
||||||
import { LIMIT_TYPE } from '../constants';
|
import { LIMIT_TYPE } from '../constants';
|
||||||
|
import Stepper from '../../stepper';
|
||||||
|
|
||||||
const namespace = createNamespace('sku-stepper');
|
const namespace = createNamespace('sku-stepper');
|
||||||
const createComponent = namespace[0];
|
const createComponent = namespace[0];
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
|
// Utils
|
||||||
import lang from './lang';
|
import lang from './lang';
|
||||||
import Locale from '../locale';
|
import constants from './constants';
|
||||||
|
import skuHelper from './utils/skuHelper';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Sku from './Sku';
|
import Sku from './Sku';
|
||||||
|
import Locale from '../locale';
|
||||||
import SkuActions from './components/SkuActions';
|
import SkuActions from './components/SkuActions';
|
||||||
import SkuHeader from './components/SkuHeader';
|
import SkuHeader from './components/SkuHeader';
|
||||||
import SkuHeaderItem from './components/SkuHeaderItem';
|
import SkuHeaderItem from './components/SkuHeaderItem';
|
||||||
@ -9,8 +14,6 @@ import SkuStepper from './components/SkuStepper';
|
|||||||
import SkuRow from './components/SkuRow';
|
import SkuRow from './components/SkuRow';
|
||||||
import SkuRowItem from './components/SkuRowItem';
|
import SkuRowItem from './components/SkuRowItem';
|
||||||
import SkuRowPropItem from './components/SkuRowPropItem';
|
import SkuRowPropItem from './components/SkuRowPropItem';
|
||||||
import skuHelper from './utils/skuHelper';
|
|
||||||
import constants from './constants';
|
|
||||||
|
|
||||||
Locale.add(lang);
|
Locale.add(lang);
|
||||||
|
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { emit, inherit } from '../utils/functional';
|
import { emit, inherit } from '../utils/functional';
|
||||||
import Button, { ButtonType } from '../button';
|
|
||||||
|
// Components
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
|
import Button, { ButtonType } from '../button';
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
import { CreateElement, RenderContext } from 'vue/types';
|
import { CreateElement, RenderContext } from 'vue/types';
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { range } from '../utils/format/number';
|
import { range } from '../utils/format/number';
|
||||||
import { preventDefault } from '../utils/dom/event';
|
import { preventDefault } from '../utils/dom/event';
|
||||||
|
|
||||||
|
// Mixins
|
||||||
import { TouchMixin } from '../mixins/touch';
|
import { TouchMixin } from '../mixins/touch';
|
||||||
import { ClickOutsideMixin } from '../mixins/click-outside';
|
import { ClickOutsideMixin } from '../mixins/click-outside';
|
||||||
|
|
||||||
|
@ -1,10 +1,13 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { preventDefault } from '../utils/dom/event';
|
import { preventDefault } from '../utils/dom/event';
|
||||||
import { TouchMixin } from '../mixins/touch';
|
|
||||||
import { BindEventMixin } from '../mixins/bind-event';
|
|
||||||
import { doubleRaf } from '../utils/dom/raf';
|
import { doubleRaf } from '../utils/dom/raf';
|
||||||
import { range } from '../utils/format/number';
|
import { range } from '../utils/format/number';
|
||||||
|
|
||||||
|
// Mixins
|
||||||
|
import { TouchMixin } from '../mixins/touch';
|
||||||
|
import { BindEventMixin } from '../mixins/bind-event';
|
||||||
|
|
||||||
const [createComponent, bem] = createNamespace('swipe');
|
const [createComponent, bem] = createNamespace('swipe');
|
||||||
|
|
||||||
export default createComponent({
|
export default createComponent({
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { inherit } from '../utils/functional';
|
import { inherit } from '../utils/functional';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Cell from '../cell';
|
import Cell from '../cell';
|
||||||
import Switch, { SwitchEvents } from '../switch';
|
import Switch, { SwitchEvents } from '../switch';
|
||||||
import { switchProps, SharedSwitchProps } from '../switch/shared';
|
import { switchProps, SharedSwitchProps } from '../switch/shared';
|
||||||
|
@ -1,7 +1,10 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, addUnit } from '../utils';
|
import { createNamespace, addUnit } from '../utils';
|
||||||
import { BLUE } from '../utils/constant';
|
import { BLUE } from '../utils/constant';
|
||||||
import { switchProps, SharedSwitchProps } from './shared';
|
|
||||||
import { emit, inherit } from '../utils/functional';
|
import { emit, inherit } from '../utils/functional';
|
||||||
|
import { switchProps, SharedSwitchProps } from './shared';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Loading from '../loading';
|
import Loading from '../loading';
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
|
@ -1,8 +1,13 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, isObj, isDef } from '../utils';
|
import { createNamespace, isObj, isDef } from '../utils';
|
||||||
|
import { route, routeProps } from '../utils/router';
|
||||||
|
|
||||||
|
// Mixins
|
||||||
|
import { ChildrenMixin } from '../mixins/relation';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
import Info from '../info';
|
import Info from '../info';
|
||||||
import { route, routeProps } from '../utils/router';
|
|
||||||
import { ChildrenMixin } from '../mixins/relation';
|
|
||||||
|
|
||||||
const [createComponent, bem] = createNamespace('tabbar-item');
|
const [createComponent, bem] = createNamespace('tabbar-item');
|
||||||
|
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, isDef, addUnit } from '../utils';
|
import { createNamespace, isDef, addUnit } from '../utils';
|
||||||
import { scrollLeftTo, scrollTopTo } from './utils';
|
import { scrollLeftTo, scrollTopTo } from './utils';
|
||||||
import { route } from '../utils/router';
|
import { route } from '../utils/router';
|
||||||
import { isHidden } from '../utils/dom/style';
|
import { isHidden } from '../utils/dom/style';
|
||||||
import { on, off } from '../utils/dom/event';
|
import { on, off } from '../utils/dom/event';
|
||||||
import { ParentMixin } from '../mixins/relation';
|
|
||||||
import { BindEventMixin } from '../mixins/bind-event';
|
|
||||||
import { BORDER_TOP_BOTTOM } from '../utils/constant';
|
import { BORDER_TOP_BOTTOM } from '../utils/constant';
|
||||||
import {
|
import {
|
||||||
setRootScrollTop,
|
setRootScrollTop,
|
||||||
@ -13,9 +12,14 @@ import {
|
|||||||
getVisibleTop,
|
getVisibleTop,
|
||||||
} from '../utils/dom/scroll';
|
} from '../utils/dom/scroll';
|
||||||
|
|
||||||
|
// Mixins
|
||||||
|
import { ParentMixin } from '../mixins/relation';
|
||||||
|
import { BindEventMixin } from '../mixins/bind-event';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Title from './Title';
|
import Title from './Title';
|
||||||
import Content from './Content';
|
|
||||||
import Sticky from '../sticky';
|
import Sticky from '../sticky';
|
||||||
|
import Content from './Content';
|
||||||
|
|
||||||
const [createComponent, bem] = createNamespace('tabs');
|
const [createComponent, bem] = createNamespace('tabs');
|
||||||
|
|
||||||
|
@ -1,6 +1,9 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace } from '../utils';
|
import { createNamespace } from '../utils';
|
||||||
import { inherit, emit } from '../utils/functional';
|
import { inherit, emit } from '../utils/functional';
|
||||||
import { BORDER_SURROUND } from '../utils/constant';
|
import { BORDER_SURROUND } from '../utils/constant';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
|
|
||||||
// Types
|
// Types
|
||||||
|
@ -1,6 +1,11 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, isDef } from '../utils';
|
import { createNamespace, isDef } from '../utils';
|
||||||
import { PopupMixin } from '../mixins/popup';
|
|
||||||
import { lockClick } from './lock-click';
|
import { lockClick } from './lock-click';
|
||||||
|
|
||||||
|
// Mixins
|
||||||
|
import { PopupMixin } from '../mixins/popup';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
import Loading from '../loading';
|
import Loading from '../loading';
|
||||||
|
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, addUnit } from '../utils';
|
import { createNamespace, addUnit } from '../utils';
|
||||||
import { emit, inherit } from '../utils/functional';
|
import { emit, inherit } from '../utils/functional';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
import Sidebar from '../sidebar';
|
import Sidebar from '../sidebar';
|
||||||
import SidebarItem from '../sidebar-item';
|
import SidebarItem from '../sidebar-item';
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
|
// Utils
|
||||||
import { createNamespace, addUnit, noop } from '../utils';
|
import { createNamespace, addUnit, noop } from '../utils';
|
||||||
import { toArray, readFile, isOversize, isImageFile } from './utils';
|
import { toArray, readFile, isOversize, isImageFile } from './utils';
|
||||||
|
|
||||||
|
// Components
|
||||||
import Icon from '../icon';
|
import Icon from '../icon';
|
||||||
import Image from '../image';
|
import Image from '../image';
|
||||||
import ImagePreview from '../image-preview';
|
import ImagePreview from '../image-preview';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user