mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-06 18:37:27 -08:00
13659d036f
* ensure that eslint runs on all frontend code * remove tslint from `design-system` * enable prettier and eslint-prettier for `design-system` * Delete tslint.json * use a single editorconfig for the repo * enable prettier for all code in `design-system` * more linting fixes on design-system * ignore coverage for git and prettier * lintfix on editor-ui
55 lines
828 B
Vue
55 lines
828 B
Vue
<template>
|
|
<n8n-button square v-bind="$props" v-on="$listeners" />
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import N8nButton from '../N8nButton';
|
|
|
|
import Vue from 'vue';
|
|
|
|
export default Vue.extend({
|
|
name: 'n8n-icon-button',
|
|
components: {
|
|
N8nButton,
|
|
},
|
|
props: {
|
|
type: {
|
|
type: String,
|
|
default: 'primary',
|
|
},
|
|
size: {
|
|
type: String,
|
|
default: 'medium',
|
|
},
|
|
loading: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
outline: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
text: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
disabled: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
active: {
|
|
type: Boolean,
|
|
default: false,
|
|
},
|
|
icon: {
|
|
type: [String, Array],
|
|
required: true,
|
|
},
|
|
float: {
|
|
type: String,
|
|
validator: (value: string): boolean => ['left', 'right'].includes(value),
|
|
},
|
|
},
|
|
});
|
|
</script>
|