z-ui-pc 0.5.12 → 0.5.14

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/index.d.ts CHANGED
@@ -1623,6 +1623,17 @@ declare type IDynamicExpressionRuleKeys = keyof typeof DYNAMIC_EXPRESSION_RULES;
1623
1623
 
1624
1624
  export declare type IEDialogEventValues = "dialog:confirm" | "dialog:cancel";
1625
1625
 
1626
+ export declare interface IEllipsisTooltipConfig {
1627
+ visible: boolean;
1628
+ content: string;
1629
+ rect: DOMRect;
1630
+ effect: "dark" | "light";
1631
+ placement: "top" | "bottom" | "left" | "right";
1632
+ tipWidth?: string;
1633
+ rawContent?: boolean;
1634
+ enterable?: boolean;
1635
+ }
1636
+
1626
1637
  /**
1627
1638
  * 分组的列的数据
1628
1639
  */
@@ -2088,6 +2099,12 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
2088
2099
 
2089
2100
  export declare const uiConfigService: UiConfigService;
2090
2101
 
2102
+ /**
2103
+ * 更新 ellipsis 的 tooltipConfig
2104
+ * @param config
2105
+ */
2106
+ export declare const updateEllipsisTooltipConfig: (config: Partial<IEllipsisTooltipConfig>) => void;
2107
+
2091
2108
  /**
2092
2109
  * 用于优化异步加载体验
2093
2110
  * @param initialValue 默认值
@@ -2236,6 +2253,9 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
2236
2253
  */
2237
2254
  export declare const useCreateFormBuilder: <T extends TObj>(fields?: (IBaseFormItem<T> | BaseFormItem<T>)[], config?: ICreateFormBuilderConfig) => ICreateFormBuilderReturn<T>;
2238
2255
 
2256
+ export declare class UseDialogError extends Error {
2257
+ }
2258
+
2239
2259
  /**
2240
2260
  * 创建一个动态的builder。
2241
2261
  * 注意:如果动态列中需要使用formData的数据,不能直接使用本方法返回的 formBuilder 对象,因为动态列会在函数返回之前被调用
@@ -2286,14 +2306,8 @@ export declare type TCreateBaseFormItemParams<T extends keyof IComponentProps, U
2286
2306
  };
2287
2307
 
2288
2308
  export declare const useOpenDialog: () => {
2289
- openDialog: <V = TAllType<string | number | boolean | object | null | undefined>, T extends Component = Component>(loader: AsyncComponentLoader<T> | T, props?: Partial<PropsOf_2<T>>, closeId?: number) => Promise<V>;
2290
- createDialog: <V = TAllType<string | number | boolean | object | null | undefined>, T extends Component = Component>(loader: AsyncComponentLoader<T> | T, props?: Partial<PropsOf_2<T>>) => {
2291
- confirm: (callBack: (data: V) => void) => /*elided*/ any;
2292
- cancel: (callBack: (data: V) => void) => /*elided*/ any;
2293
- finally: (callBack: () => void) => /*elided*/ any;
2294
- close: () => /*elided*/ any;
2295
- };
2296
- closeDialog: (id?: number, notCloseBeforeAllInstance?: boolean) => void;
2309
+ openDialog: <V = TAllType<string | number | boolean | object | null | undefined>, T extends Component = Component>(loader: AsyncComponentLoader<T> | T, props?: Partial<PropsOf_2<T>>, closeId?: TNumberOrString) => Promise<V>;
2310
+ closeDialog: (id?: TNumberOrString, notCloseBeforeAllInstance?: boolean) => void;
2297
2311
  };
2298
2312
 
2299
2313
  export declare const useOptions: <T extends {