leo

Results 54 comments of leo

In my project,I think it works well. autosuggestion: ![image](https://user-images.githubusercontent.com/5225853/63310471-6e1f4b00-c32d-11e9-917f-e27ca15e583c.png) correct types with deep levels: ![image](https://user-images.githubusercontent.com/5225853/63310488-82fbde80-c32d-11e9-87a8-ecc8797e2f1c.png) But,It has a limit。autosuggestion can't works fine with `getIn` method。 autosuggestion doesn't work: ![image](https://user-images.githubusercontent.com/5225853/63310528-b63e6d80-c32d-11e9-8b42-cd6ac6d0015b.png)

后面的异步没看懂😂,恩,19年的我懂了

还没解决么 我的是,本地开发,不会报错。打包之后,线上报错。 ```text react_devtools_backend.js:2430 TypeError: Cannot read property 'getCurrentStack' of undefined at dn (21.10eb73.js:1753) at ut.dt.read (21.10eb73.js:1759) at Object.Ie [as renderToStaticMarkup] (21.10eb73.js:1765) at le (21.10eb73.js:3152) at 21.10eb73.js:3152 at Array.map ()...

`{ title: '' }`设置title为空不就好了

解决了吗?我也是这个问题。因为作者用了unwrap打包,自己内部用了一个小的模块加载器。用grunt打包出来的文件,有require就不好再次打包了。不过直接用src里面的文件,改装一下还是简单的。

right:0,bottom:0 有么

就是没有left:100%这种css规范的,你设置了left:100%,语义是内容的左边框距离容器的左边框,等于容器的宽度,加个overflow:hidden 相当于隐藏了。只有right:0,才是内容的右边框贴在容器的右边框。设置不规范的接口,还不如不设计,或者起个另外名字的api,功能相同。这个意思。 另外,left,top,这个你可以用一个fixed元素定位右下角,然后通过`align:"left"`实现。 ```javascript var follow = document.getElementById('follow-elem'); // 'follow-elem为已经定位在右下角的元素 var d = dialog({ align: 'left', content: 'hello world' }); d.show(follow); ```

貌似只能上下左右垂直居中的。垂直方向在上部的api设置没找见。

我的碰到了,用的是气泡浮层。 var follow = document.getElementById('follow-elem'); var d = dialog({ align: 'bottom left', content: 'hello world' }); d.show(follow); 然后d.close().remove()会跳转到页面顶部。不知道什么原因? 我看了下,跳转到页面顶部,是close方法之后。我直接d.remove()方法就不会出现跳转到顶部的现象了。

今天又碰到一个气泡对话框的问题,要实现的效果,a标签mouseenter,气泡显示,mouseleave,气泡关闭。然后本来很简单的代码。最后结果是,鼠标再a标签内,移动。气泡显示关闭轮换显示。哎。。。 代码: $resume_box.on( "mouseenter" , ".invite2scene" , function(){ tip_dialog = hrjia_dialog._dialog({ content: 'Hello World!', align: 'top' , quickClose: true// 点击空白处快速关闭 }); tip_dialog.show( this ) ; } ).on( "mouseleave" , ".invite2scene"...