UNPKG

vue-simput

Version:

Simput component meant to be used with PyWebVue/Trame

27 lines (26 loc) 474 B
export default { name: 'swShow', props: { property: { type: String, }, domain: { type: String, }, mtime: { type: Number, }, }, computed: { visible() { this.mtime; // eslint-disable-line const domain = this.domains()?.[this.property]?.[this.domain]; if (!domain) { // no domain == valid return true; } return domain.value; }, }, inject: ['properties', 'domains'], };