import { PropOptions } from 'vue' ; import { PROP_KEY } from './utils' ; export param { PropOptions } options returns { PropertyDecorator } export function Prop ( options ? ) { return function ( target , key ) { if ( ! target [ PROP_KEY ] ) { target [ PROP_KEY ] = { } ; } if ( ! target [ PROP_KEY ] [ key ] ) { target [ PROP_KEY ] [ key ] = options || true ; } } ; }