exploria-ui 2026.8.28 → 2026.10.3
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/dist/components/data/ECarousel/ECarousel.vue.d.ts +2 -2
- package/dist/components/data/EMediaViewer/EMediaViewer.d.ts +6 -1
- package/dist/components/feedback/EDialog/EDialog.vue.d.ts +6 -3
- package/dist/components/feedback/EDrawer/EDrawer.vue.d.ts +5 -0
- package/dist/components/feedback/EMessage/EMessage.d.ts +20 -7
- package/dist/components/feedback/EMessageBox/EMessageBox.d.ts +6 -3
- package/dist/components/feedback/ENotification/ENotification.d.ts +5 -3
- package/dist/components/hooks/useContainer.d.ts +104 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/node_modules/.pnpm/{@intlify_core-base@11.4.9 → @intlify_core-base@11.4.10}/node_modules/@intlify/core-base/dist/core-base.js +226 -226
- package/dist/node_modules/.pnpm/{@intlify_message-compiler@11.4.9 → @intlify_message-compiler@11.4.10}/node_modules/@intlify/message-compiler/dist/message-compiler.js +2 -2
- package/dist/node_modules/.pnpm/{@intlify_shared@11.4.9 → @intlify_shared@11.4.10}/node_modules/@intlify/shared/dist/shared.js +38 -34
- package/dist/node_modules/.pnpm/{vue-i18n@11.4.9_vue@3.5.41_typescript@5.9.3_ → vue-i18n@11.4.10_vue@3.5.41_typescript@5.9.3_}/node_modules/vue-i18n/dist/vue-i18n.js +137 -137
- package/dist/src/components/data/EMediaViewer/EMediaViewer.js +36 -33
- package/dist/src/components/data/ESteps/EStepItem.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/src/components/feedback/EDialog/EDialog.vue.js +1 -1
- package/dist/src/components/feedback/EDialog/EDialog.vue_vue_type_script_setup_true_lang.js +63 -60
- package/dist/src/components/feedback/EDrawer/EDrawer.vue.js +1 -1
- package/dist/src/components/feedback/EDrawer/EDrawer.vue_vue_type_script_setup_true_lang.js +77 -49
- package/dist/src/components/feedback/EMessage/EMessage.js +76 -64
- package/dist/src/components/feedback/EMessageBox/EMessageBox.js +21 -20
- package/dist/src/components/feedback/ENotification/ENotification.js +80 -82
- package/dist/src/components/hooks/useContainer.js +129 -0
- package/package.json +3 -3
|
@@ -21,11 +21,11 @@ declare function __VLS_template(): {
|
|
|
21
21
|
};
|
|
22
22
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
23
23
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
24
|
-
"update:model-value": (value: number) => any;
|
|
25
24
|
change: (value: number) => any;
|
|
25
|
+
"update:model-value": (value: number) => any;
|
|
26
26
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
27
|
-
"onUpdate:model-value"?: ((value: number) => any) | undefined;
|
|
28
27
|
onChange?: ((value: number) => any) | undefined;
|
|
28
|
+
"onUpdate:model-value"?: ((value: number) => any) | undefined;
|
|
29
29
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
30
30
|
carouselRef: HTMLDivElement;
|
|
31
31
|
arrowCanvas: HTMLCanvasElement;
|
|
@@ -12,5 +12,10 @@ export default class EMediaViewer {
|
|
|
12
12
|
*
|
|
13
13
|
* 此参数专为异步场景设计,确保动画参考元素的准确性。
|
|
14
14
|
*/
|
|
15
|
-
animationReferenceElement?: HTMLElement
|
|
15
|
+
animationReferenceElement?: HTMLElement,
|
|
16
|
+
/**
|
|
17
|
+
* 弹窗挂载点。默认 document.body,此时媒体查看器铺满视口。
|
|
18
|
+
* 传入挂载元素后,媒体查看器仅覆盖该元素,且缩放动画以该元素中心为基准。
|
|
19
|
+
*/
|
|
20
|
+
mountPoint?: HTMLElement): void;
|
|
16
21
|
}
|
|
@@ -23,9 +23,12 @@ interface ModalProps {
|
|
|
23
23
|
*
|
|
24
24
|
* 此参数专为异步场景设计,确保动画参考元素的准确性。
|
|
25
25
|
*/
|
|
26
|
-
animationReferenceElement?: HTMLElement
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
animationReferenceElement?: HTMLElement;
|
|
27
|
+
/**
|
|
28
|
+
* 弹窗挂载点。默认 document.body,此时遮罩铺满视口、对话框在视口中居中。
|
|
29
|
+
* 传入挂载元素后,遮罩仅覆盖该元素,对话框在其内居中。
|
|
30
|
+
*/
|
|
31
|
+
mountPoint?: HTMLElement;
|
|
29
32
|
}
|
|
30
33
|
declare function __VLS_template(): {
|
|
31
34
|
attrs: Partial<{}>;
|
|
@@ -10,6 +10,11 @@ interface DrawerProps {
|
|
|
10
10
|
size?: ESize;
|
|
11
11
|
showFooter?: boolean;
|
|
12
12
|
closeOnClickMask?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* 抽屉挂载点。默认 document.body,此时遮罩铺满视口、抽屉贴靠视口边缘。
|
|
15
|
+
* 传入挂载元素后,遮罩仅覆盖该元素,抽屉贴靠其边缘。
|
|
16
|
+
*/
|
|
17
|
+
mountPoint?: HTMLElement;
|
|
13
18
|
}
|
|
14
19
|
declare function __VLS_template(): {
|
|
15
20
|
attrs: Partial<{}>;
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
import { default as Message } from './EMessage.vue';
|
|
2
2
|
export default class EMessage {
|
|
3
|
+
/**
|
|
4
|
+
* 获取容器对应的队列状态,首次使用时注册容器变化监听。
|
|
5
|
+
*/
|
|
6
|
+
private static getMessageState;
|
|
7
|
+
/**
|
|
8
|
+
* 按容器重新排布消息队列。
|
|
9
|
+
*/
|
|
3
10
|
private static layout;
|
|
4
|
-
|
|
11
|
+
/**
|
|
12
|
+
* 队列变化时,对存量消息播放位移过渡。
|
|
13
|
+
*/
|
|
5
14
|
private static flipExisting;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
static
|
|
10
|
-
static
|
|
11
|
-
static
|
|
15
|
+
/**
|
|
16
|
+
* 队列清空后释放容器对应的状态与监听。
|
|
17
|
+
*/
|
|
18
|
+
private static releaseState;
|
|
19
|
+
static show(str: string, type: InstanceType<typeof Message>['type'], duration?: number, mountPoint?: HTMLElement): () => void;
|
|
20
|
+
static loading(str: string, mountPoint?: HTMLElement): () => void;
|
|
21
|
+
static success(str: string, duration?: number, mountPoint?: HTMLElement): () => void;
|
|
22
|
+
static error(str: string, duration?: number, mountPoint?: HTMLElement): () => void;
|
|
23
|
+
static info(str: string, duration?: number, mountPoint?: HTMLElement): () => void;
|
|
24
|
+
static warning(str: string, duration?: number, mountPoint?: HTMLElement): () => void;
|
|
12
25
|
}
|
|
@@ -14,9 +14,12 @@ interface MessageBoxOptions {
|
|
|
14
14
|
*
|
|
15
15
|
* 此参数专为异步场景设计,确保动画参考元素的准确性。
|
|
16
16
|
*/
|
|
17
|
-
animationReferenceElement?: HTMLElement
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
animationReferenceElement?: HTMLElement;
|
|
18
|
+
/**
|
|
19
|
+
* 弹窗挂载点。默认 document.body,此时遮罩与对话框铺满视口。
|
|
20
|
+
* 传入挂载元素后,遮罩与对话框仅覆盖该元素,且居中位置以该元素为准。
|
|
21
|
+
*/
|
|
22
|
+
mountPoint?: HTMLElement;
|
|
20
23
|
}
|
|
21
24
|
export default class EMessageBox {
|
|
22
25
|
private static show;
|
|
@@ -7,11 +7,13 @@ interface NotificationOptions {
|
|
|
7
7
|
placement?: NotificationPlacement;
|
|
8
8
|
showClose?: boolean;
|
|
9
9
|
onClick?: () => void;
|
|
10
|
+
/**
|
|
11
|
+
* 弹窗挂载点。默认 document.body,此时通知贴靠视口边缘。
|
|
12
|
+
* 传入挂载元素后,通知贴靠其边缘并随其变化重新排布。
|
|
13
|
+
*/
|
|
14
|
+
mountPoint?: HTMLElement;
|
|
10
15
|
}
|
|
11
16
|
export default class ENotification {
|
|
12
|
-
private static getContainerList;
|
|
13
|
-
private static layout;
|
|
14
|
-
private static flipExisting;
|
|
15
17
|
static show(options: string | NotificationOptions): {
|
|
16
18
|
close: () => void;
|
|
17
19
|
};
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { MaybeRefOrGetter, Ref, ShallowRef } from 'vue';
|
|
2
|
+
/**
|
|
3
|
+
* 弹窗容器。默认 document.body。
|
|
4
|
+
*
|
|
5
|
+
* 只接受标准 HTMLElement(可选参数,不传即默认 body):
|
|
6
|
+
* 传入容器元素后,遮罩仅覆盖该容器、弹窗在容器内居中;
|
|
7
|
+
* 未传(undefined)时回退到 document.body,遮罩铺满视口。
|
|
8
|
+
*/
|
|
9
|
+
export type EContainerTarget = HTMLElement;
|
|
10
|
+
/**
|
|
11
|
+
* 容器在视口中的矩形区域。
|
|
12
|
+
*/
|
|
13
|
+
export interface EContainerBox {
|
|
14
|
+
left: number;
|
|
15
|
+
top: number;
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* 弹窗定位模式。
|
|
21
|
+
*
|
|
22
|
+
* - `fixed`:弹窗相对视口定位,坐标直接取视口坐标(默认策略,可溢出容器)
|
|
23
|
+
* - `absolute`:容器链上存在 transform / filter / contain 等属性导致 fixed 的
|
|
24
|
+
* 包含块被改写时自动降级,坐标换算到容器内部
|
|
25
|
+
*/
|
|
26
|
+
export type EPositionMode = 'fixed' | 'absolute';
|
|
27
|
+
/**
|
|
28
|
+
* 铺满容器的样式。
|
|
29
|
+
*
|
|
30
|
+
* 只声明实际用到的字段,不复用 vue 的 `CSSProperties`——后者内部由 `csstype`
|
|
31
|
+
* 推导,会让构建产物的类型声明依赖 pnpm 提升目录里的间接依赖(TS2742)。
|
|
32
|
+
*/
|
|
33
|
+
export interface ECoverStyle {
|
|
34
|
+
position: EPositionMode;
|
|
35
|
+
left: string;
|
|
36
|
+
top: string;
|
|
37
|
+
width: string;
|
|
38
|
+
height: string;
|
|
39
|
+
/**
|
|
40
|
+
* 自定义属性索引签名。vue 的 `StyleValue` 要求样式对象具备该签名,
|
|
41
|
+
* 否则 `:style` 绑定会报 TS2345。
|
|
42
|
+
*/
|
|
43
|
+
[customProperty: `--${string}`]: string | number | undefined;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* 容器上下文。承载「弹窗挂在哪」与「坐标以谁为原点」两件事。
|
|
47
|
+
*/
|
|
48
|
+
export interface EContainerContext {
|
|
49
|
+
/** 解析后的容器元素 */
|
|
50
|
+
readonly container: HTMLElement;
|
|
51
|
+
/** 容器是否为 document.body */
|
|
52
|
+
readonly isBody: boolean;
|
|
53
|
+
/** 定位模式 */
|
|
54
|
+
readonly positionMode: EPositionMode;
|
|
55
|
+
/** 容器在视口中的矩形区域 */
|
|
56
|
+
getBox(): EContainerBox;
|
|
57
|
+
/** 视口坐标 → 可直接写入 style 的 left / top 值 */
|
|
58
|
+
toLocal(viewportX: number, viewportY: number): {
|
|
59
|
+
left: number;
|
|
60
|
+
top: number;
|
|
61
|
+
};
|
|
62
|
+
/** 元素在容器中居中时的 left / top 值 */
|
|
63
|
+
center(width: number, height: number): {
|
|
64
|
+
left: number;
|
|
65
|
+
top: number;
|
|
66
|
+
};
|
|
67
|
+
/** 让元素铺满容器的样式对象 */
|
|
68
|
+
coverStyle(): ECoverStyle;
|
|
69
|
+
/** 把元素铺满容器 */
|
|
70
|
+
cover(el: HTMLElement): void;
|
|
71
|
+
/** 监听容器尺寸与滚动变化,返回取消监听的函数 */
|
|
72
|
+
observe(onChange: () => void): () => void;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* 默认容器。运行时求值,避免 SSR / 测试环境下模块加载阶段访问 document 报错。
|
|
76
|
+
*/
|
|
77
|
+
export declare const getDefaultContainer: () => HTMLElement;
|
|
78
|
+
/**
|
|
79
|
+
* 归一化容器目标,未传(undefined)时回退到默认容器。
|
|
80
|
+
*/
|
|
81
|
+
export declare const normalizeContainer: (target?: EContainerTarget) => HTMLElement;
|
|
82
|
+
/**
|
|
83
|
+
* 创建容器上下文。
|
|
84
|
+
*/
|
|
85
|
+
export declare const createContainerContext: (target?: EContainerTarget) => EContainerContext;
|
|
86
|
+
/**
|
|
87
|
+
* `useContainer` 的返回值。显式声明,避免类型声明产物推导到间接依赖。
|
|
88
|
+
*/
|
|
89
|
+
export interface EContainerApi {
|
|
90
|
+
/** 解析后的容器元素 */
|
|
91
|
+
container: ShallowRef<HTMLElement>;
|
|
92
|
+
/** 容器在视口中的矩形区域 */
|
|
93
|
+
box: Ref<EContainerBox>;
|
|
94
|
+
/** 定位模式 */
|
|
95
|
+
positionMode: Ref<EPositionMode>;
|
|
96
|
+
/** 铺满容器的样式,可直接绑定到弹窗根节点 */
|
|
97
|
+
coverStyle: Ref<ECoverStyle>;
|
|
98
|
+
/** 手动刷新 box / positionMode / coverStyle */
|
|
99
|
+
refresh(): void;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* 组件内使用的容器上下文。容器尺寸或滚动变化时自动刷新 box。
|
|
103
|
+
*/
|
|
104
|
+
export declare const useContainer: (target?: MaybeRefOrGetter<EContainerTarget | undefined>) => EContainerApi;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export type { EContainerTarget } from './hooks/useContainer';
|
|
1
2
|
export { default as EDrag } from '../directives/EDrag.ts';
|
|
2
3
|
export { default as ESizeOb } from '../directives/ESizeOb.ts';
|
|
3
4
|
export { default as ERollingFollow } from './advanced/ERollingFollow/ERollingFollow.vue';
|