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.
Files changed (43) hide show
  1. package/README.MD +1 -1
  2. package/lib/ryui.common.js +999 -380
  3. package/lib/ryui.common.js.gz +0 -0
  4. package/lib/ryui.css +1 -1
  5. package/lib/ryui.umd.js +999 -380
  6. package/lib/ryui.umd.js.gz +0 -0
  7. package/lib/ryui.umd.min.js +5 -5
  8. package/lib/ryui.umd.min.js.gz +0 -0
  9. package/package.json +8 -3
  10. package/src/assets/map.png +0 -0
  11. package/src/assets/moveMarker.png +0 -0
  12. package/src/assets/startpoint.png +0 -0
  13. package/src/assets/stoppoint.png +0 -0
  14. package/src/components/index.js +3 -1
  15. package/src/components/maps/models/ryLines/ryLines.js +73 -0
  16. package/src/components/maps/models/ryMapTool/mapTool.js +7 -0
  17. package/src/components/maps/models/ryStaticMap/map.js +36 -0
  18. package/src/components/maps/models/ryStaticMap/view.js +66 -0
  19. package/src/components/maps/ryClusters/src/index.vue +4 -2
  20. package/src/components/maps/ryLines/index.js +7 -0
  21. package/src/components/maps/ryLines/src/index.vue +226 -0
  22. package/src/components/maps/ryMap/src/index.vue +5 -2
  23. package/src/components/maps/ryMapTool/src/index.vue +6 -6
  24. package/src/components/maps/ryPolygons/src/index.vue +67 -68
  25. package/src/components/maps/ryStaticMap/index.js +7 -0
  26. package/src/components/maps/ryStaticMap/src/index.vue +233 -0
  27. package/src/components/maps/ryUniMap/index.js +6 -0
  28. package/src/components/maps/ryUniMap/src/index.vue +351 -0
  29. package/src/components/maps/ryVectorMap/src/index.vue +1 -3
  30. package/src/components/maps/switchMap/src/newIndex.vue +39 -19
  31. package/src/router/index.js +30 -5
  32. package/src/utils/lMapServices.js +962 -918
  33. package/src/views/docx/index.vue +36 -0
  34. package/src/views/excel/index.vue +26 -0
  35. package/src/views/map/dksj.js +1103 -0
  36. package/src/views/map/index.vue +76 -205
  37. package/src/views/map/indexNew.vue +625 -0
  38. package/src/views/map/lineData.js +19592 -0
  39. package/src/views/map/lineData2.js +3449 -0
  40. package/src/views/pdf/index.vue +24 -0
  41. package/src/views/staticMap/index.vue +91 -0
  42. package/src/views/tree/index.vue +193 -0
  43. 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>