index.vue 547 B

1234567891011121314151617181920
  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="@/node_modules/@vant/weapp/dist/wxs/utils.wxs"></script>
  5. <script>
  6. import { VantComponent } from '../common/component';
  7. export default {
  8. data() {
  9. return {};
  10. },
  11. props: {
  12. dot: Boolean,
  13. info: null,
  14. customStyle: String
  15. }
  16. };
  17. </script>
  18. <style>
  19. @import './index.css';
  20. </style>