Skip to content

Commit

Permalink
fix(SwipeCell): disallow aliases in components (#690)
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao authored May 24, 2023
1 parent 5854287 commit 58934ef
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/shared/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export * from './useTouch';
export * from './useScrollParent';
export * from './useExpose';
export * from './useTest';
export * from './useClickAway';

/* directives */
export { default as Hover } from './hover';
3 changes: 1 addition & 2 deletions src/swipe-cell/swipe-cell.vue
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,10 @@ import {
import isFunction from 'lodash/isFunction';
import { isArray, isBoolean } from 'lodash';
import { useSwipe } from './useSwipe';
import { useClickAway } from '@/shared/useClickAway';
import props from './props';
import config from '../config';
import { SwipeActionItem } from './type';
import { renderContent, renderTNode, TNode, useEmitEvent } from '../shared';
import { renderContent, renderTNode, TNode, useEmitEvent, useClickAway } from '../shared';
import { useSureConfirm } from './useSureConfirm';
const { prefix } = config;
Expand Down
4 changes: 2 additions & 2 deletions src/swipe-cell/useSureConfirm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ import {
} from 'vue';
import { isFunction, isString } from 'lodash';
import { SwipeInitData } from './swipe-cell.vue';
import { renderTNode } from '@/shared';
import { renderTNode } from '../shared';
import { SwipeActionItem } from './type';
import { TNode } from '@/common';
import { TNode } from '../common';

// 二次确认
export function useSureConfirm(instance: ComponentInternalInstance | null, initData: SwipeInitData) {
Expand Down

0 comments on commit 58934ef

Please sign in to comment.