mali-applet-ui 1.1.103 → 1.1.105

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/index.js CHANGED
@@ -9,26 +9,8 @@ import MaliUtils from './utils'
9
9
  import MaliTongJi from './tongji'
10
10
  import MaliClipboard from './clipboard'
11
11
 
12
- const routeFnNames = ['navigateTo', 'redirectTo']
13
- routeFnNames.forEach(key => {
14
- const fn = uni[key]
15
- uni[fn] = function (options) {
16
- let locat = {...options}
17
- if (options && options.url) {
18
- locat.url
19
- }
20
- return fn(o)
21
- }
22
- })
23
-
24
12
  export function install (Vue) {
25
13
  Vue.prototype.$t = MaliI18n.t
26
-
27
- Vue.mixin({
28
- onShow () {
29
- debugger
30
- }
31
- })
32
14
  }
33
15
 
34
16
  const MaliUI = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.1.103",
3
+ "version": "1.1.105",
4
4
  "description": "码里UI-小程序组件库(vue2)",
5
5
  "files": [
6
6
  "lib",
package/utils/file.js CHANGED
@@ -110,7 +110,7 @@ export function openFileByUrl (fileUrl, fileName, options) {
110
110
  success: (downRes) => {
111
111
  if (getFilePreviewTypes().includes(fileType)) {
112
112
  uni.openDocument({
113
- filePath: downRes.filePath || downRes.tempFilePath,
113
+ filePath: encodeURI(downRes.filePath || downRes.tempFilePath),
114
114
  showMenu: true,
115
115
  success () {
116
116
  resolve({