Skip to content

Commit 26383c6

Browse files
committed
fix(Inputs): add emits for Vuejs3
1 parent 316e16f commit 26383c6

File tree

15 files changed

+42
-21
lines changed

15 files changed

+42
-21
lines changed

tools/aceditor/presentation/javascripts/components/InputCheckbox.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export default {
22
props: [ 'value', 'config' ],
3+
emits: ['input'],
34
data() {
45
return {
56
// boolean internal value cause the real value could be a string when using checkedvalue and uncheckedvalue

tools/aceditor/presentation/javascripts/components/InputClass.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import InputCheckbox from './InputCheckbox.js'
44

55
export default {
66
props: [ 'name', 'value', 'config', 'selectedForm', 'values' ],
7+
emits: ['input'],
78
components: { InputList, InputCheckbox },
89
mixins: [ InputHelper ],
910
data() {

tools/aceditor/presentation/javascripts/components/InputColor.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export default {
22
props: [ 'value', 'config' ],
3+
emits: ['input'],
34
mounted() {
45
const palette = [
56
[

tools/aceditor/presentation/javascripts/components/InputCorrespondance.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import InputFormField from './InputFormField.js'
44
export default {
55
props: [ 'name', 'value', 'config', 'selectedForm', 'values' ],
66
components: { InputFormField },
7+
emits: ['input'],
78
mixins: [ InputHelper ],
89
data() {
910
return {

tools/aceditor/presentation/javascripts/components/InputFormField.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// Text/Number/Color/slider
22
export default {
33
props: [ 'value', 'config', 'selectedForm' ],
4+
emits: ['input'],
45
data() {
56
return {
67
fields: []

tools/aceditor/presentation/javascripts/components/InputGeo.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// ext/Number/Color/slider
22
export default {
33
props: [ 'value', 'config', 'values' ],
4+
emits: ['input'],
45
data() {
56
return {
67
defaultLatitude: 46.22763,

tools/aceditor/presentation/javascripts/components/InputIcon.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export default {
22
props: [ 'value', 'config' ],
3+
emits: ['input'],
34
mounted() {
45
$(this.$refs.input).iconpicker(pickerConfig).on('iconpickerSelected', (event) => {
56
// handle this event with jquery cause vue does not support camelCase event

tools/aceditor/presentation/javascripts/components/InputList.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import InputHelper from './InputHelper.js'
22

33
export default {
44
props: [ 'name', 'value', 'config', 'selectedForm', 'values' ],
5+
emits: ['input'],
56
mixins: [ InputHelper ],
67
computed: {
78
optionsList() {

tools/aceditor/presentation/javascripts/components/InputMultiInput.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import InputFormField from './InputFormField.js'
99

1010
export default {
1111
props: [ 'name', 'value', 'config', 'selectedForm', 'values' ],
12+
emits: ['input'],
1213
components: { InputText, InputCheckbox, InputList, InputIcon, InputColor, InputFormField, InputHidden },
1314
mixins: [ InputHelper ],
1415
data() {

tools/aceditor/presentation/javascripts/components/InputPageList.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export default {
22
props: [ 'value', 'config' ],
3+
emits: ['input'],
34
computed: {
45
pageList() {
56
$.ajax({

0 commit comments

Comments
 (0)