@morghulis/core 1.0.22 → 1.0.23
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 +40 -0
- package/dist/index.css +1 -1
- package/dist/morghulis-core.es.js +3080 -2878
- package/dist/morghulis-core.es.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/dist/types/usages/tree-data/DTree.vue.d.ts +5 -1
- package/dist/types/usages/tree-data/tree-table/DTreeTable.vue.d.ts +14 -0
- package/dist/types/usages/tree-data/tree-table/DTreeTablePlugin.vue.d.ts +4 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,3 +35,43 @@ export default defineConfig({
|
|
|
35
35
|
})
|
|
36
36
|
```
|
|
37
37
|
|
|
38
|
+
2. main.ts
|
|
39
|
+
|
|
40
|
+
```ts
|
|
41
|
+
import {createApp, h} from 'vue'
|
|
42
|
+
import {createMorghulis, MApp} from "@morghulis/core";
|
|
43
|
+
import ElementPlus from 'element-plus'
|
|
44
|
+
import '@morghulis/core/style'
|
|
45
|
+
import {options} from "./options";
|
|
46
|
+
|
|
47
|
+
import {createPinia} from "pinia";
|
|
48
|
+
|
|
49
|
+
const app = createApp(MApp)
|
|
50
|
+
app.use(createPinia())
|
|
51
|
+
app.use(ElementPlus)
|
|
52
|
+
app.use(createMorghulis(options))
|
|
53
|
+
app.mount('#app')
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
3. options.ts
|
|
57
|
+
|
|
58
|
+
```ts
|
|
59
|
+
import App from "./App.vue";
|
|
60
|
+
import type {Options} from "@morghulis/core";
|
|
61
|
+
|
|
62
|
+
export const options: Options = {
|
|
63
|
+
title: 'Valar Morghulis',
|
|
64
|
+
signInOnly: false,
|
|
65
|
+
account: {
|
|
66
|
+
// label: 'Phone Number'
|
|
67
|
+
},
|
|
68
|
+
routes: [
|
|
69
|
+
{
|
|
70
|
+
path: '/',
|
|
71
|
+
name: '主页',
|
|
72
|
+
component: App
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
icons: []
|
|
76
|
+
}
|
|
77
|
+
```
|