mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 02:51:14 +00:00
refactor: Improve typings for element-ui imports (no-changelog) (#4678)
* convert all stories to typescript * stricter typing for element-ui imports
This commit is contained in:
committed by
GitHub
parent
78c66f16d6
commit
55c201eb21
@@ -38,23 +38,32 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import ElDropdown from 'element-ui/lib/dropdown';
|
||||
import ElDropdownMenu from 'element-ui/lib/dropdown-menu';
|
||||
import ElDropdownItem from 'element-ui/lib/dropdown-item';
|
||||
import N8nIcon from '../N8nIcon';
|
||||
import Vue from 'vue';
|
||||
import {
|
||||
Dropdown as ElDropdown,
|
||||
DropdownMenu as ElDropdownMenu,
|
||||
DropdownItem as ElDropdownItem,
|
||||
} from 'element-ui';
|
||||
import N8nIcon from '../N8nIcon';
|
||||
|
||||
interface Action {
|
||||
label: string;
|
||||
value: string;
|
||||
disabled: boolean;
|
||||
type?: 'external-link';
|
||||
}
|
||||
|
||||
export default Vue.extend({
|
||||
name: 'n8n-action-toggle',
|
||||
components: {
|
||||
ElDropdown, // eslint-disable-line @typescript-eslint/no-unsafe-assignment
|
||||
ElDropdownMenu, // eslint-disable-line @typescript-eslint/no-unsafe-assignment
|
||||
ElDropdownItem, // eslint-disable-line @typescript-eslint/no-unsafe-assignment
|
||||
ElDropdown,
|
||||
ElDropdownMenu,
|
||||
ElDropdownItem,
|
||||
N8nIcon,
|
||||
},
|
||||
props: {
|
||||
actions: {
|
||||
type: Array,
|
||||
type: Array<Action>,
|
||||
default: () => [],
|
||||
},
|
||||
placement: {
|
||||
|
||||
Reference in New Issue
Block a user