asdfljl
v0.0.5
Published
``` import './assets/main.css';
Downloads
401
Readme
Пример подключения компонентов в main.ts файле
import './assets/main.css';
import App from './App.vue';
import router from './router';
import {createApp} from 'vue';
// Импортируем компоненты
import Chat from 'asdfljl'
// Импортируем стили
import '/node_modules/asdfljl/dist/style.css';
const app = createApp(App)
// Подключаем компоненты
app.use(Chat);
app.use(router)
app.mount('#app')
Use chat provider
<script setup lang='ts'>
import ChatProvider from '@/components/ChatProvider.vue';
import ChatComponent from './ChatComponent.vue'; //some random components inside for exmpale whole chat
const chatConfig = {
userAccount: 'someUserAccount',
userKey: 'userkey',
webSocketUrl: 'websocketUrl',
}
</script>
<template>
<ChatProvider :config="chatConfig">
<ChatComponent />
</ChatProvider>
</template>