浏览代码

docs: taro toast add type

richard1015 4 年之前
父节点
当前提交
80bf541113
共有 2 个文件被更改,包括 2 次插入1 次删除
  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');