@campus-admin/ui 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.
Files changed (129) hide show
  1. package/README.md +138 -335
  2. package/dist/campus/card/index.d.ts +9 -0
  3. package/dist/campus/index.d.ts +7 -0
  4. package/dist/campus/parent/index.d.ts +9 -0
  5. package/dist/campus/student/index.d.ts +9 -0
  6. package/dist/campus/teacher/index.d.ts +9 -0
  7. package/dist/campus/tel/index.d.ts +9 -0
  8. package/dist/{base/empty/src/empty.vue.d.ts → components/basic/CaIcon.vue.d.ts} +4 -7
  9. package/dist/components/basic/CaPageActions.vue.d.ts +15 -0
  10. package/dist/components/basic/icons.d.ts +48 -0
  11. package/dist/components/basic/index.d.ts +838 -0
  12. package/dist/components/button/index.d.ts +348 -0
  13. package/dist/components/chart/bar-chart/CaBarChart.vue.d.ts +31 -0
  14. package/dist/components/chart/chart-math.d.ts +178 -0
  15. package/dist/components/chart/gauge/CaGauge.vue.d.ts +31 -0
  16. package/dist/components/chart/index.d.ts +195 -0
  17. package/dist/components/chart/line-chart/CaLineChart.vue.d.ts +40 -0
  18. package/dist/components/chart/parts/ChartLegend.vue.d.ts +28 -0
  19. package/dist/{atom/slogan/src/slogan.vue.d.ts → components/chart/parts/ChartStatus.vue.d.ts} +3 -5
  20. package/dist/components/chart/parts/ChartTable.vue.d.ts +19 -0
  21. package/dist/components/chart/parts/ChartTooltip.vue.d.ts +23 -0
  22. package/dist/components/chart/pie-chart/CaPieChart.vue.d.ts +25 -0
  23. package/dist/components/chart/sparkline/CaSparkline.vue.d.ts +20 -0
  24. package/dist/components/chart/use-chart.d.ts +36 -0
  25. package/dist/components/config/CaConfigProvider.vue.d.ts +16 -0
  26. package/dist/components/config/index.d.ts +33 -0
  27. package/dist/components/display/index.d.ts +99 -0
  28. package/dist/{base/copyright/src/copyright.vue.d.ts → components/display/stat-card/CaStatCard.vue.d.ts} +7 -11
  29. package/dist/{base/skeleton/src/skeleton.vue.d.ts → components/display/status-tag/CaStatusTag.vue.d.ts} +4 -7
  30. package/dist/components/display/types.d.ts +7 -0
  31. package/dist/components/form/index.d.ts +112 -0
  32. package/dist/components/form/schema-form/CaSchemaForm.vue.d.ts +31 -0
  33. package/dist/components/form/types.d.ts +17 -0
  34. package/dist/components/index.d.ts +22 -0
  35. package/dist/components/layout/index.d.ts +34 -0
  36. package/dist/components/navigation/CaMenu.vue.d.ts +13 -0
  37. package/dist/components/navigation/index.d.ts +64 -0
  38. package/dist/components/overlay/index.d.ts +1511 -0
  39. package/dist/components/table/data-table/CaDataTable.vue.d.ts +49 -0
  40. package/dist/components/table/index.d.ts +33 -0
  41. package/dist/components/table/types.d.ts +46 -0
  42. package/dist/index.d.ts +21 -1106
  43. package/dist/index.js +2187 -0
  44. package/dist/oms/index.d.ts +3 -0
  45. package/dist/oms/school/index.d.ts +10 -0
  46. package/dist/shared/inject.d.ts +8 -0
  47. package/dist/shared/registry.d.ts +5 -0
  48. package/dist/shared/types.d.ts +9 -0
  49. package/dist/shared/wrap.d.ts +7 -0
  50. package/dist/style.css +2 -0
  51. package/package.json +17 -49
  52. package/dist/atom/attendance-badge/index.d.ts +0 -5
  53. package/dist/atom/attendance-badge/src/attendance-badge.vue.d.ts +0 -13
  54. package/dist/atom/attendance-badge/src/core.d.ts +0 -11
  55. package/dist/atom/avatar/index.d.ts +0 -3
  56. package/dist/atom/avatar/src/avatar.vue.d.ts +0 -14
  57. package/dist/atom/button/index.d.ts +0 -3
  58. package/dist/atom/button/src/button.vue.d.ts +0 -40
  59. package/dist/atom/checkbox/index.d.ts +0 -3
  60. package/dist/atom/checkbox/src/checkbox.vue.d.ts +0 -24
  61. package/dist/atom/icon/index.d.ts +0 -3
  62. package/dist/atom/icon/src/icon.vue.d.ts +0 -27
  63. package/dist/atom/index.d.ts +0 -444
  64. package/dist/atom/input/index.d.ts +0 -3
  65. package/dist/atom/input/src/input.vue.d.ts +0 -43
  66. package/dist/atom/progress/index.d.ts +0 -4
  67. package/dist/atom/progress/src/core.d.ts +0 -9
  68. package/dist/atom/progress/src/progress.vue.d.ts +0 -19
  69. package/dist/atom/select/index.d.ts +0 -5
  70. package/dist/atom/select/src/core.d.ts +0 -9
  71. package/dist/atom/select/src/select.vue.d.ts +0 -22
  72. package/dist/atom/slogan/index.d.ts +0 -3
  73. package/dist/atom/switch/index.d.ts +0 -3
  74. package/dist/atom/switch/src/switch.vue.d.ts +0 -16
  75. package/dist/atom/tag/index.d.ts +0 -3
  76. package/dist/atom/tag/src/tag.vue.d.ts +0 -31
  77. package/dist/atom/textarea/index.d.ts +0 -3
  78. package/dist/atom/textarea/src/textarea.vue.d.ts +0 -19
  79. package/dist/base/breadcrumb/index.d.ts +0 -4
  80. package/dist/base/breadcrumb/src/breadcrumb.vue.d.ts +0 -29
  81. package/dist/base/class-tree/index.d.ts +0 -5
  82. package/dist/base/class-tree/src/class-tree.vue.d.ts +0 -29
  83. package/dist/base/class-tree/src/core.d.ts +0 -30
  84. package/dist/base/copyright/index.d.ts +0 -3
  85. package/dist/base/drawer/index.d.ts +0 -3
  86. package/dist/base/drawer/src/drawer.vue.d.ts +0 -36
  87. package/dist/base/empty/index.d.ts +0 -3
  88. package/dist/base/index.d.ts +0 -651
  89. package/dist/base/menu/core.d.ts +0 -34
  90. package/dist/base/menu/index.d.ts +0 -13
  91. package/dist/base/menu/side-menu/index.d.ts +0 -5
  92. package/dist/base/menu/side-menu/src/side-menu.vue.d.ts +0 -59
  93. package/dist/base/modal/index.d.ts +0 -4
  94. package/dist/base/modal/src/core.d.ts +0 -8
  95. package/dist/base/modal/src/modal.vue.d.ts +0 -46
  96. package/dist/base/page-header/index.d.ts +0 -3
  97. package/dist/base/page-header/src/page-header.vue.d.ts +0 -27
  98. package/dist/base/pagination/index.d.ts +0 -5
  99. package/dist/base/pagination/src/core.d.ts +0 -11
  100. package/dist/base/pagination/src/pagination.vue.d.ts +0 -26
  101. package/dist/base/search-form/index.d.ts +0 -3
  102. package/dist/base/search-form/src/search-form.vue.d.ts +0 -34
  103. package/dist/base/skeleton/index.d.ts +0 -3
  104. package/dist/base/statistic/index.d.ts +0 -3
  105. package/dist/base/statistic/src/statistic.vue.d.ts +0 -16
  106. package/dist/base/table/index.d.ts +0 -5
  107. package/dist/base/table/src/core.d.ts +0 -25
  108. package/dist/base/table/src/table.vue.d.ts +0 -44
  109. package/dist/base/toast/index.d.ts +0 -5
  110. package/dist/base/toast/src/store.d.ts +0 -56
  111. package/dist/base/toast/src/toast-container.vue.d.ts +0 -3
  112. package/dist/campus-ui.css +0 -2
  113. package/dist/campus-ui.js +0 -2229
  114. package/dist/campus-ui.umd.cjs +0 -1
  115. package/dist/core/index.d.ts +0 -4
  116. package/dist/core/namespace.d.ts +0 -16
  117. package/dist/core/theme.d.ts +0 -49
  118. package/dist/feature/daily-agenda/index.d.ts +0 -5
  119. package/dist/feature/daily-agenda/src/core.d.ts +0 -25
  120. package/dist/feature/daily-agenda/src/daily-agenda.vue.d.ts +0 -12
  121. package/dist/feature/daily-agenda/src/data.d.ts +0 -3
  122. package/dist/feature/index.d.ts +0 -61
  123. package/dist/feature/student-picker/index.d.ts +0 -5
  124. package/dist/feature/student-picker/src/core.d.ts +0 -19
  125. package/dist/feature/student-picker/src/student-picker.vue.d.ts +0 -26
  126. package/dist/feature/weekly-timetable/index.d.ts +0 -6
  127. package/dist/feature/weekly-timetable/src/core.d.ts +0 -33
  128. package/dist/feature/weekly-timetable/src/data.d.ts +0 -3
  129. package/dist/feature/weekly-timetable/src/weekly-timetable.vue.d.ts +0 -7
package/dist/index.d.ts CHANGED
@@ -1,1110 +1,25 @@
1
- import type { App } from 'vue';
2
- import './styles.css';
3
1
  /**
4
- * 组件库入口。
2
+ * @campus-admin/ui:组件包的出口。
5
3
  *
6
- * 分成 atom / base / feature 三层,判据见各层 index.ts 的注释。
7
- * 新增一个组件只需要改两处:组件自己的目录 + 所属层的 index.ts,
8
- * 顶层注册表由三层合并而来,不会再出现"导出了但没注册"。
9
- */
10
- export * from './atom';
11
- export * from './base';
12
- export * from './feature';
13
- export { COMPONENT_PREFIX, cx, ns } from './core/namespace';
14
- export type { ComponentSize, ComponentTone } from './core/namespace';
15
- export { getPrimaryColor, getTheme, isDarkTheme, resetPrimaryColor, setPrimaryColor, setTheme, setupTheme, THEME_ATTRIBUTE, } from './core/theme';
16
- export type { CaTheme } from './core/theme';
17
- /** 组件注册表,campus-admin 与 CampusUI 插件共用 */
18
- export declare const builtInComponents: {
19
- CaDailyAgenda: import("vue").DefineComponent<{
20
- keyword?: string;
21
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
- detail: (title: string, description: string) => any;
23
- }, string, import("vue").PublicProps, Readonly<{
24
- keyword?: string;
25
- }> & Readonly<{
26
- onDetail?: ((title: string, description: string) => any) | undefined;
27
- }>, {
28
- keyword: string;
29
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
30
- CaStudentPicker: import("vue").DefineComponent<{
31
- modelValue?: import("./feature").StudentValue;
32
- students?: import("./feature").StudentOption[];
33
- multiple?: boolean;
34
- placeholder?: string;
35
- loading?: boolean;
36
- clearable?: boolean;
37
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
38
- search: (keyword: string) => any;
39
- "update:modelValue": (value: import("./feature").StudentValue) => any;
40
- change: (value: import("./feature").StudentValue, students: import("./feature").StudentOption[]) => any;
41
- }, string, import("vue").PublicProps, Readonly<{
42
- modelValue?: import("./feature").StudentValue;
43
- students?: import("./feature").StudentOption[];
44
- multiple?: boolean;
45
- placeholder?: string;
46
- loading?: boolean;
47
- clearable?: boolean;
48
- }> & Readonly<{
49
- onSearch?: ((keyword: string) => any) | undefined;
50
- "onUpdate:modelValue"?: ((value: import("./feature").StudentValue) => any) | undefined;
51
- onChange?: ((value: import("./feature").StudentValue, students: import("./feature").StudentOption[]) => any) | undefined;
52
- }>, {
53
- loading: boolean;
54
- clearable: boolean;
55
- students: import("./feature").StudentOption[];
56
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
57
- CaWeeklyTimetable: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
58
- detail: (title: string, description: string) => any;
59
- }, string, import("vue").PublicProps, Readonly<{}> & Readonly<{
60
- onDetail?: ((title: string, description: string) => any) | undefined;
61
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
62
- CaBreadcrumb: {
63
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
64
- items: import("./base").BreadcrumbItem[];
65
- homeIcon?: boolean;
66
- }> & Readonly<{
67
- onNavigate?: ((item: import("./base").BreadcrumbItem, index: number) => any) | undefined;
68
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
69
- navigate: (item: import("./base").BreadcrumbItem, index: number) => any;
70
- }, import("vue").PublicProps, {
71
- homeIcon: boolean;
72
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
73
- P: {};
74
- B: {};
75
- D: {};
76
- C: {};
77
- M: {};
78
- Defaults: {};
79
- }, Readonly<{
80
- items: import("./base").BreadcrumbItem[];
81
- homeIcon?: boolean;
82
- }> & Readonly<{
83
- onNavigate?: ((item: import("./base").BreadcrumbItem, index: number) => any) | undefined;
84
- }>, {}, {}, {}, {}, {
85
- homeIcon: boolean;
86
- }>;
87
- __isFragment?: never;
88
- __isTeleport?: never;
89
- __isSuspense?: never;
90
- } & import("vue").ComponentOptionsBase<Readonly<{
91
- items: import("./base").BreadcrumbItem[];
92
- homeIcon?: boolean;
93
- }> & Readonly<{
94
- onNavigate?: ((item: import("./base").BreadcrumbItem, index: number) => any) | undefined;
95
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
96
- navigate: (item: import("./base").BreadcrumbItem, index: number) => any;
97
- }, string, {
98
- homeIcon: boolean;
99
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
100
- $slots: {
101
- extra?: (props: {}) => any;
102
- };
103
- });
104
- CaClassTree: import("vue").DefineComponent<{
105
- modelValue?: string;
106
- grades?: import("./base").GradeTreeNode[];
107
- searchable?: boolean;
108
- expandedKeys?: string[];
109
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
110
- "update:modelValue": (id: string) => any;
111
- change: (id: string, node: {
112
- id: string;
113
- label: string;
114
- }) => any;
115
- "update:expandedKeys": (keys: string[]) => any;
116
- }, string, import("vue").PublicProps, Readonly<{
117
- modelValue?: string;
118
- grades?: import("./base").GradeTreeNode[];
119
- searchable?: boolean;
120
- expandedKeys?: string[];
121
- }> & Readonly<{
122
- "onUpdate:modelValue"?: ((id: string) => any) | undefined;
123
- onChange?: ((id: string, node: {
124
- id: string;
125
- label: string;
126
- }) => any) | undefined;
127
- "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
128
- }>, {
129
- grades: import("./base").GradeTreeNode[];
130
- searchable: boolean;
131
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
132
- CaCopyright: {
133
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
134
- name?: string;
135
- displayCopyright?: string;
136
- partner?: string;
137
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
138
- name: string;
139
- displayCopyright: string;
140
- partner: string;
141
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
142
- P: {};
143
- B: {};
144
- D: {};
145
- C: {};
146
- M: {};
147
- Defaults: {};
148
- }, Readonly<{
149
- name?: string;
150
- displayCopyright?: string;
151
- partner?: string;
152
- }> & Readonly<{}>, {}, {}, {}, {}, {
153
- name: string;
154
- displayCopyright: string;
155
- partner: string;
156
- }>;
157
- __isFragment?: never;
158
- __isTeleport?: never;
159
- __isSuspense?: never;
160
- } & import("vue").ComponentOptionsBase<Readonly<{
161
- name?: string;
162
- displayCopyright?: string;
163
- partner?: string;
164
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
165
- name: string;
166
- displayCopyright: string;
167
- partner: string;
168
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
169
- $slots: {
170
- default?: (props: {}) => any;
171
- };
172
- });
173
- CaDrawer: {
174
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
175
- modelValue?: boolean;
176
- title?: string;
177
- placement?: "right" | "left" | "bottom";
178
- size?: number | string;
179
- maskClosable?: boolean;
180
- escClosable?: boolean;
181
- }> & Readonly<{
182
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
183
- onClosed?: (() => any) | undefined;
184
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
185
- "update:modelValue": (value: boolean) => any;
186
- closed: () => any;
187
- }, import("vue").PublicProps, {
188
- size: number | string;
189
- placement: "right" | "left" | "bottom";
190
- maskClosable: boolean;
191
- escClosable: boolean;
192
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
193
- P: {};
194
- B: {};
195
- D: {};
196
- C: {};
197
- M: {};
198
- Defaults: {};
199
- }, Readonly<{
200
- modelValue?: boolean;
201
- title?: string;
202
- placement?: "right" | "left" | "bottom";
203
- size?: number | string;
204
- maskClosable?: boolean;
205
- escClosable?: boolean;
206
- }> & Readonly<{
207
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
208
- onClosed?: (() => any) | undefined;
209
- }>, {}, {}, {}, {}, {
210
- size: number | string;
211
- placement: "right" | "left" | "bottom";
212
- maskClosable: boolean;
213
- escClosable: boolean;
214
- }>;
215
- __isFragment?: never;
216
- __isTeleport?: never;
217
- __isSuspense?: never;
218
- } & import("vue").ComponentOptionsBase<Readonly<{
219
- modelValue?: boolean;
220
- title?: string;
221
- placement?: "right" | "left" | "bottom";
222
- size?: number | string;
223
- maskClosable?: boolean;
224
- escClosable?: boolean;
225
- }> & Readonly<{
226
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
227
- onClosed?: (() => any) | undefined;
228
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
229
- "update:modelValue": (value: boolean) => any;
230
- closed: () => any;
231
- }, string, {
232
- size: number | string;
233
- placement: "right" | "left" | "bottom";
234
- maskClosable: boolean;
235
- escClosable: boolean;
236
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
237
- $slots: {
238
- title?: (props: {}) => any;
239
- } & {
240
- default?: (props: {}) => any;
241
- } & {
242
- footer?: (props: {}) => any;
243
- };
244
- });
245
- CaEmpty: {
246
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
247
- title?: string;
248
- description?: string;
249
- size?: "small" | "medium";
250
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
251
- P: {};
252
- B: {};
253
- D: {};
254
- C: {};
255
- M: {};
256
- Defaults: {};
257
- }, Readonly<{
258
- title?: string;
259
- description?: string;
260
- size?: "small" | "medium";
261
- }> & Readonly<{}>, {}, {}, {}, {}, {}>;
262
- __isFragment?: never;
263
- __isTeleport?: never;
264
- __isSuspense?: never;
265
- } & import("vue").ComponentOptionsBase<Readonly<{
266
- title?: string;
267
- description?: string;
268
- size?: "small" | "medium";
269
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
270
- $slots: {
271
- icon?: (props: {}) => any;
272
- } & {
273
- default?: (props: {}) => any;
274
- };
275
- });
276
- CaModal: {
277
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
278
- modelValue?: boolean;
279
- title?: string;
280
- width?: number | string;
281
- maskClosable?: boolean;
282
- escClosable?: boolean;
283
- destroyOnClose?: boolean;
284
- showFooter?: boolean;
285
- confirmText?: string;
286
- cancelText?: string;
287
- confirmLoading?: boolean;
288
- }> & Readonly<{
289
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
290
- onClosed?: (() => any) | undefined;
291
- onCancel?: (() => any) | undefined;
292
- onConfirm?: (() => any) | undefined;
293
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
294
- "update:modelValue": (value: boolean) => any;
295
- closed: () => any;
296
- cancel: () => any;
297
- confirm: () => any;
298
- }, import("vue").PublicProps, {
299
- maskClosable: boolean;
300
- escClosable: boolean;
301
- showFooter: boolean;
302
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
303
- P: {};
304
- B: {};
305
- D: {};
306
- C: {};
307
- M: {};
308
- Defaults: {};
309
- }, Readonly<{
310
- modelValue?: boolean;
311
- title?: string;
312
- width?: number | string;
313
- maskClosable?: boolean;
314
- escClosable?: boolean;
315
- destroyOnClose?: boolean;
316
- showFooter?: boolean;
317
- confirmText?: string;
318
- cancelText?: string;
319
- confirmLoading?: boolean;
320
- }> & Readonly<{
321
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
322
- onClosed?: (() => any) | undefined;
323
- onCancel?: (() => any) | undefined;
324
- onConfirm?: (() => any) | undefined;
325
- }>, {}, {}, {}, {}, {
326
- maskClosable: boolean;
327
- escClosable: boolean;
328
- showFooter: boolean;
329
- }>;
330
- __isFragment?: never;
331
- __isTeleport?: never;
332
- __isSuspense?: never;
333
- } & import("vue").ComponentOptionsBase<Readonly<{
334
- modelValue?: boolean;
335
- title?: string;
336
- width?: number | string;
337
- maskClosable?: boolean;
338
- escClosable?: boolean;
339
- destroyOnClose?: boolean;
340
- showFooter?: boolean;
341
- confirmText?: string;
342
- cancelText?: string;
343
- confirmLoading?: boolean;
344
- }> & Readonly<{
345
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
346
- onClosed?: (() => any) | undefined;
347
- onCancel?: (() => any) | undefined;
348
- onConfirm?: (() => any) | undefined;
349
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
350
- "update:modelValue": (value: boolean) => any;
351
- closed: () => any;
352
- cancel: () => any;
353
- confirm: () => any;
354
- }, string, {
355
- maskClosable: boolean;
356
- escClosable: boolean;
357
- showFooter: boolean;
358
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
359
- $slots: {
360
- title?: (props: {}) => any;
361
- } & {
362
- default?: (props: {}) => any;
363
- } & {
364
- footer?: (props: {}) => any;
365
- };
366
- });
367
- CaPageHeader: {
368
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
369
- title: string;
370
- description?: string;
371
- backable?: boolean;
372
- bordered?: boolean;
373
- }> & Readonly<{
374
- onBack?: (() => any) | undefined;
375
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
376
- back: () => any;
377
- }, import("vue").PublicProps, {
378
- bordered: boolean;
379
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
380
- P: {};
381
- B: {};
382
- D: {};
383
- C: {};
384
- M: {};
385
- Defaults: {};
386
- }, Readonly<{
387
- title: string;
388
- description?: string;
389
- backable?: boolean;
390
- bordered?: boolean;
391
- }> & Readonly<{
392
- onBack?: (() => any) | undefined;
393
- }>, {}, {}, {}, {}, {
394
- bordered: boolean;
395
- }>;
396
- __isFragment?: never;
397
- __isTeleport?: never;
398
- __isSuspense?: never;
399
- } & import("vue").ComponentOptionsBase<Readonly<{
400
- title: string;
401
- description?: string;
402
- backable?: boolean;
403
- bordered?: boolean;
404
- }> & Readonly<{
405
- onBack?: (() => any) | undefined;
406
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
407
- back: () => any;
408
- }, string, {
409
- bordered: boolean;
410
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
411
- $slots: {
412
- default?: (props: {}) => any;
413
- };
414
- });
415
- CaPagination: import("vue").DefineComponent<{
416
- current?: number;
417
- pageSize?: number;
418
- total: number;
419
- disabled?: boolean;
420
- showTotal?: boolean;
421
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
422
- change: (page: number, size: number) => any;
423
- "update:current": (page: number) => any;
424
- "update:pageSize": (size: number) => any;
425
- }, string, import("vue").PublicProps, Readonly<{
426
- current?: number;
427
- pageSize?: number;
428
- total: number;
429
- disabled?: boolean;
430
- showTotal?: boolean;
431
- }> & Readonly<{
432
- onChange?: ((page: number, size: number) => any) | undefined;
433
- "onUpdate:current"?: ((page: number) => any) | undefined;
434
- "onUpdate:pageSize"?: ((size: number) => any) | undefined;
435
- }>, {
436
- disabled: boolean;
437
- current: number;
438
- pageSize: number;
439
- showTotal: boolean;
440
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
441
- CaSearchForm: {
442
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
443
- loading?: boolean;
444
- columns?: number;
445
- visibleCount?: number;
446
- searchText?: string;
447
- resetText?: string;
448
- }> & Readonly<{
449
- onSearch?: (() => any) | undefined;
450
- onReset?: (() => any) | undefined;
451
- }>, {
452
- expand: () => void;
453
- collapse: () => void;
454
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
455
- search: () => any;
456
- reset: () => any;
457
- }, import("vue").PublicProps, {
458
- columns: number;
459
- visibleCount: number;
460
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
461
- P: {};
462
- B: {};
463
- D: {};
464
- C: {};
465
- M: {};
466
- Defaults: {};
467
- }, Readonly<{
468
- loading?: boolean;
469
- columns?: number;
470
- visibleCount?: number;
471
- searchText?: string;
472
- resetText?: string;
473
- }> & Readonly<{
474
- onSearch?: (() => any) | undefined;
475
- onReset?: (() => any) | undefined;
476
- }>, {
477
- expand: () => void;
478
- collapse: () => void;
479
- }, {}, {}, {}, {
480
- columns: number;
481
- visibleCount: number;
482
- }>;
483
- __isFragment?: never;
484
- __isTeleport?: never;
485
- __isSuspense?: never;
486
- } & import("vue").ComponentOptionsBase<Readonly<{
487
- loading?: boolean;
488
- columns?: number;
489
- visibleCount?: number;
490
- searchText?: string;
491
- resetText?: string;
492
- }> & Readonly<{
493
- onSearch?: (() => any) | undefined;
494
- onReset?: (() => any) | undefined;
495
- }>, {
496
- expand: () => void;
497
- collapse: () => void;
498
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
499
- search: () => any;
500
- reset: () => any;
501
- }, string, {
502
- columns: number;
503
- visibleCount: number;
504
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
505
- $slots: {
506
- default?: (props: {}) => any;
507
- };
508
- });
509
- CaSideMenu: {
510
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
511
- items: import("./base").SideMenuItem[];
512
- modelValue?: string;
513
- expandedKeys?: string[];
514
- defaultExpandAll?: boolean;
515
- highlightBranch?: boolean;
516
- ariaLabel?: string;
517
- indent?: number;
518
- indentStep?: number;
519
- levelOffset?: number[];
520
- subIcon?: unknown;
521
- }> & Readonly<{
522
- onSelect?: ((item: import("./base").SideMenuItem, key: string) => any) | undefined;
523
- "onUpdate:modelValue"?: ((key: string, item: import("./base").SideMenuItem) => any) | undefined;
524
- "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
525
- "onExpand-change"?: ((keys: string[], key: string, expanded: boolean) => any) | undefined;
526
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
527
- select: (item: import("./base").SideMenuItem, key: string) => any;
528
- "update:modelValue": (key: string, item: import("./base").SideMenuItem) => any;
529
- "update:expandedKeys": (keys: string[]) => any;
530
- "expand-change": (keys: string[], key: string, expanded: boolean) => any;
531
- }, import("vue").PublicProps, {
532
- defaultExpandAll: boolean;
533
- highlightBranch: boolean;
534
- indent: number;
535
- indentStep: number;
536
- levelOffset: number[];
537
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
538
- P: {};
539
- B: {};
540
- D: {};
541
- C: {};
542
- M: {};
543
- Defaults: {};
544
- }, Readonly<{
545
- items: import("./base").SideMenuItem[];
546
- modelValue?: string;
547
- expandedKeys?: string[];
548
- defaultExpandAll?: boolean;
549
- highlightBranch?: boolean;
550
- ariaLabel?: string;
551
- indent?: number;
552
- indentStep?: number;
553
- levelOffset?: number[];
554
- subIcon?: unknown;
555
- }> & Readonly<{
556
- onSelect?: ((item: import("./base").SideMenuItem, key: string) => any) | undefined;
557
- "onUpdate:modelValue"?: ((key: string, item: import("./base").SideMenuItem) => any) | undefined;
558
- "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
559
- "onExpand-change"?: ((keys: string[], key: string, expanded: boolean) => any) | undefined;
560
- }>, {}, {}, {}, {}, {
561
- defaultExpandAll: boolean;
562
- highlightBranch: boolean;
563
- indent: number;
564
- indentStep: number;
565
- levelOffset: number[];
566
- }>;
567
- __isFragment?: never;
568
- __isTeleport?: never;
569
- __isSuspense?: never;
570
- } & import("vue").ComponentOptionsBase<Readonly<{
571
- items: import("./base").SideMenuItem[];
572
- modelValue?: string;
573
- expandedKeys?: string[];
574
- defaultExpandAll?: boolean;
575
- highlightBranch?: boolean;
576
- ariaLabel?: string;
577
- indent?: number;
578
- indentStep?: number;
579
- levelOffset?: number[];
580
- subIcon?: unknown;
581
- }> & Readonly<{
582
- onSelect?: ((item: import("./base").SideMenuItem, key: string) => any) | undefined;
583
- "onUpdate:modelValue"?: ((key: string, item: import("./base").SideMenuItem) => any) | undefined;
584
- "onUpdate:expandedKeys"?: ((keys: string[]) => any) | undefined;
585
- "onExpand-change"?: ((keys: string[], key: string, expanded: boolean) => any) | undefined;
586
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
587
- select: (item: import("./base").SideMenuItem, key: string) => any;
588
- "update:modelValue": (key: string, item: import("./base").SideMenuItem) => any;
589
- "update:expandedKeys": (keys: string[]) => any;
590
- "expand-change": (keys: string[], key: string, expanded: boolean) => any;
591
- }, string, {
592
- defaultExpandAll: boolean;
593
- highlightBranch: boolean;
594
- indent: number;
595
- indentStep: number;
596
- levelOffset: number[];
597
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
598
- $slots: {
599
- icon?: (props: {
600
- item: import("./base").FlatSideMenuItem;
601
- }) => any;
602
- } & {
603
- default?: (props: {
604
- item: import("./base").FlatSideMenuItem;
605
- }) => any;
606
- };
607
- });
608
- CaSkeleton: import("vue").DefineComponent<{
609
- rows?: number;
610
- variant?: "text" | "card" | "avatar";
611
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
612
- rows?: number;
613
- variant?: "text" | "card" | "avatar";
614
- }> & Readonly<{}>, {
615
- variant: "text" | "card" | "avatar";
616
- rows: number;
617
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
618
- CaStatistic: import("vue").DefineComponent<{
619
- label: string;
620
- value: string | number;
621
- unit?: string;
622
- hint?: string;
623
- tone?: import(".").ComponentTone;
624
- card?: boolean;
625
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
626
- label: string;
627
- value: string | number;
628
- unit?: string;
629
- hint?: string;
630
- tone?: import(".").ComponentTone;
631
- card?: boolean;
632
- }> & Readonly<{}>, {
633
- tone: import(".").ComponentTone;
634
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
635
- CaTable: <T extends object>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
636
- attrs: any;
637
- slots: {
638
- [x: `cell-${string}`]: ((props: {
639
- row: T;
640
- index: number;
641
- column: import("./base").TableColumn<T>;
642
- }) => any) | undefined;
643
- } & {
644
- empty?: (props: {}) => any;
645
- };
646
- emit: ((evt: "sort", key: string, order: import("./base").SortOrder) => void) & ((evt: "update:sortKey", key: string) => void) & ((evt: "update:sortOrder", order: import("./base").SortOrder) => void) & ((evt: "row-click", row: T, index: number) => void);
647
- }, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
648
- props: import("vue").PublicProps & {
649
- columns: import("./base").TableColumn<T>[];
650
- data?: T[] | undefined;
651
- rowKey?: string | ((row: T) => string) | undefined;
652
- loading?: boolean | undefined;
653
- stripe?: boolean | undefined;
654
- compact?: boolean | undefined;
655
- sortKey?: string | undefined;
656
- sortOrder?: import("./base").SortOrder | undefined;
657
- emptyText?: string | undefined;
658
- onSort?: ((key: string, order: import("./base").SortOrder) => any) | undefined;
659
- "onUpdate:sortKey"?: ((key: string) => any) | undefined;
660
- "onUpdate:sortOrder"?: ((order: import("./base").SortOrder) => any) | undefined;
661
- "onRow-click"?: ((row: T, index: number) => any) | undefined;
662
- } & (typeof globalThis extends {
663
- __VLS_PROPS_FALLBACK: infer P;
664
- } ? P : {});
665
- expose: (exposed: {}) => void;
666
- attrs: any;
667
- slots: {
668
- [x: `cell-${string}`]: ((props: {
669
- row: T;
670
- index: number;
671
- column: import("./base").TableColumn<T>;
672
- }) => any) | undefined;
673
- } & {
674
- empty?: (props: {}) => any;
675
- };
676
- emit: ((evt: "sort", key: string, order: import("./base").SortOrder) => void) & ((evt: "update:sortKey", key: string) => void) & ((evt: "update:sortOrder", order: import("./base").SortOrder) => void) & ((evt: "row-click", row: T, index: number) => void);
677
- }>) => import("vue").VNode & {
678
- __ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
679
- };
680
- CaToastContainer: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
681
- CaAttendanceBadge: import("vue").DefineComponent<{
682
- status?: import("./atom").AttendanceStatus | string;
683
- time?: string;
684
- size?: "small" | "medium";
685
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
686
- status?: import("./atom").AttendanceStatus | string;
687
- time?: string;
688
- size?: "small" | "medium";
689
- }> & Readonly<{}>, {
690
- status: import("./atom").AttendanceStatus | string;
691
- size: "small" | "medium";
692
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
693
- CaAvatar: import("vue").DefineComponent<{
694
- src?: string;
695
- name?: string;
696
- size?: "small" | "medium" | "large";
697
- shape?: "circle" | "square";
698
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
699
- src?: string;
700
- name?: string;
701
- size?: "small" | "medium" | "large";
702
- shape?: "circle" | "square";
703
- }> & Readonly<{}>, {
704
- size: "small" | "medium" | "large";
705
- shape: "circle" | "square";
706
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
707
- CaButton: {
708
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
709
- type?: import(".").ComponentTone;
710
- variant?: "solid" | "outline" | "text";
711
- size?: import(".").ComponentSize;
712
- disabled?: boolean;
713
- loading?: boolean;
714
- block?: boolean;
715
- iconOnly?: boolean;
716
- nativeType?: "button" | "submit" | "reset";
717
- }> & Readonly<{
718
- onClick?: ((event: MouseEvent) => any) | undefined;
719
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
720
- click: (event: MouseEvent) => any;
721
- }, import("vue").PublicProps, {
722
- size: import(".").ComponentSize;
723
- type: import(".").ComponentTone;
724
- variant: "solid" | "outline" | "text";
725
- nativeType: "button" | "submit" | "reset";
726
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
727
- P: {};
728
- B: {};
729
- D: {};
730
- C: {};
731
- M: {};
732
- Defaults: {};
733
- }, Readonly<{
734
- type?: import(".").ComponentTone;
735
- variant?: "solid" | "outline" | "text";
736
- size?: import(".").ComponentSize;
737
- disabled?: boolean;
738
- loading?: boolean;
739
- block?: boolean;
740
- iconOnly?: boolean;
741
- nativeType?: "button" | "submit" | "reset";
742
- }> & Readonly<{
743
- onClick?: ((event: MouseEvent) => any) | undefined;
744
- }>, {}, {}, {}, {}, {
745
- size: import(".").ComponentSize;
746
- type: import(".").ComponentTone;
747
- variant: "solid" | "outline" | "text";
748
- nativeType: "button" | "submit" | "reset";
749
- }>;
750
- __isFragment?: never;
751
- __isTeleport?: never;
752
- __isSuspense?: never;
753
- } & import("vue").ComponentOptionsBase<Readonly<{
754
- type?: import(".").ComponentTone;
755
- variant?: "solid" | "outline" | "text";
756
- size?: import(".").ComponentSize;
757
- disabled?: boolean;
758
- loading?: boolean;
759
- block?: boolean;
760
- iconOnly?: boolean;
761
- nativeType?: "button" | "submit" | "reset";
762
- }> & Readonly<{
763
- onClick?: ((event: MouseEvent) => any) | undefined;
764
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
765
- click: (event: MouseEvent) => any;
766
- }, string, {
767
- size: import(".").ComponentSize;
768
- type: import(".").ComponentTone;
769
- variant: "solid" | "outline" | "text";
770
- nativeType: "button" | "submit" | "reset";
771
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
772
- $slots: {
773
- icon?: (props: {}) => any;
774
- } & {
775
- default?: (props: {}) => any;
776
- };
777
- });
778
- CaCheckbox: {
779
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
780
- modelValue?: boolean | "indeterminate";
781
- label?: string;
782
- disabled?: boolean;
783
- }> & Readonly<{
784
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
785
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
786
- "update:modelValue": (value: boolean) => any;
787
- }, import("vue").PublicProps, {
788
- modelValue: boolean | "indeterminate";
789
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
790
- P: {};
791
- B: {};
792
- D: {};
793
- C: {};
794
- M: {};
795
- Defaults: {};
796
- }, Readonly<{
797
- modelValue?: boolean | "indeterminate";
798
- label?: string;
799
- disabled?: boolean;
800
- }> & Readonly<{
801
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
802
- }>, {}, {}, {}, {}, {
803
- modelValue: boolean | "indeterminate";
804
- }>;
805
- __isFragment?: never;
806
- __isTeleport?: never;
807
- __isSuspense?: never;
808
- } & import("vue").ComponentOptionsBase<Readonly<{
809
- modelValue?: boolean | "indeterminate";
810
- label?: string;
811
- disabled?: boolean;
812
- }> & Readonly<{
813
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
814
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
815
- "update:modelValue": (value: boolean) => any;
816
- }, string, {
817
- modelValue: boolean | "indeterminate";
818
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
819
- $slots: {
820
- default?: (props: {}) => any;
821
- };
822
- });
823
- CaIcon: {
824
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
825
- icon?: import("vue").Component;
826
- size?: number;
827
- color?: string;
828
- decorative?: boolean;
829
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
830
- size: number;
831
- decorative: boolean;
832
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
833
- P: {};
834
- B: {};
835
- D: {};
836
- C: {};
837
- M: {};
838
- Defaults: {};
839
- }, Readonly<{
840
- icon?: import("vue").Component;
841
- size?: number;
842
- color?: string;
843
- decorative?: boolean;
844
- }> & Readonly<{}>, {}, {}, {}, {}, {
845
- size: number;
846
- decorative: boolean;
847
- }>;
848
- __isFragment?: never;
849
- __isTeleport?: never;
850
- __isSuspense?: never;
851
- } & import("vue").ComponentOptionsBase<Readonly<{
852
- icon?: import("vue").Component;
853
- size?: number;
854
- color?: string;
855
- decorative?: boolean;
856
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
857
- size: number;
858
- decorative: boolean;
859
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
860
- $slots: {
861
- default?: (props: {}) => any;
862
- };
863
- });
864
- CaInput: {
865
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
866
- modelValue?: string | number;
867
- type?: "text" | "password" | "number" | "tel";
868
- placeholder?: string;
869
- size?: "small" | "medium" | "large";
870
- disabled?: boolean;
871
- readonly?: boolean;
872
- clearable?: boolean;
873
- invalid?: boolean;
874
- errorId?: string;
875
- }> & Readonly<{
876
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
877
- onClear?: (() => any) | undefined;
878
- onEnter?: (() => any) | undefined;
879
- }>, {
880
- focus: () => void;
881
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
882
- "update:modelValue": (value: string) => any;
883
- clear: () => any;
884
- enter: () => any;
885
- }, import("vue").PublicProps, {
886
- size: "small" | "medium" | "large";
887
- type: "text" | "password" | "number" | "tel";
888
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
889
- P: {};
890
- B: {};
891
- D: {};
892
- C: {};
893
- M: {};
894
- Defaults: {};
895
- }, Readonly<{
896
- modelValue?: string | number;
897
- type?: "text" | "password" | "number" | "tel";
898
- placeholder?: string;
899
- size?: "small" | "medium" | "large";
900
- disabled?: boolean;
901
- readonly?: boolean;
902
- clearable?: boolean;
903
- invalid?: boolean;
904
- errorId?: string;
905
- }> & Readonly<{
906
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
907
- onClear?: (() => any) | undefined;
908
- onEnter?: (() => any) | undefined;
909
- }>, {
910
- focus: () => void;
911
- }, {}, {}, {}, {
912
- size: "small" | "medium" | "large";
913
- type: "text" | "password" | "number" | "tel";
914
- }>;
915
- __isFragment?: never;
916
- __isTeleport?: never;
917
- __isSuspense?: never;
918
- } & import("vue").ComponentOptionsBase<Readonly<{
919
- modelValue?: string | number;
920
- type?: "text" | "password" | "number" | "tel";
921
- placeholder?: string;
922
- size?: "small" | "medium" | "large";
923
- disabled?: boolean;
924
- readonly?: boolean;
925
- clearable?: boolean;
926
- invalid?: boolean;
927
- errorId?: string;
928
- }> & Readonly<{
929
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
930
- onClear?: (() => any) | undefined;
931
- onEnter?: (() => any) | undefined;
932
- }>, {
933
- focus: () => void;
934
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
935
- "update:modelValue": (value: string) => any;
936
- clear: () => any;
937
- enter: () => any;
938
- }, string, {
939
- size: "small" | "medium" | "large";
940
- type: "text" | "password" | "number" | "tel";
941
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
942
- $slots: {
943
- prefix?: (props: {}) => any;
944
- } & {
945
- suffix?: (props: {}) => any;
946
- };
947
- });
948
- CaProgress: import("vue").DefineComponent<{
949
- percent?: number;
950
- type?: "line" | "circle";
951
- tone?: "primary" | "success" | "warning" | "danger";
952
- size?: number;
953
- showText?: boolean;
954
- strokeWidth?: number;
955
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
956
- percent?: number;
957
- type?: "line" | "circle";
958
- tone?: "primary" | "success" | "warning" | "danger";
959
- size?: number;
960
- showText?: boolean;
961
- strokeWidth?: number;
962
- }> & Readonly<{}>, {
963
- tone: "primary" | "success" | "warning" | "danger";
964
- size: number;
965
- type: "line" | "circle";
966
- percent: number;
967
- strokeWidth: number;
968
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
969
- CaSelect: import("vue").DefineComponent<{
970
- modelValue?: string | number;
971
- options?: import("./atom").SelectOptions;
972
- placeholder?: string;
973
- size?: "small" | "medium" | "large";
974
- disabled?: boolean;
975
- clearable?: boolean;
976
- invalid?: boolean;
977
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
978
- "update:modelValue": (value: string) => any;
979
- change: (value: string) => any;
980
- }, string, import("vue").PublicProps, Readonly<{
981
- modelValue?: string | number;
982
- options?: import("./atom").SelectOptions;
983
- placeholder?: string;
984
- size?: "small" | "medium" | "large";
985
- disabled?: boolean;
986
- clearable?: boolean;
987
- invalid?: boolean;
988
- }> & Readonly<{
989
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
990
- onChange?: ((value: string) => any) | undefined;
991
- }>, {
992
- size: "small" | "medium" | "large";
993
- options: import("./atom").SelectOptions;
994
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
995
- CaSlogan: import("vue").DefineComponent<{
996
- title?: string;
997
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
998
- title?: string;
999
- }> & Readonly<{}>, {
1000
- title: string;
1001
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1002
- CaSwitch: import("vue").DefineComponent<{
1003
- modelValue?: boolean;
1004
- activeText?: string;
1005
- inactiveText?: string;
1006
- disabled?: boolean;
1007
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1008
- "update:modelValue": (value: boolean) => any;
1009
- }, string, import("vue").PublicProps, Readonly<{
1010
- modelValue?: boolean;
1011
- activeText?: string;
1012
- inactiveText?: string;
1013
- disabled?: boolean;
1014
- }> & Readonly<{
1015
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
1016
- }>, {
1017
- modelValue: boolean;
1018
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1019
- CaTag: {
1020
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
1021
- tone?: import(".").ComponentTone;
1022
- variant?: "soft" | "solid" | "outline";
1023
- size?: "small" | "medium";
1024
- closable?: boolean;
1025
- dot?: boolean;
1026
- }> & Readonly<{
1027
- onClose?: (() => any) | undefined;
1028
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1029
- close: () => any;
1030
- }, import("vue").PublicProps, {
1031
- tone: import(".").ComponentTone;
1032
- size: "small" | "medium";
1033
- variant: "soft" | "solid" | "outline";
1034
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
1035
- P: {};
1036
- B: {};
1037
- D: {};
1038
- C: {};
1039
- M: {};
1040
- Defaults: {};
1041
- }, Readonly<{
1042
- tone?: import(".").ComponentTone;
1043
- variant?: "soft" | "solid" | "outline";
1044
- size?: "small" | "medium";
1045
- closable?: boolean;
1046
- dot?: boolean;
1047
- }> & Readonly<{
1048
- onClose?: (() => any) | undefined;
1049
- }>, {}, {}, {}, {}, {
1050
- tone: import(".").ComponentTone;
1051
- size: "small" | "medium";
1052
- variant: "soft" | "solid" | "outline";
1053
- }>;
1054
- __isFragment?: never;
1055
- __isTeleport?: never;
1056
- __isSuspense?: never;
1057
- } & import("vue").ComponentOptionsBase<Readonly<{
1058
- tone?: import(".").ComponentTone;
1059
- variant?: "soft" | "solid" | "outline";
1060
- size?: "small" | "medium";
1061
- closable?: boolean;
1062
- dot?: boolean;
1063
- }> & Readonly<{
1064
- onClose?: (() => any) | undefined;
1065
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1066
- close: () => any;
1067
- }, string, {
1068
- tone: import(".").ComponentTone;
1069
- size: "small" | "medium";
1070
- variant: "soft" | "solid" | "outline";
1071
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
1072
- $slots: {
1073
- default?: (props: {}) => any;
1074
- };
1075
- });
1076
- CaTextarea: import("vue").DefineComponent<{
1077
- modelValue?: string;
1078
- placeholder?: string;
1079
- rows?: number;
1080
- maxlength?: number;
1081
- disabled?: boolean;
1082
- invalid?: boolean;
1083
- showCount?: boolean;
1084
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1085
- "update:modelValue": (value: string) => any;
1086
- }, string, import("vue").PublicProps, Readonly<{
1087
- modelValue?: string;
1088
- placeholder?: string;
1089
- rows?: number;
1090
- maxlength?: number;
1091
- disabled?: boolean;
1092
- invalid?: boolean;
1093
- showCount?: boolean;
1094
- }> & Readonly<{
1095
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
1096
- }>, {
1097
- rows: number;
1098
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
1099
- };
1100
- /**
1101
- * 组件库插件,用于只做 UI 的项目单独安装组件库。
1102
- * 完整后台请直接使用 @campus-admin/core,它已自动注册这些组件。
4
+ * 目录结构(详见 README.md):
5
+ * components/<分类>/ 通用组件,分类并列:basic、button、config、display、form、layout、navigation、overlay、table
6
+ * campus/<场景>/ 校园业务场景封装的组件:student、teacher、parent、card、tel……
7
+ * oms/<场景>/ 运营平台场景封装的组件:school(学校管理)……
8
+ * shared/ 各目录共用的工具(封装函数、注册表合并、翻译注入、公共类型)
1103
9
  *
1104
- * 主题与品牌色不在这里初始化:默认亮色 + 默认蓝色由 token.css 提供,
1105
- * 需要切换时在应用入口调用 setTheme() / setPrimaryColor()。
10
+ * 平台只从 @campus-admin/core 引入,core 再转出这里的内容。
1106
11
  */
1107
- export declare const CampusUI: {
1108
- install(app: App): void;
1109
- };
1110
- export default CampusUI;
12
+ import type { App } from 'vue';
13
+ import 'element-plus/es/components/loading/style/css';
14
+ import { componentRegistry } from './components/index.js';
15
+ import { omsRegistry } from './oms/index.js';
16
+ import { campusRegistry } from './campus/index.js';
17
+ export * from './components/index.js';
18
+ export * from './oms/index.js';
19
+ export * from './campus/index.js';
20
+ export * from './shared/inject.js';
21
+ export type { Option } from './shared/types.js';
22
+ /** 全部组件的注册表(通用组件 + 校园场景 + 运营平台场景,同名会在合并时报错) */
23
+ export declare const uiComponents: typeof componentRegistry & typeof campusRegistry & typeof omsRegistry;
24
+ /** 把所有组件注册为全局组件,平台在模板里直接写 <ca-button> 等标签 */
25
+ export declare function installUi(app: App): void;