vue-popup-plus 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -64,7 +64,7 @@ declare type ControllerPrototypeFunctionValue = (this: IController, ...args: any
64
64
 
65
65
  declare type CoreConfig = Required<CoreOptions>;
66
66
 
67
- declare type CoreOptions = {
67
+ export declare type CoreOptions = {
68
68
  /**
69
69
  * 弹出层 zIndex 基础值
70
70
  * - 默认为1000,每次生成弹出层时,除非 render() 方法传入 zIndex,否则使用此基础值,每次使用后会自动递增
@@ -190,7 +190,7 @@ declare interface IController extends PopupCustomProperties {
190
190
  destroy(instanceId: InstanceId, payload?: any): void;
191
191
  }
192
192
 
193
- export declare interface IDefinePlugin {
193
+ declare interface IDefinePlugin {
194
194
  /**
195
195
  * 定义插件
196
196
  * - 插件是一个对象,包含插件名称和安装方法
@@ -230,14 +230,14 @@ declare interface IInstanceId {
230
230
  name: Readonly<string>;
231
231
  }
232
232
 
233
- declare class InstanceId implements IInstanceId {
233
+ export declare class InstanceId implements IInstanceId {
234
234
  #private;
235
235
  get seed(): number;
236
236
  get name(): string;
237
237
  constructor(seed: number);
238
238
  }
239
239
 
240
- export declare interface IPluginWrappedController extends IController {
240
+ declare interface IPluginWrappedController extends IController {
241
241
  /**
242
242
  * 原型属性
243
243
  * - 可在插件的 `install` 方法中扩展方法或属性
@@ -344,13 +344,11 @@ declare type RenderComponentOptions = {
344
344
  onUnmounted?: (payload?: any) => void;
345
345
  };
346
346
 
347
- declare type RenderElement = HTMLElement | string;
348
-
349
- declare type RenderExtraOptions = {
347
+ declare type RenderConfigOptions = {
350
348
  /**
351
- * 弹出层挂载的元素,不指定时,默认挂载到 body 元素下
349
+ * 弹出层挂载的父元素,不指定时,默认挂载到 body 元素下
352
350
  */
353
- el?: RenderElement;
351
+ appendTo?: Element | string;
354
352
  /**
355
353
  * 弹出层是否显示遮罩层,默认值为 true
356
354
  */
@@ -358,14 +356,14 @@ declare type RenderExtraOptions = {
358
356
  /**
359
357
  * 点击遮罩层是否关闭弹出层,默认值为 false ,仅在 mask 为 true 时有效
360
358
  */
361
- maskClickCloseEnabled?: boolean;
359
+ maskClickClose?: boolean;
362
360
  /**
363
- * 弹出层是否自动隐藏窗口滚动条,默认值为 true
361
+ * 弹出层是否禁用窗口滚动,默认值为 true
364
362
  */
365
- autoHideWindowScroll?: boolean;
363
+ disableScroll?: boolean;
366
364
  };
367
365
 
368
- declare type RenderOptions = RenderComponentOptions & RenderStyleOptions & RenderExtraOptions;
366
+ export declare type RenderOptions = RenderConfigOptions & RenderComponentOptions & RenderStyleOptions;
369
367
 
370
368
  declare type RenderStyleOptions = {
371
369
  /**
@@ -482,6 +480,10 @@ declare type RenderStyleOptions = {
482
480
  * minHeight: 300,
483
481
  */
484
482
  minHeight?: string | number;
483
+ /**
484
+ * 弹出层视图动画类型,默认为 POPUP_ANIMATIONS.FADE ,即淡入淡出,更多动画类型请查看 {@link IAnimations}
485
+ */
486
+ viewAnimation?: Animation_2;
485
487
  /**
486
488
  * 弹出层视图水平偏移量,默认为 0 ,单位为 px
487
489
  */
@@ -495,24 +497,24 @@ declare type RenderStyleOptions = {
495
497
  */
496
498
  viewTranslateOverflow?: boolean;
497
499
  /**
498
- * 弹出层动画时长,默认为 100 ,单位为 毫秒
500
+ * 弹出层遮罩动画类型,默认为 POPUP_ANIMATIONS.FADE ,即淡入淡出,更多动画类型请查看 {@link IAnimations}
499
501
  */
500
- animationDuration?: number;
502
+ maskAnimation?: Animation_2;
501
503
  /**
502
- * 遮罩层动画类型,默认为 POPUP_ANIMATIONS.FADE ,即淡入淡出,更多动画类型请查看 {@link IAnimations}
504
+ * 弹出层遮罩是否启用模糊效果,默认为 true
503
505
  */
504
- maskAnimation?: Animation_2;
506
+ maskBlur?: boolean;
505
507
  /**
506
- * 视图层动画类型,默认为 POPUP_ANIMATIONS.FADE ,即淡入淡出,更多动画类型请查看 {@link IAnimations}
508
+ * 弹出层动画时长,默认为 100 ,单位为 毫秒
507
509
  */
508
- viewAnimation?: Animation_2;
510
+ animationDuration?: number;
509
511
  /**
510
512
  * 弹出层 zIndex ,若不设置,则使用全局递增的 zIndex 值
511
513
  */
512
514
  zIndex?: number;
513
515
  };
514
516
 
515
- declare type UpdateOptions = Partial<Omit<RenderOptions, 'component' | 'el' | 'autoHideWindowScroll'>>;
517
+ export declare type UpdateOptions = Partial<RenderStyleOptions>;
516
518
 
517
519
  /**
518
520
  * 获取弹出层控制器实例