perf: 系统管理、系统监控兼容移动端

This commit is contained in:
xiaoxian521
2024-03-16 23:20:04 +08:00
parent 6270ec712f
commit c0005b4bc9
13 changed files with 34 additions and 17 deletions

View File

@@ -10,7 +10,12 @@ import { usePublicHooks } from "../../hooks";
import { addDialog } from "@/components/ReDialog";
import type { PaginationProps } from "@pureadmin/table";
import type { FormItemProps, RoleFormItemProps } from "../utils/types";
import { hideTextAtIndex, getKeyList, isAllEmpty } from "@pureadmin/utils";
import {
getKeyList,
isAllEmpty,
hideTextAtIndex,
deviceDetection
} from "@pureadmin/utils";
import {
getRoleIds,
getDeptList,
@@ -322,6 +327,7 @@ export function useUser(tableRef: Ref, treeRef: Ref) {
},
width: "46%",
draggable: true,
fullscreen: deviceDetection(),
fullscreenIcon: true,
closeOnClickModal: false,
contentRenderer: () => h(editForm, { ref: formRef }),
@@ -360,6 +366,7 @@ export function useUser(tableRef: Ref, treeRef: Ref) {
width: "40%",
draggable: true,
closeOnClickModal: false,
fullscreen: deviceDetection(),
contentRenderer: () =>
h(croppingUpload, {
ref: cropRef,
@@ -389,6 +396,7 @@ export function useUser(tableRef: Ref, treeRef: Ref) {
width: "30%",
draggable: true,
closeOnClickModal: false,
fullscreen: deviceDetection(),
contentRenderer: () => (
<>
<ElForm ref={ruleFormRef} model={pwdForm}>
@@ -471,6 +479,7 @@ export function useUser(tableRef: Ref, treeRef: Ref) {
},
width: "400px",
draggable: true,
fullscreen: deviceDetection(),
fullscreenIcon: true,
closeOnClickModal: false,
contentRenderer: () => h(roleForm),
@@ -507,6 +516,7 @@ export function useUser(tableRef: Ref, treeRef: Ref) {
selectedNum,
pagination,
buttonClass,
deviceDetection,
onSearch,
resetForm,
onbatchDel,