Skip to content

Commit 693e04e

Browse files
committed
ver 0.4
1 parent 9e8b992 commit 693e04e

25 files changed

+8559
-783
lines changed

.babelrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"presets": [
33
"@babel/env",
4-
"@babel/typescript"
4+
"@babel/typescript",
5+
"@vue/cli-plugin-babel/preset"
56
]
67
}

README.md

+6-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,12 @@ import {createApp} from 'vue';
112112
import VueBlocksTree from 'vue3-blocks-tree';
113113
import 'vue3-blocks-tree/dist/vue3-blocks-tree.css';
114114
// or import 'vue3-blocks-tree/src/styles/blocks-tree.less';
115-
createApp(App).component('blocks-tree',VueBlocksTree)
115+
116+
let defaultoptions = {treeName:'blocks-tree'}
117+
118+
createApp(App)
119+
.use(VueBlocksTree,defaultoptions)
120+
// or .component('blocks-tree',VueBlocksTree)
116121

117122
// ...
118123
```

demo-dist/app.css

-225
This file was deleted.

demo-dist/app.min.js

-1
This file was deleted.

demo/index.js

+6-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
import {createApp } from 'vue';
2-
import VueBlocksTree from '../src';
3-
import '../src/styles/blocks-tree.less';
2+
3+
import VueBlocksTree from '../dist/vue3-blocks-tree.common';
4+
import '../dist/vue3-blocks-tree.css';
5+
46

57
import App from './demo-app.vue';
68

79

810

911
createApp(App)
10-
.component('blocks-tree',VueBlocksTree)
12+
// .component('blocks-tree',VueBlocksTree)
13+
.use(VueBlocksTree)
1114
.mount('#app');

dist/demo.html

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<meta charset="utf-8">
2+
<title>vue3-blocks-tree demo</title>
3+
<script src="./vue3-blocks-tree.umd.js"></script>
4+
5+
<link rel="stylesheet" href="./vue3-blocks-tree.css">
6+
7+
8+
<script>
9+
console.log(vue3-blocks-tree)
10+
</script>

dist/vue3-blocks-tree-style.umd.min.js

-1
This file was deleted.

0 commit comments

Comments
 (0)