refactor:移除 src,统一小写
parent
87c6074e19
commit
7078e979fe
|
@ -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
|
|
@ -1,3 +1,3 @@
|
|||
import DictTag from './src/DictTag.vue'
|
||||
import DictTag from './dict-tag.vue'
|
||||
|
||||
export { DictTag }
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<script lang="ts" setup>
|
||||
// TODO @芋艿:貌似不用 src 目录
|
||||
import { computed } from 'vue';
|
||||
import { Alert, Typography } from 'ant-design-vue';
|
||||
|
|
@ -1,3 +1,3 @@
|
|||
import DocAlert from './src/DocAlert.vue'
|
||||
import DocAlert from './doc-alert.vue'
|
||||
|
||||
export { DocAlert }
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
// TODO @芋艿:貌似不用 src 目录
|
||||
import { onMounted, ref } from 'vue'
|
||||
|
||||
interface IFrameProps {
|
|
@ -1,3 +1,3 @@
|
|||
import IFrame from './src/IFrame.vue'
|
||||
import IFrame from './iframe.vue'
|
||||
|
||||
export { IFrame }
|
||||
|
|
Loading…
Reference in New Issue