@campus-admin/ui 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/components/basic/CaIcon.vue.d.ts +3 -2
- package/dist/components/basic/icon-font.d.ts +2 -0
- package/dist/components/basic/icons.d.ts +2 -0
- package/dist/components/basic/index.d.ts +7 -4
- package/dist/components/overlay/index.d.ts +6 -6
- package/dist/index.js +383 -342
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -168,3 +168,8 @@ Notifications offer success / info / warning / error just like toasts. When seve
|
|
|
168
168
|
```
|
|
169
169
|
|
|
170
170
|
The directives are registered automatically by `installUi`, which `createCampusApp` calls. Element Plus 2.14.7 warns that the infinite-scroll directive is deprecated in 3.0; this round keeps it to match the installed version and requirements, and it will be migrated when the base library's major version is upgraded. Infinite-scroll props match the base library; with async data the caller must prevent duplicate requests using busy / finished.
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
### 自定义图标字体(2.0.5)
|
|
174
|
+
|
|
175
|
+
`CaIcon.name` / `IconValue` 接受内置图标名(自动补全)或平台类名,如 `iconfont zxt-setting1`;平台提前加载对应 CSS(`::before` 字符、`@font-face` 字体),大小、颜色继承现有图标。内置名优先,字体未声明或下载失败时默认不显示;可传 `fallback="grid"` 使用内置回退。未传 name 的默认插槽用法保持不变。
|
|
@@ -46,3 +46,5 @@ export declare const ICONS: {
|
|
|
46
46
|
video: import("vue").DefineComponent<{}, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
47
47
|
};
|
|
48
48
|
export type IconName = keyof typeof ICONS;
|
|
49
|
+
/** 内置名保留自动补全,也接受平台加载的图标类名 */
|
|
50
|
+
export type IconValue = IconName | (string & {});
|
|
@@ -401,7 +401,7 @@ export declare const CaWatermark: import("element-plus/es/utils/vue/typescript.m
|
|
|
401
401
|
})>;
|
|
402
402
|
export { CaIcon, CaPageActions };
|
|
403
403
|
export { ICONS } from './icons.js';
|
|
404
|
-
export type { IconName } from './icons.js';
|
|
404
|
+
export type { IconName, IconValue } from './icons.js';
|
|
405
405
|
export declare const basicComponents: {
|
|
406
406
|
CaLink: import("element-plus/es/utils/vue/typescript.mjs").SFCWithInstall<{
|
|
407
407
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("element-plus").LinkProps> & Readonly<{
|
|
@@ -752,7 +752,8 @@ export declare const basicComponents: {
|
|
|
752
752
|
})>;
|
|
753
753
|
CaIcon: {
|
|
754
754
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
755
|
-
name?: import("./icons.js").
|
|
755
|
+
name?: import("./icons.js").IconValue;
|
|
756
|
+
fallback?: import("./icons.js").IconName;
|
|
756
757
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
757
758
|
P: {};
|
|
758
759
|
B: {};
|
|
@@ -761,13 +762,15 @@ export declare const basicComponents: {
|
|
|
761
762
|
M: {};
|
|
762
763
|
Defaults: {};
|
|
763
764
|
}, Readonly<{
|
|
764
|
-
name?: import("./icons.js").
|
|
765
|
+
name?: import("./icons.js").IconValue;
|
|
766
|
+
fallback?: import("./icons.js").IconName;
|
|
765
767
|
}> & Readonly<{}>, {}, {}, {}, {}, {}>;
|
|
766
768
|
__isFragment?: never;
|
|
767
769
|
__isTeleport?: never;
|
|
768
770
|
__isSuspense?: never;
|
|
769
771
|
} & import("vue").ComponentOptionsBase<Readonly<{
|
|
770
|
-
name?: import("./icons.js").
|
|
772
|
+
name?: import("./icons.js").IconValue;
|
|
773
|
+
fallback?: import("./icons.js").IconName;
|
|
771
774
|
}> & 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 () => {
|
|
772
775
|
$slots: {
|
|
773
776
|
default?: (props: {}) => any;
|
|
@@ -462,7 +462,6 @@ export declare const CaPopover: {
|
|
|
462
462
|
readonly tabindex?: string | number | (() => string | number) | undefined;
|
|
463
463
|
readonly title?: string | (() => string) | undefined;
|
|
464
464
|
readonly width?: string | number | (() => string | number) | undefined;
|
|
465
|
-
readonly disabled?: boolean | (() => boolean) | undefined;
|
|
466
465
|
readonly onFocus?: ((e: FocusEvent) => void) | (() => (e: FocusEvent) => void) | undefined;
|
|
467
466
|
readonly onBlur?: ((e: FocusEvent) => void) | (() => (e: FocusEvent) => void) | undefined;
|
|
468
467
|
readonly onKeydown?: ((e: KeyboardEvent) => void) | (() => (e: KeyboardEvent) => void) | undefined;
|
|
@@ -470,6 +469,8 @@ export declare const CaPopover: {
|
|
|
470
469
|
readonly onMouseleave?: ((e: MouseEvent) => void) | (() => (e: MouseEvent) => void) | undefined;
|
|
471
470
|
readonly onClick?: ((e: PointerEvent) => void) | (() => (e: PointerEvent) => void) | undefined;
|
|
472
471
|
readonly onContextmenu?: ((e: PointerEvent) => void) | (() => (e: PointerEvent) => void) | undefined;
|
|
472
|
+
readonly visible?: boolean | (() => boolean) | null | undefined;
|
|
473
|
+
readonly disabled?: boolean | (() => boolean) | undefined;
|
|
473
474
|
readonly effect?: import("element-plus").PopperEffect | (() => string) | undefined;
|
|
474
475
|
readonly id?: string | (() => string) | undefined;
|
|
475
476
|
readonly role?: "grid" | "menu" | "dialog" | "tree" | "tooltip" | "listbox" | "group" | "navigation" | (() => "grid" | "menu" | "dialog" | "tree" | "tooltip" | "listbox" | "group" | "navigation") | undefined;
|
|
@@ -488,8 +489,7 @@ export declare const CaPopover: {
|
|
|
488
489
|
readonly popperOptions?: (() => Partial<import("element-plus").Options>) | undefined;
|
|
489
490
|
readonly persistent?: boolean | (() => boolean) | undefined;
|
|
490
491
|
readonly fallbackPlacements?: (() => import("element-plus").Placement[]) | undefined;
|
|
491
|
-
readonly strategy?: "
|
|
492
|
-
readonly visible?: boolean | (() => boolean) | null | undefined;
|
|
492
|
+
readonly strategy?: "absolute" | "fixed" | (() => "absolute" | "fixed") | undefined;
|
|
493
493
|
readonly enterable?: boolean | (() => boolean) | undefined;
|
|
494
494
|
readonly pure?: boolean | (() => boolean) | undefined;
|
|
495
495
|
readonly focusOnShow?: boolean | (() => boolean) | undefined;
|
|
@@ -913,7 +913,6 @@ export declare const overlayComponents: {
|
|
|
913
913
|
readonly tabindex?: string | number | (() => string | number) | undefined;
|
|
914
914
|
readonly title?: string | (() => string) | undefined;
|
|
915
915
|
readonly width?: string | number | (() => string | number) | undefined;
|
|
916
|
-
readonly disabled?: boolean | (() => boolean) | undefined;
|
|
917
916
|
readonly onFocus?: ((e: FocusEvent) => void) | (() => (e: FocusEvent) => void) | undefined;
|
|
918
917
|
readonly onBlur?: ((e: FocusEvent) => void) | (() => (e: FocusEvent) => void) | undefined;
|
|
919
918
|
readonly onKeydown?: ((e: KeyboardEvent) => void) | (() => (e: KeyboardEvent) => void) | undefined;
|
|
@@ -921,6 +920,8 @@ export declare const overlayComponents: {
|
|
|
921
920
|
readonly onMouseleave?: ((e: MouseEvent) => void) | (() => (e: MouseEvent) => void) | undefined;
|
|
922
921
|
readonly onClick?: ((e: PointerEvent) => void) | (() => (e: PointerEvent) => void) | undefined;
|
|
923
922
|
readonly onContextmenu?: ((e: PointerEvent) => void) | (() => (e: PointerEvent) => void) | undefined;
|
|
923
|
+
readonly visible?: boolean | (() => boolean) | null | undefined;
|
|
924
|
+
readonly disabled?: boolean | (() => boolean) | undefined;
|
|
924
925
|
readonly effect?: import("element-plus").PopperEffect | (() => string) | undefined;
|
|
925
926
|
readonly id?: string | (() => string) | undefined;
|
|
926
927
|
readonly role?: "grid" | "menu" | "dialog" | "tree" | "tooltip" | "listbox" | "group" | "navigation" | (() => "grid" | "menu" | "dialog" | "tree" | "tooltip" | "listbox" | "group" | "navigation") | undefined;
|
|
@@ -939,8 +940,7 @@ export declare const overlayComponents: {
|
|
|
939
940
|
readonly popperOptions?: (() => Partial<import("element-plus").Options>) | undefined;
|
|
940
941
|
readonly persistent?: boolean | (() => boolean) | undefined;
|
|
941
942
|
readonly fallbackPlacements?: (() => import("element-plus").Placement[]) | undefined;
|
|
942
|
-
readonly strategy?: "
|
|
943
|
-
readonly visible?: boolean | (() => boolean) | null | undefined;
|
|
943
|
+
readonly strategy?: "absolute" | "fixed" | (() => "absolute" | "fixed") | undefined;
|
|
944
944
|
readonly enterable?: boolean | (() => boolean) | undefined;
|
|
945
945
|
readonly pure?: boolean | (() => boolean) | undefined;
|
|
946
946
|
readonly focusOnShow?: boolean | (() => boolean) | undefined;
|