diff --git a/docs/docs/en.md b/docs/docs/en.md index 08300a9..61099aa 100644 --- a/docs/docs/en.md +++ b/docs/docs/en.md @@ -1144,6 +1144,25 @@ Is dragging ``` +### dropElementActive + +Is Dragged to container + +* **Type:** `Boolean` + +* **Read only:** `true` + +* **Default:** `false` + +* **Usage:** + ```html + + + Already dragged here, release the mouse to add the file + + ``` + + diff --git a/docs/docs/zh-cn.md b/docs/docs/zh-cn.md index ede2de2..30b32ff 100644 --- a/docs/docs/zh-cn.md +++ b/docs/docs/zh-cn.md @@ -930,7 +930,26 @@ Add, update, remove pre-filter ```html - 拖拽到这里上传 + 拖拽到此处上传 + + ``` + + +### dropElementActive + +是否拖拽到容器组件内 + +* **类型:** `Boolean` + +* **只读:** `true` + +* **默认值:** `false` + +* **示例:** + ```html + + + 已拖到此处 释放鼠标即可添加文件 ``` diff --git a/docs/views/examples/Multiple.vue b/docs/views/examples/Multiple.vue index 035ec62..d85285b 100644 --- a/docs/views/examples/Multiple.vue +++ b/docs/views/examples/Multiple.vue @@ -6,9 +6,9 @@ :class="{ 'drop-element-active': $refs.upload1 && $refs.upload1.dropElementActive }">

{{ $refs.upload1 && $refs.upload1.dropElementActive ? - "Drop files to upload1 (element)" + "Release the mouse to add to upload1 (element)" : - "Drop files to upload1" }} + "Drag and drop here to upload1" }}

@@ -22,7 +22,7 @@ -
Drag and drop files into the container to upload
+
Drag and drop files into the container to upload1
@@ -57,9 +57,9 @@

{{ $refs.upload2 && $refs.upload2.dropElementActive ? - "Drop files to upload2 (element)" + "Release the mouse to add to upload2 (element)" : - "Drop files to upload2" }} + "Drag and drop here to upload2" }}

-
Drag and drop files into the container to upload
+
Drag and drop files into the container to upload2