mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-06-17 02:19:25 +08:00
docs: 添加editor disabledDragStart props
This commit is contained in:
parent
ac11fc5926
commit
841b75eef1
@ -773,4 +773,22 @@ const updateDragEl = (el, target) => {
|
|||||||
el.style.left = `${left}px`;
|
el.style.left = `${left}px`;
|
||||||
};
|
};
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## disabledDragStart
|
||||||
|
|
||||||
|
- **详情:**
|
||||||
|
|
||||||
|
禁用组件未选中情况下,按住鼠标直接拖动
|
||||||
|
|
||||||
|
- **类型:** `boolean`
|
||||||
|
|
||||||
|
- **默认值:** `false`
|
||||||
|
|
||||||
|
- **示例:**
|
||||||
|
|
||||||
|
```html
|
||||||
|
<template>
|
||||||
|
<m-editor :disabled-drag-start="true"></m-editor>
|
||||||
|
</template>
|
||||||
|
```
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user