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.
- package/dist/mooho-base-admin-plus.min.esm.js +120281 -0
- package/dist/mooho-base-admin-plus.min.js +55 -55
- package/dist/style.css +1 -4
- package/package.json +1 -1
- package/src/index.js +0 -3
- package/src/pages/template/processPage.vue +11 -9
- package/src/pages/template/reportPage.vue +6 -4
- package/src/pages/template/viewPage.vue +21 -18
- package/src/styles/css/default.css +1 -1
- package/test/main.js +3 -0
- package/vite.config.js +17 -7
- package/dist/fa-brands-400.8ea87917.woff2 +0 -0
- package/dist/fa-brands-400.a3b98177.svg +0 -3717
- package/dist/fa-brands-400.cda59d6e.ttf +0 -0
- package/dist/fa-brands-400.e4299464.eot +0 -0
- package/dist/fa-brands-400.f9217f66.woff +0 -0
- package/dist/fa-regular-400.79d08806.eot +0 -0
- package/dist/fa-regular-400.be0a0849.svg +0 -801
- package/dist/fa-regular-400.cb9e9e69.woff +0 -0
- package/dist/fa-regular-400.e42a8844.woff2 +0 -0
- package/dist/fa-regular-400.e8711bbb.ttf +0 -0
- package/dist/fa-solid-900.373c04fd.eot +0 -0
- package/dist/fa-solid-900.3f6d3488.woff +0 -0
- package/dist/fa-solid-900.9674eb1b.svg +0 -5034
- package/dist/fa-solid-900.9834b82a.woff2 +0 -0
- package/dist/fa-solid-900.af639750.ttf +0 -0
- package/dist/header-theme-dark.932bb39b.svg +0 -40
- package/dist/header-theme-primary.10194387.svg +0 -40
- package/dist/index.html +0 -19
- package/dist/ionicons.13d29fa1.ttf +0 -0
- package/dist/ionicons.503dc6b7.woff2 +0 -0
- package/dist/ionicons.fe9ddf45.woff +0 -0
- package/dist/nav-theme-dark.d93c9dff.svg +0 -40
- package/dist/nav-theme-light.f039dce7.svg +0 -40
- package/src/styles/font/ionicons.svg +0 -870
- package/src/styles/font/ionicons.ttf +0 -0
- package/src/styles/font/ionicons.woff +0 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -141,17 +141,19 @@
|
|
|
141
141
|
let res = await this.loadPage(pageID);
|
|
142
142
|
this.page = res.customPage;
|
|
143
143
|
|
|
144
|
-
|
|
145
|
-
this.$refs.table.
|
|
146
|
-
|
|
144
|
+
setTimeout(() => {
|
|
145
|
+
this.$refs.table.init(this.page.tableViewCode, () => {
|
|
146
|
+
this.$refs.table.loadData();
|
|
147
|
+
});
|
|
147
148
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
if (!!(this.page.formViewCode || '').trim()) {
|
|
150
|
+
this.$refs.form.init(this.page.formViewCode);
|
|
151
|
+
}
|
|
151
152
|
|
|
152
|
-
|
|
153
|
-
|
|
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
|
-
|
|
55
|
-
this.$refs.table.
|
|
56
|
-
|
|
54
|
+
setTimeout(() => {
|
|
55
|
+
this.$refs.table.init(this.page.tableViewCode, () => {
|
|
56
|
+
this.$refs.table.loadData();
|
|
57
|
+
});
|
|
57
58
|
|
|
58
|
-
|
|
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
|
-
|
|
91
|
-
this.$refs.table.
|
|
92
|
-
|
|
90
|
+
setTimeout(() => {
|
|
91
|
+
this.$refs.table.init(this.page.tableViewCode, () => {
|
|
92
|
+
this.$refs.table.loadData();
|
|
93
|
+
});
|
|
93
94
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
if (!!(this.page.formViewCode || '').trim()) {
|
|
96
|
+
this.$refs.form.init(this.page.formViewCode);
|
|
97
|
+
}
|
|
97
98
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
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')
|
|
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
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
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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
|