Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: aliases are not used inside components #1394

Merged
merged 1 commit into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading