-
Notifications
You must be signed in to change notification settings - Fork 31
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
107 changed files
with
5,322 additions
and
649 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,4 +29,6 @@ coverage | |
|
||
.vscode/ | ||
|
||
lib | ||
lib/ | ||
dist/ | ||
es/ |
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 |
---|---|---|
|
@@ -17,4 +17,5 @@ coverage | |
out | ||
output | ||
appveyor.yml | ||
|
||
src | ||
gulefile.js |
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<template> | ||
<san-list> | ||
<san-list-item primaryText="图片" disabled> | ||
<san-avatar slot="left" src="http://boscdn.bpc.baidu.com/movie/assets/avatar1.jpeg"/> | ||
</san-list-item> | ||
<san-list-item primaryText="图片,自定义大小" disabled> | ||
<san-avatar slot="left" src="http://boscdn.bpc.baidu.com/movie/assets/avatar1.jpeg" size="30"/> | ||
</san-list-item> | ||
<san-list-item primaryText="图标" disabled> | ||
<san-avatar slot="left" icon="folder"/> | ||
</san-list-item> | ||
<san-list-item primaryText="图标, 自定义大小、颜色" disabled> | ||
<san-avatar slot="left" icon="folder" color="#f93" backgroundColor="#ff2244" size="30" iconSize="20"/> | ||
</san-list-item> | ||
<san-list-item primaryText="文字" disabled> | ||
<san-avatar slot="left" color="#f93" backgroundColor="#2c9eff">MB</san-avatar> | ||
</san-list-item> | ||
</san-list> | ||
</template> | ||
|
||
<script> | ||
|
||
import Icon from '../src/Icon'; | ||
import Avatar from '../src/Avatar'; | ||
import {List, ListItem} from '../src/List'; | ||
|
||
import '../src/Avatar/Avatar.styl'; | ||
import '../src/List/index.styl'; | ||
|
||
export default { | ||
|
||
components: { | ||
'san-icon': Icon, | ||
'san-avatar': Avatar, | ||
'san-list': List, | ||
'san-list-item': ListItem | ||
}, | ||
|
||
initData() { | ||
return { | ||
}; | ||
} | ||
|
||
} | ||
|
||
</script> | ||
|
||
<style> | ||
|
||
</style> |
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 |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<template> | ||
<div> | ||
<p class="sm-demo-title">配合列表使用</p> | ||
<div class="sm-list-demo-wrapper"> | ||
<san-list> | ||
<san-list-item primaryText="List Item 1" /> | ||
</san-list-item> | ||
<san-list-item primaryText="List Item 2" /> | ||
<san-divider /> | ||
<san-list-item primaryText="List Item 3" /> | ||
</san-list> | ||
</div> | ||
|
||
<p class="sm-demo-title">配合Menu使用</p> | ||
<san-dropdownmenu openImmediately="true" anchorOrigin="{{anchorOrigin}}"> | ||
<san-menuitem value="{{ 1 }}" title="MenuItem 1" /> | ||
<san-menuitem value="{{ 2 }}" title="MenuItem 2" /> | ||
<san-divider /> | ||
<san-menuitem value="{{ 3 }}" title="MenuItem 3" /> | ||
<san-icon slot="iconButton">arrow_drop_down</san-icon> | ||
</san-dropdownmenu> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
|
||
import Icon from '../src/Icon'; | ||
import {List, ListItem} from '../src/List'; | ||
import Divider from '../src/Divider'; | ||
import {DropDownMenu, MenuItem} from '../src/Menu'; | ||
|
||
import '../src/List/index.styl'; | ||
import '../src/Menu/DropDownMenu.styl'; | ||
import '../src/Menu/MenuItem.styl'; | ||
import '../src/Divider/Divider.styl'; | ||
|
||
export default { | ||
|
||
components: { | ||
'san-dropdownmenu': DropDownMenu, | ||
'san-menuitem': MenuItem, | ||
'san-icon': Icon, | ||
'san-list': List, | ||
'san-list-item': ListItem, | ||
'san-divider': Divider | ||
}, | ||
|
||
initData() { | ||
return { | ||
anchorOrigin: { | ||
vertical: 'bottom', | ||
horizontal: 'left' | ||
}, | ||
}; | ||
} | ||
|
||
} | ||
|
||
</script> | ||
|
||
<style> | ||
.sm-demo-title { | ||
margin: 20px 0 10px 0; | ||
color: #666; | ||
font-size: 18px; | ||
font-weight: bold; | ||
} | ||
.sm-list-demo-wrapper { | ||
max-width: 200px; | ||
} | ||
</style> |
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
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
Oops, something went wrong.