ztxkutils 1.7.6 → 1.7.7

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,4 +1,7 @@
1
1
  /**
2
2
  * @description 当有依赖改变时,提示用户
3
3
  */
4
- export declare function openTipModal(callback: (res: boolean) => void, data: any[], tipTitle?: string): void;
4
+ export declare function openTipModal(callback: (res: boolean) => void, options?: {
5
+ showModal?: boolean;
6
+ tipTitle?: string;
7
+ }): void;
@@ -3,10 +3,10 @@ import { Modal } from 'ztxkui';
3
3
  /**
4
4
  * @description 当有依赖改变时,提示用户
5
5
  */
6
- function openTipModal(callback, data, tipTitle) {
7
- if (Array.isArray(data) && data.length > 0) {
6
+ function openTipModal(callback, options) {
7
+ if (options && options.showModal) {
8
8
  Modal.confirm({
9
- content: tipTitle || '切换将清空已选数据!',
9
+ content: options.tipTitle || '切换将清空已选数据!',
10
10
  okText: '确认',
11
11
  cancelText: '取消',
12
12
  onCancel: function () {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ztxkutils",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "description": "",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",