@codernote/record-tree 1.6.3 → 1.6.4

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/README.md CHANGED
@@ -67,6 +67,9 @@ interface Nodes Array<{
67
67
  {/* 底层操作栏类型,默认不显示操作栏, false */}
68
68
  :bar="false"
69
69
 
70
+ {/* 是否展示title, 默认true */}
71
+ :showTitle="true"
72
+
70
73
  {/* 响应式,若为true, 内部弹框都相对于100%屏幕宽度来计算 */}
71
74
  :responsive="false"
72
75
 
package/dist/index.js CHANGED
@@ -13551,6 +13551,10 @@ const Ca = "KEY_PENDING_NODES", vi = {
13551
13551
  type: Boolean,
13552
13552
  default: !1
13553
13553
  },
13554
+ showTitle: {
13555
+ type: Boolean,
13556
+ default: !0
13557
+ },
13554
13558
  responsive: {
13555
13559
  type: Boolean,
13556
13560
  default: !1
@@ -13801,7 +13805,7 @@ var _i = function() {
13801
13805
  return f("div", { class: {
13802
13806
  "record-tree-container": !0,
13803
13807
  "record-tree-mobile": t.isMobile
13804
- } }, [f("div", { staticClass: "record-tree", on: { mouseenter: t.hideHoverNote } }, [f("RecordTitle", { attrs: { title: t.note.title, tags: t.tags, tagId: t.note.tag_id, readOnly: t.readOnly, enableDbEnter: t.enableDbEnter }, on: { focusContent: t.focusContent, change: t.handleChangeTitle, tagChange: t.handleChangeTag, file: t.handleTitleFile, dbEnter: t.handleDbEnter, input: t.checkModified } }), f("div", { staticClass: "record-tree-main" }, [f("div", { attrs: { id: "root_tree" } }, [f("TreeEditor", { ref: "treeEditor", attrs: { nodes: t.curNodes, readOnly: t.readOnly, enableDbEnter: t.enableDbEnter, hash: t.hash, isMobile: t.isMobile }, on: { change: t.handleChangeNodes, fileUpload: t.handleFileUpload, dbEnter: function(h) {
13808
+ } }, [f("div", { staticClass: "record-tree", on: { mouseenter: t.hideHoverNote } }, [t.showTitle ? f("RecordTitle", { attrs: { title: t.note.title, tags: t.tags, tagId: t.note.tag_id, readOnly: t.readOnly, enableDbEnter: t.enableDbEnter }, on: { focusContent: t.focusContent, change: t.handleChangeTitle, tagChange: t.handleChangeTag, file: t.handleTitleFile, dbEnter: t.handleDbEnter, input: t.checkModified } }) : t._e(), f("div", { staticClass: "record-tree-main" }, [f("div", { attrs: { id: "root_tree" } }, [f("TreeEditor", { ref: "treeEditor", attrs: { nodes: t.curNodes, readOnly: t.readOnly, enableDbEnter: t.enableDbEnter, hash: t.hash, isMobile: t.isMobile }, on: { change: t.handleChangeNodes, fileUpload: t.handleFileUpload, dbEnter: function(h) {
13805
13809
  return t.$emit("dbEnter");
13806
13810
  } } })], 1)])], 1), t.bar ? f("div", { staticClass: "record-tree-options" }, [f("div", { staticClass: "record-tree-option-left" }, [f("div", { staticClass: "record-tree-option-item", attrs: { title: "左缩进" }, on: { click: t.setToParent } }, [f("inline-svg", { attrs: { src: t.icon.left, width: 20, height: 20 } })], 1), f("div", { staticClass: "record-tree-option-item", attrs: { title: "右缩进" }, on: { click: t.setToChild } }, [f("inline-svg", { attrs: { src: t.icon.right, width: 20, height: 20 } })], 1), f("div", { staticClass: "record-tree-option-item", attrs: { title: "上移" }, on: { click: t.setToUp } }, [f("inline-svg", { attrs: { src: t.icon.up, width: 20, height: 20 } })], 1), f("div", { staticClass: "record-tree-option-item", attrs: { title: "移动" }, on: { click: t.setToDown } }, [f("inline-svg", { attrs: { src: t.icon.down, width: 20, height: 20 } })], 1), f("div", { staticClass: "record-tree-option-item", attrs: { title: "添加附件" }, on: { click: t.handleSelectFile } }, [f("inline-svg", { attrs: { src: t.icon.attach, width: 20, height: 20 } })], 1), f("div", { staticClass: "record-tree-option-item", attrs: { title: "录制音频" }, on: { click: t.handleRecordAudio } }, [f("inline-svg", { attrs: { src: t.icon.audio, width: 20, height: 20 } })], 1), f("div", { staticClass: "record-tree-option-item", attrs: { title: "录制视频" }, on: { click: t.handleRecordVideo } }, [f("inline-svg", { attrs: { src: t.icon.video, width: 20, height: 20 } })], 1), f("div", { staticClass: "record-tree-option-item", attrs: { title: "拍照" }, on: { click: t.handleRecordPhoto } }, [f("inline-svg", { attrs: { src: t.icon.photo, width: 20, height: 20 } })], 1)]), t.isMobile ? f("div", { staticClass: "record-tree-option-right" }, [f("div", { staticClass: "record-tree-option-item", on: { click: function(h) {
13807
13811
  return h.stopPropagation(), t.handleComplete.apply(null, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codernote/record-tree",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {