mali-applet-ui 1.1.4 → 1.1.6
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/lib/components/ml-amount-input/ml-amount-input.vue +1 -0
- package/lib/components/ml-charts/echarts.js +15 -0
- package/lib/components/ml-charts/echarts.min.js +46 -0
- package/lib/components/ml-charts/echarts.simple.min.js +21 -0
- package/lib/components/ml-charts/ml-charts.vue +258 -0
- package/lib/components/ml-charts/wx-canvas.js +168 -0
- package/lib/components/ml-echarts/ml-echarts.vue +5 -5
- package/lib/components/ml-editor/html-parser.js +354 -0
- package/lib/components/ml-editor/ml-editor.vue +73 -0
- package/lib/components/ml-rich-text/ml-rich-text.vue +1 -1
- package/lib/components/ml-switch/ml-switch.vue +1 -5
- package/lib/components/ml-upload/ml-upload.vue +5 -5
- package/modal/modal.js +13 -15
- package/modal/toast.js +10 -9
- package/package.json +3 -3
- package/types/index.d.ts +9 -6
- package/types/loading.d.ts +6 -0
- package/types/modal.d.ts +13 -0
- package/types/toast.d.ts +9 -0
- package/types/utils/index.d.ts +25 -0
- package/utils/file.js +19 -13
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import * as echarts from './echarts.simple.min.js'
|
|
2
|
+
// import * as echarts from './echarts.all.js'
|
|
3
|
+
import MaliUtils from '../../../utils'
|
|
4
|
+
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
// #ifdef MP-ALIPAY
|
|
8
|
+
const eInit = echarts.init
|
|
9
|
+
echarts.init = function (p1, p2, opts = {}) {
|
|
10
|
+
opts.devicePixelRatio = opts.devicePixelRatio || MaliUtils.getAppDpr()
|
|
11
|
+
return eInit.call(this, p1, p2, opts)
|
|
12
|
+
}
|
|
13
|
+
// #endif
|
|
14
|
+
|
|
15
|
+
export default echarts
|