news-template

A components of pc base on vue2.X


Keywords
vue2.x, components
License
MIT
Install
npm install news-template@1.0.1

Documentation

temp-ui

基于Vue2.x的新闻模板渲染

项目目录

.
├── dist                         # 压缩后文件目录
├── site                         # 项目结构目录
│   ├── App.vue                  # 单页应用父组件          
│   └── main.js                  # 单页应用启动入口文件
├── src                           # 开发目录
│   ├── assets                    # 静态文件:scss/image
│   ├── components                # 存放共用组件库
│   ├── index.js                  # 全局注册组件插件
│   └── style.js                  # 导入scss
├── index.html
├── package.json                  # 依赖管理
├── webpack.dev.js                #项目启动配置文件:npm run dev
├── webpack.config.js             #项目打包配置文件:npm run build
└── README.md                     #README

Usage

Install dependencies

  npm install

or

  yarn

Serve with hot reload at localhost:8080

  npm run dev

发布新版本时,执行打包压缩

Build for production with minification

  npm run build

模板解析

temp-one 首位大图模板 参数 isPc:Boolean tempData: Object 模板数据

temp-six 新闻模板 参数 isPc:Boolean tempData: Object 模板数据