mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
feat: Replace Vue.extend with defineComponent in design system (no-changelog) (#5918)
* 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 * refactor: replace global Vue references in design-system * refactor: update prop types * feat: improve types * fix: further type improvements * fix: further types improvements * fix: further type improvements * test: fix test snapshots * test: fix snapshot * chore: fix linting issues * test: fix personalization modal snapshot
This commit is contained in:
@@ -18,11 +18,11 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import Vue from 'vue';
|
||||
import { defineComponent } from 'vue';
|
||||
import N8nIcon from '../N8nIcon';
|
||||
import N8nSpinner from '../N8nSpinner';
|
||||
|
||||
export default Vue.extend({
|
||||
export default defineComponent({
|
||||
name: 'n8n-button',
|
||||
props: {
|
||||
label: {
|
||||
@@ -81,11 +81,11 @@ export default Vue.extend({
|
||||
N8nIcon,
|
||||
},
|
||||
computed: {
|
||||
ariaBusy(): string {
|
||||
return this.loading ? 'true' : 'false';
|
||||
ariaBusy(): 'true' | undefined {
|
||||
return this.loading ? 'true' : undefined;
|
||||
},
|
||||
ariaDisabled(): string {
|
||||
return this.disabled ? 'true' : 'false';
|
||||
ariaDisabled(): 'true' | undefined {
|
||||
return this.disabled ? 'true' : undefined;
|
||||
},
|
||||
classes(): string {
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user