imatrix-ui 2.8.97-dw-tmp41 → 2.8.97-dw-tmp42

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 (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imatrix-ui",
3
- "version": "2.8.97-dw-tmp41",
3
+ "version": "2.8.97-dw-tmp42",
4
4
  "description": "前端组件库:表格、表单、组织结构树等",
5
5
  "main": "lib/super-ui.umd.min.js",
6
6
  "private": false,
package/src/index.js CHANGED
@@ -32,11 +32,15 @@ import { openPage } from './utils/jump-page-utils'
32
32
  // import MultipartUpload from '../packages/multipart-upload'
33
33
  // import RichEditor from '../packages/rich-editor'
34
34
  // import SecretInfo from '../packages/secret-info'
35
+ import plugins from '../packages/plugins/index'
36
+ import permission from './directives/permission'
35
37
 
36
38
  // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
37
39
  const install = function(Vue) {
38
40
  Vue.directive('prevent-reclick', PreventReclick)
41
+ permission.install(Vue)
39
42
  Vue.use(customPlugin)
43
+ Vue.use(plugins)
40
44
  if (install.installed) return
41
45
  // components.map(component => Vue.component(component.name, component))
42
46
  // components.forEach(component => {