测试vant移动端框架

This commit is contained in:
暮光:城中城
2021-05-13 22:59:04 +08:00
parent ff5434a173
commit 477fef11d3
4 changed files with 70 additions and 74 deletions

View File

@@ -1,15 +1,11 @@
<template>
<div style="padding: 10px;" class="page-share-home-vue">
<nut-button @click="popupShowChange">测试</nut-button>
<van-button type="primary" @click="popupShowChange">测试</van-button>
</div>
</template>
<script>
import pageApi from '../../../../common/api/page';
import Button from '@nutui/nutui/dist/packages/button/button.js';
import '@nutui/nutui/dist/packages/button/button.css';
import Popup from '@nutui/nutui/dist/packages/popup/popup.js';
import '@nutui/nutui/dist/packages/popup/popup.css';
export default {
data() {
@@ -24,10 +20,6 @@
spacePageNews: [],
};
},
components: {
'nut-button': Button,
'nut-popup': Popup,
},
beforeRouteUpdate(to, from, next) {
this.initQueryParam(to);
next();