0.1.1 • Published 5 years ago

@hedait/kit v0.1.1

Weekly downloads
2
License
-
Repository
-
Last release
5 years ago

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.

0.1.1

5 years ago

0.1.0

5 years ago