refactor: 使用eslint.config.js替换.eslintrc.js并遵循esm语法 (#786)

This commit is contained in:
xiaoming
2023-11-10 23:18:01 +08:00
committed by GitHub
parent 18158f8e0d
commit 5b7dd8c3e2
102 changed files with 431 additions and 424 deletions

View File

@@ -41,8 +41,8 @@ defineExpose({ getRef });
<re-col>
<el-form-item label="上级部门">
<el-cascader
class="w-full"
v-model="newFormInline.parentId"
class="w-full"
:options="newFormInline.higherDeptOptions"
:props="{
value: 'id',

View File

@@ -6,7 +6,7 @@ import { getDeptList } from "@/api/system";
import { usePublicHooks } from "../../hooks";
import { addDialog } from "@/components/ReDialog";
import { reactive, ref, onMounted, h } from "vue";
import { type FormItemProps } from "../utils/types";
import type { FormItemProps } from "../utils/types";
import { cloneDeep, isAllEmpty } from "@pureadmin/utils";
export function useDept() {

View File

@@ -5,8 +5,8 @@ import { getRoleList } from "@/api/system";
import { ElMessageBox } from "element-plus";
import { usePublicHooks } from "../../hooks";
import { addDialog } from "@/components/ReDialog";
import { type FormItemProps } from "../utils/types";
import { type PaginationProps } from "@pureadmin/table";
import type { FormItemProps } from "../utils/types";
import type { PaginationProps } from "@pureadmin/table";
import { reactive, ref, onMounted, h, toRaw } from "vue";
export function useRole() {

View File

@@ -70,10 +70,10 @@ defineExpose({ getRef });
</re-col>
<re-col
v-if="newFormInline.title === '新增'"
:value="12"
:xs="24"
:sm="24"
v-if="newFormInline.title === '新增'"
>
<el-form-item label="用户密码" prop="password">
<el-input
@@ -123,8 +123,8 @@ defineExpose({ getRef });
<re-col :value="12" :xs="24" :sm="24">
<el-form-item label="归属部门">
<el-cascader
class="w-full"
v-model="newFormInline.parentId"
class="w-full"
:options="newFormInline.higherDeptOptions"
:props="{
value: 'id',
@@ -144,10 +144,10 @@ defineExpose({ getRef });
</el-form-item>
</re-col>
<re-col
v-if="newFormInline.title === '新增'"
:value="12"
:xs="24"
:sm="24"
v-if="newFormInline.title === '新增'"
>
<el-form-item label="用户状态">
<el-switch

View File

@@ -25,7 +25,7 @@ const newFormInline = ref(props.formInline);
</re-col> -->
<re-col>
<el-form-item label="用户昵称" prop="nickname">
<el-input disabled v-model="newFormInline.nickname" />
<el-input v-model="newFormInline.nickname" disabled />
</el-form-item>
</re-col>
<re-col>

View File

@@ -148,8 +148,8 @@ const {
</el-popconfirm>
</div>
<pure-table
row-key="id"
ref="tableRef"
row-key="id"
adaptive
align-whole="center"
table-layout="auto"

View File

@@ -101,9 +101,9 @@ defineExpose({ onTreeReset });
>
<div class="flex items-center h-[34px]">
<el-input
v-model="searchValue"
class="ml-2"
size="small"
v-model="searchValue"
placeholder="请输入部门名称"
clearable
>

View File

@@ -33,7 +33,7 @@ function onCropper({ base64, blob, info }) {
@cropper="onCropper"
@readied="showPopover = true"
/>
<p class="mt-1 text-center" v-show="showPopover">
<p v-show="showPopover" class="mt-1 text-center">
温馨提示右键上方裁剪区可开启功能菜单
</p>
</div>

View File

@@ -8,7 +8,7 @@ import { message } from "@/utils/message";
import croppingUpload from "../upload.vue";
import { usePublicHooks } from "../../hooks";
import { addDialog } from "@/components/ReDialog";
import { type PaginationProps } from "@pureadmin/table";
import type { PaginationProps } from "@pureadmin/table";
import type { FormItemProps, RoleFormItemProps } from "../utils/types";
import { hideTextAtIndex, getKeyList, isAllEmpty } from "@pureadmin/utils";
import {