Giter Site home page Giter Site logo

position's People

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

Watchers

 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

position's Issues

1.0.1版配合老组件使用有bug

因为我们这里是一升全升的,没有版本号控制

0.8.5 的 Calendar,代码如下,日历不能正常显示(定位错误)

this.calendar = new Calendar({
    trigger: this.element,
    align: {
        baseXY: ['100%+2', 0]
    },
    // 这里-1是新老日历组件的算法问题
    // 上限一年
    range: [now + (expireTimeSpan - 1) * 24 * 3600 * 1000, now + 364 * 24 * 3600 * 1000]
}).render();

1.1.0 的 Popup,代码如下,也是不能正确定位

this.popup = new Popup({
    trigger: element,
    triggerType: 'focus',
    alignType: 'line',
    width: 240,
    content: content
}).after('render', function(){
    // 对齐的位置不同
    var align = this.get('align');

    align.baseElement = element.next();
    this.set('align', align);
});

x和y的默认值为0

最好的方式是不是如果,x或y有一个没填,默认值为本身css决定的位置?因为有的场景只是需要基于x或y轴一个定位的?比如说悬停的侧边栏,只是需要和中间区域保持间距,而高度变化是动态的,你觉得呢?

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.