Skip to content

Repository files navigation

💖项目模版,已经推出💖

         

English | 简体中文

 

🚀 Element-Plus-X

开箱即用的企业级 AI 组件库(基于 Vue 3 + Element-Plus)

📦 安装

# NPM
npm install vue-element-plus-x

# PNPM(推荐)
pnpm install vue-element-plus-x

# Yarn
yarn install vue-element-plus-x

📚 使用案例

  1. 按需引入
<script>
import { BubbleList, Sender } from 'vue-element-plus-x';

const list = [
  {
    content: 'Hello, Element Plus X',
    role: 'user'
  }
];
</script>

<template>
  <div
    style="display: flex; flex-direction: column; height: 230px; justify-content: space-between;"
  >
    <BubbleList :list="list" />
    <Sender />
  </div>
</template>
  1. 全局引入
// main.ts
import { createApp } from 'vue';
import ElementPlusX from 'vue-element-plus-x';
import App from './App.vue';

const app = createApp(App);
// 使用 app.use() 全局引入
app.use(ElementPlusX);
app.mount('#app');
  1. CDN 引入
<!-- 该方法 有待测试 -->
<!-- CDN 引入 -->
<script src="https://unpkg.com/vue-element-plus-x@1.3.0/dist/umd/index.js"></script>

About

基于ElementPlusX扩展AI或通讯工具

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages