@campus-admin/core 1.0.0 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -157
- package/dist/app.d.ts +2 -0
- package/dist/context.d.ts +29 -15
- package/dist/copyright.d.ts +2 -0
- package/dist/i18n.d.ts +356 -0
- package/dist/index.d.ts +23 -32
- package/dist/index.js +2572 -424
- package/dist/layout/CaCopyright.vue.d.ts +3 -0
- package/dist/layout/CaLayout.vue.d.ts +3 -0
- package/dist/layout/HeaderBar.vue.d.ts +3 -0
- package/dist/layout/PageHeader.vue.d.ts +3 -0
- package/dist/layout/PageTitle.vue.d.ts +3 -0
- package/dist/layout/SideMenu.vue.d.ts +3 -0
- package/dist/layout/TabsBar.vue.d.ts +3 -0
- package/dist/layout/breakpoints.d.ts +21 -0
- package/dist/{components/overlay/ca-loading-overlay.vue.d.ts → pages/AuthPreview.vue.d.ts} +2 -6
- package/dist/{components/overlay/ca-toast-list.vue.d.ts → pages/ExceptionPage.vue.d.ts} +2 -5
- package/dist/{components/overlay/ca-overlay-list.vue.d.ts → pages/ForgotPage.vue.d.ts} +2 -5
- package/dist/pages/LoginPage.vue.d.ts +3 -0
- package/dist/pages/LoginSplit.vue.d.ts +6 -0
- package/dist/pages/RegisterPage.vue.d.ts +6 -0
- package/dist/pages/auth/AuthIcon.vue.d.ts +10 -0
- package/dist/pages/auth/AuthShell.vue.d.ts +29 -0
- package/dist/pages/auth/CaptchaField.vue.d.ts +20 -0
- package/dist/pages/auth/ForgotForm.vue.d.ts +6 -0
- package/dist/pages/auth/LoginForm.vue.d.ts +6 -0
- package/dist/pages/auth/RegisterForm.vue.d.ts +6 -0
- package/dist/pages/auth/SmsField.vue.d.ts +14 -0
- package/dist/pages/auth/WechatPane.vue.d.ts +6 -0
- package/dist/pages/auth/options.d.ts +16 -0
- package/dist/pages/auth/wechat-host.d.ts +10 -0
- package/dist/router.d.ts +15 -0
- package/dist/security.d.ts +15 -0
- package/dist/services/auth.d.ts +21 -0
- package/dist/services/ca.d.ts +48 -0
- package/dist/services/feedback.d.ts +54 -0
- package/dist/services/login.d.ts +8 -0
- package/dist/storage.d.ts +12 -0
- package/dist/stores/layout.d.ts +41 -0
- package/dist/stores/session.d.ts +65 -0
- package/dist/stores/tabs.d.ts +49 -0
- package/dist/stores/theme.d.ts +280 -0
- package/dist/style.css +2 -0
- package/dist/tabs-policy.d.ts +4 -0
- package/dist/types.d.ts +259 -0
- package/package.json +23 -61
- package/dist/application.d.ts +0 -51
- package/dist/campus.d.ts +0 -9
- package/dist/components/overlay/index.d.ts +0 -6
- package/dist/components/overlay/style/index.d.ts +0 -10
- package/dist/container.d.ts +0 -21
- package/dist/contracts/config.d.ts +0 -13
- package/dist/contracts/provider.d.ts +0 -24
- package/dist/core.css +0 -2
- package/dist/facade.d.ts +0 -15
- package/dist/index.umd.cjs +0 -1
- package/dist/plugin.d.ts +0 -49
- package/dist/services/index.d.ts +0 -7
- package/dist/services/loading.d.ts +0 -21
- package/dist/services/modal.d.ts +0 -47
- package/dist/services/store.d.ts +0 -20
- package/dist/services/toast.d.ts +0 -19
- package/dist/services/use-store.d.ts +0 -9
- package/dist/vue-application.d.ts +0 -21
- package/dist/vue.d.ts +0 -8
- package/types/ca.d.ts +0 -22
- /package/dist/{components/overlay/ca-overlay-host.vue.d.ts → CampusRoot.vue.d.ts} +0 -0
package/dist/vue.d.ts
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vue 适配层,全项目唯一允许直接依赖 vue 的位置。
|
|
3
|
-
*
|
|
4
|
-
* 组件与业务代码通过这里使用响应式与生命周期能力。
|
|
5
|
-
* 升级 Vue 时只检查本文件与 framework 包,业务代码无需改动。
|
|
6
|
-
*/
|
|
7
|
-
export { computed, createApp, defineAsyncComponent, defineComponent, inject, nextTick, onBeforeUnmount, onMounted, onScopeDispose, onUnmounted, provide, readonly, ref, shallowRef, toRef, toRefs, watch, watchEffect, } from 'vue';
|
|
8
|
-
export type { App, Component, ComputedRef, InjectionKey, PropType, Ref, ShallowRef, VNode, WritableComputedRef, } from 'vue';
|
package/types/ca.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 全局命令式 API 的类型声明。
|
|
3
|
-
*
|
|
4
|
-
* 运行时由 createCampusAdmin() 把 ca 挂到 window 上(见 src/plugin.ts 的 exposeGlobalCa),
|
|
5
|
-
* 这里补上类型,业务项目只要 import 过 @campus-admin/core,
|
|
6
|
-
* 就能直接写 `ca.toast('...')`,不需要额外声明,也不必写成 window.ca。
|
|
7
|
-
*
|
|
8
|
-
* 若业务项目的 tsconfig 指定了 `"types"` 白名单(例如 ["vite/client"]),
|
|
9
|
-
* 需要在数组里加上 "@campus-admin/core"。
|
|
10
|
-
*/
|
|
11
|
-
import type { ca as CaInstance } from '../dist/index'
|
|
12
|
-
|
|
13
|
-
declare global {
|
|
14
|
-
/** 全局命令式 API */
|
|
15
|
-
const ca: typeof CaInstance
|
|
16
|
-
|
|
17
|
-
interface Window {
|
|
18
|
-
ca?: typeof CaInstance
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export {}
|
|
File without changes
|