UNPKG
vue2-el-bpmn
Version:
latest (1.0.0)
1.0.0
Vue2+ElementUI+BPMN2.0整合(基于Bpmn Process Designer)
vue2-el-bpmn
/
ui
/
lib
/
access
/
install.js
13 lines
(12 loc)
•
320 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
export default function (Vue) { Vue.mixin({ beforeCreate() {
// 注入 Access 实例到 $access
if
(
this
.$parent &&
this
.$parent.$access) {
this
.$access =
this
.$parent.$access }
else
if
(
this
.$options.access) {
this
.$access =
this
.$options.access } } }) }