Skip to content

Commit 0d82d7d

Browse files
committed
Hover effect test
1 parent 449d666 commit 0d82d7d

File tree

7 files changed

+83
-101
lines changed

7 files changed

+83
-101
lines changed

dist/v-form-builder.common.js

Lines changed: 35 additions & 40 deletions
Large diffs are not rendered by default.

dist/v-form-builder.umd.js

Lines changed: 35 additions & 40 deletions
Large diffs are not rendered by default.

dist/v-form-builder.umd.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/FormRenderer.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,15 @@
7272
},
7373
7474
methods: {
75-
test() {
76-
this.$emit("test",this.formData)
75+
test(id, step, config) {
76+
let obj = {
77+
id: id,
78+
step: step,
79+
config: config
80+
}
81+
console.log(obj);
82+
console.log(this.controls);
83+
this.$emit("test",obj)
7784
}
7885
}
7986
}

src/views/renderer/ControlView.vue

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@
115115
changeConfig(config, controlId) {
116116
if(this.control.uniqueId == controlId) {
117117
this.currentConfig = config
118-
// this.control.permission[this.currentStep] = config
119118
}
120119
// console.log(this.control);
121120
this.$emit('asd',controlId,this.currentStep,config)
@@ -179,7 +178,6 @@
179178
180179
watch: {
181180
currentStep: function(val) {
182-
console.log(val);
183181
if(this.control.permission[val]) {
184182
this.currentConfig = this.control.permission[val]
185183
}
@@ -188,11 +186,6 @@
188186
}
189187
}
190188
},
191-
192-
created() {
193-
// console.log("control view", this.currentStep);
194-
}
195-
196189
}
197190
</script>
198191

src/views/renderer/SectionContainer.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,10 +39,8 @@
3939
},
4040
4141
methods: {
42-
asdasd() {
43-
// console.log("----------------");
44-
console.log(this.controls);
45-
this.$emit("asd")
42+
asdasd(id, step, config) {
43+
this.$emit("asd", id, step, config)
4644
}
4745
},
4846

src/views/renderer/section-views/NormalSectionView.vue

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,8 @@
4040
}),
4141
methods: {
4242
asdasd(id, step, config) {
43-
44-
for(let key in this.controls){
45-
if(key == id){
46-
this.controls[key].permission[step] = config
47-
}
48-
}
4943
// console.log(this.controls);
50-
this.$emit("asd")
44+
this.$emit("asd", id, step, config)
5145
}
5246
},
5347

0 commit comments

Comments
 (0)