# vue3-data-dict **Repository Path**: mxnjs/vue3-data-dict ## Basic Information - **Project Name**: vue3-data-dict - **Description**: Data dict for Vue3 - **Primary Language**: JavaScript - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 9 - **Forks**: 2 - **Created**: 2023-09-29 - **Last Updated**: 2023-10-31 ## Categories & Tags **Categories**: vue-extensions **Tags**: None ## README # Data dict for Vue3 ## Installation ```js npm i vue3-data-dict -S ``` ## Examples ### install ```vue import { createApp, type Component } from 'vue' import App from './App.vue' import VueDataDict from 'vue3-data-dict' const app = createApp(App) app.use(VueDataDict, { onCreated(dict) { console.log('dict created: %o', dict) }, onReady(dict) { console.log('dict ready: %o', dict) }, metas: { '*': { request(dictMeta) { return Promise // get data from remote server }, responseConverter(response, dictMeta) { // you can use "VueDataDict.convertData({ ... }, dictMeta)" to convert Object to DictData return response.map(e => VueDataDict.convertData(e, dictMeta)) } } } }) app.mount('#app') ``` ### use ```vue ``` ## Licence This repository is licensed under the [Apache License 2.0](https://choosealicense.com/licenses/apache-2.0/) license.