Skip to content

Commit 7efe790

Browse files
committed
fix: update README
1 parent dba8830 commit 7efe790

File tree

7 files changed

+21
-4
lines changed

7 files changed

+21
-4
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ English | [简体中文](./README.zh-CN.md)
22

33
<h1 align="center">Ant Design Pro Layout</h1>
44

5+
<div align="center">
6+
7+
[![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)
8+
9+
</div>
10+
511
## Usage
612

713
```bash

README.zh-CN.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
[English](./README.md) | 简体中文
22

33
<h1 align="center">Ant Design Pro Layout</h1>
4+
5+
<div align="center">
6+
7+
[![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)
8+
9+
</div>
10+
411
## 使用
512

613
```bash

examples/src/config/router.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const asyncRouterMap = [
121121
name: 'remote-baidu',
122122
meta: {
123123
title: '百度',
124-
icon: 'smile',
124+
icon: 'link',
125125
target: '_blank'
126126
}
127127
}

examples/src/core/antd/icons.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,3 +90,6 @@ export {
9090
default as AlignLeftOutline
9191
} from '@ant-design/icons/lib/outline/AlignLeftOutline'
9292
/* MultiTab end */
93+
export {
94+
default as LinkOutline
95+
} from '@ant-design/icons/lib/outline/LinkOutline'

examples/src/layouts/BasicLayout.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,19 @@
1010
:siderWidth="208"
1111
v-bind="settings"
1212
>
13+
<!--
1314
<template v-slot:menuRender>
1415
<ul style="color: white;">
1516
<li v-for="(menu, key) in menus" :key="key">
1617
{{ menu.meta.title }}
1718
</li>
1819
</ul>
1920
</template>
21+
-->
2022
<template v-slot:menuHeaderRender>
2123
<div>
2224
<img src="../assets/logo.svg" />
23-
<h1>Pro 1</h1>
25+
<h1>Pro Preview</h1>
2426
</div>
2527
</template>
2628
<template v-slot:headerContentRender>

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
],
1414
"license": "MIT",
1515
"scripts": {
16-
"start": "vc-tools run server",
1716
"lint": "eslint -c ./.eslintrc --fix --ext .jsx,.js,.vue ./src",
1817
"compile": "vc-tools run compile --babel-runtime",
1918
"test": "cross-env NODE_ENV=test jest --config .jest.js",

src/utils/dynamicTheme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ export const updateTheme = newPrimaryColor => {
3333

3434
export const updateColorWeak = colorWeak => {
3535
// document.body.className = colorWeak ? 'colorWeak' : '';
36-
const app = document.body.querySelector('#app')
36+
const app = document.body.querySelector('#app .ant-pro-basicLayout')
3737
colorWeak ? app.classList.add('colorWeak') : app.classList.remove('colorWeak')
3838
}

0 commit comments

Comments
 (0)