You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
363 B
16 lines
363 B
|
3 years ago
|
import getRealPath from 'uni-platform/helpers/get-real-path'
|
||
|
|
import {
|
||
|
|
processEvent
|
||
|
|
} from 'uni-view/plugins/events'
|
||
|
|
|
||
|
|
export default {
|
||
|
|
methods: {
|
||
|
|
$getRealPath (src) {
|
||
|
|
return src ? getRealPath(src) : src
|
||
|
|
},
|
||
|
|
$trigger (name, $event, detail) {
|
||
|
|
this.$emit(name, processEvent.call(this, name, $event, detail, this.$el, this.$el))
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|