mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(editor): Fix design system typecheck errors (no-changelog) (#9447)
This commit is contained in:
@@ -32,6 +32,7 @@
|
||||
import { ElSelect } from 'element-plus';
|
||||
import { type PropType, defineComponent } from 'vue';
|
||||
import type { SelectSize } from '@/types';
|
||||
import { isEventBindingElementAttribute } from '../../utils';
|
||||
|
||||
type InnerSelectRef = InstanceType<typeof ElSelect>;
|
||||
|
||||
@@ -86,13 +87,16 @@ export default defineComponent({
|
||||
},
|
||||
computed: {
|
||||
listeners() {
|
||||
return Object.entries(this.$attrs).reduce<Record<string, () => {}>>((acc, [key, value]) => {
|
||||
if (/^on[A-Z]/.test(key)) {
|
||||
acc[key] = value;
|
||||
}
|
||||
return Object.entries(this.$attrs).reduce<Record<string, (...args: unknown[]) => {}>>(
|
||||
(acc, [key, value]) => {
|
||||
if (isEventBindingElementAttribute(value, key)) {
|
||||
acc[key] = value;
|
||||
}
|
||||
|
||||
return acc;
|
||||
}, {});
|
||||
return acc;
|
||||
},
|
||||
{},
|
||||
);
|
||||
},
|
||||
computedSize(): InnerSelectRef['$props']['size'] {
|
||||
if (this.size === 'medium') {
|
||||
|
||||
Reference in New Issue
Block a user