vue2-client 1.8.191 → 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
|
@@ -211,13 +211,18 @@ import * as registeredRender from '@vue2-client/utils/lowcode/registerComponentF
|
|
|
211
211
|
import * as lowcodeUtils from '@vue2-client/utils/lowcode/lowcodeUtils'
|
|
212
212
|
import codeMirror from '@vue2-client/components/CodeMirror/inedx.vue'
|
|
213
213
|
import { nanoid } from 'nanoid'
|
|
214
|
-
import lowcodeLog from '@vue2-client/utils/lowcode/lowcodeLog'
|
|
215
214
|
|
|
216
215
|
export default {
|
|
217
216
|
components: {
|
|
218
217
|
editorPageRender,
|
|
219
218
|
codeMirror
|
|
220
219
|
},
|
|
220
|
+
props: {
|
|
221
|
+
originalConfig: {
|
|
222
|
+
type: Array,
|
|
223
|
+
default: []
|
|
224
|
+
}
|
|
225
|
+
},
|
|
221
226
|
data () {
|
|
222
227
|
return {
|
|
223
228
|
// config: [
|
|
@@ -302,7 +307,8 @@ export default {
|
|
|
302
307
|
}
|
|
303
308
|
this.$forceUpdate()
|
|
304
309
|
},
|
|
305
|
-
cancelDeleteEvent (e) {
|
|
310
|
+
cancelDeleteEvent (e) {
|
|
311
|
+
},
|
|
306
312
|
addEvent () {
|
|
307
313
|
this.showEventEditor = true
|
|
308
314
|
},
|
|
@@ -458,7 +464,8 @@ export default {
|
|
|
458
464
|
})
|
|
459
465
|
}
|
|
460
466
|
},
|
|
461
|
-
handelEditorPanelTitleClick (a) {
|
|
467
|
+
handelEditorPanelTitleClick (a) {
|
|
468
|
+
},
|
|
462
469
|
getRegisteredComponents () {
|
|
463
470
|
return Object.keys(registeredRender)
|
|
464
471
|
},
|
|
@@ -544,23 +551,26 @@ export default {
|
|
|
544
551
|
console.warn('map', this.$children[0]._provided.componentsMap)
|
|
545
552
|
},
|
|
546
553
|
exportConfig () {
|
|
547
|
-
|
|
554
|
+
this.$emit('exportConfig', this.config)
|
|
548
555
|
}
|
|
549
556
|
},
|
|
550
557
|
mounted () {
|
|
558
|
+
this.config = JSON.parse(JSON.stringify(this.originalConfig))
|
|
551
559
|
}
|
|
552
560
|
}
|
|
553
561
|
</script>
|
|
554
562
|
|
|
555
563
|
<style scoped lang="less">
|
|
556
|
-
.ui-item:hover{
|
|
564
|
+
.ui-item:hover {
|
|
557
565
|
cursor: pointer;
|
|
558
566
|
}
|
|
559
|
-
|
|
567
|
+
|
|
568
|
+
.singleEvent {
|
|
560
569
|
border: black dashed 1px;
|
|
561
570
|
padding: 10%;
|
|
562
571
|
}
|
|
563
|
-
|
|
572
|
+
|
|
573
|
+
.edit_icon:hover {
|
|
564
574
|
cursor: pointer;
|
|
565
575
|
}
|
|
566
576
|
</style>
|