@codernote/record-tree 1.0.1 → 1.0.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.
package/README.md CHANGED
@@ -51,3 +51,9 @@ import { RecordTree } from "@codernote/record-tree";
51
51
  @complete="handleComplete"
52
52
  ></RecordTree>
53
53
  ```
54
+
55
+ ### 发布
56
+
57
+ ```bash
58
+ npm publish --access public
59
+ ```
package/dist/index.js CHANGED
@@ -142,7 +142,7 @@ const C = {
142
142
  this.treeEditor && this.treeEditor.loadTree(this.curNodes, 1);
143
143
  },
144
144
  treeChange(t) {
145
- (this.note.content != t.content || this.note.title != t.title) && this.$emit("change", {
145
+ "content" in this.note && (this.note.content != t.content || this.note.title != t.title) && this.$emit("change", {
146
146
  type: "tree",
147
147
  data: t
148
148
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codernote/record-tree",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {