boka-human-cliend-v2 0.0.3 → 0.0.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/dist/boka-human-v2.common.js +3453 -12
- package/dist/boka-human-v2.css +9 -1
- package/dist/boka-human-v2.umd.js +3453 -12
- package/dist/boka-human-v2.umd.min.js +11 -1
- package/package.json +5 -1
- package/src/BokaHumanV2.vue +208 -7
- package/src/demo/App.vue +27 -0
- package/src/demo/main.js +7 -0
- package/vue.config.js +3 -2
package/src/demo/App.vue
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="app">
|
|
3
|
+
<BokaHumanV2 />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
import BokaHumanV2Raw from '../BokaHumanV2.vue'
|
|
9
|
+
const BokaHumanV2 = BokaHumanV2Raw
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
name: 'App',
|
|
13
|
+
components: {
|
|
14
|
+
BokaHumanV2
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
</script>
|
|
18
|
+
<style>
|
|
19
|
+
body{
|
|
20
|
+
padding: 0;
|
|
21
|
+
margin: 0;
|
|
22
|
+
}
|
|
23
|
+
#app{
|
|
24
|
+
width: 100vw;
|
|
25
|
+
height: 100vh;
|
|
26
|
+
}
|
|
27
|
+
</style>
|
package/src/demo/main.js
ADDED
package/vue.config.js
CHANGED
|
@@ -11,7 +11,8 @@ module.exports = {
|
|
|
11
11
|
libraryTarget: 'umd',
|
|
12
12
|
// 让 UMD 构建支持在浏览器和 Node.js 环境中使用
|
|
13
13
|
umdNamedDefine: true
|
|
14
|
-
}
|
|
14
|
+
}
|
|
15
|
+
/*,
|
|
15
16
|
externals: {
|
|
16
17
|
// 告诉打包工具 vue 是外部依赖,不打包进去
|
|
17
18
|
vue: {
|
|
@@ -20,7 +21,7 @@ module.exports = {
|
|
|
20
21
|
amd: 'vue',
|
|
21
22
|
root: 'Vue' // 全局变量名
|
|
22
23
|
}
|
|
23
|
-
}
|
|
24
|
+
}*/
|
|
24
25
|
},
|
|
25
26
|
|
|
26
27
|
chainWebpack: config => {
|