vue-popup-plus 1.1.5 → 1.2.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.
@@ -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
  */
@@ -360,12 +358,12 @@ declare type RenderExtraOptions = {
360
358
  */
361
359
  maskClickCloseEnabled?: 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
  /**
@@ -512,7 +510,7 @@ declare type RenderStyleOptions = {
512
510
  zIndex?: number;
513
511
  };
514
512
 
515
- declare type UpdateOptions = Partial<Omit<RenderOptions, 'component' | 'el' | 'autoHideWindowScroll'>>;
513
+ export declare type UpdateOptions = Partial<RenderStyleOptions>;
516
514
 
517
515
  /**
518
516
  * 获取弹出层控制器实例