From 3ed05b2ea37c4da7b0b4923991deb1d27f415027 Mon Sep 17 00:00:00 2001
From: suerprisePlus <15810472099@163.com>
Date: 星期三, 05 六月 2024 18:35:20 +0800
Subject: [PATCH] 代码初始化

---
 README.md |  154 ++++++++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 150 insertions(+), 4 deletions(-)

diff --git a/README.md b/README.md
index 5a8566f..1d6fec5 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,150 @@
-## GeoAgent
-
-Ai澶фā鍨�2.0
-
+# JwChat
+
+#### 浠嬬粛
+**涓�娆惧熀浜嶸ue鍜孍lementUI鏋佺畝鐨勮亰澶╂缁勪欢**
+鏈」鐩槸涓�娆炬瀬绠�鐨勬暟鎹┍鍔ㄤ负涓荤殑鑱婂ぉ妗嗙粍浠躲��
+鏂板琛ㄦ儏鍖呭彲鑷姩鍖归厤寰俊琛ㄦ儏銆�
+鏂板鑱婂ぉ绐楀彛閰嶇疆缁勪欢锛屽彲浠ヨ嚜鐢遍厤缃� 椤堕儴鐘舵�佹爮 鍜� 鍙充晶淇℃伅鏍�
+
+![](./document/img/20200505.gif)
+
+#### 瀹夎
+
+* 浣跨敤 `npm` 瀹夎
+
+  ``` bash
+  npm install jwchat
+  ```
+
+* 浣跨敤 `yarn` 瀹夎
+
+  ``` bash
+  yarn add jwchat
+  ```
+
+### 鏂囨。
+[**瀹樻柟鏂囨。**](https://codegi.gitee.io/jwchatdoc/)
+
+#### 浣跨敤
+
+1. 鍥犱负鏈粍浠舵槸鍩轰簬 `element-ui` 寮�鍙戙�傞鍏堥渶瑕佸紩鍏�  `element-ui`銆�
+
+   ```bash
+   npm install element-ui
+   ```
+
+2. 鍦� `main.js` 涓紩鍏ョ粍浠�
+
+   ``` js
+   import ElementUI from 'element-ui';
+   import 'element-ui/lib/theme-chalk/index.css';
+   Vue.use(ElementUI);
+   
+   import Chat from 'jwchat';
+   import 'jwchat/lib/JwChat.css';
+   Vue.use(Chat)
+   ```
+
+3. 鍦� `*.vue` 涓紩鍏�
+
+   ``` vue
+   <JwChat-index
+         :taleList="list"
+      @enter="bindEnter"
+         @bindCover="bindCover"
+         v-model="inputMsg"
+         :toolConfig="tool"
+       />
+   ```
+   
+   ![](./document/img/20200505214642.png)
+
+### **缁勪欢鏂囨。**
+
+* [chatIndex缁勪欢鏂囨。](./document/chatIndex.md)
+* [chat缁勪欢鏂囨。](./document/chat.md)
+* [rightbox(浠縬q缇ゅ彸渚�)](./document/rightbox.md)
+* [talk蹇嵎鍥炲](./document/talk.md)
+* [user鍗曚釜鐢ㄦ埛灞曠ず](./document/user.md)
+* [鐢ㄦ埛璧勬枡鍗(./document/usercard.md)
+
+## 鍙傛暟閰嶇疆
+
+---
+
+### Attribute
+
+| 鍙傛暟       | 璇存槑           | 绫诲瀷   | 鍙�夊�� | 榛樿鍊� |
+| ---------- | :------------- | ------ | ------ | ------ |
+| v-model    | 杈撳叆妗嗕腑鐨勬枃瀛� | String | -      | ""     |
+| taleList   | 浼氳瘽鍐呭       | Array  | -      | []     |
+| toolConfig | 宸ュ叿鐑傞厤缃�     | Object | -      | {}     |
+| width      | 鑱婂ぉ妗嗗搴�     | string | -      | 550px  |
+| height     | 鑱婂ぉ妗嗛珮搴�     | string | -      | 500px  |
+
+### Methods
+
+| 鍙傛暟  | 璇存槑                               | 鍙傛暟           |
+| ----- | ---------------------------------- | -------------- |
+| enter | 杈撳叆妗嗙偣鍑诲氨鍙戦�佹垨鑰呭洖杞﹁Е鍙戠殑浜嬩欢 | 杈撳叆妗嗕腑鐨勬枃瀛� |
+|       |                                    |                |
+
+
+
+*  ####  `taleList`
+
+
+``` json
+// 鏍煎紡
+[
+    {
+        "date": "2020/04/25 21:19:07",
+        "text": { "text": "璧峰簥涓�" },
+        "mine": false,
+        "name": "鍙浖娴佹槦涓嶇浖闆�",
+        "img": "image/two.jpeg"
+    },
+    {
+        "date": "2020/04/16 21:19:07",
+        "text": { "text": "鎴戜笉楗�" },
+        "mine": true,
+        "name": "鐣欐亱浜洪棿涓嶇尽浠�",
+        "img": "image/three.jpeg"
+    },
+]
+
+// data 鐢ㄦ潵灞曠ず鏃堕棿鏁版嵁
+// text 鐢ㄦ潵灞曠ず鏈潯浼氳瘽鍐呭
+// mine 鏈潯鏁版嵁鏄惁鏄垜鍙戠殑
+// img 鐢ㄦ埛澶村儚
+```
+
+* #### `toolConfig` 
+
+``` js
+{
+    // file img video 鐜板湪鍙厤缃簡涓変釜鍥炬爣
+    show: ['file', 'img'],
+    callback: this.toolEvent
+}
+    
+ toolEvent (type/* 褰撳墠鐐瑰嚮鐨勬寜閽被鍨� */) {
+     alert(type)
+ }    
+```
+
+#### 鍙備笌璐$尞
+
+1.  Fork 鏈粨搴�
+2.  鏂板缓 Feat_xxx 鍒嗘敮
+3.  鎻愪氦浠g爜
+4.  鏂板缓 Pull Request
+
+#### 澹版槑
+
+* 鏈唬鐮佸�熼壌浜嶽AVue](https://avuejs.com/)
+
+
+#### 浜ゆ祦瀛︿範
+
+* 鐞冪悆缇� 锛�235689934
\ No newline at end of file

--
Gitblit v1.9.3