mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 18:41:14 +00:00
feat: Replace new Vue() with custom event bus (no-changelog) (#5780)
* refactor: replace new Vue() with custom event bus (no-changelog) * fix: export types from design system main * fix: update component types * fix: update form inputs event bus
This commit is contained in:
@@ -37,10 +37,11 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
import Vue, { PropType } from 'vue';
|
||||
import N8nFormInput from '../N8nFormInput';
|
||||
import type { IFormInput } from '../../types';
|
||||
import ResizeObserver from '../ResizeObserver';
|
||||
import { EventBus } from '@/utils';
|
||||
|
||||
export default Vue.extend({
|
||||
name: 'n8n-form-inputs',
|
||||
@@ -56,7 +57,7 @@ export default Vue.extend({
|
||||
},
|
||||
},
|
||||
eventBus: {
|
||||
type: Vue,
|
||||
type: Object as PropType<EventBus>,
|
||||
},
|
||||
columnView: {
|
||||
type: Boolean,
|
||||
@@ -83,7 +84,7 @@ export default Vue.extend({
|
||||
});
|
||||
|
||||
if (this.eventBus) {
|
||||
this.eventBus.$on('submit', this.onSubmit); // eslint-disable-line @typescript-eslint/unbound-method
|
||||
this.eventBus.on('submit', this.onSubmit); // eslint-disable-line @typescript-eslint/unbound-method
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in New Issue
Block a user