Skip to content

Commit

Permalink
fix(projects): 修复打包构建时图标错误
Browse files Browse the repository at this point in the history
  • Loading branch information
honghuangdc committed Nov 24, 2021
1 parent 8ce627a commit 93f9aa9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions src/components/custom/BetterScroll/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,15 @@ import { useElementSize } from '@vueuse/core';
interface Props {
/** better-scroll的配置: https://better-scroll.github.io/docs/zh-CN/guide/base-scroll-options.html */
options?: Options;
options: Options;
}
const props = withDefaults(defineProps<Props>(), {
options: undefined
});
const props = defineProps<Props>();
const scrollbar = ref<HTMLElement | null>(null);
const bsInstance = ref<BScroll | null>(null);
const scrollbarContent = ref<HTMLElement | null>(null);
const isScrollY = computed(() => Boolean(props.options?.scrollY));
const isScrollY = computed(() => Boolean(props.options.scrollY));
function initBetterScroll() {
bsInstance.value = new BScroll(scrollbar.value!, props.options);
Expand Down
4 changes: 2 additions & 2 deletions src/components/custom/IconClose/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
@mouseleave="setFalse"
>
<transition name="transition-opacity">
<icon-carbon-close-filled v-if="isHover" key="hover" class="absolute" />
<icon-carbon-close v-else key="unhover" class="absolute" />
<icon-mdi:close-circle v-if="isHover" key="hover" class="absolute" />
<icon-mdi:close v-else key="unhover" class="absolute" />
</transition>
</div>
</template>
Expand Down

1 comment on commit 93f9aa9

@vercel
Copy link

@vercel vercel bot commented on 93f9aa9 Nov 25, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.