Coder Social home page Coder Social logo

hmhao / avalon2-webpack2-spa Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 2.0 923 KB

由vue脚手架修改过来,适合vue开发者使用,采用类vue的单文件组件书写,异步、嵌套路由

JavaScript 82.89% HTML 1.41% CSS 15.70%
avalon avalon2 avalonx spa bootstrap

avalon2-webpack2-spa's People

Contributors

hmhao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

avalon2-webpack2-spa's Issues

早上好

我看到,directive文件夹里的js文件都会定义一个priority,优先权这个属性,我想知道,这个属性的意义是什么?

我install那个avalon都成功不了

F:\avalon2-webpack2-spa-master>cnpm install

  • [10/40] Installing ajv@^5.0.0[npminstall:get] retry GET http://registry.npm.taobao.org/avalon2/download/avalon2-2.2.9.tgz after 100ms, retry left 4, error: ResponseTimeoutError: Response timeout for 60000ms, GET https://cdn.npm.taobao.org/avalon2/-/avalon2-2.2.9.tgz 200 (connected: true, keepalive socket: false, agent status: {"createSocketCount":12,"createSocketErrorCount":0,"closeSocketCount":2,"errorSocketCount":0,"timeoutSocketCount":0,"requestCount":587,"freeSockets":{"registry.npm.taobao.org:443:::::::true:":10},"sockets":{},"requests":{}})
    headers: {"server":"Tengine","content-type":"application/octet-stream","content-length":"18345222","connection":"keep-alive","date":"Wed, 13 Sep 2017 08:18:46 GMT","x-oss-request-id":"59B8E9E612058DF222275B3F","accept-ranges":"bytes","etag":""83121E73B3CA99516580AAB3E485D56B"","last-modified":"Tue, 11 Jul 2017 14:23:47 GMT","x-oss-object-type":"Normal","x-oss-hash-crc64ecma":"8468909664135538426","x-oss-storage-class":"Standard","cache-control":"max-age=0, s-maxage=86400","content-md5":"gxIec7PKmVFlgKqz5IXVaw==","x-oss-server-time":"135","via":"cache16.l2cm9[108,304-0,H], cache26.l2cm9[137,0], kunlun9.cn125[0,200-0,H], kunlun6.cn125[0,0]","age":"3983","x-cache":"HIT TCP_MEM_HIT dirn:7:464082047","x-swift-savetime":"Wed, 13 Sep 2017 08:18:46 GMT","x-swift-cachetime":"86400","timing-allow-origin":"*","eagleid":"6a78b50615052947100008395e"}
    / [35/40] Installing domelementtype@1platform unsupported [email protected][email protected][email protected][email protected] › fsevents@^1.0.0 Package require os(darwin) not compatible with your platform(win32)
    [fsevents@^1.0.0] optional install error: Package require os(darwin) not compatible with your platform(win32)

你好,请问,你这个脚手架,是否支持IE8?

我看你扩展了一些特性,我想知道,这些特性是否支持IE8?因为我也在追求将avalon往Vue的那种构建模式靠近,但是在路由这块遇到了瓶颈,我想知道你的这个实现,在浏览器兼容上,能达到IE8的标准么?多谢了。

你好,我又来了😁

我看到你项目里面有一个:ref,这个是什么作用?怎么用?这个貌似不是avalon的标签吧?

匹配动态路由的时候匹配不上

router index.js 63行 匹配动态路由 需要加上规则 不然无法匹配
avalon.router.add(route.path, function() { for(var i in self.routes) { var args = self.routes[i]['path'].match(this.regexp) if(args) { let route = self.routes[i] } } if(!route) return

关于路由跳转

你好,我想知道知道这个demo里面有没有 类似vue里面的手动路由跳转带参数 比如vue里面的跳转
this.$router.replace({path:'/regist1'})或者this.$router.push({name:'login'});比如手动跳转里还可以配参数的
this.$router.replace({path:'/regist1',querry:""})

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.