├── demo ├── main.less ├── states │ ├── indicator │ │ ├── template.html │ │ └── route.js │ ├── popup │ │ ├── route.js │ │ └── template.html │ ├── app.js │ ├── index │ │ ├── route.js │ │ └── template.html │ ├── datetime-picker │ │ ├── route.js │ │ └── template.html │ ├── calendar │ │ ├── route.js │ │ └── template.html │ ├── toast │ │ ├── route.js │ │ └── template.html │ ├── pullToRefresh │ │ ├── route.js │ │ └── template.html │ ├── preloader │ │ ├── route.js │ │ └── template.html │ ├── actions │ │ ├── template.html │ │ └── route.js │ ├── picker │ │ ├── template.html │ │ └── route.js │ ├── alert │ │ ├── route.js │ │ └── template.html │ └── infiniteScroll │ │ ├── template.html │ │ └── route.js └── main.js ├── src ├── transition │ └── transition.js ├── component │ ├── indicator │ │ ├── indicator.html │ │ └── indicator.js │ ├── toast │ │ ├── toast.html │ │ └── toast.js │ ├── datetime-picker │ │ ├── datetime-picker.html │ │ └── datetime-picker.js │ ├── modal │ │ ├── modal.html │ │ └── modal.js │ ├── calendar │ │ ├── calendar-month.html │ │ ├── calendar.html │ │ ├── calendar-month.js │ │ └── calendar.js │ ├── preloader │ │ ├── preloader.html │ │ └── preloader.js │ ├── picker │ │ ├── picker-col.html │ │ ├── picker.html │ │ ├── picker.js │ │ └── picker-col.js │ ├── alert │ │ ├── alert.html │ │ └── alert.js │ └── actions │ │ ├── actions.html │ │ └── actions.js ├── index.js ├── directive │ ├── popup.js │ ├── infiniteScroll.js │ └── pullToRefresh.js └── util │ ├── device.js │ ├── zepto-adapter.js │ └── scroller.js ├── public └── demo │ ├── styles.95597131.css │ ├── layout.html │ ├── 6.48d9d228.js │ ├── 10.fc990400.js │ ├── 3.a414582e.js │ ├── 11.fd1b64bc.js │ ├── 5.3f026e59.js │ ├── 12.20624280.js │ ├── 7.f9f16e76.js │ ├── 2.ef22dae4.js │ ├── 8.b7cbe94c.js │ ├── 4.54186de6.js │ ├── 9.c5142e7c.js │ └── 1.9e649490.js ├── env.js ├── .gitignore ├── tsconfig.json ├── server ├── lib │ ├── vueServerFactory.ts │ ├── vueServerFactory.js │ └── vueServerFactory.js.map ├── webapp │ └── routes │ │ ├── index.js.map │ │ ├── picker.js.map │ │ ├── index.js │ │ ├── picker.js │ │ ├── index.ts │ │ └── picker.ts ├── typings │ ├── tsd.d.ts │ ├── cookie-parser │ │ └── cookie-parser.d.ts │ ├── method-override │ │ └── method-override.d.ts │ ├── errorhandler │ │ └── errorhandler.d.ts │ ├── request-promise │ │ └── request-promise.d.ts │ ├── serve-static │ │ └── serve-static.d.ts │ ├── body-parser │ │ └── body-parser.d.ts │ └── request │ │ └── request.d.ts └── views │ ├── dist │ └── layout.html │ └── dev │ └── layout.html ├── README.md ├── webpack.dev.config.js ├── webpack.base.config.js ├── package.json ├── tsd.json ├── webpack.prod.config.js ├── server.js ├── server.ts └── server.js.map /demo/main.less: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/transition/transition.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /public/demo/styles.95597131.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /env.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | var env = { 3 | NODE_ENV : 'test', 4 | PORT : '5666', 5 | } 6 | 7 | exports.config = env; -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | bower_components 3 | node_modules 4 | env.js 5 | .DS_Store 6 | Thumbs.db 7 | npm-debug.log 8 | logs 9 | #public/demo -------------------------------------------------------------------------------- /src/component/indicator/indicator.html: -------------------------------------------------------------------------------- 1 |
11 | let buttons1 = [
12 | {
13 | text: '请选择',
14 | label: true
15 | },
16 | {
17 | text: '卖出',
18 | className : 'actions-modal-button-bold color-danger',
19 | onClick: function() {
20 | console.log('卖出')
21 | }
22 | },
23 | {
24 | text: '买入',
25 | onClick: function() {
26 | console.log('买入')
27 | }
28 | }
29 | ];
30 | let buttons2 = [
31 | {
32 | text: '取消',
33 | className: 'bg-danger'
34 | }
35 | ];
36 |
37 | this.$refs.modal.add({
38 | type : 'actions',
39 | option : [ buttons1 , buttons2 ],
40 | overlay : true //显示遮罩层
41 | })
42 |
43 | 显示
44 | 17 |40 |18 | 26 | 27 | //返回的是一个生成promise的函数 28 | refresh(){ 29 | return ()=>{ 30 | return new Promise((resolve,reject)=>{ 31 | setTimeout(()=>{ 32 | this.updateTime = new Date().getTime() 33 | resolve('刷新了') 34 | },3e3) 35 | }) 36 | } 37 | } 38 | 39 |19 | 20 |25 |21 | 22 | 23 |24 |
\nlet buttons1 = [\n {\n text: \'请选择\',\n label: true\n },\n {\n text: \'卖出\',\n className : \'actions-modal-button-bold color-danger\',\n onClick: function() {\n console.log(\'卖出\')\n }\n },\n {\n text: \'买入\',\n onClick: function() {\n console.log(\'买入\')\n }\n }\n];\nlet buttons2 = [\n {\n text: \'取消\',\n className: \'bg-danger\'\n }\n];\n\nthis.$refs.modal.add({\n type : \'actions\',\n option : [ buttons1 , buttons2 ],\n overlay : true //显示遮罩层\n})\n\n 显示\n \n\n\n \n\n//返回的是一个生成promise的函数\nrefresh(){\n return ()=>{\n return new Promise((resolve,reject)=>{\n setTimeout(()=>{\n this.updateTime = new Date().getTime()\n resolve(\'刷新了\')\n },3e3)\n })\n }\n}\n\n\n \n\n\n \n \n\n