当前位置: 代码迷 >> Web前端 >> Ext色彩选择器
  详细解决方案

Ext色彩选择器

热度:102   发布时间:2012-10-28 09:54:44.0
Ext颜色选择器
这个控件虽然进行了一次BUG修复但是还是有问题,在IE下还是不稳定,偶尔会有问题。请谨慎使用!!!

这是老外扩展的一个Ext颜色选择器,非常的好用
效果图1:http://dl.iteye.com/upload/attachment/271551/edbcf118-cb6d-3c6c-ac66-1a35c91c8ca4.jpg

效果图2:http://dl.iteye.com/upload/attachment/271555/f575c7f9-27fa-3108-9a7f-46524725445c.jpg

BUG
我在使用的过程中发现这个选择器在 IE有一个bug,找了很久终于找到了修复方法

Hi Bucs,
i test my latest version of control and find, that it works fine in IE7(IE8 compatibility mode), IE8 and FF. Problem as i understand related to vtypes, to fix it, replace code in file Ext.ux.form.ColorPickerFieldPlus

Ext.form.VTypes["hex"] = /^#?([a-f]|[A-F]|[0-9]){3}(([a-f]|[A-F]|[0-9]){3})?$/;


on
Ext.form.VTypes["hex"] = function(v){ return /^#?([a-f]|[A-F]|[0-9]){3}(([a-f]|[A-F]|[0-9]){3})?$/.test(v); };



执行上面的替换后就OK了,哈哈

参考:http://www.sencha.com/forum/showthread.php?65537-Ext.ux.form.ColorPickerFieldPlus&p=333170#post333170



1 楼 renzhiwen 2010-12-04  
这个东西怎么用啊,求解!
2 楼 zhangliang29 2010-12-22  
这个ext3.3能用不?
  相关解决方案