1234567891011121314151617181920 |
- <template>
- <view v-if="(info !== null && info !== '') || dot" :class="'custom-class van-info ' + utils.bem('info', { dot })" :style="customStyle">{{ dot ? '' : info }}</view>
- </template>
- <script module="utils" lang="wxs" src="@/node_modules/@vant/weapp/dist/wxs/utils.wxs"></script>
- <script>
- import { VantComponent } from '../common/component';
- export default {
- data() {
- return {};
- },
- props: {
- dot: Boolean,
- info: null,
- customStyle: String
- }
- };
- </script>
- <style>
- @import './index.css';
- </style>
|