mooho-base-admin-plus 0.4.49 → 0.4.50

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mooho-base-admin-plus",
3
3
  "description": "MOOHO basic framework for admin by Vue3",
4
- "version": "0.4.49",
4
+ "version": "0.4.50",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.4.0",
7
7
  "license": "MIT",
@@ -88,7 +88,7 @@
88
88
  * @param {string} viewCode 视图代码
89
89
  * @public
90
90
  */
91
- async init(viewCode) {
91
+ async init(viewCode, callback) {
92
92
  // 加载表格视图
93
93
  let view = await this.loadDataView(viewCode);
94
94
 
@@ -104,11 +104,14 @@
104
104
  this.setting = {};
105
105
  }
106
106
 
107
- // 图表
108
107
  setTimeout(() => {
109
108
  this.chart = this.$echarts.init(document.getElementById(this.uid));
110
109
 
111
- this.loadData();
110
+ if (typeof callback === 'function') {
111
+ callback(view);
112
+ } else {
113
+ this.loadData();
114
+ }
112
115
  });
113
116
  },
114
117
  /**