Skip to content

Commit

Permalink
chore: aliases are not used inside components
Browse files Browse the repository at this point in the history
  • Loading branch information
anlyyao committed May 13, 2024
1 parent 0fe3c3e commit 5893e9e
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions src/drawer/drawer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import TPopup from '../popup';
import config from '../config';
import props from './props';
import { DrawerItem } from './type';
import { useTNodeJSX } from '@/hooks/tnode';
import { usePrefixClass } from '@/hooks/useClass';
import { useTNodeJSX } from '../hooks/tnode';
import { usePrefixClass } from '../hooks/useClass';

const { prefix } = config;
const name = `${prefix}-drawer`;
Expand Down
2 changes: 1 addition & 1 deletion src/empty/empty.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import TImage from '../image';
import EmptyProps from './props';
import config from '../config';

import { usePrefixClass } from '@/hooks/useClass';
import { usePrefixClass } from '../hooks/useClass';
import { useTNodeJSX } from '../hooks/tnode';

const { prefix } = config;
Expand Down
2 changes: 1 addition & 1 deletion src/guide/guide.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ import { GuideStep, TdGuideProps } from './type';
import { isFixed, getRelativePosition, getTargetElm, scrollToParentVisibleArea, scrollToElm } from './utils';
import { GuideCrossProps } from './interface';
import { useConfig } from '../config-provider/useConfig';
import { SizeEnum } from '@/common';
import { SizeEnum } from '../common';
const { prefix } = config;
const name = `${prefix}-guide`;
Expand Down
2 changes: 1 addition & 1 deletion src/guide/utils/dom.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import isString from 'lodash/isString';
import isFunction from 'lodash/isFunction';
import { AttachNode } from '@/common';
import { AttachNode } from '../../common';
import { elementInViewport, getWindowScroll, getWindowSize } from '../../shared/dom';
/**
* 获取元素某个 css 对应的值
Expand Down
4 changes: 2 additions & 2 deletions src/input/input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import InputProps from './props';
import { InputValue, TdInputProps } from './type';
import { getCharacterLength, useDefault, extendAPI } from '../shared';
import { useFormDisabled } from '../form/hooks';
import { usePrefixClass } from '@/hooks/useClass';
import { useTNodeJSX } from '@/hooks/tnode';
import { usePrefixClass } from '../hooks/useClass';
import { useTNodeJSX } from '../hooks/tnode';

const { prefix } = config;
const name = `${prefix}-input`;
Expand Down
4 changes: 2 additions & 2 deletions src/navbar/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { defineComponent, computed } from 'vue';
import { ChevronLeftIcon as TChevronLeftIcon } from 'tdesign-icons-vue-next';
import config from '../config';
import props from './props';
import { usePrefixClass } from '@/hooks/useClass';
import { useTNodeJSX } from '@/hooks/tnode';
import { usePrefixClass } from '../hooks/useClass';
import { useTNodeJSX } from '../hooks/tnode';

const { prefix } = config;
const name = `${prefix}-navbar`;
Expand Down
4 changes: 2 additions & 2 deletions src/steps/step-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { CloseIcon, CheckIcon } from 'tdesign-icons-vue-next';

import props from './step-item-props';
import config from '../config';
import { usePrefixClass } from '@/hooks/useClass';
import { useTNodeJSX } from '@/hooks/tnode';
import { usePrefixClass } from '../hooks/useClass';
import { useTNodeJSX } from '../hooks/tnode';

const { prefix } = config;
const name = `${prefix}-step-item`;
Expand Down
4 changes: 2 additions & 2 deletions src/steps/steps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import props from './props';
import config from '../config';
import { TdStepsProps } from './type';
import { useDefault } from '../shared';
import { useTNodeJSX } from '@/hooks/tnode';
import { usePrefixClass } from '@/hooks/useClass';
import { useTNodeJSX } from '../hooks/tnode';
import { usePrefixClass } from '../hooks/useClass';

const { prefix } = config;
const name = `${prefix}-steps`;
Expand Down
4 changes: 2 additions & 2 deletions src/sticky/sticky.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import { computed, defineComponent, ref, watch } from 'vue';
import { useElementBounding } from '@vueuse/core';
import StickyProps from './props';
import config from '../config';
import { usePrefixClass } from '@/hooks/useClass';
import { useTNodeJSX } from '@/hooks/tnode';
import { usePrefixClass } from '../hooks/useClass';
import { useTNodeJSX } from '../hooks/tnode';

const name = `${config.prefix}-sticky`;

Expand Down

0 comments on commit 5893e9e

Please sign in to comment.