Simon Liang

Results comments of Simon Liang

I have a same request and now I can only implement it this way: ```javascript :on-focus="handleOnFocus" :virtual-scroll="false" const handleOnFocus = () => { window.setTimeout(() => { const el = document.querySelector(`.n-tree-node.n-tree-node--selected[data-key="s-${props.value}"]`);...

> I have a same request and now I can only implement it this way: > > ``` > :on-focus="handleOnFocus" > :virtual-scroll="false" > > const handleOnFocus = () => {...

事件传播的过程分为捕获阶段、目标阶段和冒泡阶段。冒泡阶段是从目标到window对象的过程。事件默认是冒泡的,当父元素添加监听事件,点击子元素后,父元素上的事件会被触发,这就是典型的冒泡。

[原理](https://juejin.im/entry/5bb98cb35188255c880ad611) [文件上传](https://wangdoc.com/javascript/bom/form.html#%E6%96%87%E4%BB%B6%E4%B8%8A%E4%BC%A0)

利用iframe,感觉有点取巧,勉强也算吧 ``` // test-include.html test // test-include2.html test2 ```

jsonp是跨域解决方案的其中一种方式,依赖script来突破同源策略的限制,而script是通过get方式拉取资源的。 可参考[我的文章](https://juejin.im/post/5cdce9ff5188256001481188)中的jsonp的实现

> how to solve now i rewrite toolbar: ``` const renderToolbar = ({ nodes }: ImageRenderToolbarProps) => { return [ nodes.rotateCounterclockwise, nodes.rotateClockwise, nodes.resizeToOriginalSize, nodes.zoomOut, nodes.zoomIn, h('div', { style: { marginTop:...

``` 1. 下载代码 2. pnpm i 3. pnpm build:site 4. 就会生成 site目录,部署到内网即可 ```

原来是uniapp问题,在写vue3,原来vue2就没支持,求支持!!!写组件很常用啊!