Coder Social home page Coder Social logo

iosselect's Issues

事件渗透bug

在ios设备上,点击控件按钮或者遮盖层有时会出现渗透情况,比如控件下面是表单或者按钮,依然会触发文本框的聚焦事件,在手机上打开键盘,或者出现点击到遮盖层下边按钮的情况,这种体验真的很不好;此外,fallback回调函数中应该返回event对象的,同时,点击遮盖层,没有触发fallback回调函数。

是否可以考虑添加一个组件销毁事件

如果应用在react中,没用手动点击取消或确定,当路由改变后,改组件依然存在,所以需要一个销毁事件,在react组件销毁的时候同时把该组件也销毁。

VUE的使用方法

可以提供一下vue中的使用方法吗?因为事件监听经常报错。。

PC端企业微信内置浏览器,无法滚动

问题出在它的内置浏览器window对象带有ontouchstart事件。但是并不会生效。

// PC端企业微信内置浏览器
'ontouchstart' in window === true

我临时在插件调用前判断了一下才得以处理。

if (~navigator.userAgent.toLowerCase().indexOf('windowswechat')) {
	delete window.ontouchstart
}

实现原理是什么

你好,我想问一下这个实现原理是什么,怎么计算的,麻烦详细一点,谢谢

添加个关闭联动的事件

用户打开三级联动后,没其他操作,直接点返回再来打开三级联动的时候,死机了.目测加个销毁钩子可以解决

可否考虑做一个时间选择的关联

想做起始时间和终止时间的选择,不过发现没有时间的关联判断,即当起始时间大于终止时间时,终止时间自动跳到至少相等的位置。

三级城市联动,直辖市显示有问题

tim 20181024144343

如图,北京市 下级 就直接到城区了,变成又多了一个北京市,这个怎么修改才能让它当是直辖市的时候不显示第三级,第二级自动变成城区

addClassName 这个OPTION怎么用?

我发现 .close 和BOOTSTRAP 的冲突了。
导致按钮变得很暗。

可否说明下这个addClassName怎么用?看说明是用来自定义CSS名的。
谢谢。

Can I get all the data structure (inculde comments on each column ) by a sql

I'm new user of PG.
When I use Sqlserver, I can get a datatable structure map (includining columns and tables' comments) by doing a sql search from syscolumns ,systypes , sysobjects ,syscomments , sys.extended_properties.

Can postgres do the similar thing so that I can quick provide a datatable structue map for other developer?

Any help is appreciated.

the sql for sqlserver is :
###########################
SELECT
*
FROM
syscolumns A
Left Join
systypes B
On
A.xusertype=B.xusertype
Inner Join
sysobjects D
On
A.id=D.id and D.xtype='U' and D.name<>'dtproperties'
Left Join
syscomments E
on
A.cdefault=E.id
Left Join
sys.extended_properties G
on
A.id=G.major_id and A.colid=G.minor_id
Left Join

sys.extended_properties F
On
D.id=F.major_id and F.minor_id=0
Order By
A.id,A.colorder
############################

demo页面chrmoe打开是乱码

demo页面打开显示是乱码,应该是header里面没有添加<meta charset="utf-8">。

非常不错的插件,感谢作者!

请问如何设置二三级默认选中的值

我现在需要的是三级选择,第一列是天数,第二列是小时,第三列是分钟。现在初始化后默认选中的是0天8小时30分钟,我希望的是默认选中的是每列的第一个,请问这个是否可以设置?

严重的bug

data=[{"value":10,"pA":40}] 点击后获取的时候 pA的值为undefined 用pa确可以获取到,大写的属性最终变为小写了

在angular5+ionic3中使用的时候,选择框闪了一下,然后就不见了

ts
`
//选择性别
changeSex(){
var data=[
{'id': '0', 'value': '保密'},
{'id': '1', 'value': '男'},
{'id': '2', 'value': '女'}
];
// 实例化组件
var example = new IosSelect(
1, // 第一个参数为级联层级,演示为1
[data], // 演示数据
{
container: '.sexSelectBox', // 容器class
title: '', // 标题
itemHeight: 50, // 每个元素的高度
itemShowCount: 3, // 每一列显示元素个数,超出将隐藏
oneLevelId: '2', // 第一级默认值
callback: function (selectOneObj) { // 用户确认选择后的回调函数
console.log(selectOneObj);
},
fallback:function(){
console.log("fallback");
},
maskCallback:function(){
console.log("maskCallback");
}
});
console.log(example);

}
`
example对象可以console出来
并且消失后调用了maskCallback方法

滑动问题

首先感谢大佬的分享 其次有个问题想请教一下 我用微信开发工具打开的公众号网页引用了 下拉之后 发现 无法滑动 把页面在谷歌上打开可以滑动 而用微信开发工具打开的公众号网页上没办法滑动 请问应该怎么处理?

有vue项目引入示例吗,我老是报错 ”IosSelect is not defined“

import "../assets/libs/iosSelect/iosSelect.css"
import "../assets/libs/iosSelect/iosSelect"
import "../assets/libs/iosSelect/iscroll"

export default {
    data () {
        return {
          isShow1:true,
          houseProperty: [
            {id: 0, name: "住宅小区"},
            {id: 1, name: "别墅"}
          ]
        }
    },
    created(){
         this.init();
    },
    mounted(){
     
    },

    components: {},

    computed: {},
    methods: {
        init (){
          new IosSelect(1, this.houseProperty, {
            container: '.selectedModule',
            title: '户型选择',
            itemHeight: 50,
            itemShowCount: 3
          });
        }
    }
}

===========================================
报错:

[Vue warn]: Error in created hook:
(found in at E:\2bossM\m_estimate\estimate\src\components\selectModule.vue)

ReferenceError: IosSelect is not defined
at VueComponent.init (eval at 224 (1.js:42), :35:11)
at VueComponent.boundFn [as init] (eval at (app.js:877), :126:12)
at VueComponent.created (eval at 224 (1.js:42), :25:10)
at callHook (eval at (app.js:877), :2274:21)
at VueComponent.Vue._init (eval at (app.js:877), :3757:5)
at new VueComponent (eval at (app.js:877), :3921:12)
at createComponentInstanceForVnode (eval at (app.js:877), :3116:10)
at init (eval at (app.js:877), :2924:45)
at createComponent (eval at (app.js:877), :4655:9)
at createElm (eval at (app.js:877), :4598:9)

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.