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

Merge pull request !190 from yangxu52/feat/standardize
This commit is contained in:
疯狂的狮子Li 2025-03-06 16:26:11 +00:00 committed by Gitee
commit b814fb5105
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
30 changed files with 51 additions and 65 deletions

View File

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

View File

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

View File

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

View File

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

View File

@ -14,13 +14,7 @@
</div> </div>
</template> </template>
<script lang="ts"> <script setup name="Pagination" lang="ts">
export default {
name: 'Pagination'
};
</script>
<script setup lang="ts">
import { scrollTo } from '@/utils/scroll-to'; import { scrollTo } from '@/utils/scroll-to';
import { propTypes } from '@/utils/propTypes'; import { propTypes } from '@/utils/propTypes';
@ -28,10 +22,7 @@ const props = defineProps({
total: propTypes.number, total: propTypes.number,
page: propTypes.number.def(1), page: propTypes.number.def(1),
limit: propTypes.number.def(20), limit: propTypes.number.def(20),
pageSizes: { pageSizes: { type: Array<number>, default: () => [10, 20, 30, 50] },
type: Array,
default: () => [10, 20, 30, 50]
},
// 5 // 5
pagerCount: propTypes.number.def(document.body.clientWidth < 992 ? 5 : 7), pagerCount: propTypes.number.def(document.body.clientWidth < 992 ? 5 : 7),
layout: propTypes.string.def('total, sizes, prev, pager, next, jumper'), layout: propTypes.string.def('total, sizes, prev, pager, next, jumper'),

View File

@ -72,7 +72,7 @@
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
<script lang="ts" setup> <script setup lang="ts">
import { flowImage } from '@/api/workflow/instance'; import { flowImage } from '@/api/workflow/instance';
import { propTypes } from '@/utils/propTypes'; import { propTypes } from '@/utils/propTypes';
import { listByIds } from '@/api/system/oss'; import { listByIds } from '@/api/system/oss';

View File

@ -49,7 +49,7 @@
</el-dialog> </el-dialog>
</el-dialog> </el-dialog>
</template> </template>
<script lang="ts" setup> <script setup lang="ts">
import { propTypes } from '@/utils/propTypes'; import { propTypes } from '@/utils/propTypes';
import { FlowTaskVO, TaskOperationBo } from '@/api/workflow/task/types'; import { FlowTaskVO, TaskOperationBo } from '@/api/workflow/task/types';
import UserSelect from '@/components/UserSelect'; import UserSelect from '@/components/UserSelect';

View File

@ -132,7 +132,7 @@
</el-dialog> </el-dialog>
</template> </template>
<script lang="ts" setup> <script setup lang="ts">
import { ref } from 'vue'; import { ref } from 'vue';
import { ComponentInternalInstance } from 'vue'; import { ComponentInternalInstance } from 'vue';
import { ElForm } from 'element-plus'; import { ElForm } from 'element-plus';

View File

@ -4,7 +4,7 @@
</div> </div>
</template> </template>
<script setup> <script setup lang="ts">
const url = ref('https://plus-doc.dromara.org/'); const url = ref('https://plus-doc.dromara.org/');
function goto() { function goto() {

View File

@ -4,7 +4,7 @@
</div> </div>
</template> </template>
<script setup> <script setup lang="ts">
const url = ref('https://gitee.com/dromara/RuoYi-Vue-Plus'); const url = ref('https://gitee.com/dromara/RuoYi-Vue-Plus');
function goto() { function goto() {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -2,7 +2,7 @@
<div></div> <div></div>
</template> </template>
<script setup> <script setup lang="ts">
import { useRoute, useRouter } from 'vue-router'; import { useRoute, useRouter } from 'vue-router';
const route = useRoute(); const route = useRoute();

View File

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

View File

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

View File

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

View File

@ -26,7 +26,7 @@
</div> </div>
</template> </template>
<script name="Online" lang="ts" setup> <script setup name="Online" lang="ts">
import { delOnline } from '@/api/monitor/online'; import { delOnline } from '@/api/monitor/online';
import { propTypes } from '@/utils/propTypes'; import { propTypes } from '@/utils/propTypes';

View File

@ -55,7 +55,7 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script setup lang="ts">
import { authUnlock, authBinding } from '@/api/system/social/auth'; import { authUnlock, authBinding } from '@/api/system/social/auth';
import { propTypes } from '@/utils/propTypes'; import { propTypes } from '@/utils/propTypes';
import useUserStore from '@/store/modules/user'; import useUserStore from '@/store/modules/user';
@ -94,7 +94,7 @@ const authUrl = (source: string) => {
}; };
</script> </script>
<style type="text/css"> <style lang="scss" scoped>
.user-bind .third-app { .user-bind .third-app {
display: -webkit-box; display: -webkit-box;
display: -ms-flexbox; display: -ms-flexbox;
@ -128,8 +128,9 @@ a {
} }
.provider-desc { .provider-desc {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', font-family:
'Liberation Sans', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Wenquanyi Micro Hei', 'WenQuanYi Zen Hei', 'ST Heiti', SimHei, SimSun, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Liberation Sans',
'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', 'Wenquanyi Micro Hei', 'WenQuanYi Zen Hei', 'ST Heiti', SimHei, SimSun,
'WenQuanYi Zen Hei Sharp', sans-serif; 'WenQuanYi Zen Hei Sharp', sans-serif;
font-size: 1.071rem; font-size: 1.071rem;
} }

View File

@ -190,7 +190,7 @@
</div> </div>
</template> </template>
<script lang="ts" setup name="processDefinition"> <script setup name="processDefinition" lang="ts">
import { listDefinition, deleteDefinition, active, importDef, unPublishList, publish, add, edit, getInfo, copy } from '@/api/workflow/definition'; import { listDefinition, deleteDefinition, active, importDef, unPublishList, publish, add, edit, getInfo, copy } from '@/api/workflow/definition';
import { categoryTree } from '@/api/workflow/category'; import { categoryTree } from '@/api/workflow/category';
import { CategoryTreeVO } from '@/api/workflow/category/types'; import { CategoryTreeVO } from '@/api/workflow/category/types';
@ -325,7 +325,7 @@ const handleSelectionChange = (selection: any) => {
}; };
// //
const getPageList = async () => { const getPageList = async () => {
console.log(proxy.$route.query.activeName) console.log(proxy.$route.query.activeName);
if (proxy.$route.query.activeName) { if (proxy.$route.query.activeName) {
activeName.value = proxy.$route.query.activeName; activeName.value = proxy.$route.query.activeName;
} }
@ -371,7 +371,7 @@ const handlePublish = async (row?: FlowDefinitionVo) => {
loading.value = true; loading.value = true;
await publish(row.id).finally(() => (loading.value = false)); await publish(row.id).finally(() => (loading.value = false));
processDefinitionDialog.visible = false; processDefinitionDialog.visible = false;
activeName.value = "0" activeName.value = '0';
await handleQuery(); await handleQuery();
proxy?.$modal.msgSuccess('发布成功'); proxy?.$modal.msgSuccess('发布成功');
}; };
@ -418,7 +418,7 @@ const handlerImportDefinition = (data: UploadRequestOptions): XMLHttpRequest =>
.then(() => { .then(() => {
uploadDialog.visible = false; uploadDialog.visible = false;
proxy?.$modal.msgSuccess('部署成功'); proxy?.$modal.msgSuccess('部署成功');
activeName.value = "1" activeName.value = '1';
handleQuery(); handleQuery();
}) })
.finally(() => { .finally(() => {
@ -483,9 +483,9 @@ const handleSubmit = async () => {
if (valid) { if (valid) {
loading.value = true; loading.value = true;
if (form.value.id) { if (form.value.id) {
await edit(form.value).finally(() => loading.value = false); await edit(form.value).finally(() => (loading.value = false));
} else { } else {
await add(form.value).finally(() => loading.value = false); await add(form.value).finally(() => (loading.value = false));
} }
proxy?.$modal.msgSuccess('操作成功'); proxy?.$modal.msgSuccess('操作成功');
modelDialog.visible = false; modelDialog.visible = false;
@ -501,13 +501,15 @@ const handleCopyDef = async (row: FlowDefinitionVo) => {
type: 'warning' type: 'warning'
} as ElMessageBoxOptions).then(() => { } as ElMessageBoxOptions).then(() => {
loading.value = true; loading.value = true;
copy(row.id).then((resp) => { copy(row.id)
if (resp.code === 200) { .then((resp) => {
proxy?.$modal.msgSuccess('操作成功'); if (resp.code === 200) {
activeName.value = "1" proxy?.$modal.msgSuccess('操作成功');
handleQuery(); activeName.value = '1';
} handleQuery();
}).finally(() => loading.value = false); }
})
.finally(() => (loading.value = false));
}); });
}; };

View File

@ -174,7 +174,7 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script setup lang="ts">
import { pageByRunning, pageByFinish, deleteByInstanceIds, instanceVariable, invalid } from '@/api/workflow/instance'; import { pageByRunning, pageByFinish, deleteByInstanceIds, instanceVariable, invalid } from '@/api/workflow/instance';
import { categoryTree } from '@/api/workflow/category'; import { categoryTree } from '@/api/workflow/category';
import { CategoryTreeVO } from '@/api/workflow/category/types'; import { CategoryTreeVO } from '@/api/workflow/category/types';

View File

@ -104,7 +104,7 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script setup lang="ts">
import { pageByAllTaskWait, pageByAllTaskFinish, updateAssignee } from '@/api/workflow/task'; import { pageByAllTaskWait, pageByAllTaskFinish, updateAssignee } from '@/api/workflow/task';
import UserSelect from '@/components/UserSelect'; import UserSelect from '@/components/UserSelect';
import { TaskQuery } from '@/api/workflow/task/types'; import { TaskQuery } from '@/api/workflow/task/types';

View File

@ -101,7 +101,7 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script setup lang="ts">
import { pageByCurrent, deleteByInstanceIds, cancelProcessApply } from '@/api/workflow/instance'; import { pageByCurrent, deleteByInstanceIds, cancelProcessApply } from '@/api/workflow/instance';
import { categoryTree } from '@/api/workflow/category'; import { categoryTree } from '@/api/workflow/category';
import { CategoryTreeVO } from '@/api/workflow/category/types'; import { CategoryTreeVO } from '@/api/workflow/category/types';

View File

@ -59,7 +59,7 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script setup lang="ts">
import { pageByTaskCopy } from '@/api/workflow/task'; import { pageByTaskCopy } from '@/api/workflow/task';
import { TaskQuery } from '@/api/workflow/task/types'; import { TaskQuery } from '@/api/workflow/task/types';
import workflowCommon from '@/api/workflow/workflowCommon'; import workflowCommon from '@/api/workflow/workflowCommon';

View File

@ -80,7 +80,7 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script setup lang="ts">
import { pageByTaskFinish } from '@/api/workflow/task'; import { pageByTaskFinish } from '@/api/workflow/task';
import { TaskQuery, FlowTaskVO } from '@/api/workflow/task/types'; import { TaskQuery, FlowTaskVO } from '@/api/workflow/task/types';
import workflowCommon from '@/api/workflow/workflowCommon'; import workflowCommon from '@/api/workflow/workflowCommon';

View File

@ -77,7 +77,7 @@
</div> </div>
</template> </template>
<script lang="ts" setup> <script setup lang="ts">
import { pageByTaskWait } from '@/api/workflow/task'; import { pageByTaskWait } from '@/api/workflow/task';
import { TaskQuery, FlowTaskVO } from '@/api/workflow/task/types'; import { TaskQuery, FlowTaskVO } from '@/api/workflow/task/types';
import workflowCommon from '@/api/workflow/workflowCommon'; import workflowCommon from '@/api/workflow/workflowCommon';

View File

@ -1,9 +1,9 @@
import { type UserConfig, type ConfigEnv, loadEnv, defineConfig } from 'vite'; import { defineConfig, loadEnv } from 'vite';
import createPlugins from './vite/plugins'; import createPlugins from './vite/plugins';
import autoprefixer from 'autoprefixer'; // css自动添加兼容性前缀 import autoprefixer from 'autoprefixer'; // css自动添加兼容性前缀
import path from 'path'; import path from 'path';
export default defineConfig(({ mode, command }: ConfigEnv): UserConfig => {
export default defineConfig(({ mode, command }) => {
const env = loadEnv(mode, process.cwd()); const env = loadEnv(mode, process.cwd());
return { return {
// 部署生产环境和开发环境下的URL。 // 部署生产环境和开发环境下的URL。