chore: 统一style标签的字段顺序

<style lang="scss" scope> **部分全局作用域未添加scope**
This commit is contained in:
yangxu52 2025-03-07 00:02:15 +08:00
parent 71b9d5d468
commit e98d43f50d
14 changed files with 14 additions and 22 deletions

View File

@ -87,7 +87,7 @@ const handleArray = (array: Array<string | number>) => {
};
</script>
<style scoped>
<style lang="scss" scoped>
.el-tag + .el-tag {
margin-left: 10px;
}

View File

@ -216,7 +216,7 @@ const listToString = (list: any[], separator?: string) => {
};
</script>
<style scoped lang="scss">
<style lang="scss" scoped>
.upload-file-uploader {
margin-bottom: 5px;
}

View File

@ -65,7 +65,7 @@ const selectedIcon = (iconName: string) => {
};
</script>
<style scoped lang="scss">
<style lang="scss" scoped>
.el-scrollbar {
max-height: calc(50vh - 100px) !important;
overflow-y: auto;

View File

@ -234,7 +234,7 @@ const listToString = (list: any[], separator?: string) => {
};
</script>
<style scoped lang="scss">
<style lang="scss" scoped>
// .el-upload--picture-card
:deep(.hide .el-upload--picture-card) {
display: none;

View File

@ -21,7 +21,7 @@ const svgClass = computed(() => {
});
</script>
<style scope lang="scss">
<style lang="scss" scoped>
.sub-el-icon,
.nav-icon {
display: inline-block;

View File

@ -306,5 +306,3 @@ defineExpose({
close: userDialog.closeDialog
});
</script>
<style lang="scss" scoped></style>

View File

@ -130,7 +130,7 @@ defineExpose({
});
</script>
<style scoped lang="scss">
<style lang="scss" scoped>
.layout-search-dialog {
position: relative;
:deep(.el-dialog) {

View File

@ -65,7 +65,7 @@ onMounted(() => {
});
</script>
<style scoped lang="scss">
<style lang="scss" scoped>
.layout-navbars-breadcrumb-user-news {
.head-box {
display: flex;

View File

@ -100,7 +100,7 @@ const goTarget = (url: string) => {
};
</script>
<style scoped lang="scss">
<style lang="scss" scoped>
.home {
blockquote {
padding: 10px 20px;

View File

@ -95,7 +95,7 @@ const typeFormat = (row: OperLogForm) => {
};
</script>
<style scoped>
<style lang="scss" scoped>
/**
label宽度固定
*/

View File

@ -156,5 +156,3 @@ onMounted(() => {
getList();
});
</script>
<style lang="scss" scoped></style>

View File

@ -128,5 +128,3 @@ defineExpose({
show
});
</script>
<style scoped></style>

View File

@ -288,15 +288,15 @@
<script setup name="User" lang="ts">
import api from '@/api/system/user';
import { UserForm, UserQuery, UserVO } from '@/api/system/user/types';
import {DeptTreeVO, DeptVO} from '@/api/system/dept/types';
import { DeptTreeVO, DeptVO } from '@/api/system/dept/types';
import { RoleVO } from '@/api/system/role/types';
import { PostQuery, PostVO } from '@/api/system/post/types';
import { treeselect } from '@/api/system/dept';
import { globalHeaders } from '@/utils/request';
import { to } from 'await-to-js';
import { optionselect } from '@/api/system/post';
import {hasPermi} from "@/directive/permission";
import {checkPermi} from "@/utils/permission";
import { hasPermi } from '@/directive/permission';
import { checkPermi } from '@/utils/permission';
const router = useRouter();
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@ -453,7 +453,7 @@ const getDeptTree = async () => {
/** 过滤禁用的部门 */
const filterDisabledDept = (deptList: DeptTreeVO[]) => {
return deptList.filter(dept => {
return deptList.filter((dept) => {
if (dept.disabled) {
return false;
}
@ -663,5 +663,3 @@ async function handleDeptChange(value: number | string) {
form.value.postIds = [];
}
</script>
<style lang="scss" scoped></style>

View File

@ -94,7 +94,7 @@ const authUrl = (source: string) => {
};
</script>
<style type="text/css">
<style lang="scss" scoped>
.user-bind .third-app {
display: -webkit-box;
display: -ms-flexbox;