-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbackground.vue
49 lines (48 loc) · 980 Bytes
/
background.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<template>
<div class="container layout-rl">
<div class="op-wrapper">
<div class="section">
<p class="tip">提示说明</p>
<ul>
<li><p>设置背景色</p></li>
</ul>
</div>
<div class="section">
<p class="tip">属性编辑</p>
<div>
<p>背景色</p>
<input type="text" v-model="backgroundColor" />
</div>
</div>
</div>
<div class="map-wrapper">
<fabric-map-vue
:svg-map-url="svgMapUrl"
:background-color="backgroundColor"
></fabric-map-vue>
</div>
</div>
</template>
<script>
export default {
data() {
return {
backgroundColor: '#3995F7',
svgMapUrl: "https://qiniu.qjzd.net/cf.svg",
};
},
mounted() {},
methods: {
}
};
</script>
<style scoped>
.container,
.map-wrapper {
height: 100%;
position: relative;
}
.textarea {
width: 100%;
}
</style>