Commit 7efe7908 authored by Sendya's avatar Sendya

fix: update README

parent dba88300
...@@ -2,6 +2,12 @@ English | [简体中文](./README.zh-CN.md) ...@@ -2,6 +2,12 @@ English | [简体中文](./README.zh-CN.md)
<h1 align="center">Ant Design Pro Layout</h1> <h1 align="center">Ant Design Pro Layout</h1>
<div align="center">
[![NPM version](https://img.shields.io/npm/v/@ant-design-vue/pro-layout/latest?style=flat)](https://npmjs.org/package/@ant-design-vue/pro-layout) [![Vue Support](https://img.shields.io/badge/support-Vue2-green?style=flat)](./package.json) [![NPM downloads](http://img.shields.io/npm/dm/@ant-design-vue/pro-layout.svg?style=flat)](https://npmjs.org/package/@ant-design-vue/pro-layout) [![License](https://img.shields.io/github/license/vueComponent/pro-layout)](./LICENSE)
</div>
## Usage ## Usage
```bash ```bash
......
[English](./README.md) | 简体中文 [English](./README.md) | 简体中文
<h1 align="center">Ant Design Pro Layout</h1> <h1 align="center">Ant Design Pro Layout</h1>
<div align="center">
[![NPM version](https://img.shields.io/npm/v/@ant-design-vue/pro-layout/latest?style=flat)](https://npmjs.org/package/@ant-design-vue/pro-layout) [![Vue Support](https://img.shields.io/badge/support-Vue2-green?style=flat)](./package.json) [![NPM downloads](http://img.shields.io/npm/dm/@ant-design-vue/pro-layout.svg?style=flat)](https://npmjs.org/package/@ant-design-vue/pro-layout) [![License](https://img.shields.io/github/license/vueComponent/pro-layout)](./LICENSE)
</div>
## 使用 ## 使用
```bash ```bash
......
...@@ -121,7 +121,7 @@ const asyncRouterMap = [ ...@@ -121,7 +121,7 @@ const asyncRouterMap = [
name: 'remote-baidu', name: 'remote-baidu',
meta: { meta: {
title: '百度', title: '百度',
icon: 'smile', icon: 'link',
target: '_blank' target: '_blank'
} }
} }
......
...@@ -90,3 +90,6 @@ export { ...@@ -90,3 +90,6 @@ export {
default as AlignLeftOutline default as AlignLeftOutline
} from '@ant-design/icons/lib/outline/AlignLeftOutline' } from '@ant-design/icons/lib/outline/AlignLeftOutline'
/* MultiTab end */ /* MultiTab end */
export {
default as LinkOutline
} from '@ant-design/icons/lib/outline/LinkOutline'
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
:siderWidth="208" :siderWidth="208"
v-bind="settings" v-bind="settings"
> >
<!--
<template v-slot:menuRender> <template v-slot:menuRender>
<ul style="color: white;"> <ul style="color: white;">
<li v-for="(menu, key) in menus" :key="key"> <li v-for="(menu, key) in menus" :key="key">
...@@ -17,10 +18,11 @@ ...@@ -17,10 +18,11 @@
</li> </li>
</ul> </ul>
</template> </template>
-->
<template v-slot:menuHeaderRender> <template v-slot:menuHeaderRender>
<div> <div>
<img src="../assets/logo.svg" /> <img src="../assets/logo.svg" />
<h1>Pro 1</h1> <h1>Pro Preview</h1>
</div> </div>
</template> </template>
<template v-slot:headerContentRender> <template v-slot:headerContentRender>
......
...@@ -13,7 +13,6 @@ ...@@ -13,7 +13,6 @@
], ],
"license": "MIT", "license": "MIT",
"scripts": { "scripts": {
"start": "vc-tools run server",
"lint": "eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./src", "lint": "eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./src",
"compile": "vc-tools run compile --babel-runtime", "compile": "vc-tools run compile --babel-runtime",
"test": "cross-env NODE_ENV=test jest --config .jest.js", "test": "cross-env NODE_ENV=test jest --config .jest.js",
......
...@@ -33,6 +33,6 @@ export const updateTheme = newPrimaryColor => { ...@@ -33,6 +33,6 @@ export const updateTheme = newPrimaryColor => {
export const updateColorWeak = colorWeak => { export const updateColorWeak = colorWeak => {
// document.body.className = colorWeak ? 'colorWeak' : ''; // document.body.className = colorWeak ? 'colorWeak' : '';
const app = document.body.querySelector('#app') const app = document.body.querySelector('#app .ant-pro-basicLayout')
colorWeak ? app.classList.add('colorWeak') : app.classList.remove('colorWeak') colorWeak ? app.classList.add('colorWeak') : app.classList.remove('colorWeak')
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment