+20
-16
lines changedFilter options
+20
-16
lines changed Original file line number Diff line number Diff line change
@@ -13,16 +13,13 @@
13
13
</li>
14
14
</template>
15
15
16
+
<script>
17
+
import { linkProps } from '../../props/link.props';
18
+
</script>
19
+
16
20
<script setup>
17
21
defineProps({
18
-
// <a> props
19
-
href: { type: String, default: undefined },
20
-
target: { type: String, default: undefined },
21
-
// <router-link> props
22
-
to: { type: null, default: undefined },
23
-
replace: { type: Boolean, default: false },
24
-
append: { type: Boolean, default: false },
25
-
exact: { type: Boolean, default: false },
22
+
...linkProps,
26
23
active: { type: Boolean, default: false },
27
24
});
28
25
</script>
Original file line number Diff line number Diff line change
@@ -53,19 +53,16 @@
53
53
</button>
54
54
</template>
55
55
56
+
<script>
57
+
import { linkProps } from '../../props/link.props';
58
+
</script>
59
+
56
60
<script setup>
57
61
import BtnGroup from './BtnGroup.vue';
58
62
import { computed } from 'vue';
59
63
60
64
const props = defineProps({
61
-
// <a> props
62
-
href: { type: String, default: undefined },
63
-
target: { type: String, default: undefined },
64
-
// <router-link> props
65
-
to: { type: null, default: undefined },
66
-
replace: { type: Boolean, default: false },
67
-
append: { type: Boolean, default: false },
68
-
exact: { type: Boolean, default: false },
65
+
...linkProps,
69
66
justified: { type: Boolean, default: false },
70
67
type: { type: String, default: 'default' },
71
68
nativeType: { type: String, default: 'button' },
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1
+
export const linkProps = {
2
+
// <a> props
3
+
href: { type: String, default: undefined },
4
+
target: { type: String, default: undefined },
5
+
// <router-link> props
6
+
to: { type: null, default: undefined },
7
+
replace: { type: Boolean, default: false },
8
+
append: { type: Boolean, default: false },
9
+
exact: { type: Boolean, default: false },
10
+
};
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4