回答編集履歴
1
回答勘違いしてたので修正
test
CHANGED
@@ -1,47 +1,75 @@
|
|
1
|
-
リ
|
1
|
+
これでもクリック時に別窓開いたけど違うのかな…
|
2
2
|
|
3
|
-
```
|
3
|
+
```vue
|
4
4
|
|
5
|
-
<
|
5
|
+
<template>
|
6
6
|
|
7
|
-
<
|
7
|
+
<social-sharing
|
8
8
|
|
9
|
-
|
9
|
+
:url="shareUrl()"
|
10
10
|
|
11
|
-
|
11
|
+
title="The Progressive JavaScript Framework"
|
12
12
|
|
13
|
-
|
13
|
+
description="Intuitive, Fast and Composable MVVM for building interactive interfaces."
|
14
14
|
|
15
|
-
|
15
|
+
quote="Vue is a progressive framework for building user interfaces."
|
16
16
|
|
17
|
-
|
17
|
+
hashtags="hashtags"
|
18
18
|
|
19
|
-
|
19
|
+
twitter-user="vuejs"
|
20
20
|
|
21
|
-
|
21
|
+
inline-template
|
22
22
|
|
23
|
-
|
23
|
+
>
|
24
24
|
|
25
|
+
<a href="#">
|
26
|
+
|
27
|
+
<network network="twitter">
|
28
|
+
|
29
|
+
リンク
|
30
|
+
|
31
|
+
</network>
|
32
|
+
|
33
|
+
</a>
|
34
|
+
|
35
|
+
</social-sharing>
|
36
|
+
|
37
|
+
</template>
|
38
|
+
|
39
|
+
|
40
|
+
|
41
|
+
<script>
|
42
|
+
|
43
|
+
export default {
|
44
|
+
|
45
|
+
data: function () {
|
46
|
+
|
47
|
+
return {
|
48
|
+
|
25
|
-
code: '
|
49
|
+
code: 'Hello'
|
50
|
+
|
51
|
+
}
|
52
|
+
|
53
|
+
},
|
54
|
+
|
55
|
+
methods: {
|
56
|
+
|
57
|
+
shareUrl: function() {
|
58
|
+
|
59
|
+
return `/sns/${this.code}`
|
26
60
|
|
27
61
|
},
|
28
62
|
|
29
|
-
|
63
|
+
},
|
30
64
|
|
31
|
-
|
65
|
+
}
|
32
66
|
|
33
|
-
|
67
|
+
</script>
|
34
68
|
|
35
|
-
},
|
36
69
|
|
37
|
-
},
|
38
70
|
|
39
|
-
|
71
|
+
<style>
|
40
72
|
|
41
|
-
</script>
|
42
|
-
|
43
|
-
</body>
|
44
|
-
|
45
|
-
</
|
73
|
+
</style>
|
46
74
|
|
47
75
|
```
|