refactor:移除 src,统一小写

pull/75/MERGE
YunaiV 2025-04-18 18:38:34 +08:00
parent 87c6074e19
commit 7078e979fe
6 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,5 @@
<script setup lang="ts">
// TODO @ src
import { computed, defineProps } from 'vue'
import { Tag } from 'ant-design-vue'
// import { isHexColor } from '@/utils/color' // TODO @ cssClass https://gitee.com/yudaocode/yudao-ui-admin-vben/blob/v2.4.1/src/components/DictTag/src/DictTag.vue#L60
@ -27,7 +28,7 @@ const dictTag = computed(() => {
if (!props.type || props.value === undefined || props.value === null) {
return null
}
//
const dict = getDictObj(props.type, String(props.value))
if (!dict) {
@ -45,7 +46,7 @@ const dictTag = computed(() => {
} else if (!colorType) {
colorType = 'default'
}
return {
label: dict.label || '',
colorType

View File

@ -1,3 +1,3 @@
import DictTag from './src/DictTag.vue'
import DictTag from './dict-tag.vue'
export { DictTag }

View File

@ -1,4 +1,5 @@
<script lang="ts" setup>
// TODO @ src
import { computed } from 'vue';
import { Alert, Typography } from 'ant-design-vue';

View File

@ -1,3 +1,3 @@
import DocAlert from './src/DocAlert.vue'
import DocAlert from './doc-alert.vue'
export { DocAlert }

View File

@ -1,4 +1,5 @@
<script setup lang="ts">
// TODO @ src
import { onMounted, ref } from 'vue'
interface IFrameProps {

View File

@ -1,3 +1,3 @@
import IFrame from './src/IFrame.vue'
import IFrame from './iframe.vue'
export { IFrame }