mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
add builder editable prop
This commit is contained in:
1 parent
2d24eac4a3
commit
c0e49ebeea
10 files changed
+95
-15
No files matched your search
@@ -22,6 +22,7 @@
|
||||
:ref="setAreaRefs"
|
||||
:area="item.area"
|
||||
:field="item.field"
|
||||
:editable="editable"
|
||||
@start-resize="resizeDirection = $event"
|
||||
@stop-resize="resizeDirection = null"
|
||||
@start-drag="isMove = true"
|
||||
@@ -77,6 +78,11 @@ export default {
|
||||
required: false,
|
||||
default: null
|
||||
},
|
||||
editable: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
default: true
|
||||
},
|
||||
isDrag: {
|
||||
type: Boolean,
|
||||
required: false,
|
||||
@@ -141,6 +147,10 @@ export default {
|
||||
return
|
||||
}
|
||||
|
||||
if (!this.editable) {
|
||||
return
|
||||
}
|
||||
|
||||
this.showMask = true
|
||||
|
||||
this.$nextTick(() => {
|
||||
|
||||
Reference in new issue
Block a user