vant/es/vant-image处理测试环境问题

This commit is contained in:
liyuetong
2021-09-18 14:08:55 +08:00
parent f55675c720
commit d640c9ce5a
3 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@@ -1,5 +1,6 @@
node_modules node_modules
dist dist
package-lock.json
.eslintrc.js .eslintrc.js
.prettierrc .prettierrc

View File

@@ -23,7 +23,7 @@
</div> </div>
</template> </template>
<script> <script>
import { Icon, Image as VanImage } from 'vant' import { Icon, Image } from 'vant'
export default { export default {
name: 'IndexBar', name: 'IndexBar',
@@ -54,7 +54,7 @@ export default {
}, },
components: { components: {
[Icon.name]: Icon, [Icon.name]: Icon,
[VanImage.name]: VanImage [Image.name]: Image
}, },
data() { data() {
return { return {

View File

@@ -23,7 +23,7 @@
</div> </div>
</template> </template>
<script> <script>
import { Icon, Image as VanImage } from 'vant' import { Icon, Image } from 'vant'
export default { export default {
name: 'IndexBar', name: 'IndexBar',
@@ -54,7 +54,7 @@ export default {
}, },
components: { components: {
[Icon.name]: Icon, [Icon.name]: Icon,
[VanImage.name]: VanImage [Image.name]: Image
}, },
data() { data() {
return { return {