snail.vue 2.0.32 → 2.0.33

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.
@@ -1,5 +1,5 @@
1
1
  import * as snail_core from 'snail.core';
2
- import { IAsyncScope, IScope, DateFormat, DateValue, TimeValue, RunResult } from 'snail.core';
2
+ import { IAsyncScope, IScope, ScopeOptions, DateFormat, DateValue, TimeValue, RunResult } from 'snail.core';
3
3
  import * as vue from 'vue';
4
4
  import { Component, ShallowRef, Ref, WatchSource, App } from 'vue';
5
5
  import * as snail_view from 'snail.view';
@@ -913,9 +913,10 @@ interface IPopupManager {
913
913
 
914
914
  /**
915
915
  * 使用【弹窗管理器】
916
+ * @param options 配置选项
916
917
  * @returns 全新的【弹窗管理器】实例+作用域对象
917
918
  */
918
- declare function usePopup(): IPopupManager & IScope;
919
+ declare function usePopup(options?: Pick<ScopeOptions, "global">): IPopupManager & IScope;
919
920
 
920
921
  /**
921
922
  * 滚动选择器 相关实体
@@ -2970,9 +2971,10 @@ declare const MOTION: Readonly<{
2970
2971
 
2971
2972
  /**
2972
2973
  * 使用选择器
2974
+ * @param options 配置选项
2973
2975
  * @returns 选择器实例+作用域对象
2974
2976
  */
2975
- declare function usePicker(): IPickerManager & IScope;
2977
+ declare function usePicker(options?: Pick<ScopeOptions, "global">): IPickerManager & IScope;
2976
2978
 
2977
2979
  declare const components: {
2978
2980
  Button: {