Sha256: e0df8ec0455b8ad5f4c32c1c334fa9b26ab978295419b34de4fff48cb0d5af4c
Contents?: true
Size: 1.23 KB
Versions: 11
Compression:
Stored size: 1.23 KB
Contents
<template> <dynamic-form class="mt-2" :parentKey="currentSectionBlock.id" :settings="sectionBlockSettings" :content="currentSectionBlockContent" :focusedSetting="settingId" @blur="onBlur" @change="updateSectionBlockContent" /> </template> <script> import { mapActions } from 'vuex' import DynamicForm from '@/components/dynamic-form/index.vue' export default { name: 'SectionBlockSettingList', components: { DynamicForm }, props: { sectionBlockId: { type: String, default: undefined }, settingId: { type: String, default: undefined }, advanced: { type: Boolean, default: false }, }, computed: { sectionBlockSettings() { return this.advanced ? this.currentSectionBlockAdvancedSettings : this.services.section.filterSettings( this.currentSectionBlockSettings, this.currentSectionBlockContent, ) }, }, methods: { ...mapActions(['updateSectionBlockContent']), onBlur() { this.$router .push({ name: 'editSectionBlock', params: { sectionBlockId: this.sectionBlockId }, }) .catch((err) => { if (err.name !== 'NavigationDuplicated') throw err }) }, }, } </script>
Version data entries
11 entries across 11 versions & 1 rubygems