workflow-editor 0.0.76-up → 0.0.78-up

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "workflow-editor",
3
3
  "private": false,
4
- "version": "0.0.76-up",
4
+ "version": "0.0.78-up",
5
5
  "type": "module",
6
6
  "main": "./lib/workflow-editor.js",
7
7
  "scripts": {
@@ -43,19 +43,19 @@
43
43
  export default {
44
44
  name: 'Variables',
45
45
  props: {
46
- model: {
46
+ modelValue: {
47
47
  type: Object,
48
48
  default: null
49
49
  }
50
50
  },
51
51
  data() {
52
52
  let variables = []
53
- if (this.model.variable !== undefined) {
53
+ if (this.modelValue) {
54
54
  // xml中有多个variable时是数组,只有一个variable时是Object
55
- if (Array.isArray(this.model.variable)) {
56
- variables = this.model.variable
55
+ if (Array.isArray(this.modelValue.variable)) {
56
+ variables = this.modelValue.variable
57
57
  } else {
58
- variables.push(this.model.variable)
58
+ variables.push(this.modelValue.variable)
59
59
  }
60
60
  }
61
61
  return {
@@ -74,7 +74,10 @@ export default {
74
74
  const filteredVariables = this.variables.filter(variable => {
75
75
  return variable.name !== '' && variable.value !== ''
76
76
  })
77
- this.$emit('input', {
77
+ // this.$emit('input', {
78
+ // variable: filteredVariables
79
+ // })
80
+ this.$emit('update:modelValue',{
78
81
  variable: filteredVariables
79
82
  })
80
83
  }, {
@@ -45,7 +45,7 @@
45
45
  <events v-model="model.ref.events" />
46
46
  </el-tab-pane>
47
47
  <el-tab-pane :label="$t('workflowEditor.task.linkVariable')" name="variables">
48
- <variables :model="model.ref.variables" />
48
+ <variables v-model="model.ref.variables" />
49
49
  </el-tab-pane>
50
50
  </el-tabs>
51
51
  </el-dialog>