Skip to content

Commit

Permalink
组件初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
jixiangac committed Sep 22, 2013
0 parents commit fbfc873
Show file tree
Hide file tree
Showing 10 changed files with 619 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.DS_Store
node_modules
npm-debug.log
*.swp
.sw*
.idea/*
67 changes: 67 additions & 0 deletions 1.0/demo/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>TimeLines的demo</title>
<script src="http://g.tbcdn.cn/kissy/k/1.3.0/kissy-min.js" charset="utf-8"></script>
<link rel="stylesheet" href="http://g.tbcdn.cn/kissy/k/1.3.0/css/dpl/base-min.css">
</head>
<body>
<h2>TimeLines的demo</h2>
<div id="timeline"></div>
<script>
var S = KISSY;
if (S.Config.debug) {
var srcPath = "../../../";
S.config({
packages:[
{
name:"gallery",
path:srcPath,
charset:"utf-8",
ignorePackageNameInUri:true
}
]
});
}

S.use('gallery/TimeLines/1.0/index', function (S, TimeLines) {
var data = [
{
"date" : "2013-09-01",
"tip": "开学了!"
},
{
"date" : "2013-09-07",
"tip": ["秋季热卖","有的是毛线"]
},
{
"date" : "2013-09-15",
"tip": ["月饼大甩卖","土豪今天和我做了朋友"]
},
{
"data" : "2013-10-01",
"tip" : ["去年买了个登山包","今年在双十一必须买土豪金"]
}
{
"date" : "2013-11-01",
"tip": "活动预热,还有10天双十一"
},
{
"date" : "2013-11-04",
"tip": "预售开始"
},
{
"date" : "2013-11-11",
"tip": "双11启动,土豪金,fighting!"
}
]
new TimeLines({
target : "#timeline"
,data : data
,curDate : "2013-11-11"
});
});
</script>
</body>
</html>
15 changes: 15 additions & 0 deletions 1.0/guide/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
## 综述

TimeLines是。

* 版本:1.0
* 作者:jixiangac
* demo:[http://gallery.kissyui.com/TimeLines/1.0/demo/index.html](http://gallery.kissyui.com/TimeLines/1.0/demo/index.html)

## 初始化组件

S.use('gallery/TimeLines/1.0/index', function (S, TimeLines) {
var TimeLines = new TimeLines();
})

## API说明
Loading

0 comments on commit fbfc873

Please sign in to comment.