-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
64 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<ul class="menu"> | ||
<li class="menu__item" ms-for="el in menus">{{el.title}}</li> | ||
<li class="menu__item" ms-for="el in menus"> | ||
<ms-navlink ms-widget="{to:el.path,title:el.title}" /> | ||
</li> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<a ms-attr="{href:@to}" ms-text="@title" ></a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import avalon, { component } from 'avalon2'; | ||
import './index.css'; | ||
|
||
component('ms-navlink', { | ||
template: require('./index.html'), | ||
defaults: { | ||
title: '', | ||
to: '' | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,11 @@ | ||
<ul class="tab clearfix"> | ||
<li class="tab-item"> | ||
<input id="tab_check_0" type="radio" class="tab-check" name="tab_check" checked> | ||
<label for="tab_check_0" class="tab-title">Home</label> | ||
<span class="tab-line"></span> | ||
<div class="tab-page"> | ||
<ms-homepage /> | ||
</div> | ||
</li> | ||
<li class="tab-item"> | ||
<input id="tab_check_1" type="radio" class="tab-check" name="tab_check"> | ||
<label for="tab_check_1" class="tab-title">page1</label> | ||
<span class="tab-line"></span> | ||
<div class="tab-page"> | ||
<ms-page1 /> | ||
</div> | ||
</li> | ||
<li class="tab-item"> | ||
<input id="tab_check_2" type="radio" class="tab-check" name="tab_check"> | ||
<label for="tab_check_2" class="tab-title">page2</label> | ||
<span class="tab-line"></span> | ||
<div class="tab-page"> | ||
<ms-page1 /> | ||
</div> | ||
</li> | ||
<ms-tabpage> | ||
<ms-page1 slot="page" /> | ||
</ms-tabpage> | ||
<ms-tabpage> | ||
<ms-page2 slot="page" /> | ||
</ms-tabpage> | ||
<ms-tabpage> | ||
<ms-page2 slot="page" /> | ||
</ms-tabpage> | ||
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
.tabbar {} | ||
|
||
.tabbar .left { | ||
float: left; | ||
width: 2rem; | ||
} | ||
|
||
.tabbar .right { | ||
float: right; | ||
width: 2rem; | ||
} | ||
|
||
.tabbar .mid { | ||
overflow: hidden; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<ul class="tabbar"> | ||
<li><span class=""></span></li> | ||
<li><span class="left"></span></li> | ||
<li class="mid"><ms-tab /></li> | ||
<li><span class="right"></span></li> | ||
</ul> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<li class="tab-item"> | ||
<input id="tab_check_0" type="radio" class="tab-check" name="tab_check" checked> | ||
<label for="tab_check_0" class="tab-title">Home</label> | ||
<span class="tab-line"></span> | ||
<div class="tab-page"> | ||
<slot name="page" /> | ||
</div> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import avalon, { component } from 'avalon2'; | ||
import './index.css'; | ||
|
||
component('ms-tabpage', { | ||
template: require('./index.html'), | ||
defaults: { | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters