morghulis 4.0.9 → 4.1.0

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/README.md +41 -4
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -49,18 +49,55 @@ app.use(createMorghulis()).mount('#app')
49
49
 
50
50
  ## getting start
51
51
 
52
- - Table
52
+ ### Data Table
53
+
54
+ - when db equals orm, Valar will provide using SQL database (such as SQLLite, MySQL, Postgresql)
55
+ - when db equals mon, Valar will provide using Mongodb
56
+ - entity is the path to the relative data model of Valar server
57
+ - code is the data view name, Valar will automatically create a data view for you. You can edit the data view in the
58
+ table
53
59
 
54
60
  ```vue
55
61
 
56
- <d-table code="special" entity="valar.Valar"></d-table>
62
+ <d-table
63
+ db="orm"
64
+ entity="valar.Valar"
65
+ code="special"
66
+ ></d-table>
67
+
68
+ ```
69
+
70
+ ### Data Tree
57
71
 
72
+ - try to edit the data in Tree, see what will happen in the Table
73
+
74
+ ```vue
75
+
76
+ <el-row>
77
+ <el-col :span="12">
78
+ <d-tree
79
+ db="orm"
80
+ entity="valar.Vmm"
81
+ broadcast
82
+ ></d-tree>
83
+ </el-col>
84
+ <el-col :span="12">
85
+ <d-table
86
+ db="orm"
87
+ entity="valar.Vmm"
88
+ code="tree"
89
+ broadcast
90
+ ></d-table>
91
+ </el-col>
92
+ </el-row>
58
93
  ```
59
94
 
60
- - Tree
95
+ ### Meta Editor
96
+
97
+ - a panel to edit the meta data of Valar server
61
98
 
62
99
  ```vue
63
100
 
64
- <d-table code="special" entity="valar.Valar"></d-table>
101
+ <meta-editor></meta-editor>
65
102
 
66
103
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "morghulis",
3
- "version": "4.0.9",
3
+ "version": "4.1.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"