import Vue from 'vue' ; import { createDecorator } from 'vue-class-component' ; param refKey export function Ref ( refKey ? ) { return createDecorator ( ( options , key ) => { options . computed = options . computed || { } ; options . computed [ key ] = { cache : false , get ( this ) { return this . $refs [ refKey || key ] ; } , } ; } ) ; }