@campus-admin/ui 1.0.0 → 2.0.1

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
@@ -1,444 +0,0 @@
1
- /**
2
- * 原子类组件。
3
- *
4
- * 判据:元素级、不占版面,扔进任意容器都不会自己撑出一块区域,
5
- * 多数情况下作为其他组件的零件使用。
6
- *
7
- * 这一层最稳定,上层组件都依赖它,新增组件优先补在这里。
8
- */
9
- import { CaAttendanceBadge } from './attendance-badge';
10
- import { CaAvatar } from './avatar';
11
- import { CaButton } from './button';
12
- import { CaCheckbox } from './checkbox';
13
- import { CaIcon } from './icon';
14
- import { CaInput } from './input';
15
- import { CaProgress } from './progress';
16
- import { CaSelect } from './select';
17
- import { CaSlogan } from './slogan';
18
- import { CaSwitch } from './switch';
19
- import { CaTag } from './tag';
20
- import { CaTextarea } from './textarea';
21
- export { CaAttendanceBadge, CaAvatar, CaButton, CaCheckbox, CaIcon, CaInput, CaProgress, CaSelect, CaSlogan, CaSwitch, CaTag, CaTextarea, };
22
- export type { AttendanceMeta, AttendanceStatus } from './attendance-badge';
23
- export type { SelectOption, SelectOptions } from './select';
24
- /** 原子层注册表,由顶层 index.ts 合并成 builtInComponents */
25
- export declare const atomComponents: {
26
- CaAttendanceBadge: import("vue").DefineComponent<{
27
- status?: import("./attendance-badge").AttendanceStatus | string;
28
- time?: string;
29
- size?: "small" | "medium";
30
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
31
- status?: import("./attendance-badge").AttendanceStatus | string;
32
- time?: string;
33
- size?: "small" | "medium";
34
- }> & Readonly<{}>, {
35
- status: import("./attendance-badge").AttendanceStatus | string;
36
- size: "small" | "medium";
37
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
38
- CaAvatar: import("vue").DefineComponent<{
39
- src?: string;
40
- name?: string;
41
- size?: "small" | "medium" | "large";
42
- shape?: "circle" | "square";
43
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
44
- src?: string;
45
- name?: string;
46
- size?: "small" | "medium" | "large";
47
- shape?: "circle" | "square";
48
- }> & Readonly<{}>, {
49
- size: "small" | "medium" | "large";
50
- shape: "circle" | "square";
51
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
52
- CaButton: {
53
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
54
- type?: import("..").ComponentTone;
55
- variant?: "solid" | "outline" | "text";
56
- size?: import("..").ComponentSize;
57
- disabled?: boolean;
58
- loading?: boolean;
59
- block?: boolean;
60
- iconOnly?: boolean;
61
- nativeType?: "button" | "submit" | "reset";
62
- }> & Readonly<{
63
- onClick?: ((event: MouseEvent) => any) | undefined;
64
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
65
- click: (event: MouseEvent) => any;
66
- }, import("vue").PublicProps, {
67
- size: import("..").ComponentSize;
68
- type: import("..").ComponentTone;
69
- variant: "solid" | "outline" | "text";
70
- nativeType: "button" | "submit" | "reset";
71
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
72
- P: {};
73
- B: {};
74
- D: {};
75
- C: {};
76
- M: {};
77
- Defaults: {};
78
- }, Readonly<{
79
- type?: import("..").ComponentTone;
80
- variant?: "solid" | "outline" | "text";
81
- size?: import("..").ComponentSize;
82
- disabled?: boolean;
83
- loading?: boolean;
84
- block?: boolean;
85
- iconOnly?: boolean;
86
- nativeType?: "button" | "submit" | "reset";
87
- }> & Readonly<{
88
- onClick?: ((event: MouseEvent) => any) | undefined;
89
- }>, {}, {}, {}, {}, {
90
- size: import("..").ComponentSize;
91
- type: import("..").ComponentTone;
92
- variant: "solid" | "outline" | "text";
93
- nativeType: "button" | "submit" | "reset";
94
- }>;
95
- __isFragment?: never;
96
- __isTeleport?: never;
97
- __isSuspense?: never;
98
- } & import("vue").ComponentOptionsBase<Readonly<{
99
- type?: import("..").ComponentTone;
100
- variant?: "solid" | "outline" | "text";
101
- size?: import("..").ComponentSize;
102
- disabled?: boolean;
103
- loading?: boolean;
104
- block?: boolean;
105
- iconOnly?: boolean;
106
- nativeType?: "button" | "submit" | "reset";
107
- }> & Readonly<{
108
- onClick?: ((event: MouseEvent) => any) | undefined;
109
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
110
- click: (event: MouseEvent) => any;
111
- }, string, {
112
- size: import("..").ComponentSize;
113
- type: import("..").ComponentTone;
114
- variant: "solid" | "outline" | "text";
115
- nativeType: "button" | "submit" | "reset";
116
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
117
- $slots: {
118
- icon?: (props: {}) => any;
119
- } & {
120
- default?: (props: {}) => any;
121
- };
122
- });
123
- CaCheckbox: {
124
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
125
- modelValue?: boolean | "indeterminate";
126
- label?: string;
127
- disabled?: boolean;
128
- }> & Readonly<{
129
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
130
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
131
- "update:modelValue": (value: boolean) => any;
132
- }, import("vue").PublicProps, {
133
- modelValue: boolean | "indeterminate";
134
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
135
- P: {};
136
- B: {};
137
- D: {};
138
- C: {};
139
- M: {};
140
- Defaults: {};
141
- }, Readonly<{
142
- modelValue?: boolean | "indeterminate";
143
- label?: string;
144
- disabled?: boolean;
145
- }> & Readonly<{
146
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
147
- }>, {}, {}, {}, {}, {
148
- modelValue: boolean | "indeterminate";
149
- }>;
150
- __isFragment?: never;
151
- __isTeleport?: never;
152
- __isSuspense?: never;
153
- } & import("vue").ComponentOptionsBase<Readonly<{
154
- modelValue?: boolean | "indeterminate";
155
- label?: string;
156
- disabled?: boolean;
157
- }> & Readonly<{
158
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
159
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
160
- "update:modelValue": (value: boolean) => any;
161
- }, string, {
162
- modelValue: boolean | "indeterminate";
163
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
164
- $slots: {
165
- default?: (props: {}) => any;
166
- };
167
- });
168
- CaIcon: {
169
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
170
- icon?: import("vue").Component;
171
- size?: number;
172
- color?: string;
173
- decorative?: boolean;
174
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
175
- size: number;
176
- decorative: boolean;
177
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
178
- P: {};
179
- B: {};
180
- D: {};
181
- C: {};
182
- M: {};
183
- Defaults: {};
184
- }, Readonly<{
185
- icon?: import("vue").Component;
186
- size?: number;
187
- color?: string;
188
- decorative?: boolean;
189
- }> & Readonly<{}>, {}, {}, {}, {}, {
190
- size: number;
191
- decorative: boolean;
192
- }>;
193
- __isFragment?: never;
194
- __isTeleport?: never;
195
- __isSuspense?: never;
196
- } & import("vue").ComponentOptionsBase<Readonly<{
197
- icon?: import("vue").Component;
198
- size?: number;
199
- color?: string;
200
- decorative?: boolean;
201
- }> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
202
- size: number;
203
- decorative: boolean;
204
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
205
- $slots: {
206
- default?: (props: {}) => any;
207
- };
208
- });
209
- CaInput: {
210
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
211
- modelValue?: string | number;
212
- type?: "text" | "password" | "number" | "tel";
213
- placeholder?: string;
214
- size?: "small" | "medium" | "large";
215
- disabled?: boolean;
216
- readonly?: boolean;
217
- clearable?: boolean;
218
- invalid?: boolean;
219
- errorId?: string;
220
- }> & Readonly<{
221
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
222
- onClear?: (() => any) | undefined;
223
- onEnter?: (() => any) | undefined;
224
- }>, {
225
- focus: () => void;
226
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
227
- "update:modelValue": (value: string) => any;
228
- clear: () => any;
229
- enter: () => any;
230
- }, import("vue").PublicProps, {
231
- size: "small" | "medium" | "large";
232
- type: "text" | "password" | "number" | "tel";
233
- }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
234
- P: {};
235
- B: {};
236
- D: {};
237
- C: {};
238
- M: {};
239
- Defaults: {};
240
- }, Readonly<{
241
- modelValue?: string | number;
242
- type?: "text" | "password" | "number" | "tel";
243
- placeholder?: string;
244
- size?: "small" | "medium" | "large";
245
- disabled?: boolean;
246
- readonly?: boolean;
247
- clearable?: boolean;
248
- invalid?: boolean;
249
- errorId?: string;
250
- }> & Readonly<{
251
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
252
- onClear?: (() => any) | undefined;
253
- onEnter?: (() => any) | undefined;
254
- }>, {
255
- focus: () => void;
256
- }, {}, {}, {}, {
257
- size: "small" | "medium" | "large";
258
- type: "text" | "password" | "number" | "tel";
259
- }>;
260
- __isFragment?: never;
261
- __isTeleport?: never;
262
- __isSuspense?: never;
263
- } & import("vue").ComponentOptionsBase<Readonly<{
264
- modelValue?: string | number;
265
- type?: "text" | "password" | "number" | "tel";
266
- placeholder?: string;
267
- size?: "small" | "medium" | "large";
268
- disabled?: boolean;
269
- readonly?: boolean;
270
- clearable?: boolean;
271
- invalid?: boolean;
272
- errorId?: string;
273
- }> & Readonly<{
274
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
275
- onClear?: (() => any) | undefined;
276
- onEnter?: (() => any) | undefined;
277
- }>, {
278
- focus: () => void;
279
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
280
- "update:modelValue": (value: string) => any;
281
- clear: () => any;
282
- enter: () => any;
283
- }, string, {
284
- size: "small" | "medium" | "large";
285
- type: "text" | "password" | "number" | "tel";
286
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
287
- $slots: {
288
- prefix?: (props: {}) => any;
289
- } & {
290
- suffix?: (props: {}) => any;
291
- };
292
- });
293
- CaProgress: import("vue").DefineComponent<{
294
- percent?: number;
295
- type?: "line" | "circle";
296
- tone?: "primary" | "success" | "warning" | "danger";
297
- size?: number;
298
- showText?: boolean;
299
- strokeWidth?: number;
300
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
301
- percent?: number;
302
- type?: "line" | "circle";
303
- tone?: "primary" | "success" | "warning" | "danger";
304
- size?: number;
305
- showText?: boolean;
306
- strokeWidth?: number;
307
- }> & Readonly<{}>, {
308
- tone: "primary" | "success" | "warning" | "danger";
309
- size: number;
310
- type: "line" | "circle";
311
- percent: number;
312
- strokeWidth: number;
313
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
314
- CaSelect: import("vue").DefineComponent<{
315
- modelValue?: string | number;
316
- options?: import("./select").SelectOptions;
317
- placeholder?: string;
318
- size?: "small" | "medium" | "large";
319
- disabled?: boolean;
320
- clearable?: boolean;
321
- invalid?: boolean;
322
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
323
- "update:modelValue": (value: string) => any;
324
- change: (value: string) => any;
325
- }, string, import("vue").PublicProps, Readonly<{
326
- modelValue?: string | number;
327
- options?: import("./select").SelectOptions;
328
- placeholder?: string;
329
- size?: "small" | "medium" | "large";
330
- disabled?: boolean;
331
- clearable?: boolean;
332
- invalid?: boolean;
333
- }> & Readonly<{
334
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
335
- onChange?: ((value: string) => any) | undefined;
336
- }>, {
337
- size: "small" | "medium" | "large";
338
- options: import("./select").SelectOptions;
339
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
340
- CaSlogan: import("vue").DefineComponent<{
341
- title?: string;
342
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
343
- title?: string;
344
- }> & Readonly<{}>, {
345
- title: string;
346
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
347
- CaSwitch: import("vue").DefineComponent<{
348
- modelValue?: boolean;
349
- activeText?: string;
350
- inactiveText?: string;
351
- disabled?: boolean;
352
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
353
- "update:modelValue": (value: boolean) => any;
354
- }, string, import("vue").PublicProps, Readonly<{
355
- modelValue?: boolean;
356
- activeText?: string;
357
- inactiveText?: string;
358
- disabled?: boolean;
359
- }> & Readonly<{
360
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
361
- }>, {
362
- modelValue: boolean;
363
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
364
- CaTag: {
365
- new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
366
- tone?: import("..").ComponentTone;
367
- variant?: "soft" | "solid" | "outline";
368
- size?: "small" | "medium";
369
- closable?: boolean;
370
- dot?: boolean;
371
- }> & Readonly<{
372
- onClose?: (() => any) | undefined;
373
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
374
- close: () => any;
375
- }, import("vue").PublicProps, {
376
- tone: import("..").ComponentTone;
377
- size: "small" | "medium";
378
- variant: "soft" | "solid" | "outline";
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
- tone?: import("..").ComponentTone;
388
- variant?: "soft" | "solid" | "outline";
389
- size?: "small" | "medium";
390
- closable?: boolean;
391
- dot?: boolean;
392
- }> & Readonly<{
393
- onClose?: (() => any) | undefined;
394
- }>, {}, {}, {}, {}, {
395
- tone: import("..").ComponentTone;
396
- size: "small" | "medium";
397
- variant: "soft" | "solid" | "outline";
398
- }>;
399
- __isFragment?: never;
400
- __isTeleport?: never;
401
- __isSuspense?: never;
402
- } & import("vue").ComponentOptionsBase<Readonly<{
403
- tone?: import("..").ComponentTone;
404
- variant?: "soft" | "solid" | "outline";
405
- size?: "small" | "medium";
406
- closable?: boolean;
407
- dot?: boolean;
408
- }> & Readonly<{
409
- onClose?: (() => any) | undefined;
410
- }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
411
- close: () => any;
412
- }, string, {
413
- tone: import("..").ComponentTone;
414
- size: "small" | "medium";
415
- variant: "soft" | "solid" | "outline";
416
- }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
417
- $slots: {
418
- default?: (props: {}) => any;
419
- };
420
- });
421
- CaTextarea: import("vue").DefineComponent<{
422
- modelValue?: string;
423
- placeholder?: string;
424
- rows?: number;
425
- maxlength?: number;
426
- disabled?: boolean;
427
- invalid?: boolean;
428
- showCount?: boolean;
429
- }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
430
- "update:modelValue": (value: string) => any;
431
- }, string, import("vue").PublicProps, Readonly<{
432
- modelValue?: string;
433
- placeholder?: string;
434
- rows?: number;
435
- maxlength?: number;
436
- disabled?: boolean;
437
- invalid?: boolean;
438
- showCount?: boolean;
439
- }> & Readonly<{
440
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
441
- }>, {
442
- rows: number;
443
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
444
- };
@@ -1,3 +0,0 @@
1
- import CaInput from './src/input.vue';
2
- export { CaInput };
3
- export default CaInput;
@@ -1,43 +0,0 @@
1
- type __VLS_Props = {
2
- modelValue?: string | number;
3
- type?: 'text' | 'password' | 'number' | 'tel';
4
- placeholder?: string;
5
- size?: 'small' | 'medium' | 'large';
6
- disabled?: boolean;
7
- readonly?: boolean;
8
- clearable?: boolean;
9
- /** 校验失败,显示错误边框 */
10
- invalid?: boolean;
11
- /** 关联的错误提示 id,供 aria-describedby 使用 */
12
- errorId?: string;
13
- };
14
- /** 供父组件调用,例如打开弹层后自动聚焦 */
15
- declare function focus(): void;
16
- declare var __VLS_1: {}, __VLS_8: {};
17
- type __VLS_Slots = {} & {
18
- prefix?: (props: typeof __VLS_1) => any;
19
- } & {
20
- suffix?: (props: typeof __VLS_8) => any;
21
- };
22
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {
23
- focus: typeof focus;
24
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
- "update:modelValue": (value: string) => any;
26
- clear: () => any;
27
- enter: () => any;
28
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
29
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
30
- onClear?: (() => any) | undefined;
31
- onEnter?: (() => any) | undefined;
32
- }>, {
33
- size: "small" | "medium" | "large";
34
- type: "text" | "password" | "number" | "tel";
35
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
36
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
- declare const _default: typeof __VLS_export;
38
- export default _default;
39
- type __VLS_WithSlots<T, S> = T & {
40
- new (): {
41
- $slots: S;
42
- };
43
- };
@@ -1,4 +0,0 @@
1
- import CaProgress from './src/progress.vue';
2
- export { CaProgress };
3
- export { clampPercent, percentOf, progressTone } from './src/core';
4
- export default CaProgress;
@@ -1,9 +0,0 @@
1
- /** 把任意数值收敛到 0–100,避免外部传入越界值破坏布局 */
2
- export declare function clampPercent(value: number): number;
3
- /** 按总数计算百分比,总数为 0 时返回 0 */
4
- export declare function percentOf(value: number, total: number): number;
5
- /** 进度语义色:低于阈值提示异常 */
6
- export declare function progressTone(percent: number, thresholds?: {
7
- warning: number;
8
- danger: number;
9
- }): 'primary' | 'warning' | 'danger';
@@ -1,19 +0,0 @@
1
- type __VLS_Props = {
2
- /** 百分比,0–100 */
3
- percent?: number;
4
- type?: 'line' | 'circle';
5
- tone?: 'primary' | 'success' | 'warning' | 'danger';
6
- size?: number;
7
- /** 显示右侧百分比文字 */
8
- showText?: boolean;
9
- strokeWidth?: number;
10
- };
11
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
12
- tone: "primary" | "success" | "warning" | "danger";
13
- size: number;
14
- type: "line" | "circle";
15
- percent: number;
16
- strokeWidth: number;
17
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
- declare const _default: typeof __VLS_export;
19
- export default _default;
@@ -1,5 +0,0 @@
1
- import CaSelect from './src/select.vue';
2
- export { CaSelect };
3
- export { findOption, normalizeOptions } from './src/core';
4
- export type { SelectOption, SelectOptions } from './src/core';
5
- export default CaSelect;
@@ -1,9 +0,0 @@
1
- export interface SelectOption {
2
- label: string;
3
- value: string;
4
- disabled?: boolean;
5
- }
6
- export type SelectOptions = Array<string | SelectOption>;
7
- /** 统一字符串 / 对象两种写法,组件内部只处理对象数组 */
8
- export declare function normalizeOptions(options: SelectOptions): SelectOption[];
9
- export declare function findOption(options: SelectOption[], value: string | number | undefined): SelectOption | undefined;
@@ -1,22 +0,0 @@
1
- import type { SelectOptions } from './core';
2
- type __VLS_Props = {
3
- modelValue?: string | number;
4
- options?: SelectOptions;
5
- placeholder?: string;
6
- size?: 'small' | 'medium' | 'large';
7
- disabled?: boolean;
8
- clearable?: boolean;
9
- invalid?: 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
- change: (value: string) => any;
14
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
15
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
16
- onChange?: ((value: string) => any) | undefined;
17
- }>, {
18
- size: "small" | "medium" | "large";
19
- options: SelectOptions;
20
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
21
- declare const _default: typeof __VLS_export;
22
- export default _default;
@@ -1,3 +0,0 @@
1
- import CaSlogan from './src/slogan.vue';
2
- export { CaSlogan };
3
- export default CaSlogan;
@@ -1,3 +0,0 @@
1
- import CaSwitch from './src/switch.vue';
2
- export { CaSwitch };
3
- export default CaSwitch;
@@ -1,16 +0,0 @@
1
- type __VLS_Props = {
2
- modelValue?: boolean;
3
- /** 开启 / 关闭时的辅助文字 */
4
- activeText?: string;
5
- inactiveText?: string;
6
- disabled?: boolean;
7
- };
8
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
- "update:modelValue": (value: boolean) => any;
10
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
12
- }>, {
13
- modelValue: boolean;
14
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
15
- declare const _default: typeof __VLS_export;
16
- export default _default;
@@ -1,3 +0,0 @@
1
- import CaTag from './src/tag.vue';
2
- export { CaTag };
3
- export default CaTag;
@@ -1,31 +0,0 @@
1
- import type { ComponentTone } from '@/core/namespace';
2
- type __VLS_Props = {
3
- tone?: ComponentTone;
4
- /** 浅色底 / 实心 */
5
- variant?: 'soft' | 'solid' | 'outline';
6
- size?: 'small' | 'medium';
7
- closable?: boolean;
8
- /** 状态类标签可加圆点 */
9
- dot?: boolean;
10
- };
11
- declare var __VLS_1: {};
12
- type __VLS_Slots = {} & {
13
- default?: (props: typeof __VLS_1) => any;
14
- };
15
- declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
16
- close: () => any;
17
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
18
- onClose?: (() => any) | undefined;
19
- }>, {
20
- tone: ComponentTone;
21
- size: "small" | "medium";
22
- variant: "soft" | "solid" | "outline";
23
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
24
- declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
25
- declare const _default: typeof __VLS_export;
26
- export default _default;
27
- type __VLS_WithSlots<T, S> = T & {
28
- new (): {
29
- $slots: S;
30
- };
31
- };
@@ -1,3 +0,0 @@
1
- import CaTextarea from './src/textarea.vue';
2
- export { CaTextarea };
3
- export default CaTextarea;
@@ -1,19 +0,0 @@
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;
@@ -1,4 +0,0 @@
1
- import CaBreadcrumb from './src/breadcrumb.vue';
2
- export { CaBreadcrumb };
3
- export type { BreadcrumbItem } from './src/breadcrumb.vue';
4
- export default CaBreadcrumb;