@campus-admin/ui 1.0.0
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/LICENSE +21 -0
- package/README.md +367 -0
- package/dist/atom/attendance-badge/index.d.ts +5 -0
- package/dist/atom/attendance-badge/src/attendance-badge.vue.d.ts +13 -0
- package/dist/atom/attendance-badge/src/core.d.ts +11 -0
- package/dist/atom/avatar/index.d.ts +3 -0
- package/dist/atom/avatar/src/avatar.vue.d.ts +14 -0
- package/dist/atom/button/index.d.ts +3 -0
- package/dist/atom/button/src/button.vue.d.ts +40 -0
- package/dist/atom/checkbox/index.d.ts +3 -0
- package/dist/atom/checkbox/src/checkbox.vue.d.ts +24 -0
- package/dist/atom/icon/index.d.ts +3 -0
- package/dist/atom/icon/src/icon.vue.d.ts +27 -0
- package/dist/atom/index.d.ts +444 -0
- package/dist/atom/input/index.d.ts +3 -0
- package/dist/atom/input/src/input.vue.d.ts +43 -0
- package/dist/atom/progress/index.d.ts +4 -0
- package/dist/atom/progress/src/core.d.ts +9 -0
- package/dist/atom/progress/src/progress.vue.d.ts +19 -0
- package/dist/atom/select/index.d.ts +5 -0
- package/dist/atom/select/src/core.d.ts +9 -0
- package/dist/atom/select/src/select.vue.d.ts +22 -0
- package/dist/atom/slogan/index.d.ts +3 -0
- package/dist/atom/slogan/src/slogan.vue.d.ts +9 -0
- package/dist/atom/switch/index.d.ts +3 -0
- package/dist/atom/switch/src/switch.vue.d.ts +16 -0
- package/dist/atom/tag/index.d.ts +3 -0
- package/dist/atom/tag/src/tag.vue.d.ts +31 -0
- package/dist/atom/textarea/index.d.ts +3 -0
- package/dist/atom/textarea/src/textarea.vue.d.ts +19 -0
- package/dist/base/breadcrumb/index.d.ts +4 -0
- package/dist/base/breadcrumb/src/breadcrumb.vue.d.ts +29 -0
- package/dist/base/class-tree/index.d.ts +5 -0
- package/dist/base/class-tree/src/class-tree.vue.d.ts +29 -0
- package/dist/base/class-tree/src/core.d.ts +30 -0
- package/dist/base/copyright/index.d.ts +3 -0
- package/dist/base/copyright/src/copyright.vue.d.ts +25 -0
- package/dist/base/drawer/index.d.ts +3 -0
- package/dist/base/drawer/src/drawer.vue.d.ts +36 -0
- package/dist/base/empty/index.d.ts +3 -0
- package/dist/base/empty/src/empty.vue.d.ts +20 -0
- package/dist/base/index.d.ts +651 -0
- package/dist/base/menu/core.d.ts +34 -0
- package/dist/base/menu/index.d.ts +13 -0
- package/dist/base/menu/side-menu/index.d.ts +5 -0
- package/dist/base/menu/side-menu/src/side-menu.vue.d.ts +59 -0
- package/dist/base/modal/index.d.ts +4 -0
- package/dist/base/modal/src/core.d.ts +8 -0
- package/dist/base/modal/src/modal.vue.d.ts +46 -0
- package/dist/base/page-header/index.d.ts +3 -0
- package/dist/base/page-header/src/page-header.vue.d.ts +27 -0
- package/dist/base/pagination/index.d.ts +5 -0
- package/dist/base/pagination/src/core.d.ts +11 -0
- package/dist/base/pagination/src/pagination.vue.d.ts +26 -0
- package/dist/base/search-form/index.d.ts +3 -0
- package/dist/base/search-form/src/search-form.vue.d.ts +34 -0
- package/dist/base/skeleton/index.d.ts +3 -0
- package/dist/base/skeleton/src/skeleton.vue.d.ts +11 -0
- package/dist/base/statistic/index.d.ts +3 -0
- package/dist/base/statistic/src/statistic.vue.d.ts +16 -0
- package/dist/base/table/index.d.ts +5 -0
- package/dist/base/table/src/core.d.ts +25 -0
- package/dist/base/table/src/table.vue.d.ts +44 -0
- package/dist/base/toast/index.d.ts +5 -0
- package/dist/base/toast/src/store.d.ts +56 -0
- package/dist/base/toast/src/toast-container.vue.d.ts +3 -0
- package/dist/campus-ui.css +2 -0
- package/dist/campus-ui.js +2229 -0
- package/dist/campus-ui.umd.cjs +1 -0
- package/dist/core/index.d.ts +4 -0
- package/dist/core/namespace.d.ts +16 -0
- package/dist/core/theme.d.ts +49 -0
- package/dist/feature/daily-agenda/index.d.ts +5 -0
- package/dist/feature/daily-agenda/src/core.d.ts +25 -0
- package/dist/feature/daily-agenda/src/daily-agenda.vue.d.ts +12 -0
- package/dist/feature/daily-agenda/src/data.d.ts +3 -0
- package/dist/feature/index.d.ts +61 -0
- package/dist/feature/student-picker/index.d.ts +5 -0
- package/dist/feature/student-picker/src/core.d.ts +19 -0
- package/dist/feature/student-picker/src/student-picker.vue.d.ts +26 -0
- package/dist/feature/weekly-timetable/index.d.ts +6 -0
- package/dist/feature/weekly-timetable/src/core.d.ts +33 -0
- package/dist/feature/weekly-timetable/src/data.d.ts +3 -0
- package/dist/feature/weekly-timetable/src/weekly-timetable.vue.d.ts +7 -0
- package/dist/index.d.ts +1110 -0
- package/package.json +71 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: string;
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
rows?: number;
|
|
5
|
+
maxlength?: number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
invalid?: boolean;
|
|
8
|
+
/** 展示字数统计,需要配合 maxlength */
|
|
9
|
+
showCount?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (value: string) => any;
|
|
13
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
14
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
15
|
+
}>, {
|
|
16
|
+
rows: number;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const _default: typeof __VLS_export;
|
|
19
|
+
export default _default;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export interface BreadcrumbItem {
|
|
2
|
+
label: string;
|
|
3
|
+
/** 为空表示当前页,不可点击 */
|
|
4
|
+
to?: string;
|
|
5
|
+
}
|
|
6
|
+
type __VLS_Props = {
|
|
7
|
+
items: BreadcrumbItem[];
|
|
8
|
+
/** 首项显示首页图标 */
|
|
9
|
+
homeIcon?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare var __VLS_11: {};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
extra?: (props: typeof __VLS_11) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
|
+
navigate: (item: BreadcrumbItem, index: number) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onNavigate?: ((item: BreadcrumbItem, index: number) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
homeIcon: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { GradeNode } from './core';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
modelValue?: string;
|
|
4
|
+
/** 年级与班级数据,由业务方传入 */
|
|
5
|
+
grades?: GradeNode[];
|
|
6
|
+
searchable?: boolean;
|
|
7
|
+
/** 受控展开状态;不传时组件内部维护 */
|
|
8
|
+
expandedKeys?: string[];
|
|
9
|
+
};
|
|
10
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
11
|
+
"update:modelValue": (id: string) => any;
|
|
12
|
+
change: (id: string, node: {
|
|
13
|
+
id: string;
|
|
14
|
+
label: string;
|
|
15
|
+
}) => any;
|
|
16
|
+
"update:expandedKeys": (keys: string[]) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
"onUpdate:modelValue"?: ((id: string) => any) | undefined;
|
|
19
|
+
onChange?: ((id: string, node: {
|
|
20
|
+
id: string;
|
|
21
|
+
label: string;
|
|
22
|
+
}) => any) | undefined;
|
|
23
|
+
"onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
|
|
24
|
+
}>, {
|
|
25
|
+
grades: GradeNode[];
|
|
26
|
+
searchable: boolean;
|
|
27
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
+
declare const _default: typeof __VLS_export;
|
|
29
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export interface ClassNode {
|
|
2
|
+
id: string;
|
|
3
|
+
label: string;
|
|
4
|
+
/** 年级下的班级数量等辅助信息 */
|
|
5
|
+
count?: number;
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface GradeNode {
|
|
9
|
+
id: string;
|
|
10
|
+
label: string;
|
|
11
|
+
children: ClassNode[];
|
|
12
|
+
disabled?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface FlatClassNode {
|
|
15
|
+
id: string;
|
|
16
|
+
label: string;
|
|
17
|
+
level: number;
|
|
18
|
+
isLeaf: boolean;
|
|
19
|
+
parentId?: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* 把年级 / 班级两级数据按展开状态拍平,便于渲染与键盘遍历。
|
|
24
|
+
* 展开状态用 Set 记录,避免深层对象 diff。
|
|
25
|
+
*/
|
|
26
|
+
export declare function flattenTree(grades: GradeNode[], expanded: Set<string>): FlatClassNode[];
|
|
27
|
+
/** 默认展开全部年级,符合后台“先看全貌”的使用习惯 */
|
|
28
|
+
export declare function defaultExpanded(grades: GradeNode[]): Set<string>;
|
|
29
|
+
/** 搜索命中:年级或班级名包含关键词时保留该分支 */
|
|
30
|
+
export declare function filterTree(grades: GradeNode[], keyword: string): GradeNode[];
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 版权主体:学校 / 机构名,渲染为「© 年份 名称」 */
|
|
3
|
+
name?: string;
|
|
4
|
+
/** 完整自定义版权行;传了就整行替代 name 的自动拼装 */
|
|
5
|
+
displayCopyright?: string;
|
|
6
|
+
/** 开发者 / 渠道方名称 */
|
|
7
|
+
partner?: string;
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_1: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
default?: (props: typeof __VLS_1) => any;
|
|
12
|
+
};
|
|
13
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
|
+
name: string;
|
|
15
|
+
displayCopyright: string;
|
|
16
|
+
partner: string;
|
|
17
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
18
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
19
|
+
declare const _default: typeof __VLS_export;
|
|
20
|
+
export default _default;
|
|
21
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
22
|
+
new (): {
|
|
23
|
+
$slots: S;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
modelValue?: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
placement?: 'right' | 'left' | 'bottom';
|
|
5
|
+
size?: number | string;
|
|
6
|
+
maskClosable?: boolean;
|
|
7
|
+
escClosable?: boolean;
|
|
8
|
+
};
|
|
9
|
+
declare var __VLS_13: {}, __VLS_20: {}, __VLS_22: {};
|
|
10
|
+
type __VLS_Slots = {} & {
|
|
11
|
+
title?: (props: typeof __VLS_13) => any;
|
|
12
|
+
} & {
|
|
13
|
+
default?: (props: typeof __VLS_20) => any;
|
|
14
|
+
} & {
|
|
15
|
+
footer?: (props: typeof __VLS_22) => any;
|
|
16
|
+
};
|
|
17
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
18
|
+
"update:modelValue": (value: boolean) => any;
|
|
19
|
+
closed: () => any;
|
|
20
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
21
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
22
|
+
onClosed?: (() => any) | undefined;
|
|
23
|
+
}>, {
|
|
24
|
+
size: number | string;
|
|
25
|
+
placement: "right" | "left" | "bottom";
|
|
26
|
+
maskClosable: boolean;
|
|
27
|
+
escClosable: boolean;
|
|
28
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
29
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
30
|
+
declare const _default: typeof __VLS_export;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
title?: string;
|
|
3
|
+
description?: string;
|
|
4
|
+
size?: 'small' | 'medium';
|
|
5
|
+
};
|
|
6
|
+
declare var __VLS_1: {}, __VLS_8: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
icon?: (props: typeof __VLS_1) => any;
|
|
9
|
+
} & {
|
|
10
|
+
default?: (props: typeof __VLS_8) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
16
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
17
|
+
new (): {
|
|
18
|
+
$slots: S;
|
|
19
|
+
};
|
|
20
|
+
};
|