610f7763 by unknown

20191217

1 parent c50bef2f
...@@ -8,5 +8,10 @@ ...@@ -8,5 +8,10 @@
8 }], 8 }],
9 "stage-2" 9 "stage-2"
10 ], 10 ],
11 "plugins": ["transform-vue-jsx", "transform-runtime"] 11 // "plugins": ["transform-vue-jsx", "transform-runtime"]
12 "plugins": [
13 "transform-vue-jsx",
14 "transform-runtime",
15 ["import", { "libraryName": "ant-design-vue", "libraryDirectory": "es", "style": "css" }]
16 ]
12 } 17 }
......
1 { 1 {
2 "name": "mybox", 2 "name": "supermapvue",
3 "version": "1.0.0", 3 "version": "1.0.0",
4 "lockfileVersion": 1, 4 "lockfileVersion": 1,
5 "requires": true, 5 "requires": true,
...@@ -26,6 +26,46 @@ ...@@ -26,6 +26,46 @@
26 "babel-runtime": "^6.26.0" 26 "babel-runtime": "^6.26.0"
27 } 27 }
28 }, 28 },
29 "@babel/helper-module-imports": {
30 "version": "7.7.4",
31 "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.7.4.tgz",
32 "integrity": "sha512-dGcrX6K9l8258WFjyDLJwuVKxR4XZfU0/vTUgOQYWEnRD8mgr+p4d6fCUMq/ys0h4CCt/S5JhbvtyErjWouAUQ==",
33 "requires": {
34 "@babel/types": "^7.7.4"
35 }
36 },
37 "@babel/runtime": {
38 "version": "7.7.6",
39 "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.7.6.tgz",
40 "integrity": "sha512-BWAJxpNVa0QlE5gZdWjSxXtemZyZ9RmrmVozxt3NUXeZhVIJ5ANyqmMc0JDrivBZyxUuQvFxlvH4OWWOogGfUw==",
41 "requires": {
42 "regenerator-runtime": "^0.13.2"
43 },
44 "dependencies": {
45 "regenerator-runtime": {
46 "version": "0.13.3",
47 "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.3.tgz",
48 "integrity": "sha512-naKIZz2GQ8JWh///G7L3X6LaQUAMp2lvb1rvwwsURe/VXwD6VMfr+/1NuNw3ag8v2kY1aQ/go5SNn79O9JU7yw=="
49 }
50 }
51 },
52 "@babel/types": {
53 "version": "7.7.4",
54 "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.7.4.tgz",
55 "integrity": "sha512-cz5Ji23KCi4T+YIE/BolWosrJuSmoZeN1EFnRtBwF+KKLi8GG/Z2c2hOJJeCXPk4mwk4QFvTmwIodJowXgttRA==",
56 "requires": {
57 "esutils": "^2.0.2",
58 "lodash": "^4.17.13",
59 "to-fast-properties": "^2.0.0"
60 },
61 "dependencies": {
62 "to-fast-properties": {
63 "version": "2.0.0",
64 "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz",
65 "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4="
66 }
67 }
68 },
29 "@mapbox/extent": { 69 "@mapbox/extent": {
30 "version": "0.4.0", 70 "version": "0.4.0",
31 "resolved": "https://registry.npmjs.org/@mapbox/extent/-/extent-0.4.0.tgz", 71 "resolved": "https://registry.npmjs.org/@mapbox/extent/-/extent-0.4.0.tgz",
...@@ -951,6 +991,15 @@ ...@@ -951,6 +991,15 @@
951 "babel-runtime": "^6.22.0" 991 "babel-runtime": "^6.22.0"
952 } 992 }
953 }, 993 },
994 "babel-plugin-import": {
995 "version": "1.13.0",
996 "resolved": "https://registry.npmjs.org/babel-plugin-import/-/babel-plugin-import-1.13.0.tgz",
997 "integrity": "sha512-bHU8m0SrY89ub2hBBuYjbennOeH0YUYkVpH6jxKFk0uD8rhN+0jNHIPtXnac+Vn7N/hgkLGGDcIoYK7je3Hhew==",
998 "requires": {
999 "@babel/helper-module-imports": "^7.0.0",
1000 "@babel/runtime": "^7.0.0"
1001 }
1002 },
954 "babel-plugin-syntax-async-functions": { 1003 "babel-plugin-syntax-async-functions": {
955 "version": "6.13.0", 1004 "version": "6.13.0",
956 "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz", 1005 "resolved": "https://registry.npmjs.org/babel-plugin-syntax-async-functions/-/babel-plugin-syntax-async-functions-6.13.0.tgz",
...@@ -6255,7 +6304,8 @@ ...@@ -6255,7 +6304,8 @@
6255 }, 6304 },
6256 "js-yaml": { 6305 "js-yaml": {
6257 "version": "3.7.0", 6306 "version": "3.7.0",
6258 "resolved": "", 6307 "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.7.0.tgz",
6308 "integrity": "sha1-XJZ93YN6m/3KXy3oQlOr6KHAO4A=",
6259 "dev": true, 6309 "dev": true,
6260 "requires": { 6310 "requires": {
6261 "argparse": "^1.0.7", 6311 "argparse": "^1.0.7",
......
...@@ -13,6 +13,7 @@ ...@@ -13,6 +13,7 @@
13 "@mapbox/mapbox-gl-draw": "^1.1.2", 13 "@mapbox/mapbox-gl-draw": "^1.1.2",
14 "@supermap/iclient-mapboxgl": "^10.0.0", 14 "@supermap/iclient-mapboxgl": "^10.0.0",
15 "ant-design-vue": "^1.4.10", 15 "ant-design-vue": "^1.4.10",
16 "babel-plugin-import": "^1.13.0",
16 "font-awesome": "^4.7.0", 17 "font-awesome": "^4.7.0",
17 "jquery": "^3.4.1", 18 "jquery": "^3.4.1",
18 "mapbox-gl": "^1.6.0", 19 "mapbox-gl": "^1.6.0",
......
...@@ -18,8 +18,7 @@ Vue.use(message) ...@@ -18,8 +18,7 @@ Vue.use(message)
18 18
19 import mapboxgl from 'mapbox-gl'; 19 import mapboxgl from 'mapbox-gl';
20 import { Logo, MeasureService } from '@supermap/iclient-mapboxgl'; 20 import { Logo, MeasureService } from '@supermap/iclient-mapboxgl';
21 // import '@mapbox/mapbox-gl-draw/dist/mapbox-gl-draw.css'; 21
22 // import MapboxDraw from '@mapbox/mapbox-gl-draw';
23 export default { 22 export default {
24 name: 'HelloWorld', 23 name: 'HelloWorld',
25 data () { 24 data () {
......
...@@ -21,9 +21,6 @@ ...@@ -21,9 +21,6 @@
21 <script> 21 <script>
22 import Vue from 'vue' 22 import Vue from 'vue'
23 import mapboxgl from 'mapbox-gl'; 23 import mapboxgl from 'mapbox-gl';
24 import { Card, Button } from 'ant-design-vue'
25 Vue.use(Card)
26 Vue.use(Button)
27 24
28 export default { 25 export default {
29 name: 'MVT', 26 name: 'MVT',
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
2 * @Author: jiangbotao 2 * @Author: jiangbotao
3 * @Date: 2019-12-10 22:15:53 3 * @Date: 2019-12-10 22:15:53
4 * @LastEditors: jiangbotao 4 * @LastEditors: jiangbotao
5 * @LastEditTime: 2019-12-16 13:13:06 5 * @LastEditTime: 2019-12-17 00:13:52
6 * @FilePath: \supermapvue\src\components\vt\Map_wz.vue 6 * @FilePath: \supermapvue\src\components\vt\Map_wz.vue
7 --> 7 -->
8 <template> 8 <template>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
3 * @Author: jiangbotao 3 * @Author: jiangbotao
4 * @Date: 2019-12-10 22:15:53 4 * @Date: 2019-12-10 22:15:53
5 * @LastEditors: jiangbotao 5 * @LastEditors: jiangbotao
6 * @LastEditTime: 2019-12-16 13:12:16 6 * @LastEditTime: 2019-12-17 00:12:35
7 * @FilePath: \supermapvue\src\components\vt\Map_wz.vue 7 * @FilePath: \supermapvue\src\components\vt\Map_wz.vue
8 --> 8 -->
9 <template> 9 <template>
......
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
2 * @Author: jiangbotao 2 * @Author: jiangbotao
3 * @Date: 2019-12-12 17:40:15 3 * @Date: 2019-12-12 17:40:15
4 * @LastEditors: jiangbotao 4 * @LastEditors: jiangbotao
5 * @LastEditTime: 2019-12-16 13:14:28 5 * @LastEditTime: 2019-12-17 00:26:31
6 * @FilePath: \supermapvue\src\main.js 6 * @FilePath: \supermapvue\src\main.js
7 */ 7 */
8 import Vue from 'vue' 8 import Vue from 'vue'
9 import { Layout, Menu, Icon } from 'ant-design-vue' 9 import { Layout, Menu, Icon, Card, Button } from 'ant-design-vue'
10 import App from './App' 10 import App from './App'
11 import router from './router' 11 import router from './router'
12 import 'ant-design-vue/dist/antd.css' 12 // import 'ant-design-vue/dist/antd.css'
13 import 'font-awesome/css/font-awesome.css' 13 import 'font-awesome/css/font-awesome.css'
14 import './../static/css/custom.css' 14 import './../static/css/custom.css'
15 15
...@@ -17,6 +17,8 @@ Vue.config.productionTip = false ...@@ -17,6 +17,8 @@ Vue.config.productionTip = false
17 Vue.use(Layout) 17 Vue.use(Layout)
18 Vue.use(Menu) 18 Vue.use(Menu)
19 Vue.use(Icon) 19 Vue.use(Icon)
20 Vue.use(Card)
21 Vue.use(Button)
20 22
21 /* eslint-disable no-new */ 23 /* eslint-disable no-new */
22 new Vue({ 24 new Vue({
......