declare module '@johmun/vue-tags-input' {
type Plugin_2<Option = any> = PluginInstallFunction<Option> & {
install?: PluginInstallFunction<Option>;
} | {
install: PluginInstallFunction<Option>;
};
export {Plugin_2 as Plugin}
type PluginInstallFunction<Option> = (app: App, ...options: Option[]) => any;
interface App {
//use(plugin: Plugin_2, ...options: any[]): this; // this line overrides below (because of any)
use<Option>(plugin: Plugin_2<Option>, ...options: Option[]): this;
}
export const install: PluginInstallFunction<any>;
}.
⇒ 라이프사이클 문제로 적용 안됨
방법 : Blur이벤트를 이용해서 input에 Focus를 잃게하고 Parents Node로 포커싱을 주고 KeyEvent를 이용해서 방향키를 누르면 Focus가 움직이도록 설정한다.
REF>