ry-vue-map 0.2.1 → 0.2.3
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 +1 -1
- package/lib/ryui.common.js +999 -380
- package/lib/ryui.common.js.gz +0 -0
- package/lib/ryui.css +1 -1
- package/lib/ryui.umd.js +999 -380
- package/lib/ryui.umd.js.gz +0 -0
- package/lib/ryui.umd.min.js +5 -5
- package/lib/ryui.umd.min.js.gz +0 -0
- package/package.json +8 -3
- package/src/assets/map.png +0 -0
- package/src/assets/moveMarker.png +0 -0
- package/src/assets/startpoint.png +0 -0
- package/src/assets/stoppoint.png +0 -0
- package/src/components/index.js +3 -1
- package/src/components/maps/models/ryLines/ryLines.js +73 -0
- package/src/components/maps/models/ryMapTool/mapTool.js +7 -0
- package/src/components/maps/models/ryStaticMap/map.js +36 -0
- package/src/components/maps/models/ryStaticMap/view.js +66 -0
- package/src/components/maps/ryClusters/src/index.vue +4 -2
- package/src/components/maps/ryLines/index.js +7 -0
- package/src/components/maps/ryLines/src/index.vue +226 -0
- package/src/components/maps/ryMap/src/index.vue +5 -2
- package/src/components/maps/ryMapTool/src/index.vue +6 -6
- package/src/components/maps/ryPolygons/src/index.vue +67 -68
- package/src/components/maps/ryStaticMap/index.js +7 -0
- package/src/components/maps/ryStaticMap/src/index.vue +233 -0
- package/src/components/maps/ryUniMap/index.js +6 -0
- package/src/components/maps/ryUniMap/src/index.vue +351 -0
- package/src/components/maps/ryVectorMap/src/index.vue +1 -3
- package/src/components/maps/switchMap/src/newIndex.vue +39 -19
- package/src/router/index.js +30 -5
- package/src/utils/lMapServices.js +962 -918
- package/src/views/docx/index.vue +36 -0
- package/src/views/excel/index.vue +26 -0
- package/src/views/map/dksj.js +1103 -0
- package/src/views/map/index.vue +76 -205
- package/src/views/map/indexNew.vue +625 -0
- package/src/views/map/lineData.js +19592 -0
- package/src/views/map/lineData2.js +3449 -0
- package/src/views/pdf/index.vue +24 -0
- package/src/views/staticMap/index.vue +91 -0
- package/src/views/tree/index.vue +193 -0
- package/src/views/vectorMap/index.vue +26 -5
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div id="docx-demo">
|
|
3
|
+
<el-upload :limit="1" :file-list="fileList" accept=".docx" :beforeUpload="beforeUpload" action="">
|
|
4
|
+
<el-button size="small" type="warning">点击上传</el-button>
|
|
5
|
+
</el-upload>
|
|
6
|
+
<vue-office-docx :src="src" />
|
|
7
|
+
</div>
|
|
8
|
+
</template>
|
|
9
|
+
|
|
10
|
+
<script>
|
|
11
|
+
import VueOfficeDocx from '@vue-office/docx'
|
|
12
|
+
import '@vue-office/docx/lib/index.css'
|
|
13
|
+
export default {
|
|
14
|
+
components: {
|
|
15
|
+
VueOfficeDocx
|
|
16
|
+
},
|
|
17
|
+
data(){
|
|
18
|
+
return {
|
|
19
|
+
src:'',
|
|
20
|
+
fileList:[]
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
methods:{
|
|
24
|
+
|
|
25
|
+
beforeUpload(file){
|
|
26
|
+
let reader = new FileReader();
|
|
27
|
+
reader.readAsArrayBuffer(file);
|
|
28
|
+
reader.onload = (loadEvent) => {
|
|
29
|
+
let arrayBuffer = loadEvent.target.result;
|
|
30
|
+
this.src = arrayBuffer
|
|
31
|
+
};
|
|
32
|
+
return false
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
</script>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<vue-office-excel :src="excel" @rendered="rendered" style="height: 100vh;"/>
|
|
3
|
+
</template>
|
|
4
|
+
|
|
5
|
+
<script>
|
|
6
|
+
//引入VueOfficeExcel组件
|
|
7
|
+
import VueOfficeExcel from '@vue-office/excel'
|
|
8
|
+
//引入相关样式
|
|
9
|
+
import '@vue-office/excel/lib/index.css'
|
|
10
|
+
|
|
11
|
+
export default {
|
|
12
|
+
components:{
|
|
13
|
+
VueOfficeExcel
|
|
14
|
+
},
|
|
15
|
+
data(){
|
|
16
|
+
return {
|
|
17
|
+
excel: 'http://static.shanhuxueyuan.com/demo/excel.xlsx'//设置文档地址
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
methods:{
|
|
21
|
+
rendered(){
|
|
22
|
+
console.log("渲染完成")
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
</script>
|