@codernote/record-tree 1.4.1 → 1.4.2

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -12570,6 +12570,9 @@ const ya = {
12570
12570
  handleComplete() {
12571
12571
  this.$emit(this.modified ? "complete" : "cancel");
12572
12572
  },
12573
+ handleSelectFile() {
12574
+ this.$refs.selectFile && this.$refs.selectFile.click();
12575
+ },
12573
12576
  handleRecordVideo() {
12574
12577
  this.isMobile ? this.$refs.selectVideo.click() : this.recordVideoVisible = !0;
12575
12578
  },
@@ -12670,9 +12673,7 @@ var xa = function() {
12670
12673
  r.titleFocus = !1;
12671
12674
  } } })], 1), b("div", { staticClass: "record-tree-main" }, [b("div", { attrs: { id: "root_tree" } }, [b("TreeEditor", { ref: "treeEditor", attrs: { nodes: r.curNodes, readOnly: r.readOnly, enableDbEnter: r.enableDbEnter, hash: r.hash, isMobile: r.isMobile }, on: { change: r.handleChangeNodes, fileUpload: r.handleFileUpload, dbEnter: function(M) {
12672
12675
  return r.$emit("dbEnter");
12673
- } } })], 1)]), r.bar ? b("div", { staticClass: "record-tree-options" }, [b("div", { staticClass: "record-tree-option-left" }, [b("div", { staticClass: "record-tree-option-item", attrs: { title: "左缩进" }, on: { click: r.setToParent } }, [b("inline-svg", { attrs: { src: r.icon.left, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "右缩进" }, on: { click: r.setToChild } }, [b("inline-svg", { attrs: { src: r.icon.right, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "上移" }, on: { click: r.setToUp } }, [b("inline-svg", { attrs: { src: r.icon.up, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "移动" }, on: { click: r.setToDown } }, [b("inline-svg", { attrs: { src: r.icon.down, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "添加附件" }, on: { click: function(M) {
12674
- r.$refs.selectFile && r.$refs.selectFile.click();
12675
- } } }, [b("inline-svg", { attrs: { src: r.icon.attach, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "录制音频" }, on: { click: r.handleRecordAudio } }, [b("inline-svg", { attrs: { src: r.icon.audio, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "录制视频" }, on: { click: r.handleRecordVideo } }, [b("inline-svg", { attrs: { src: r.icon.video, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "拍照" }, on: { click: r.handleRecordPhoto } }, [b("inline-svg", { attrs: { src: r.icon.photo, width: 20, height: 20 } })], 1)]), r.isMobile ? b("div", { staticClass: "record-tree-option-right" }, [b("div", { staticClass: "record-tree-option-item", on: { click: function(M) {
12676
+ } } })], 1)]), r.bar ? b("div", { staticClass: "record-tree-options" }, [b("div", { staticClass: "record-tree-option-left" }, [b("div", { staticClass: "record-tree-option-item", attrs: { title: "左缩进" }, on: { click: r.setToParent } }, [b("inline-svg", { attrs: { src: r.icon.left, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "右缩进" }, on: { click: r.setToChild } }, [b("inline-svg", { attrs: { src: r.icon.right, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "上移" }, on: { click: r.setToUp } }, [b("inline-svg", { attrs: { src: r.icon.up, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "移动" }, on: { click: r.setToDown } }, [b("inline-svg", { attrs: { src: r.icon.down, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "添加附件" }, on: { click: r.handleSelectFile } }, [b("inline-svg", { attrs: { src: r.icon.attach, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "录制音频" }, on: { click: r.handleRecordAudio } }, [b("inline-svg", { attrs: { src: r.icon.audio, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "录制视频" }, on: { click: r.handleRecordVideo } }, [b("inline-svg", { attrs: { src: r.icon.video, width: 20, height: 20 } })], 1), b("div", { staticClass: "record-tree-option-item", attrs: { title: "拍照" }, on: { click: r.handleRecordPhoto } }, [b("inline-svg", { attrs: { src: r.icon.photo, width: 20, height: 20 } })], 1)]), r.isMobile ? b("div", { staticClass: "record-tree-option-right" }, [b("div", { staticClass: "record-tree-option-item", on: { click: function(M) {
12676
12677
  return M.stopPropagation(), r.handleComplete.apply(null, arguments);
12677
12678
  } } }, [r._v(" " + r._s(r.modified || r.note.id ? "完成" : "取消") + " ")])]) : r._e(), b("div", { staticStyle: { display: "none" } }, [b("input", { ref: "selectFile", attrs: { type: "file" }, on: { change: (M) => r.handleFileUpload(M.target.files) } }), b("input", { ref: "selectPhoto", attrs: { type: "file", accept: "image/*", capture: "camera" }, on: { change: (M) => r.handleFileUpload(M.target.files) } }), b("input", { ref: "selectVideo", attrs: { type: "file", accept: "video/*", capture: "camcorder" }, on: { change: (M) => r.handleFileUpload(M.target.files) } })])]) : r._e(), r.recordAudioVisible ? b("RecordAudio", { attrs: { isMobile: r.isMobile }, on: { finish: r.handleFileUpload, cancel: function(M) {
12678
12679
  r.recordAudioVisible = !1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codernote/record-tree",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {
@@ -8,7 +8,7 @@
8
8
  "recordrtc": "^5.6.2",
9
9
  "vue-inline-svg": "^2.1.3",
10
10
  "vue-popperjs": "^2.3.0",
11
- "@codernote/utils": "1.3.0",
11
+ "@codernote/utils": "1.3.1",
12
12
  "@codernote/tree-editor": "1.0.8"
13
13
  },
14
14
  "devDependencies": {