vue2-client 1.8.190 → 1.8.192
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -117,6 +117,7 @@
|
|
|
117
117
|
<a-modal
|
|
118
118
|
title="事件编辑器"
|
|
119
119
|
width="60%"
|
|
120
|
+
:z-index="1001"
|
|
120
121
|
:destroyOnClose="true"
|
|
121
122
|
@ok="handleEventEditorOk"
|
|
122
123
|
@cancel="handleEventEditorCancel"
|
|
@@ -210,13 +211,18 @@ import * as registeredRender from '@vue2-client/utils/lowcode/registerComponentF
|
|
|
210
211
|
import * as lowcodeUtils from '@vue2-client/utils/lowcode/lowcodeUtils'
|
|
211
212
|
import codeMirror from '@vue2-client/components/CodeMirror/inedx.vue'
|
|
212
213
|
import { nanoid } from 'nanoid'
|
|
213
|
-
import lowcodeLog from '@vue2-client/utils/lowcode/lowcodeLog'
|
|
214
214
|
|
|
215
215
|
export default {
|
|
216
216
|
components: {
|
|
217
217
|
editorPageRender,
|
|
218
218
|
codeMirror
|
|
219
219
|
},
|
|
220
|
+
props: {
|
|
221
|
+
originalConfig: {
|
|
222
|
+
type: Array,
|
|
223
|
+
default: []
|
|
224
|
+
}
|
|
225
|
+
},
|
|
220
226
|
data () {
|
|
221
227
|
return {
|
|
222
228
|
// config: [
|
|
@@ -301,7 +307,8 @@ export default {
|
|
|
301
307
|
}
|
|
302
308
|
this.$forceUpdate()
|
|
303
309
|
},
|
|
304
|
-
cancelDeleteEvent (e) {
|
|
310
|
+
cancelDeleteEvent (e) {
|
|
311
|
+
},
|
|
305
312
|
addEvent () {
|
|
306
313
|
this.showEventEditor = true
|
|
307
314
|
},
|
|
@@ -457,7 +464,8 @@ export default {
|
|
|
457
464
|
})
|
|
458
465
|
}
|
|
459
466
|
},
|
|
460
|
-
handelEditorPanelTitleClick (a) {
|
|
467
|
+
handelEditorPanelTitleClick (a) {
|
|
468
|
+
},
|
|
461
469
|
getRegisteredComponents () {
|
|
462
470
|
return Object.keys(registeredRender)
|
|
463
471
|
},
|
|
@@ -543,23 +551,26 @@ export default {
|
|
|
543
551
|
console.warn('map', this.$children[0]._provided.componentsMap)
|
|
544
552
|
},
|
|
545
553
|
exportConfig () {
|
|
546
|
-
|
|
554
|
+
this.$emit('exportConfig', this.config)
|
|
547
555
|
}
|
|
548
556
|
},
|
|
549
557
|
mounted () {
|
|
558
|
+
this.config = JSON.parse(JSON.stringify(this.originalConfig))
|
|
550
559
|
}
|
|
551
560
|
}
|
|
552
561
|
</script>
|
|
553
562
|
|
|
554
563
|
<style scoped lang="less">
|
|
555
|
-
.ui-item:hover{
|
|
564
|
+
.ui-item:hover {
|
|
556
565
|
cursor: pointer;
|
|
557
566
|
}
|
|
558
|
-
|
|
567
|
+
|
|
568
|
+
.singleEvent {
|
|
559
569
|
border: black dashed 1px;
|
|
560
570
|
padding: 10%;
|
|
561
571
|
}
|
|
562
|
-
|
|
572
|
+
|
|
573
|
+
.edit_icon:hover {
|
|
563
574
|
cursor: pointer;
|
|
564
575
|
}
|
|
565
576
|
</style>
|