Giter Site home page Giter Site logo

avalon.bootstrap's People

Contributors

rubylouvre avatar scgy5555 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

avalon.bootstrap's Issues

全局加载进度条

功能:
1.启动
2.设定进度
3.停止

进度递增算法:
完成进度条为100%
0 ~ 25% :随机递增 3% ~ 6% 每秒
25% ~ 65%:随机递增 0.1% ~ 3% 每秒
65% ~ 90%:随机递增 0.1% ~ 2% 每秒
90% ~ 99%:固定递增 0.5% 每秒

自定义标签示例

<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title></title>

    </head>
    <body ms-controller="test">
        <script type="text/javascript" src="avalon.js"></script>
        <script type="text/javascript">
            avalon.component("ms:aB",{
                $slot:"content",
                $replace:"true",
                $template:"<div>{{content|html}}</div>",
                content: "",
                $ready: function(vm, el){
                   avalon(el).addClass("xxx")
                }
            })
            var a = avalon.define({
                $id: "test"

            })

        </script>
    <ms:a_b class="yyy"><span>111</span></ms:a_b>
    </body>
</html>

新的里程碑

$ npm init // 用于初始化项目的package.json
$ npm install webpack -g
$ npm install style-loader css-loader url-loader babel-loader sass-loader file-loader -g

然后每个子目录下 npm link webpack style-loader css-loader url-loader

http://www.tuicool.com/articles/2qiE7jN

报名

格式: Q名-Q群

关于目录结构的修改建议

当前目录结构不利于多组件协作的开发和测试
比如grid增加button的支持,如果button进行调整,无法进行grid中增加button的测试
考虑到oniui中遇到的多组件协作的问题,建议对目录进行修改

-- dist 编译结果目录
---- css 编译后的bootstrap
---- fonts 编译后的图标字体文件
---- js 各种avalon.bootstrap组件
---- lib 引用的avalon框架
-- docs 组件文档,通过代码注释动态生成
-- fonts 图标字体源文件目录
-- grunt 命令行grunt,部分特殊操作需要通过api的形式调用grunt
-- js avalon.bootstrap组件源码目录
---- lib 引用框架目录
---- tests 测试框架目录
---- scss sass源码目录
-- RULES 代码规范说明
-- LICENSE 授权说明
-- README 项目说明

详见[https://github.com/scgy5555/avalon.bootstrap/tree/develop]

将源码统一放置同一层目录,便于多组件功能协作,并增加测试环境,每次提交必须通过测试
通过grunt部署开发环境,便于其他成员参与
通过travis-ci实现持续集成,有利于版本稳定性

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.