index.vue 596 B

123456789101112131415161718192021
  1. <template>
  2. <view v-if="(info !== null && info !== '') || dot" :class="'custom-class van-info ' + utils.bem('info', { dot })" :style="customStyle">{{ dot ? '' : info }}</view>
  3. </template>
  4. <script module="utils" lang="wxs" src="@/miniprogram_npm/@vant/weapp/wxs/utils.wxs"></script>
  5. <script>
  6. 'use strict';
  7. Object.defineProperty(exports, '__esModule', {
  8. value: true
  9. });
  10. var component_1 = require('../common/component');
  11. component_1.VantComponent({
  12. props: {
  13. dot: Boolean,
  14. info: null,
  15. customStyle: String
  16. }
  17. });
  18. </script>
  19. <style>
  20. @import './index.css';
  21. </style>