@zfqh/uniapp 0.2.3 → 0.2.5

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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.2.5](http://10.10.10.16/caoben/front-end/compare/@zfqh/uniapp@0.2.4...@zfqh/uniapp@0.2.5) (2026-06-23)
7
+
8
+ **Note:** Version bump only for package @zfqh/uniapp
9
+
10
+
11
+
12
+
13
+
14
+ ## [0.2.4](http://10.10.10.16/caoben/front-end/compare/@zfqh/uniapp@0.2.3...@zfqh/uniapp@0.2.4) (2026-06-23)
15
+
16
+ **Note:** Version bump only for package @zfqh/uniapp
17
+
18
+
19
+
20
+
21
+
6
22
  ## [0.2.3](http://10.10.10.16/caoben/front-end/compare/@zfqh/uniapp@0.2.2...@zfqh/uniapp@0.2.3) (2026-06-23)
7
23
 
8
24
  **Note:** Version bump only for package @zfqh/uniapp
@@ -7,7 +7,6 @@ declare const _default: {
7
7
  webview: boolean;
8
8
  };
9
9
  computed: {
10
- loginInfo(): any;
11
10
  queryString(): string;
12
11
  };
13
12
  watch: {
@@ -19,11 +19,8 @@ export default {
19
19
  };
20
20
  },
21
21
  computed: {
22
- loginInfo() {
23
- return this.$store.state.login?.info || {};
24
- },
25
22
  queryString() {
26
- const { accessToken, storeId, userId, tenantId, storeName, tenantName, nickName, username, } = this.loginInfo;
23
+ const { accessToken, storeId, userId, tenantId, storeName, tenantName, nickName, username, } = this.$store.state.login?.info || {};
27
24
  const q = {
28
25
  token: accessToken,
29
26
  storeId,
@@ -134,15 +131,16 @@ export default {
134
131
  try {
135
132
  if (!this.__webView) {
136
133
  // #ifdef H5
137
- this.__webView = document.querySelector('iframe')?.contentWindow;
134
+ const iframe = this.$el.parentNode?.querySelector('iframe') || document.querySelector('iframe');
135
+ this.__webView = iframe?.contentWindow;
138
136
  this.__postMessage = (data) => {
139
- this.__webView.postMessage({ type: 'WEBVIEW_MESSAGE', data }, '*');
137
+ this.__webView?.postMessage({ type: 'WEBVIEW_MESSAGE', data }, '*');
140
138
  };
141
139
  // #endif
142
140
  // #ifdef APP-PLUS
143
141
  this.__webView = this.$scope.$getAppWebview().children()[0];
144
142
  this.__postMessage = (data) => {
145
- this.__webView.evalJS(`window.onmessage({ data: { type: 'WEBVIEW_MESSAGE', data: ${JSON.stringify(data)} } })`);
143
+ this.__webView?.evalJS(`window.onmessage({ data: { type: 'WEBVIEW_MESSAGE', data: ${JSON.stringify(data)} } })`);
146
144
  };
147
145
  // #endif
148
146
  }
@@ -13,3 +13,9 @@
13
13
  word-break: break-all;
14
14
  }
15
15
  }
16
+ .break-all {
17
+ word-break: break-all;
18
+ }
19
+ .break-word {
20
+ word-break: break-word;
21
+ }
@@ -76,5 +76,3 @@
76
76
  .text-disabled {
77
77
  color: $uv-disabled-color;
78
78
  }
79
-
80
-
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zfqh/uniapp",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "uniapp公共模块",
5
5
  "author": "yinjiazeng@163.com",
6
6
  "license": "MIT",
@@ -46,5 +46,5 @@
46
46
  "@types/qs": "^6.9.16",
47
47
  "@types/url-parse": "^1.4.11"
48
48
  },
49
- "gitHead": "00822ef738ac2c4e53d3304dbad4d427728dd82b"
49
+ "gitHead": "32175e636352128b9795ac2d7ade1d1f714d8896"
50
50
  }