@codernote/record-tree 1.0.6 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -185,6 +185,9 @@ const y = {
|
|
|
185
185
|
this.timeout = null, this.treeEditor.head(!0);
|
|
186
186
|
}, 180) : this.treeEditor.head(!0);
|
|
187
187
|
},
|
|
188
|
+
handleDragoverTitle(t) {
|
|
189
|
+
t.preventDefault(), t.dataTransfer.dropEffect = "none";
|
|
190
|
+
},
|
|
188
191
|
handleTitlePaste(t) {
|
|
189
192
|
if (t.clipboardData) {
|
|
190
193
|
const e = t.clipboardData.items;
|
|
@@ -264,9 +267,7 @@ var T = function() {
|
|
|
264
267
|
r.stopPropagation();
|
|
265
268
|
}, keydown: function(r) {
|
|
266
269
|
return !r.type.indexOf("key") && e._k(r.keyCode, "enter", 13, r.key, "Enter") ? null : (r.preventDefault(), e.handleTitleEnter.apply(null, arguments));
|
|
267
|
-
}, paste: e.handleTitlePaste, dragover:
|
|
268
|
-
r.preventDefault();
|
|
269
|
-
} } })], 1), e._m(0), e.isMobile ? o("div", { staticClass: "record-tree-mobile-options" }, [o("div", { staticClass: "record-tree-option-left" }, [o("div", { staticClass: "record-tree-option-item", on: { click: e.setToParent } }, [e._v("向前")]), o("div", { staticClass: "record-tree-option-item", on: { click: e.setToChild } }, [e._v("向后")]), o("div", { staticClass: "record-tree-option-item", on: { click: e.setToUp } }, [e._v("向上")]), o("div", { staticClass: "record-tree-option-item", on: { click: e.setToDown } }, [e._v("向下")])]), o("div", { staticClass: "record-tree-option-right" }, [e.showComplete ? o("div", { staticClass: "record-tree-option-item", on: { click: e.complete } }, [e._v(" 完成 ")]) : e._e()])]) : e._e(), e.uploadLoading ? o("div", { staticClass: "record-tree-upload-loading" }, [e._m(1)]) : e._e()], 2);
|
|
270
|
+
}, paste: e.handleTitlePaste, dragover: e.handleDragoverTitle } })], 1), e._m(0), e.isMobile ? o("div", { staticClass: "record-tree-mobile-options" }, [o("div", { staticClass: "record-tree-option-left" }, [o("div", { staticClass: "record-tree-option-item", on: { click: e.setToParent } }, [e._v("向前")]), o("div", { staticClass: "record-tree-option-item", on: { click: e.setToChild } }, [e._v("向后")]), o("div", { staticClass: "record-tree-option-item", on: { click: e.setToUp } }, [e._v("向上")]), o("div", { staticClass: "record-tree-option-item", on: { click: e.setToDown } }, [e._v("向下")])]), o("div", { staticClass: "record-tree-option-right" }, [e.showComplete ? o("div", { staticClass: "record-tree-option-item", on: { click: e.complete } }, [e._v(" 完成 ")]) : e._e()])]) : e._e(), e.uploadLoading ? o("div", { staticClass: "record-tree-upload-loading" }, [e._m(1)]) : e._e()], 2);
|
|
270
271
|
}, w = [function() {
|
|
271
272
|
var t = this, e = t._self._c;
|
|
272
273
|
return e("div", { staticStyle: { "padding-left": "25px" } }, [e("div", { attrs: { id: "root_tree" } })]);
|