mooho-base-admin-plus 2.0.18 → 2.0.21

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": "2.0.18",
4
+ "version": "2.0.21",
5
5
  "author": "jinyifan <jinyifan@mooho.com.cn>",
6
6
  "license": "MIT",
7
7
  "private": false,
@@ -2038,6 +2038,14 @@
2038
2038
  continue;
2039
2039
  }
2040
2040
 
2041
+ if (
2042
+ this.filterColumns.some(item => {
2043
+ return item.code == key && item.operator == 'Custom';
2044
+ })
2045
+ ) {
2046
+ continue;
2047
+ }
2048
+
2041
2049
  if (typeof value == 'object' && !(value instanceof Date)) {
2042
2050
  continue;
2043
2051
  }
package/src/index.js CHANGED
@@ -21,7 +21,6 @@ import plugins from './plugins';
21
21
 
22
22
  // store
23
23
  import store from './store';
24
- import adminStore from './store/modules/admin';
25
24
 
26
25
  // ViewUIPlus
27
26
  import ViewUIPlus from 'view-ui-plus';
@@ -220,7 +219,6 @@ export {
220
219
  pages,
221
220
  App,
222
221
  store,
223
- adminStore,
224
222
  i18n,
225
223
  setting,
226
224
  basicLayout,
package/test/main.js CHANGED
@@ -3,10 +3,9 @@ if (!!window.ActiveXObject || 'ActiveXObject' in window) {
3
3
  }
4
4
 
5
5
  import { createApp, h } from 'vue';
6
- import { createStore } from 'vuex';
7
6
 
8
7
  // 基础框架
9
- import moohoBaseAdminPlus, { pages, App, adminStore, basicLayout, createRouter, created, routeChanged } from '../src';
8
+ import moohoBaseAdminPlus, { pages, App, store, basicLayout, createRouter, created, routeChanged } from '../src';
10
9
 
11
10
  // 固定路由
12
11
  import routes from './router/routes';
@@ -16,6 +15,7 @@ import './styles/css/custom.css';
16
15
 
17
16
  // 自定义store
18
17
  import cusotmStore from './store/custom';
18
+ store.registerModule('custom', cusotmStore);
19
19
 
20
20
  // 环境模式
21
21
  window.$mode = import.meta.env.MODE;
@@ -47,15 +47,6 @@ const app = createApp({
47
47
  app.use(router);
48
48
  app.use(moohoBaseAdminPlus);
49
49
 
50
- adminStore.modules['custom'] = cusotmStore;
51
- app.use(
52
- createStore({
53
- modules: {
54
- admin: adminStore
55
- }
56
- })
57
- );
58
-
59
50
  //app.config.globalProperties.$pages = pages;
60
51
 
61
52
  app.mount('#app');
@@ -21,7 +21,7 @@
21
21
  return {};
22
22
  },
23
23
  computed: {
24
- ...mapState('admin/custom', ['test'])
24
+ ...mapState('custom', ['test'])
25
25
  },
26
26
  created() {},
27
27
  methods: {}