Browse Source

docs: taro toast add type

richard1015 3 years ago
parent
commit
80bf541113
2 changed files with 2 additions and 1 deletions
  1. 1 0
      src/packages/__VUE/toast/doc.taro.md
  2. 1 1
      src/packages/__VUE/toast/index.taro.vue

+ 1 - 0
src/packages/__VUE/toast/doc.taro.md

@@ -93,4 +93,5 @@ export default {
 | close-on-click-overlay | 是否在点击遮罩层后关闭提示                                                    | Boolean       | false                         |
 | toast-style            | 提示框style                                                                   | object        | {}                            |
 | toast-class            | 提示框class                                                                   | String        | ""                            |
+| type                   | 弹框类型 可选值(text、success、fail、warn、loading)                                                                | String        | ""                            |
 

+ 1 - 1
src/packages/__VUE/toast/index.taro.vue

@@ -32,7 +32,7 @@
     </view>
   </Transition>
 </template>
-<script>
+<script lang="ts">
 import { computed, watch } from 'vue';
 import { createComponent } from '../../utils/create';
 const { create } = createComponent('toast');