UNPKG

@ams-team/ams

Version:

Admin Materials System.

16 lines (14 loc) 355 B
import ams from '../../ams'; import { on } from './computed'; export default { computed: { ctx() { return ( (ams.blocks[this.name] && ams.blocks[this.name].ctx) || 'edit' ); }, on }, inject: ['fieldChange', '$block'], props: ['field', 'path', 'value', 'name', 'context'] };