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
| <template>
| <d-frame :data="data" class="safari">
| <template slot="d-frame-title-content">
| <div class="safari-href">
| <input type="text" v-model="href" @keyup.enter="searchSafari()" />
| </div>
| </template>
| </d-frame>
| </template>
|
| <script>
|
| import DFrame from './DFrame';
|
| export default {
| name: "Safari",
| components: {
| DFrame
| },
| props: {
| data: Object
| },
| data() {
| return {
| href: ''
| }
| },
| methods: {
| searchSafari: function () {
| if (this.href.indexOf("http") <= -1) {
| this.href = "http://" + this.href;
| }
| this.data.url = this.href;
| }
| }
| }
| </script>
|
| <style scoped>
| .safari .safari-href {
| text-align: center;
| }
|
| .safari .safari-href input {
| width: 200px;
| }
| </style>
|
|