zhl-methods 1.1.0 → 1.1.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.
package/VERSION.md CHANGED
@@ -10,5 +10,8 @@
10
10
 
11
11
  ### 1.1.0
12
12
 
13
- - 删除 wx 'requestApi' 方法 使用 'showModal' 代替
14
- - 小程序 兼容 uin 和 wx 方法
13
+ - 小程序 兼容 uin wx 方法
14
+
15
+ ### 1.1.1
16
+
17
+ - 删除 wx 'requestApi' 方法 使用 'confirmModal' 代替
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zhl-methods",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "license": "ISC",
5
5
  "dependencies": {
6
6
  "vue": "^3.5.12"
package/wx/index.js CHANGED
@@ -12,28 +12,12 @@ export const getNavBarHeight = () => {
12
12
  }
13
13
  return nav + res.statusBarHeight;
14
14
  };
15
- /**
16
- * 弹窗二次确认
17
- * @param {Function} callback
18
- */
19
- export const requestApi = (callback) => {
20
- thit.showModal({
21
- title: "确认该操作吗?",
22
- confirmText: "确认",
23
- cancelText: "取消",
24
- async success(res) {
25
- if (res.confirm) {
26
- callback();
27
- }
28
- },
29
- });
30
- };
31
15
  /**
32
16
  * 弹窗二次确认
33
17
  * @param {Object} query title 标题 默认值 确认该操作吗? content 内容 可以不填
34
18
  * @param {Function} callback
35
19
  */
36
- export const showModal = (query = {}, callback) => {
20
+ export const confirmModal = (query = {}, callback) => {
37
21
  thit.showModal({
38
22
  title: query.title ? query.title : "确认该操作吗?",
39
23
  content: query.content ? query.content : "",