shijiplus-web-plugin 0.1.15 → 0.1.16
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/package.json +1 -1
- package/src/App.vue +13 -1
- package/src/components/txmap/tx-map.vue +3 -1
- package/src/main.js +0 -7
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div id="app">
|
|
3
3
|
<img id="img" alt="Vue logo" src="./assets/logo.png" />
|
|
4
|
+
<Button @click="showMapClick">showMap</Button>
|
|
4
5
|
<plus-city-cascader></plus-city-cascader>
|
|
5
|
-
<TxMap
|
|
6
|
+
<TxMap
|
|
7
|
+
:show="showmap"
|
|
8
|
+
region="北京"
|
|
9
|
+
></TxMap>
|
|
6
10
|
</div>
|
|
7
11
|
</template>
|
|
8
12
|
|
|
@@ -14,6 +18,14 @@ import TxMap from './components/txmap/tx-map'
|
|
|
14
18
|
export default {
|
|
15
19
|
name: 'App',
|
|
16
20
|
components: { PlusCityCascader, TxMap },
|
|
21
|
+
data() {
|
|
22
|
+
return { showmap: false }
|
|
23
|
+
},
|
|
24
|
+
methods: {
|
|
25
|
+
showMapClick() {
|
|
26
|
+
this.showmap = true
|
|
27
|
+
}
|
|
28
|
+
},
|
|
17
29
|
mounted() {
|
|
18
30
|
console.log(
|
|
19
31
|
'web-tool mounted!',
|
|
@@ -66,7 +66,8 @@ export default {
|
|
|
66
66
|
}
|
|
67
67
|
})
|
|
68
68
|
}
|
|
69
|
-
|
|
69
|
+
const pos = this.getPosition()
|
|
70
|
+
this.setCenter(pos.lat, pos.lng, this.posTitle)
|
|
70
71
|
})
|
|
71
72
|
}
|
|
72
73
|
console.log('---------txmap-show----------', val)
|
|
@@ -123,6 +124,7 @@ export default {
|
|
|
123
124
|
},
|
|
124
125
|
mapTX() {
|
|
125
126
|
let _this = this
|
|
127
|
+
console.log('--------this.tMap--------', this.tMap)
|
|
126
128
|
if (this.tMap) {
|
|
127
129
|
return Promise.resolve()
|
|
128
130
|
}
|
package/src/main.js
CHANGED
|
@@ -1,17 +1,10 @@
|
|
|
1
1
|
import Vue from 'vue'
|
|
2
2
|
import App from './App.vue'
|
|
3
3
|
import iView from 'iview'
|
|
4
|
-
import './index.less'
|
|
5
|
-
import i18n from '@/locale'
|
|
6
|
-
import ExtentionPlugin from './extentionPlugin'
|
|
7
|
-
import importDirective from './directive'
|
|
8
|
-
import PlusComp from './components/plus-comp'
|
|
9
|
-
|
|
10
4
|
import Tool from './index'
|
|
11
5
|
|
|
12
6
|
|
|
13
7
|
|
|
14
|
-
|
|
15
8
|
Vue.config.productionTip = false
|
|
16
9
|
|
|
17
10
|
Tool.install(Vue)
|