aspire-xczx-h5
v1.0.7
Published
<!-- * @Author: liuzhenxin * @Date: 2021-12-23 13:45:30 * @LastEditTime: 2022-01-04 10:53:46 * @LastEditors: liuzhenxin * @Description:使用说明 * @FilePath: \rfxczx\micro-h5-common\README.md * -->
Downloads
10
Readme
aspire-xczx-h5
npm 安装
npm install aspire-xczx-h5
# 快速上手
将介绍如何使用 aspire-xczx-h5
## 引入 aspire-xczx-h5
你可以引入整个 aspire-xczx-h5,或是根据需要仅引入部分组件。我们先介绍如何引入完整的 aspire-xczx-h5
### 完整引入
在 main.js 中写入以下内容:
```js{2,5}
import Vue from 'vue';
import aspire-xczx-h5 from 'aspire-xczx-h5';
import App from './App.vue';
Vue.use(aspire-xczx-h5);
new Vue({
el: '#app',
render: h => h(App)
});
以上代码便完成了 aspire-xczx-h5 的引入。
按需引入
如果你只希望引入部分组件,比如 basicInfo ,那么需要在 main.js 中写入以下内容:
import Vue from "vue"
import { basicInfo } from "aspire-xczx-h5"
import App from "./App.vue"
Vue.use(basicInfo)
new Vue({
el: "#app",
render: h => h(App)
})
完整组件列表和引入方式
import Vue from "vue"
import { basicInfo } from "aspire-xczx-h5"
Vue.use(basicInfo)