naive-ui
naive-ui copied to clipboard
feat: Dialog组件新增draggable可拖拽属性
Dialog组件新增draggable可拖拽属性
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Updated |
---|---|---|---|
naive-ui | ❌ Failed (Inspect) | Jul 19, 2022 at 2:21AM (UTC) |
@07akioni usrDraggable这个方法是通用的,可以直接用在modal组件里面
拖拽之后,位置改变了,还要从原位置收回吗?
发自我的iPhone
------------------ 原始邮件 ------------------ 发件人: 07akioni @.> 发送时间: 2022年7月19日 02:09 收件人: TuSimple/naive-ui @.> 抄送: luopei @.>, Author @.> 主题: Re: [TuSimple/naive-ui] feat: Dialog组件新增draggable可拖拽属性 (PR #3295)
@07akioni commented on this pull request.
In src/dialog/src/useDraggable.ts:
> + return '' + } + if (typeof value === 'string') { + return value + } else if (typeof value === 'number') { + return ${value}${defaultUnit}
+ } else { + return '' + } +} + +export const useDraggable = ( + targetRef: Ref<HTMLElement | undefined>, + dragRef: Ref<HTMLElement | undefined>, + draggable: ComputedRef<boolean> +): void => {
预期是要有的
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
拖拽之后,位置改变了,还要从原位置收回吗? 发自我的iPhone … ------------------ 原始邮件 ------------------ 发件人: 07akioni @.> 发送时间: 2022年7月19日 02:09 收件人: TuSimple/naive-ui @.> 抄送: luopei @.>, Author @.> 主题: Re: [TuSimple/naive-ui] feat: Dialog组件新增draggable可拖拽属性 (PR #3295) @07akioni commented on this pull request. In src/dialog/src/useDraggable.ts: > + return '' + } + if (typeof value === 'string') { + return value + } else if (typeof value === 'number') { + return
${value}${defaultUnit}
+ } else { + return '' + } +} + +export const useDraggable = ( + targetRef: Ref<HTMLElement | undefined>, + dragRef: Ref<HTMLElement | undefined>, + draggable: ComputedRef<boolean> +): void => { 预期是要有的 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
这个指的是,收回到原位置。比如视觉上还是收回到记录下的点击位置
嗨 这个功能还有考虑吗
考虑哈,最近抽时间做一下 。
发自我的iPhone
------------------ 原始邮件 ------------------ 发件人: 谌启成 @.> 发送时间: 2022年7月29日 10:17 收件人: TuSimple/naive-ui @.> 抄送: luopei @.>, Author @.> 主题: Re: [TuSimple/naive-ui] feat: Dialog组件新增draggable可拖拽属性 (PR #3295)
嗨 这个功能还有考虑吗
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
请问这个功能还在继续嘛
有进展了吗,现在遮住后面的内容,很烦
还在继续嘛,好像很久了。
可拖拽功能完成了吗? 需要拖拽功能啊
啊啊啊,那么实用的功能是废弃了吗
有进展么?