mali-applet-ui 1.0.189 → 1.1.0
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 +1 -1
- package/lib/components/ml-upload/ml-upload.vue +1 -1
- package/package.json +5 -1
- package/types/index.d.ts +25 -0
- package/types/storage/index.d.ts +7 -0
- package/types/utils/index.d.ts +8 -0
- package/utils/index.js +16 -4
package/index.js
CHANGED
|
@@ -490,7 +490,7 @@ export default {
|
|
|
490
490
|
}
|
|
491
491
|
let chooseMethod = uploadAllFiles
|
|
492
492
|
// 钉钉暂时只支持图片
|
|
493
|
-
if (this.mediatype === 'image' || this.platformEnv.isDDMP) {
|
|
493
|
+
if (this.mediatype === 'image' || this.platformEnv.isDDMP || this.platformEnv.isQWMP) {
|
|
494
494
|
chooseMethod = uploadImageFiles
|
|
495
495
|
}
|
|
496
496
|
const uploadMethod = this.uploadFile ? this.uploadFile : (globalStore.upload ? globalStore.upload.uploadFile : null)
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mali-applet-ui",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "vue2 码里云小程序组件库",
|
|
5
5
|
"files": [
|
|
6
6
|
"lib",
|
|
7
7
|
"style",
|
|
8
|
+
"types",
|
|
8
9
|
"config",
|
|
9
10
|
"utils",
|
|
10
11
|
"modal",
|
|
@@ -29,6 +30,9 @@
|
|
|
29
30
|
"serve:mp-dingtalk": "npm run run-before && cross-env NODE_ENV=development UNI_OUTPUT_DIR=dist/dev/mp-dingtalk uniapp-cli custom mp-dingtalk",
|
|
30
31
|
"run-before": "node script/run-before.js"
|
|
31
32
|
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"xe-utils": "^3.5.7"
|
|
35
|
+
},
|
|
32
36
|
"devDependencies": {
|
|
33
37
|
"@dcloudio/uni-app-plus": "^2.0.1-36420220922003",
|
|
34
38
|
"@dcloudio/uni-h5": "^2.0.1-36420220922003",
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
// import Vue from 'vue'
|
|
3
|
+
import { MaliUtils, MlUtilsCore } from './utils'
|
|
4
|
+
import { MaliStorage, MlStorageCore } from './storage'
|
|
5
|
+
|
|
6
|
+
export const MaliUI: {
|
|
7
|
+
version: string
|
|
8
|
+
// config(options: ConfigOptions): any
|
|
9
|
+
// install(app: Vue): void
|
|
10
|
+
MaliUtils: MlUtilsCore
|
|
11
|
+
// MaliToast: typeof MaliToast
|
|
12
|
+
// MaliModal: typeof MaliModal
|
|
13
|
+
// MaliLoading: typeof MaliLoading
|
|
14
|
+
MaliStorage: MlStorageCore
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
MaliUtils,
|
|
19
|
+
// MaliToast,
|
|
20
|
+
// MaliModal,
|
|
21
|
+
// MaliLoading,
|
|
22
|
+
MaliStorage
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export default MaliUI
|
package/utils/index.js
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import XEUtils from 'xe-utils'
|
|
2
|
+
|
|
3
|
+
import * as appletFns from './applet'
|
|
4
|
+
import * as dateFns from './date'
|
|
5
|
+
import * as numberFns from './number'
|
|
6
|
+
import * as fileFns from './file'
|
|
7
|
+
|
|
8
|
+
const MaliUtils = {
|
|
9
|
+
...XEUtils,
|
|
10
|
+
...appletFns,
|
|
11
|
+
...dateFns,
|
|
12
|
+
...numberFns,
|
|
13
|
+
...fileFns
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export default MaliUtils
|