@hedait/kit

0.1.1 • Public • Published

hedait-spa-base

目录介绍

  • public
  • src
    • assets 资源文件
    • common 公共部分,包括PC和移动端公共部分
    • examples 部分示例
    • mobile 移动端部分
    • pc pc部分
  • index.js

其他项目依赖

先进入hedait-spa-base后,把核心模块发布到本地的npm目录中

cd hedait-spa-base
npm link

再进入项目,关联。

cd project
npm link hedait-spa-base

至此,就可以通过如下代码引入到项目中,其中没有结构的是基础能力,通过解构引入的是UI部分。

import base from 'hedait-spa-base'
import {pc, mobile} from 'hedait-spa-base'

//全局注册全部组件
Vue.use(pc)

//某页面单独注册某个组件
let card = pc.card;
export default {
  components:{
    card
  }
}

Project setup

yarn install

Compiles and hot-reloads for development

yarn serve

Compiles and minifies for production

yarn build

Lints and fixes files

yarn lint

Customize configuration

See Configuration Reference.

Readme

Keywords

none

Package Sidebar

Install

npm i @hedait/kit

Weekly Downloads

3

Version

0.1.1

License

none

Unpacked Size

42.8 kB

Total Files

21

Last publish

Collaborators

  • onecoder