mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Resolve editor/type warnings (#7687)
* resolve editor/type warnings * dont rename props
This commit is contained in:
@@ -224,10 +224,6 @@ body {
|
||||
opacity: 0.1;
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
//
|
||||
}
|
||||
}
|
||||
|
||||
.prepend,
|
||||
|
||||
@@ -21,7 +21,7 @@ import { isPlainObject } from 'lodash';
|
||||
export default defineComponent({
|
||||
props: {
|
||||
error: {
|
||||
type: [Object, Error] as PropType<any>,
|
||||
type: [Object, Error] as PropType<Record<string, any>>,
|
||||
required: true,
|
||||
},
|
||||
},
|
||||
|
||||
@@ -61,11 +61,10 @@
|
||||
<script lang="ts">
|
||||
import { useI18n } from 'vue-i18n';
|
||||
import { defineComponent, PropType, computed, ref } from 'vue';
|
||||
import { Field } from '@directus/shared/types';
|
||||
import { Field, ValidationError } from '@directus/shared/types';
|
||||
import FormFieldLabel from './form-field-label.vue';
|
||||
import FormFieldMenu from './form-field-menu.vue';
|
||||
import FormFieldInterface from './form-field-interface.vue';
|
||||
import { ValidationError } from '@/types';
|
||||
import { getJSType } from '@/utils/get-js-type';
|
||||
import { isEqual } from 'lodash';
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ export default defineComponent({
|
||||
keydown: processValue,
|
||||
blur: (e: Event) => {
|
||||
trimIfEnabled();
|
||||
attrs?.onBlur?.(e);
|
||||
if (typeof attrs.onBlur === 'function') attrs.onBlur(e);
|
||||
},
|
||||
focus: (e: PointerEvent) => emit('focus', e),
|
||||
}));
|
||||
|
||||
@@ -90,6 +90,8 @@ export default defineComponent({
|
||||
emits: ['update:modelValue'],
|
||||
setup(props, { emit }) {
|
||||
const visiblePages = computed<number[]>(() => {
|
||||
if (props.totalVisible === undefined) return [];
|
||||
|
||||
let startPage: number;
|
||||
let endPage: number;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user