Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

Added MailBoxes Page

zdmefcd15ecce14
diff --git a/core/frontend/eslint.config.mjs b/core/frontend/eslint.config.mjs
index 6020199e..3f786121 100644
--- a/core/frontend/eslint.config.mjs
+++ b/core/frontend/eslint.config.mjs
@@ -29,6 +29,7 @@ export default [
rules: {
'no-console': 'warn', // Disallow console
'no-unused-vars': 'warn', // Warn on unused variables
+ 'no-fallthrough': 'off', // Allow fallthrough
},
},
// Vue 3 configuration
@@ -51,6 +52,7 @@ export default [
rules: {
...vuePlugin.configs['recommended'].rules,
'vue/multi-word-component-names': 'off', // Allow multi-word component names
+ 'vue/no-required-prop-with-default': 'off', // Allow required props with default values
},
},
// TypeScript configuration
diff --git a/core/frontend/src/api/index.ts b/core/frontend/src/api/index.ts
index 5db69894..8bc8e1f0 100644
--- a/core/frontend/src/api/index.ts
+++ b/core/frontend/src/api/index.ts
@@ -45,16 +45,16 @@ instance.interceptors.request.use(config => {
instance.interceptors.response.use(
response => {
const { fetchOptions } = response.config
- const { code, data, msg, success } = response.data || {}
- if (code === 0 && success) {
+ const { code, data, msg } = response.data || {}
+ if (code === 0) {
if (fetchOptions?.successMessage) {
Message.success(msg)
}
return Promise.resolve(data)
}
- if (!success && msg) {
- Message.error(msg)
- }
+ // if (!success && msg) {
+ // Message.error(msg)
+ // }
if (code === 401) {
router.push('/login')
}
diff --git a/core/frontend/src/api/modules/mailbox.ts b/core/frontend/src/api/modules/mailbox.ts
new file mode 100644
index 00000000..f92781ef
--- /dev/null
+++ b/core/frontend/src/api/modules/mailbox.ts
@@ -0,0 +1,43 @@
+import { instance } from '@/api'
+
+export const getMailboxList = (params: {
+ page: number
+ page_size: number
+ domain: string
+ keyword: string
+}) => {
+ return instance.get('/mailbox/list', { params })
+}
+
+type MailboxParams = {
+ domain: string
+ username: string
+ password: string
+ status: number
+ isAdmin: number
+ quota: number
+}
+
+export const createMailbox = (params: MailboxParams) => {
+ return instance.post('/mailbox/create', params, {
+ fetchOptions: {
+ successMessage: true,
+ },
+ })
+}
+
+export const updateMailbox = (params: MailboxParams) => {
+ return instance.post('/mailbox/update', params, {
+ fetchOptions: {
+ successMessage: true,
+ },
+ })
+}
+
+export const deleteMailbox = (params: { email: string }) => {
+ return instance.post('/mailbox/delete', params, {
+ fetchOptions: {
+ successMessage: true,
+ },
+ })
+}
diff --git a/core/frontend/src/components/bt-search/index.vue b/core/frontend/src/components/bt-search/index.vue
new file mode 100644
index 00000000..a425ffd6
--- /dev/null
+++ b/core/frontend/src/components/bt-search/index.vue
@@ -0,0 +1,57 @@
+<template>
+ <n-input
+ ref="inputRef"
+ v-model:value="search"
+ v-bind="$attrs"
+ class="bt-search"
+ :style="{ width: `${width}px` }"
+ @keyup.enter="onSearch">
+ <template v-if="prefix" #prefix>
+ <div class="flex items-center cursor-pointer" @click="onSearch">
+ <i class="i-mdi-search text-16px"></i>
+ </div>
+ </template>
+ <template v-if="!prefix" #suffix>
+ <div class="flex items-center cursor-pointer" @click="onSearch">
+ <i class="i-mdi-search text-16px"></i>
+ </div>
+ </template>
+ </n-input>
+</template>
+
+<script lang="ts" setup>
+import { InputInst } from 'naive-ui'
+
+interface Props {
+ width?: number | string
+ prefix?: boolean
+}
+
+withDefaults(defineProps<Props>(), {
+ width: 240,
+ prefix: false,
+})
+
+const inputRef = ref<InputInst | null>(null)
+
+const emit = defineEmits<{
+ search: [val: string]
+}>()
+
+const search = defineModel<string>('value', {
+ default: '',
+})
+
+// 搜索
+const onSearch = () => {
+ emit('search', search.value)
+}
+
+defineExpose({
+ focus: () => {
+ inputRef.value?.focus()
+ },
+})
+</script>
+
+<style lang="scss" scoped></style>
diff --git a/core/frontend/src/components/bt-table-password/index.vue b/core/frontend/src/components/bt-table-password/index.vue
new file mode 100644
index 00000000..0714bb7f
--- /dev/null
+++ b/core/frontend/src/components/bt-table-password/index.vue
@@ -0,0 +1,43 @@
+<template>
+ <div class="flex">
+ <div class="w-0 flex-1 flex items-center">
+ <div class="min-w-0">
+ <n-ellipsis class="max-w-full" :tooltip="{ contentStyle: { maxWidth: '200px' } }">
+ {{ password }}
+ </n-ellipsis>
+ </div>
+ <div class="ml-6px text-15px cursor-pointer" title="Show" @click="onToggle">
+ <i :class="show ? 'i-mdi-eye-outline' : 'i-mdi-eye-off-outline'"></i>
+ </div>
+ <div class="reset ml-6px text-15px cursor-pointer text-#333" title="Copy" @click="onCopy">
+ <i class="i-mdi-content-copy"></i>
+ </div>
+ </div>
+ </div>
+</template>
+
+<script lang="ts" setup>
+import { copyText } from '@/utils/copy'
+
+interface Props {
+ value: string | number
+}
+
+const props = withDefaults(defineProps<Props>(), {
+ value: '',
+})
+
+const show = ref(false)
+
+const password = computed(() => {
+ return show.value ? props.value : '**********'
+})
+
+const onToggle = () => {
+ show.value = !show.value
+}
+
+const onCopy = async () => {
+ copyText(`${props.value}`)
+}
+</script>
diff --git a/core/frontend/src/hooks/useTableData.ts b/core/frontend/src/hooks/useTableData.ts
index 8ab78a21..3a37af61 100644
--- a/core/frontend/src/hooks/useTableData.ts
+++ b/core/frontend/src/hooks/useTableData.ts
@@ -1,28 +1,27 @@
import { isObject } from '@/utils'
interface TableParams {
- [key: string]: unknown
page: number
page_size: number
- keyword: string
}
-interface UseTableDataOptions {
- fetchFn: (params: TableParams) => Promise<unknown>
- params?: TableParams
+interface UseTableDataOptions<K> {
+ params: K
+ fetchFn?: (params: K) => Promise<unknown>
+ loading?: boolean
immediate?: boolean
}
-export const useTableData = <T>(options: UseTableDataOptions) => {
- const { fetchFn, immediate = false, params = { page: 1, page_size: 10, keyword: '' } } = options
+export const useTableData = <T, K extends TableParams>(options: UseTableDataOptions<K>) => {
+ const { fetchFn, params, loading = false, immediate = false } = options
- const loading = ref(false)
+ const loadingRef = ref(loading)
const tableList = ref<T[]>([])
const tableTotal = ref(0)
- const tableParams = ref(params)
+ const tableParams = ref<K>(params)
// 获取表格数据
const getTableData = async (resetPage = false) => {
@@ -30,15 +29,17 @@ export const useTableData = <T>(options: UseTableDataOptions) => {
params.page = 1
}
- loading.value = true
- try {
- const res = await fetchFn(tableParams.value)
- if (isObject<{ list: T[]; total: number }>(res)) {
- tableList.value = res.list
- tableTotal.value = res.total
+ if (fetchFn) {
+ loadingRef.value = true
+ try {
+ const res = await fetchFn(tableParams.value)
+ if (isObject<{ list: T[]; total: number }>(res)) {
+ tableList.value = res.list
+ tableTotal.value = res.total
+ }
+ } finally {
+ loadingRef.value = false
}
- } finally {
- loading.value = false
}
}
@@ -48,7 +49,7 @@ export const useTableData = <T>(options: UseTableDataOptions) => {
}
return {
- loading,
+ loading: loadingRef,
tableList,
tableTotal,
tableParams,
diff --git a/core/frontend/src/layout/components/Sidebar.vue b/core/frontend/src/layout/components/Sidebar.vue
index b12d9fa2..6f765edf 100644
--- a/core/frontend/src/layout/components/Sidebar.vue
+++ b/core/frontend/src/layout/components/Sidebar.vue
@@ -109,7 +109,7 @@ onMounted(() => {
margin-top: 0;
.n-menu-item-content {
padding-right: 24px;
- line-height: inherit;
+ line-height: 1.4;
&::before {
left: 0;
right: 0;
diff --git a/core/frontend/src/router/modules/contacts.ts b/core/frontend/src/router/modules/contacts.ts
index 09171882..8f0bde9e 100644
--- a/core/frontend/src/router/modules/contacts.ts
+++ b/core/frontend/src/router/modules/contacts.ts
@@ -4,7 +4,13 @@ import { Layout } from '@/router/constant'
const route: RouteRecordRaw = {
path: '/contacts',
component: Layout,
- meta: { sort: 4, key: 'contacts', title: 'Contacts', icon: 'i-mdi-user-multiple-outline' },
+ meta: {
+ sort: 4,
+ key: 'contacts',
+ title: 'Contacts',
+ icon: 'i-mdi-user-multiple-outline',
+ hidden: true,
+ },
children: [
{
path: '/contacts',
diff --git a/core/frontend/src/router/router.ts b/core/frontend/src/router/router.ts
index afa6fab8..05421751 100644
--- a/core/frontend/src/router/router.ts
+++ b/core/frontend/src/router/router.ts
@@ -31,12 +31,13 @@ menuList.sort((a, b) => {
const dashboardRouter: RouteRecordRaw = {
path: '/',
component: Layout,
- redirect: '/overview',
+ redirect: '/domain',
meta: {
keepAlive: true,
key: 'overview',
title: 'Overview',
icon: 'i-mdi-home-outline',
+ hidden: true,
},
children: [
{
diff --git a/core/frontend/src/views/domain/index.vue b/core/frontend/src/views/domain/index.vue
index a3d44dee..81f3b088 100644
--- a/core/frontend/src/views/domain/index.vue
+++ b/core/frontend/src/views/domain/index.vue
@@ -33,14 +33,17 @@ import { getByteUnit } from '@/utils'
import { useModal } from '@/hooks/modal/useModal'
import { useTableData } from '@/hooks/useTableData'
import { deleteDomain, getDomainList } from '@/api/modules/domain'
-import type { MailDomain } from './interface'
+import type { MailDomain, MailDomainParams } from './interface'
import DomainForm from './components/DomainForm.vue'
import DomainCatch from './components/DomainCatch.vue'
import DomainSsl from './components/DomainSsl.vue'
import DomainDns from './components/DomainDns.vue'
-const { tableParams, tableList, loading, tableTotal, getTableData } = useTableData<MailDomain>({
+const { tableParams, tableList, loading, tableTotal, getTableData } = useTableData<
+ MailDomain,
+ MailDomainParams
+>({
immediate: true,
params: {
page: 1,
diff --git a/core/frontend/src/views/domain/interface.ts b/core/frontend/src/views/domain/interface.ts
index 68911c95..da50780c 100644
--- a/core/frontend/src/views/domain/interface.ts
+++ b/core/frontend/src/views/domain/interface.ts
@@ -1,3 +1,9 @@
+export interface MailDomainParams {
+ page: number
+ page_size: number
+ keyword: string
+}
+
export interface MailDomain {
domain: string
a_record: string
diff --git a/core/frontend/src/views/mailbox/components/DomainSelect.vue b/core/frontend/src/views/mailbox/components/DomainSelect.vue
new file mode 100644
index 00000000..1d5ccb40
--- /dev/null
+++ b/core/frontend/src/views/mailbox/components/DomainSelect.vue
@@ -0,0 +1,50 @@
+<template>
+ <n-select
+ v-model:value="domain"
+ :loading="loading"
+ :filterable="true"
+ :options="domainOptions"
+ placeholder="请选择域名">
+ </n-select>
+</template>
+
+<script lang="ts" setup>
+import { SelectOption } from 'naive-ui'
+import { isObject } from '@/utils'
+import { getDomainList } from '@/api/modules/domain'
+import { MailDomain } from '@/views/domain/interface'
+
+const domain = defineModel<string | null>('value', {
+ default: () => null,
+})
+
+const loading = ref(false)
+
+const domainOptions = ref<SelectOption[]>([])
+
+const getDomainSelect = async () => {
+ try {
+ loading.value = true
+ const res = await getDomainList({ page: 1, page_size: 10000, keyword: '' })
+ if (isObject<{ list: MailDomain[] }>(res)) {
+ domainOptions.value = res.list.map(item => ({
+ label: item.domain,
+ value: item.domain,
+ }))
+ if (res.list.length > 0 && !domain.value) {
+ domain.value = res.list[0].domain
+ }
+ }
+ } finally {
+ loading.value = false
+ }
+}
+
+getDomainSelect()
+</script>
+
+<style scoped>
+.domain-select {
+ width: 100%;
+}
+</style>
diff --git a/core/frontend/src/views/mailbox/components/MailboxForm.vue b/core/frontend/src/views/mailbox/components/MailboxForm.vue
new file mode 100644
index 00000000..40eec330
--- /dev/null
+++ b/core/frontend/src/views/mailbox/components/MailboxForm.vue
@@ -0,0 +1,181 @@
+<template>
+ <modal :title="title" width="520">
+ <bt-form ref="formRef" class="pt-20px" :model="form" :rules="rules">
+ <n-form-item label="配额" path="quota">
+ <div class="w-280px">
+ <n-input-group>
+ <n-input-number v-model:value="form.quota" class="flex-1" :min="1" :show-button="false">
+ </n-input-number>
+ <n-select v-model:value="form.unit" class="flex-1" :options="unitOptions"> </n-select>
+ </n-input-group>
+ </div>
+ </n-form-item>
+ <n-form-item label="用户类型" path="userType">
+ <div class="w-280px">
+ <n-select v-model:value="form.isAdmin" :options="userTypeOptions" />
+ </div>
+ </n-form-item>
+ <n-form-item label="用户名" path="username">
+ <div class="w-280px">
+ <n-input-group>
+ <n-input
+ v-model:value="form.username"
+ class="flex-1"
+ :disabled="isEdit"
+ placeholder="您的域名">
+ </n-input>
+ <domain-select v-model:value="form.domain" class="flex-1" :disabled="isEdit">
+ </domain-select>
+ </n-input-group>
+ </div>
+ </n-form-item>
+ <n-form-item label="密码" path="password">
+ <div class="w-280px">
+ <n-input v-model:value="form.password" placeholder="请输入您的邮箱密码"> </n-input>
+ </div>
+ </n-form-item>
+ <n-form-item label="状态" path="status">
+ <n-switch v-model:value="form.status" :checked-value="1" :unchecked-value="0" />
+ </n-form-item>
+ </bt-form>
+ </modal>
+</template>
+
+<script lang="ts" setup>
+import { FormRules } from 'naive-ui'
+import { getByteUnit, getNumber } from '@/utils'
+import { useModal } from '@/hooks/modal/useModal'
+import { createMailbox, updateMailbox } from '@/api/modules/mailbox'
+import type { MailBox } from '../interface'
+
+import DomainSelect from './DomainSelect.vue'
+
+const isEdit = ref(false)
+
+const title = computed(() => (isEdit.value ? '编辑邮箱' : '添加邮箱'))
+
+const formRef = useTemplateRef('formRef')
+
+const form = reactive({
+ quota: 5,
+ unit: 'GB',
+ isAdmin: 0,
+ username: '',
+ domain: null as string | null,
+ password: '',
+ status: 1,
+})
+
+const unitOptions = [
+ { label: 'GB', value: 'GB' },
+ { label: 'MB', value: 'MB' },
+]
+
+const userTypeOptions = [
+ { label: '普通用户', value: 0 },
+ { label: '管理员', value: 1 },
+]
+
+const rules: FormRules = {
+ username: {
+ trigger: 'blur',
+ validator: () => {
+ if (form.username.trim() === '' || !form.domain) {
+ return new Error('请输入用户名')
+ }
+ return true
+ },
+ },
+ password: {
+ trigger: 'blur',
+ validator: () => {
+ if (!isEdit.value) {
+ if (form.password.trim().length < 8) {
+ return new Error('密码长度少于8位,请重新输入')
+ }
+ const pwdReg = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*$/
+ if (!pwdReg.test(form.password)) {
+ return new Error('密码必须包含至少一个大写字母、一个小写字母和数字,请重新输入')
+ }
+ } else {
+ if (form.password && form.password.trim().length < 8) {
+ return new Error('密码长度少于8位,请重新输入')
+ }
+ const pwdReg = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z]).*$/
+ if (form.password && !pwdReg.test(form.password)) {
+ return new Error('密码必须包含至少一个大写字母、一个小写字母和数字,请重新输入')
+ }
+ }
+ return true
+ },
+ },
+}
+
+/**
+ * @description 根据域名配额和单位,计算出字节数
+ * @param quota
+ * @param quota_unit
+ */
+const getQuotaByte = (quota: number, quota_unit: string) => {
+ switch (quota_unit) {
+ case 'GB':
+ quota *= 1024
+ case 'MB':
+ quota *= 1024 * 1024
+ }
+ return quota
+}
+
+const getParams = () => {
+ return {
+ domain: form.domain || '',
+ username: form.username,
+ password: form.password,
+ quota: getQuotaByte(form.quota, form.unit),
+ isAdmin: form.isAdmin,
+ status: form.status,
+ }
+}
+
+const [Modal, modalApi] = useModal({
+ onChangeState: isOpen => {
+ if (isOpen) {
+ const state = modalApi.getState<{ isEdit: boolean; row: MailBox | null }>()
+ const { row } = state
+ isEdit.value = state.isEdit
+ if (row) {
+ form.domain = row.domain
+ form.isAdmin = row.is_admin
+ form.status = row.active
+
+ const [username] = row.username.split('@')
+ form.username = username
+
+ const quota = getByteUnit(row.quota)
+ const [quotaNum, quotaUnit] = quota.split(' ')
+ form.quota = getNumber(quotaNum)
+ form.unit = quotaUnit
+ }
+ } else {
+ form.username = ''
+ form.domain = null
+ form.password = ''
+ form.quota = 5
+ form.unit = 'GB'
+ form.isAdmin = 0
+ form.status = 1
+ }
+ },
+ onConfirm: async () => {
+ await formRef.value?.validate()
+ const params = getParams()
+ if (isEdit.value) {
+ await updateMailbox(params)
+ } else {
+ await createMailbox(params)
+ }
+ const state = modalApi.getState<{ refresh: Function }>()
+ state.refresh()
+ },
+})
+</script>
diff --git a/core/frontend/src/views/mailbox/index.vue b/core/frontend/src/views/mailbox/index.vue
index 575c2aa5..7a3e8ce3 100644
--- a/core/frontend/src/views/mailbox/index.vue
+++ b/core/frontend/src/views/mailbox/index.vue
@@ -1,5 +1,160 @@
<template>
- <div>aaaaa</div>
+ <div class="py-16px px-24px">
+ <n-card :bordered="false">
+ <bt-table-layout>
+ <template #toolsLeft>
+ <n-button type="primary" @click="handleAdd">添加邮箱</n-button>
+ </template>
+ <template #toolsRight>
+ <div class="w-220px">
+ <domain-select
+ v-model:value="tableParams.domain"
+ @update:value="() => getTableData(true)">
+ </domain-select>
+ </div>
+ <bt-search
+ v-model:value="tableParams.keyword"
+ width="280"
+ placeholder="搜索用户名"
+ @search="() => getTableData(true)">
+ </bt-search>
+ </template>
+ <template #table>
+ <n-data-table :loading="loading" :columns="columns" :data="tableList"> </n-data-table>
+ </template>
+ <template #pageRight>
+ <bt-table-page
+ v-model:page="tableParams.page"
+ v-model:page-size="tableParams.page_size"
+ :item-count="tableTotal"
+ @refresh="() => getTableData(true)">
+ </bt-table-page>
+ </template>
+ <template #modal>
+ <form-modal />
+ </template>
+ </bt-table-layout>
+ </n-card>
+ </div>
</template>
-<script lang="ts" setup></script>
+<script lang="tsx" setup>
+import { DataTableColumns, NButton, NFlex, NSwitch } from 'naive-ui'
+import { getByteUnit } from '@/utils'
+import { useModal } from '@/hooks/modal/useModal'
+import { useTableData } from '@/hooks/useTableData'
+import { deleteMailbox, getMailboxList } from '@/api/modules/mailbox'
+import { MailBox, MailBoxParams } from './interface'
+
+import TablePassword from '@/components/bt-table-password/index.vue'
+import DomainSelect from './components/DomainSelect.vue'
+import MailboxForm from './components/MailboxForm.vue'
+
+const { tableParams, tableList, loading, tableTotal, getTableData } = useTableData<
+ MailBox,
+ MailBoxParams
+>({
+ loading: true,
+ immediate: false,
+ params: {
+ page: 1,
+ page_size: 10,
+ domain: '',
+ keyword: '',
+ },
+ fetchFn: getMailboxList,
+})
+
+// Table columns
+const columns = ref<DataTableColumns<MailBox>>([
+ {
+ key: 'username',
+ title: 'Username',
+ minWidth: 120,
+ ellipsis: {
+ tooltip: true,
+ },
+ },
+ {
+ key: 'password',
+ title: 'Password',
+ width: '18%',
+ minWidth: 120,
+ render: row => <TablePassword value={row.password} />,
+ },
+ {
+ key: 'quota',
+ title: 'Quota',
+ width: '14%',
+ minWidth: 120,
+ render: row => getByteUnit(row.quota),
+ },
+ {
+ key: 'is_admin',
+ title: 'Type',
+ width: '14%',
+ minWidth: 100,
+ render: row => {
+ return row.is_admin === 1 ? 'Admin' : 'General user'
+ },
+ },
+ {
+ key: 'status',
+ title: 'Status',
+ width: '12%',
+ minWidth: 80,
+ render: row => {
+ return <NSwitch value={row.active} checked-value={1} unchecked-value={0} size="small" />
+ },
+ },
+ {
+ title: '操作',
+ key: 'actions',
+ align: 'right',
+ width: 120,
+ render: row => (
+ <NFlex inline={true}>
+ <NButton
+ type="primary"
+ text={true}
+ onClick={() => {
+ handleEdit(row)
+ }}>
+ 编辑
+ </NButton>
+ <NButton
+ type="error"
+ text={true}
+ onClick={() => {
+ handleDelete(row)
+ }}>
+ 删除
+ </NButton>
+ </NFlex>
+ ),
+ },
+])
+
+const [FormModal, formModalApi] = useModal({
+ component: MailboxForm,
+ state: {
+ isEdit: false,
+ refresh: getTableData,
+ },
+})
+
+const handleAdd = () => {
+ formModalApi.setState({ isEdit: false, row: null })
+ formModalApi.open()
+}
+
+const handleEdit = (row: MailBox) => {
+ formModalApi.setState({ isEdit: true, row })
+ formModalApi.open()
+}
+
+const handleDelete = async (row: MailBox) => {
+ await deleteMailbox({ email: row.username })
+ getTableData()
+}
+</script>
diff --git a/core/frontend/src/views/mailbox/interface.ts b/core/frontend/src/views/mailbox/interface.ts
new file mode 100644
index 00000000..5c232936
--- /dev/null
+++ b/core/frontend/src/views/mailbox/interface.ts
@@ -0,0 +1,21 @@
+export interface MailBoxParams {
+ page: number
+ page_size: number
+ keyword: string
+ domain: string
+}
+
+export interface MailBox {
+ username: string
+ password: string
+ password_encode: string
+ full_name: string
+ is_admin: number
+ maildir: string
+ quota: number
+ local_part: string
+ domain: string
+ create_time: number
+ update_time: number
+ active: number
+}
diff --git a/core/frontend/types/components.d.ts b/core/frontend/types/components.d.ts
index b7962526..5ec1f1f0 100644
--- a/core/frontend/types/components.d.ts
+++ b/core/frontend/types/components.d.ts
@@ -14,8 +14,10 @@ declare module 'vue' {
BtForm: typeof import('./../src/components/bt-form/index.vue')['default']
BtMessage: typeof import('./../src/components/bt-message/index.tsx')['default']
BtModal: typeof import('./../src/components/bt-modal/index.vue')['default']
+ BtSearch: typeof import('./../src/components/bt-search/index.vue')['default']
BtTableLayout: typeof import('./../src/components/bt-table-layout/index.vue')['default']
BtTablePage: typeof import('./../src/components/bt-table-page/index.vue')['default']
+ BtTablePassword: typeof import('./../src/components/bt-table-password/index.vue')['default']
BtTips: typeof import('./../src/components/bt-tips/index.vue')['default']
MessageList: typeof import('./../src/components/bt-message/message-list.tsx')['default']
NButton: typeof import('naive-ui')['NButton']
@@ -29,6 +31,7 @@ declare module 'vue' {
NForm: typeof import('naive-ui')['NForm']
NFormItem: typeof import('naive-ui')['NFormItem']
NInput: typeof import('naive-ui')['NInput']
+ NInputGroup: typeof import('naive-ui')['NInputGroup']
NInputNumber: typeof import('naive-ui')['NInputNumber']
NLayout: typeof import('naive-ui')['NLayout']
NLayoutHeader: typeof import('naive-ui')['NLayoutHeader']
@@ -39,6 +42,7 @@ declare module 'vue' {
NRadioButton: typeof import('naive-ui')['NRadioButton']
NRadioGroup: typeof import('naive-ui')['NRadioGroup']
NSelect: typeof import('naive-ui')['NSelect']
+ NSwitch: typeof import('naive-ui')['NSwitch']
NTable: typeof import('naive-ui')['NTable']
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']