# g-character-dialog. **Repository Path**: ujjldn/g-character-dialog. ## Basic Information - **Project Name**: g-character-dialog. - **Description**: vue+element-plus 特殊字符选择器 - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-02 - **Last Updated**: 2025-08-02 ## Categories & Tags **Categories**: Uncategorized **Tags**: Vue, Element-UI ## README # g-dialog 组件库 一个基于 Vue 3 和 Element Plus 的字符选择对话框和抽屉组件库。 ## 组件介绍 本组件库包含两个核心组件: 1. **CharacterDialog** - 对话框形式的字符选择器 2. **CharacterDrawer** - 抽屉形式的字符选择器 两个组件都基于 Element Plus 的 `el-dialog` 和 `el-drawer` 组件,并集成了字符选择功能。  ## 安装 ```bash npm install element-plus ``` 注意:本组件库依赖 Element Plus,使用前请确保已安装 Element Plus。 ## 使用方式 ### 1. 通过构建工具使用(推荐) #### 安装依赖 ```bash npm install element-plus ``` #### 在项目中引入 ```javascript import { createApp } from 'vue' import ElementPlus from 'element-plus' import 'element-plus/dist/index.css' import { CharacterDialog, CharacterDrawer } from 'g-dialog' const app = createApp(App) app.use(ElementPlus) app.component('character-dialog', CharacterDialog) app.component('character-drawer', CharacterDrawer) ``` ### 2. 通过 CDN 使用 ```html