From 28bf8bee45e3cc8575a356623abdbe56e30991f8 Mon Sep 17 00:00:00 2001 From: kailong321200875 <321200875@qq.com> Date: Wed, 26 Jul 2023 15:15:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=A7=A3=E5=86=B3=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Form/src/types/index.ts | 1 + src/components/Infotip/src/Infotip.vue | 4 +- src/views/Authorization/Role.vue | 141 ++++----- src/views/Components/Table/TreeTable.vue | 4 +- src/views/hooks/useCrudSchemas.vue | 368 +++++++++++------------ 5 files changed, 259 insertions(+), 259 deletions(-) diff --git a/src/components/Form/src/types/index.ts b/src/components/Form/src/types/index.ts index 3584697a0..8d13e0d1f 100644 --- a/src/components/Form/src/types/index.ts +++ b/src/components/Form/src/types/index.ts @@ -620,6 +620,7 @@ export interface FormSchema { | InputPasswordComponentProps | TreeSelectComponentProps | UploadComponentProps + | any /** * formItem组件属性,具体可以查看element-plus文档 diff --git a/src/components/Infotip/src/Infotip.vue b/src/components/Infotip/src/Infotip.vue index 3d88fe920..430900f5e 100644 --- a/src/components/Infotip/src/Infotip.vue +++ b/src/components/Infotip/src/Infotip.vue @@ -3,7 +3,7 @@ import { PropType } from 'vue' import { Highlight } from '@/components/Highlight' import { useDesign } from '@/hooks/web/useDesign' import { propTypes } from '@/utils/propTypes' -import { TipSchema } from '@/types/infoTip' +import { InfoTipSchema } from './types' const { getPrefixCls } = useDesign() @@ -12,7 +12,7 @@ const prefixCls = getPrefixCls('infotip') defineProps({ title: propTypes.string.def(''), schema: { - type: Array as PropType>, + type: Array as PropType>, required: true, default: () => [] }, diff --git a/src/views/Authorization/Role.vue b/src/views/Authorization/Role.vue index 1b49b7ae2..bf4c08dda 100644 --- a/src/views/Authorization/Role.vue +++ b/src/views/Authorization/Role.vue @@ -1,84 +1,85 @@ diff --git a/src/views/Components/Table/TreeTable.vue b/src/views/Components/Table/TreeTable.vue index 52e78e71a..c97bc883a 100644 --- a/src/views/Components/Table/TreeTable.vue +++ b/src/views/Components/Table/TreeTable.vue @@ -7,7 +7,7 @@ import { reactive, unref } from 'vue' import { ElTag, ElButton } from 'element-plus' import { useTable } from '@/hooks/web/useTable' -const { tableRegister, tableState, tableMethods } = useTable({ +const { tableRegister, tableState } = useTable({ fetchDataApi: async () => { const { currentPage, pageSize } = tableState const res = await getTreeTableListApi({ @@ -21,7 +21,6 @@ const { tableRegister, tableState, tableMethods } = useTable({ } }) const { loading, dataList, total, currentPage, pageSize } = tableState -const { sortableChange } = tableMethods const { t } = useI18n() @@ -106,7 +105,6 @@ const actionFn = (data: TableSlotDefault) => { total: total }" @register="tableRegister" - @sortable-change="sortableChange" /> diff --git a/src/views/hooks/useCrudSchemas.vue b/src/views/hooks/useCrudSchemas.vue index b8f6e7a6f..354eea849 100644 --- a/src/views/hooks/useCrudSchemas.vue +++ b/src/views/hooks/useCrudSchemas.vue @@ -1,200 +1,200 @@