naive-ui
Version:
A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast
23 lines (22 loc) • 827 B
TypeScript
import type { Ref } from 'vue';
import type { MergedTheme } from '../../_mixins';
import type { DynamicInputTheme } from '../styles';
export interface DynamicInputInjection {
mergedThemeRef: Ref<MergedTheme<DynamicInputTheme>>;
keyPlaceholderRef: Ref<string | undefined>;
valuePlaceholderRef: Ref<string | undefined>;
placeholderRef: Ref<string | undefined>;
}
export declare const dynamicInputInjectionKey: import("vue").InjectionKey<DynamicInputInjection>;
export type OnUpdateValue = <T>(value: T[]) => void;
export interface DynamicInputDefaultSlotProps {
value: any;
index: number;
}
export interface DynamicInputActionSlotProps {
value: any;
index: number;
create: (index: number) => void;
remove: (index: number) => void;
move: (type: 'up' | 'down', index: number) => void;
}