:star2: 一个使用 emojis natives (unicode) 的 Emoji 选择器,具有轻量级和可自定义的功能。
:star2: 一个使用 emojis natives (unicode) 的 Emoji 选择器,具有轻量级和可自定义的功能。
This simple package using Emojis Natives
yarn add v-emoji-picker
or Global
import Vue from "vue";
import App from "./App.vue";
import VEmojiPicker from 'v-emoji-picker';
Vue.config.productionTip = false;
Vue.use(VEmojiPicker);
new Vue({
render: h => h(App)
}).$mount("#app");…{
select: 'Emit event on Selected Emoji',
changeCategory: 'Emit event on Change Category'
}Array of items with Interface IEmoji
interface IEmoji {
data: string;
category: string;
aliases: string[];
}set in Prop customEmojis
Array of items with Interface ICategory
interface ICategory {
name: string;
icon: string;
}set in Prop customCategories
Doc coming soon...
Set in Prop i18n a object with structure of you custom translation:
const i18n = {
search: 'Pesquisar...',
categories: {
Activity: "Atividades",
Flags: "Bandeiras",
Foods: "Comida",
Frequently: "Frequentes",
Objects: "Objetos",
Nature: "Natureza",
Peoples: "Pessoas",
Symbols: "Símbolos",
Places: "Locais"
}
}or import from locale/lang/${youLang}
Obs: Default language is en-UK
暂无开放 Issues,或尚未同步最近议题。