Prechádzať zdrojové kódy

base init component

gemer 4 rokov pred
rodič
commit
3c89d8d32e
4 zmenil súbory, kde vykonal 12 pridanie a 20 odobranie
  1. 1 0
      .npmignore
  2. 7 16
      README.md
  3. 1 1
      src/App.vue
  4. 3 3
      src/components/Danmaku.vue

+ 1 - 0
.npmignore

@@ -0,0 +1 @@
+node_modules

+ 7 - 16
README.md

@@ -1,24 +1,15 @@
 # @wujing/danmaku
 
-## Project setup
-```
-yarn install
-```
+# 安装 :
 
-### Compiles and hot-reloads for development
-```
-yarn serve
+``` shell
+npm install @wujing/danmaku --save
 ```
 
-### Compiles and minifies for production
-```
-yarn build
-```
+## 使用方法:
 
-### Lints and fixes files
-```
-yarn lint
+``` js
+npm install @wujing/danmaku --save
 ```
 
-### Customize configuration
-See [Configuration Reference](https://cli.vuejs.org/config/).
+

+ 1 - 1
src/App.vue

@@ -3,7 +3,7 @@
     <div class="demo-container">
       <Danmaku
         class="demo-danmaku"
-        :sendIcon="require('./assets/list-enable-btn.png')"
+        :showIcon="require('./assets/list-enable-btn.png')"
         :closeIcon="require('./assets/list-disable-btn.png')"
       />
     </div>

+ 3 - 3
src/components/Danmaku.vue

@@ -23,8 +23,8 @@
       <div class="send-btn-container">
         <img
           @click="hideList"
-          class="send-icon"
-          :src="sendIcon || ''"
+          class="show-icon"
+          :src="showIcon || ''"
           v-if="isShowList"
         />
         <img
@@ -73,7 +73,7 @@ export default {
         ];
       },
     },
-    sendIcon: {
+    showIcon: {
       type: String,
       required: true,
     },