Skip to content

Commit 238daab

Browse files
author
wangxiang
committed
add 左菜单增加 icon font 大小的配置
add 简单表格页面增加 mockData 源码 fix 推荐的三方库页面在 ie 上,初次加载显示错误的问题
1 parent 6a63cc8 commit 238daab

File tree

7 files changed

+15
-3
lines changed

7 files changed

+15
-3
lines changed

dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"/><meta name="format-detection" content="telephone=no,address=no,email=no"/><title>Angular4 Seed</title><base href="/angular-seed/dist/"><link rel="icon" type="image/x-icon" href="favicon.ico"><link href="styles.d7f22c5de6b34a401df7.bundle.css" rel="stylesheet"/></head><body><app-root></app-root><script type="text/javascript" src="inline.1456daa4ec51a747397d.bundle.js"></script><script type="text/javascript" src="polyfills.99784301f069f50af5f5.bundle.js"></script><script type="text/javascript" src="scripts.084e0d1bda4f8bbf8824.bundle.js"></script><script type="text/javascript" src="vendor.3969bacb185732e9cc36.bundle.js"></script><script type="text/javascript" src="main.91da89e01c969e1956f8.bundle.js"></script></body></html>
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"/><meta name="format-detection" content="telephone=no,address=no,email=no"/><title>Angular4 Seed</title><base href="/"><link rel="icon" type="image/x-icon" href="favicon.ico"><link href="styles.d7f22c5de6b34a401df7.bundle.css" rel="stylesheet"/></head><body><app-root></app-root><script type="text/javascript" src="inline.1456daa4ec51a747397d.bundle.js"></script><script type="text/javascript" src="polyfills.99784301f069f50af5f5.bundle.js"></script><script type="text/javascript" src="scripts.084e0d1bda4f8bbf8824.bundle.js"></script><script type="text/javascript" src="vendor.3969bacb185732e9cc36.bundle.js"></script><script type="text/javascript" src="main.91da89e01c969e1956f8.bundle.js"></script></body></html>

src/app/layout/menu/menu.component.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
<li class="menu-item level1" [class.folded]="level1.isFolded"
44
[class.active]="activePath.indexOf(level1.path) === 0" *ngFor="let level1 of menus">
55
<a href="javascript: void(0)" class="menu-text" (click)="handleMenuItemClick(level1)"><i
6-
[class]="'icon iconfont ' + level1.icon"></i>{{ level1.text}}</a>
6+
[class]="'icon iconfont ' + level1.icon" [style.font-size]="level1.iconFontSize || 'inherit'"></i>{{
7+
level1.text}}</a>
78
<ul class="level2" *ngIf="level1?.children?.length > 0">
89
<li class="menu-item level2" [class.active]="activePath.indexOf(level2.path) === 0"
910
*ngFor="let level2 of level1.children">

src/app/routes/simple-ui/table/source-code/index.component.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,8 @@
66
<tab heading="component" id="component">
77
<pre class="prettyprint linenums lang-js">{{ sourceCode.component }}</pre>
88
</tab>
9+
<tab heading="mockData" id="mockData">
10+
<pre class="prettyprint linenums lang-js">{{ sourceCode.mockData }}</pre>
11+
</tab>
912
</tabset>
1013
</div>

src/app/routes/simple-ui/table/source-code/index.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ import { PageScrollInstance, PageScrollService } from 'ngx-page-scroll'
1010
export class SourceCodeComponent implements OnInit {
1111
sourceCode = {
1212
template: require('!raw-loader!../demo/index.component.html'),
13-
component: require('!raw-loader!../demo/index.component')
13+
component: require('!raw-loader!../demo/index.component'),
14+
mockData: require('!raw-loader!../demo/mock')
1415
}
1516

1617
constructor (private pageScrollService: PageScrollService, @Inject(DOCUMENT) private document: any) {

src/app/routes/third-library-list/index.page.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@
88
@include page;
99
flex-direction: column;
1010

11+
& > /deep/ * {
12+
flex: 0 0 auto;
13+
}
14+
1115
/deep/ h2 {
1216
margin-bottom: 20px;
17+
line-height: 32px;
1318

1419
&:not(:first-child) {
1520
margin-top: 20px;

src/app/routes/third-library-list/index.page.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import { Component, OnInit } from '@angular/core'
77
})
88
export class ThirdLibraryListPageComponent implements OnInit {
99
listContent = require('html-loader!markdown-loader!./third-library-list.md')
10+
1011
constructor () {
1112
}
1213

src/app/store/app/model.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export const initialState: IAppState = {
2929
queryParams: { pageType: 'sideMenu' },
3030
type: 'level1',
3131
isFolded: true,
32+
iconFontSize: '14px',
3233
icon: 'icon-login'
3334
}
3435
]

0 commit comments

Comments
 (0)