diff --git a/src/typings/components.d.ts b/src/typings/components.d.ts index 2f4ca47a..fe6e65cd 100644 --- a/src/typings/components.d.ts +++ b/src/typings/components.d.ts @@ -63,6 +63,8 @@ declare module 'vue' { NNotificationProvider: typeof import('naive-ui')['NNotificationProvider'] NPopconfirm: typeof import('naive-ui')['NPopconfirm'] NPopover: typeof import('naive-ui')['NPopover'] + NRadio: typeof import('naive-ui')['NRadio'] + NRadioGroup: typeof import('naive-ui')['NRadioGroup'] NSelect: typeof import('naive-ui')['NSelect'] NSpace: typeof import('naive-ui')['NSpace'] NStatistic: typeof import('naive-ui')['NStatistic'] diff --git a/src/typings/naive-ui.d.ts b/src/typings/naive-ui.d.ts new file mode 100644 index 00000000..1c6a2908 --- /dev/null +++ b/src/typings/naive-ui.d.ts @@ -0,0 +1,3 @@ +declare namespace NaiveUI { + type ThemeColor = 'default' | 'error' | 'primary' | 'info' | 'success' | 'warning'; +} diff --git a/src/views/manage/role/context.ts b/src/views/manage/role/context.ts deleted file mode 100644 index 65e55562..00000000 --- a/src/views/manage/role/context.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { useContext } from '@sa/hooks'; - -function useRoleSearch(searchParams: Api.SystemManage.RoleSearchParams) { - return { - searchParams - }; -} - -export const { setupStore: setupRoleSearchContext, useStore: useRoleSearchContext } = useContext( - 'role-search', - useRoleSearch -); diff --git a/src/views/manage/role/index.vue b/src/views/manage/role/index.vue index 5149eed7..9ae02bd7 100644 --- a/src/views/manage/role/index.vue +++ b/src/views/manage/role/index.vue @@ -1,14 +1,14 @@