Skip to content

Commit c18d82f

Browse files
committed
fix(projects): fix build [unocss]: build failed to load icon "close", fixed #319
1 parent 114c835 commit c18d82f

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

packages/materials/src/libs/page-tab/index.module.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
background-color: var(--soy-primary-color-opacity2);
2424
}
2525

26-
.button-tab .icon_close:hover {
26+
.button-tab .svg-close:hover {
2727
font-size: 12px;
2828
color: #ffffff;
2929
background-color: var(--soy-primary-color);
3030
}
3131

32-
.button-tab_dark .icon_close:hover {
32+
.button-tab_dark .svg-close:hover {
3333
color: #000000;
3434
}
3535

@@ -70,17 +70,17 @@
7070
color: var(--soy-primary-color2);
7171
}
7272

73-
.chrome-tab .icon_close:hover {
73+
.chrome-tab .svg-close:hover {
7474
font-size: 12px;
7575
color: #ffffff;
7676
background-color: #9ca3af;
7777
}
7878

79-
.chrome-tab_active .icon_close:hover {
79+
.chrome-tab_active .svg-close:hover {
8080
background-color: var(--soy-primary-color);
8181
}
8282

83-
.chrome-tab_dark .icon_close:hover {
83+
.chrome-tab_dark .svg-close:hover {
8484
color: #000000;
8585
}
8686

packages/materials/src/libs/page-tab/index.module.css.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ declare const styles: {
33
readonly 'button-tab_dark': string;
44
readonly 'button-tab_active': string;
55
readonly 'button-tab_active_dark': string;
6-
readonly icon_close: string;
76
readonly 'chrome-tab': string;
87
readonly 'chrome-tab_active': string;
98
readonly 'chrome-tab__bg': string;
109
readonly 'chrome-tab_active_dark': string;
1110
readonly 'chrome-tab_dark': string;
1211
readonly 'chrome-tab-divider': string;
12+
readonly 'svg-close': string;
1313
};
1414

1515
export default styles;

packages/materials/src/libs/page-tab/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import type { PageTabMode, PageTabProps } from '../../types';
55
import { ACTIVE_COLOR, createTabCssVars } from './shared';
66
import ChromeTab from './chrome-tab.vue';
77
import ButtonTab from './button-tab.vue';
8-
import SvgIconClose from './icon-close.vue';
8+
import SvgClose from './svg-close.vue';
99
import style from './index.module.css';
1010
1111
defineOptions({
@@ -88,7 +88,7 @@ function handleClose() {
8888
<slot></slot>
8989
<template #suffix>
9090
<slot name="suffix">
91-
<SvgIconClose v-if="closable" :class="[style['icon_close']]" @click="handleClose" />
91+
<SvgClose v-if="closable" :class="[style['svg-close']]" @click="handleClose" />
9292
</slot>
9393
</template>
9494
</component>

packages/materials/src/libs/page-tab/icon-close.vue renamed to packages/materials/src/libs/page-tab/svg-close.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
defineOptions({
3-
name: 'IconClose'
3+
name: 'SvgClose'
44
});
55
66
const emit = defineEmits<Emits>();

0 commit comments

Comments
 (0)