mooho-base-admin-plus 0.1.54 → 0.1.57

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.
Files changed (37) hide show
  1. package/dist/mooho-base-admin-plus.min.esm.js +120281 -0
  2. package/dist/mooho-base-admin-plus.min.js +55 -55
  3. package/dist/style.css +1 -4
  4. package/package.json +1 -1
  5. package/src/index.js +0 -3
  6. package/src/pages/template/processPage.vue +11 -9
  7. package/src/pages/template/reportPage.vue +6 -4
  8. package/src/pages/template/viewPage.vue +21 -18
  9. package/src/styles/css/default.css +1 -1
  10. package/test/main.js +3 -0
  11. package/vite.config.js +17 -7
  12. package/dist/fa-brands-400.8ea87917.woff2 +0 -0
  13. package/dist/fa-brands-400.a3b98177.svg +0 -3717
  14. package/dist/fa-brands-400.cda59d6e.ttf +0 -0
  15. package/dist/fa-brands-400.e4299464.eot +0 -0
  16. package/dist/fa-brands-400.f9217f66.woff +0 -0
  17. package/dist/fa-regular-400.79d08806.eot +0 -0
  18. package/dist/fa-regular-400.be0a0849.svg +0 -801
  19. package/dist/fa-regular-400.cb9e9e69.woff +0 -0
  20. package/dist/fa-regular-400.e42a8844.woff2 +0 -0
  21. package/dist/fa-regular-400.e8711bbb.ttf +0 -0
  22. package/dist/fa-solid-900.373c04fd.eot +0 -0
  23. package/dist/fa-solid-900.3f6d3488.woff +0 -0
  24. package/dist/fa-solid-900.9674eb1b.svg +0 -5034
  25. package/dist/fa-solid-900.9834b82a.woff2 +0 -0
  26. package/dist/fa-solid-900.af639750.ttf +0 -0
  27. package/dist/header-theme-dark.932bb39b.svg +0 -40
  28. package/dist/header-theme-primary.10194387.svg +0 -40
  29. package/dist/index.html +0 -19
  30. package/dist/ionicons.13d29fa1.ttf +0 -0
  31. package/dist/ionicons.503dc6b7.woff2 +0 -0
  32. package/dist/ionicons.fe9ddf45.woff +0 -0
  33. package/dist/nav-theme-dark.d93c9dff.svg +0 -40
  34. package/dist/nav-theme-light.f039dce7.svg +0 -40
  35. package/src/styles/font/ionicons.svg +0 -870
  36. package/src/styles/font/ionicons.ttf +0 -0
  37. package/src/styles/font/ionicons.woff +0 -0
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.1.54",
4
+ "version": "0.1.57",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "dotnetVersion": "1.3.97",
7
7
  "license": "MIT",
package/src/index.js CHANGED
@@ -67,9 +67,6 @@ import './styles/index.less';
67
67
  // 默认css
68
68
  import './styles/css/default.css';
69
69
 
70
- // fa图标
71
- import '@fortawesome/fontawesome-free/css/all.min.css';
72
-
73
70
  // CKEditor
74
71
  //import ckEditor from 'ckeditor4-vue';
75
72
 
@@ -141,17 +141,19 @@
141
141
  let res = await this.loadPage(pageID);
142
142
  this.page = res.customPage;
143
143
 
144
- this.$refs.table.init(this.page.tableViewCode, () => {
145
- this.$refs.table.loadData();
146
- });
144
+ setTimeout(() => {
145
+ this.$refs.table.init(this.page.tableViewCode, () => {
146
+ this.$refs.table.loadData();
147
+ });
147
148
 
148
- if (!!(this.page.formViewCode || '').trim()) {
149
- this.$refs.form.init(this.page.formViewCode);
150
- }
149
+ if (!!(this.page.formViewCode || '').trim()) {
150
+ this.$refs.form.init(this.page.formViewCode);
151
+ }
151
152
 
152
- if (!!(this.page.formViewCode || '').trim() || !!(this.page.showViewCode || '').trim()) {
153
- this.$refs.showForm.init(!(this.page.showViewCode || '').trim() ? this.page.formViewCode : this.page.showViewCode);
154
- }
153
+ if (!!(this.page.formViewCode || '').trim() || !!(this.page.showViewCode || '').trim()) {
154
+ this.$refs.showForm.init(!(this.page.showViewCode || '').trim() ? this.page.formViewCode : this.page.showViewCode);
155
+ }
156
+ });
155
157
  },
156
158
  // 创建
157
159
  create() {
@@ -51,11 +51,13 @@
51
51
  res = await this.loadView(this.page.tableViewCode);
52
52
  this.tableView = res.dataView;
53
53
 
54
- this.$refs.table.init(this.page.tableViewCode, () => {
55
- this.$refs.table.loadData();
56
- });
54
+ setTimeout(() => {
55
+ this.$refs.table.init(this.page.tableViewCode, () => {
56
+ this.$refs.table.loadData();
57
+ });
57
58
 
58
- this.$refs.chart.initWithTable(this.tableView, this.$refs.table.data);
59
+ this.$refs.chart.initWithTable(this.tableView, this.$refs.table.data);
60
+ });
59
61
  },
60
62
  // 数据加载完成
61
63
  onLoadData() {
@@ -87,27 +87,30 @@
87
87
  let res = await this.loadPage(pageID);
88
88
  this.page = res.customPage;
89
89
 
90
- this.$refs.table.init(this.page.tableViewCode, () => {
91
- this.$refs.table.loadData();
92
- });
90
+ setTimeout(() => {
91
+ this.$refs.table.init(this.page.tableViewCode, () => {
92
+ this.$refs.table.loadData();
93
+ });
93
94
 
94
- if (!!(this.page.formViewCode || '').trim()) {
95
- this.$refs.form.init(this.page.formViewCode);
96
- }
95
+ if (!!(this.page.formViewCode || '').trim()) {
96
+ this.$refs.form.init(this.page.formViewCode);
97
+ }
97
98
 
98
- this.page.controls = res.customPageControls.filter(item => {
99
- return item.customPageComponentID == null;
100
- });
101
- this.tables = res.customPageComponents.filter(item => {
102
- return item.componentType === 'Table';
103
- });
104
- this.tables.forEach(component => {
105
- component.controls = res.customPageControls.filter(item => {
106
- return item.customPageComponentID === component.id;
99
+ this.page.controls = res.customPageControls.filter(item => {
100
+ return item.customPageComponentID == null;
101
+ });
102
+ this.tables = res.customPageComponents.filter(item => {
103
+ return item.componentType === 'Table';
104
+ });
105
+
106
+ this.tables.forEach(component => {
107
+ component.controls = res.customPageControls.filter(item => {
108
+ return item.customPageComponentID === component.id;
109
+ });
110
+ });
111
+ this.forms = res.customPageComponents.filter(item => {
112
+ return item.componentType === 'Form';
107
113
  });
108
- });
109
- this.forms = res.customPageComponents.filter(item => {
110
- return item.componentType === 'Form';
111
114
  });
112
115
  },
113
116
  // 点击按钮
@@ -1,6 +1,6 @@
1
1
  @font-face {
2
2
  font-family: 'Ionicons';
3
- src: url('../font/ionicons.woff2') format('woff2'), url('../font/ionicons.woff') format('woff'), url('../font/ionicons.ttf') format('truetype');
3
+ src: url('../font/ionicons.woff2') format('woff2');
4
4
  font-weight: normal;
5
5
  font-style: normal;
6
6
  }
package/test/main.js CHANGED
@@ -13,6 +13,9 @@ import routes from './router/routes';
13
13
  // 自定义css
14
14
  import './styles/css/custom.css';
15
15
 
16
+ // fa图标
17
+ import '@fortawesome/fontawesome-free/css/all.min.css';
18
+
16
19
  // 环境模式
17
20
  window.$mode = import.meta.env.MODE;
18
21
 
package/vite.config.js CHANGED
@@ -11,13 +11,11 @@ export default defineConfig({
11
11
  sourcemap: false, // 输出.map文件
12
12
  outDir: Setting.outputDir,
13
13
  assetsDir: Setting.assetsDir,
14
- cssCodeSplit: false,
15
- // assetsInlineLimit: 4096,
16
- // // minify: 'terser', // 混淆器,terser构建后文件体积更小
17
- // lib: {
18
- // entry: resolve(__dirname, './src/index.js'),
19
- // name: 'moohoBaseAdminPlus'
20
- // },
14
+ // minify: 'terser', // 混淆器,terser构建后文件体积更小
15
+ lib: {
16
+ entry: resolve(__dirname, './src/index.js'),
17
+ name: 'moohoBaseAdminPlus'
18
+ },
21
19
  rollupOptions: {
22
20
  context: 'globalThis',
23
21
  preserveEntrySignatures: 'strict',
@@ -34,6 +32,18 @@ export default defineConfig({
34
32
  inlineDynamicImports: false,
35
33
  manualChunks: undefined,
36
34
  globals: { vue: 'Vue', 'view-ui-plus': 'viewUiPlus' }
35
+ },
36
+ {
37
+ format: 'es',
38
+ exports: 'named',
39
+ sourcemap: false,
40
+ entryFileNames: 'mooho-base-admin-plus.min.esm.js',
41
+ chunkFileNames: '[name].js',
42
+ assetFileNames: '[name].[ext]',
43
+ namespaceToStringTag: true,
44
+ inlineDynamicImports: false,
45
+ manualChunks: undefined,
46
+ globals: { vue: 'Vue', 'view-ui-plus': 'viewUiPlus' }
37
47
  }
38
48
  ]
39
49
  }
Binary file