chore: 项目基线(基于 WeKnora 定制版,整理文件忽略规则)
This commit is contained in:
commit
9097ee699d
5769 files changed
+1446466
No files matched your search
@@ -0,0 +1,28 @@
|
||||
<template>
|
||||
<span class="artifact-file-icon" aria-hidden="true" v-html="iconSvg" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { computed } from 'vue'
|
||||
import { renderArtifactFileIcon } from '@/utils/artifactFileIcon'
|
||||
|
||||
const props = defineProps<{ fileName: string }>()
|
||||
const iconSvg = computed(() => renderArtifactFileIcon(props.fileName))
|
||||
</script>
|
||||
|
||||
<style scoped lang="less">
|
||||
@import '@/components/css/artifact-file-icon.less';
|
||||
|
||||
.artifact-file-icon {
|
||||
display: inline-flex;
|
||||
flex-shrink: 0;
|
||||
width: 32px;
|
||||
height: 38px;
|
||||
|
||||
:deep(.artifact-file-icon-svg) {
|
||||
.artifact-file-icon-style();
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in new issue
Block a user