Added editing support to the View API (#2279)

* Added edit to view API

* Fixed listener deregistration bug
This commit is contained in:
Andrew Henry
2019-02-13 19:26:26 -08:00
committed by Pegah Sarram
parent d0ab59f9da
commit 853764d863
14 changed files with 123 additions and 66 deletions

View File

@@ -47,7 +47,8 @@
:key="frame.id"
:frame="frame"
:index="i"
:containerIndex="index">
:containerIndex="index"
:isEditing="isEditing">
</frame-component>
<drop-hint
@@ -65,7 +66,8 @@
:orientation="rowsLayout ? 'horizontal' : 'vertical'"
@init-move="startFrameResizing"
@move="frameResizing"
@end-move="endFrameResizing">
@end-move="endFrameResizing"
:isEditing="isEditing">
</resize-handle>
</template>
</div>
@@ -77,14 +79,12 @@ import FrameComponent from './frame.vue';
import Frame from '../utils/frame';
import ResizeHandle from './resizeHandle.vue';
import DropHint from './dropHint.vue';
import isEditingMixin from '../mixins/isEditing';
const MIN_FRAME_SIZE = 5;
export default {
inject:['openmct'],
props: ['container', 'index', 'rowsLayout'],
mixins: [isEditingMixin],
props: ['container', 'index', 'rowsLayout', 'isEditing'],
components: {
FrameComponent,
ResizeHandle,