refactor: 前端统一使用prettier格式化&枚举值统一管理

This commit is contained in:
meilin.huang
2023-07-06 20:59:22 +08:00
parent f25bdb07ce
commit 5463ae9d7e
125 changed files with 3932 additions and 3735 deletions

View File

@@ -35,7 +35,7 @@ const props = defineProps({
isEle: {
type: Boolean,
default: true,
}
},
});
// 在线链接、本地引入地址前缀
@@ -48,7 +48,7 @@ const getIconName = computed(() => {
// 用于判断 element plus 自带 svg 图标的显示、隐藏。不存在 空格分隔的icon name即为element plus自带icon
const isShowIconSvg = computed(() => {
const ss = props?.name?.split(" ")
const ss = props?.name?.split(' ');
if (!ss) {
return true;
}
@@ -56,13 +56,13 @@ const isShowIconSvg = computed(() => {
});
const isIconfont = () => {
return props?.name?.startsWith("iconfont")
}
return props?.name?.startsWith('iconfont');
};
const getIconfontName = () => {
// iconfont icon-xxxx 获取icon-xxx即可
return props?.name?.split(" ")[1]
}
return props?.name?.split(' ')[1];
};
// 用于判断在线链接、本地引入等图标显示、隐藏
const isShowIconImg = computed(() => {
@@ -102,4 +102,4 @@ const setIconSvgInsStyle = computed(() => {
cursor: pointer;
vertical-align: middle;
}
</style>
</style>