Skip to content

Commit f1e817a

Browse files
committed
chore: use @/common alias
1 parent f5c4082 commit f1e817a

File tree

22 files changed

+57
-57
lines changed

22 files changed

+57
-57
lines changed

packages/theme-generator/src/Generator.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
syncModeToGenerator,
1818
syncThemeToIframe,
1919
themeStore,
20-
} from './common/themes';
20+
} from '@/common/themes';
2121
2222
import FloatDock from './float-dock';
2323
import PanelDrawer from './panel-drawer';

packages/theme-generator/src/color-panel/components/ColorCollapse/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,9 @@ import { Edit1Icon, FileCopyIcon } from 'tdesign-icons-vue';
8181
import { Popup as TPopup } from 'tdesign-vue';
8282
import ArrowIcon from 'tdesign-vue/es/common-components/fake-arrow';
8383
84-
import { ColorPicker } from '../../../common/components';
85-
import { langMixin } from '../../../common/i18n';
86-
import { collapseAnimation, handleAttach } from '../../../common/utils';
84+
import { ColorPicker } from '@/common/components';
85+
import { langMixin } from '@/common/i18n';
86+
import { collapseAnimation, handleAttach } from '@/common/utils';
8787
8888
export default {
8989
name: 'ColorCollapse',

packages/theme-generator/src/color-panel/components/ColorColumn/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,10 @@
8484
import { Edit1Icon, ErrorCircleIcon, LinkUnlinkIcon } from 'tdesign-icons-vue';
8585
import { Popup as TPopup } from 'tdesign-vue';
8686
87-
import { ColorPicker } from '../../../common/components';
88-
import { langMixin } from '../../../common/i18n';
89-
import { getTokenFromLocal } from '../../../common/themes';
90-
import { getTokenValue, handleAttach } from '../../../common/utils';
87+
import { ColorPicker } from '@/common/components';
88+
import { langMixin } from '@/common/i18n';
89+
import { getTokenFromLocal } from '@/common/themes';
90+
import { getTokenValue, handleAttach } from '@/common/utils';
9191
9292
export default {
9393
name: 'ColorColumn',

packages/theme-generator/src/color-panel/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,8 @@ import {
325325
Tooltip as TTooltip,
326326
} from 'tdesign-vue';
327327
328-
import { ColorPicker } from '../common/components';
329-
import { langMixin } from '../common/i18n';
328+
import { ColorPicker } from '@/common/components';
329+
import { langMixin } from '@/common/i18n';
330330
import {
331331
collectTokenIndexes,
332332
convertFromHex,
@@ -341,8 +341,8 @@ import {
341341
updateLocalOption,
342342
updateLocalToken,
343343
updateStyleSheetColor,
344-
} from '../common/themes';
345-
import { colorAnimation, getThemeMode, getTokenValue, handleAttach, setUpModeObserver } from '../common/utils';
344+
} from '@/common/themes';
345+
import { colorAnimation, getThemeMode, getTokenValue, handleAttach, setUpModeObserver } from '@/common/utils';
346346
347347
import { FUNCTION_TOKENS } from './built-in/color-map';
348348
import { ALL_PRESET_COLORS, DEFAULT_COLORS, RECOMMEND_COLORS, SCENE_COLORS } from './built-in/color-preset';

packages/theme-generator/src/common/components/SegmentSelection/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@
4343
<script>
4444
import { Select as TSelect, Slider as TSlider } from 'tdesign-vue';
4545
46-
import { langMixin } from '../../../common/i18n';
47-
import { handleAttach } from '../../../common/utils';
46+
import { langMixin } from '@/common/i18n';
47+
import { handleAttach } from '@/common/utils';
4848
4949
export default {
5050
name: 'SegmentSelection',

packages/theme-generator/src/common/components/SizeSlider/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
</div>
2626
</template>
2727
<script>
28+
import { handleAttach } from '@/common/utils';
2829
import { InputNumber as TInputNumber, Slider as TSlider } from 'tdesign-vue';
29-
import { handleAttach } from '../../../common/utils';
3030
3131
export default {
3232
name: 'SizeSlider',

packages/theme-generator/src/float-dock/components/RecommendThemes/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
</template>
3636

3737
<script>
38-
import { langMixin } from '../../../common/i18n';
39-
import { getRecommendThemes, themeStore } from '../../../common/themes';
38+
import { langMixin } from '@/common/i18n';
39+
import { getRecommendThemes, themeStore } from '@/common/themes';
4040
4141
import PickedSvg from './PickedSvg.vue';
4242

packages/theme-generator/src/float-dock/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,9 @@
104104
<script>
105105
import { MessagePlugin, Button as TButton, Popconfirm as TPopconfirm, Popup as TPopup } from 'tdesign-vue';
106106
107-
import { langMixin } from '../common/i18n';
108-
import { exportCustomStyleSheet, themeStore } from '../common/themes';
109-
import { handleAttach } from '../common/utils';
107+
import { langMixin } from '@/common/i18n';
108+
import { exportCustomStyleSheet, themeStore } from '@/common/themes';
109+
import { handleAttach } from '@/common/utils';
110110
111111
import RecommendThemes from './components/RecommendThemes';
112112

packages/theme-generator/src/font-panel/built-in/line-height-map.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { modifyToken } from '../../common/themes';
2-
import { getTokenValue } from '../../common/utils';
1+
import { modifyToken } from '@/common/themes';
2+
import { getTokenValue } from '@/common/utils';
33

44
export const LINE_HEIGHT_STEPS = {
55
1: 2,

packages/theme-generator/src/font-panel/components/FontColorAdjust.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@ import flatten from 'lodash/flatten';
7272
import { Edit1Icon } from 'tdesign-icons-vue';
7373
import { Popup as TPopup, RadioButton as TRadioButton, RadioGroup as TRadioGroup } from 'tdesign-vue';
7474
75-
import { ColorPicker } from '../../common/components';
76-
import { langMixin } from '../../common/i18n';
77-
import { handleAttach } from '../../common/utils';
75+
import { ColorPicker } from '@/common/components';
76+
import { langMixin } from '@/common/i18n';
77+
import { handleAttach } from '@/common/utils';
7878
7979
export default {
8080
name: 'FontColorAdjust',

0 commit comments

Comments
 (0)