Code Monkey home page Code Monkey logo

frozenjs's Issues

tab组件默认索引不是第一个时的临时方案

var tab = new fz.Scroll('.ui-tab', {
    role: 'tab',
    interval: 3000,
    autoplay: true
});
tab.currentPage = 1;
$(tab.nav.children[0]).removeClass('current');
$(tab.nav.children[tab.currentPage]).addClass('current');
tab.scrollTo(-tab.itemWidth * tab.currentPage, 0);

1.0.0后续计划

2014/11/18

基础组件

为dialog、tips、loading添加动画支持

Scroller源码地址不对

  1. 文档上https://github.com/hahnzhu/slide.js 是空的
  2. 还有看了slide的代码感觉应该命名scroll才对啊,默认的也是scroller?
  3. tab的示例
var slider = new Slide('.ui-slider', {
        role: 'tab',
        autoplay: true,
        interval: 3000
    });

写成

var tab = new Slide('.ui-slider', {
        role: 'tab',
        autoplay: true,
        interval: 3000
    });

更好理解

dialog回调不会被调用

版本就是1.0.1,代码如下。

            $.dialog({
                title: sms.title ,
                content: sms.message ,
                button: ['确定', '删除'] ,
                callback: function (i) {
                    alert(i);
                    sms.hasDeleted = true;
                    user.save();
                    $(dom).remove();
                },
                end:function(i){
                    alert(i)
                }
            });

两个回调函数都没有被触发

出现$.tips is not a function 的报错

一开始我认为是下载不全的问题,之后引用了你们的源还是出现这个问题。
调用方法如下

$(function () {
    initElementSize();
    // form submit updanmu
    $('#submit').click(function(){
        socket.emit('updanmu', getarray($('#form')));
        el=$.tips({
            content:'温馨提示内容',
            stayTime:2000,
            type:"success"
        })
        el.on("tips:hide",function(){
            console.log("tips hide");
        })
        return false;
    });
...

缺少action sheet弹出菜单

这个组件也是比较常用的,期待加入,如果再加入验证框架就更好了,能自定义提示的那种。

用户建议

十分激动收到一份来自外部用户的邮件,里面提到一些建议主要是关于js,发到这里,大家看下:

在FrozenUI 的官网上,看到了很多精彩的内容,对很多的组件进行了模块化,按需加载。我想咨询下就是你们团队什么时候会推出切面切换的效果,转场 效果,侧边栏导航效果(抽屉效果),以及你们官网上尚在整理中的Slider,Tab模块。能不能组件一个官方的FrozenUI爱好者的QQ群呢?这样方便所有 的爱好者在一起探讨交流,共同把FrozenUI这么一个很惊艳、实用、华丽的框架惠及更多的前端开发者,让更多的人去使用并推广它,让大家一起来共同 努力使FrozenUI在业界闻名遐迩。期待您的答复。

1.0.0版本发布

2014/11/18

  1. 新增loading和tips
  2. 修改回调方式为自定义事件方式
  3. 新增scroller、tab、slider

tab内容中,zepto注册的longTap失效

              <div class="box-flex long-press-demo">
                    <span class="box-flex-item">
                        <label>姓名</label>
                        <p>
                            张三
                        </p>
                    </span>
                    <span class="box-flex-item">
                        <label>出生年月日</label>
                        <p>
                            2015年4月28日
                        </p>
                    </span>
                </div>

$('.long-press-demo').on('longTap','.box-flex-item',function (e) {
alert(this.outerHTML)
console.log(e.type)
})

使用以下的tab组件后,导致longTap事件不响应。
var tab = new fz.Scroll('.ui-tab', {
// role: 'tab',
// // interval: 3000
// //autoplay: true
// });

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.