@veritree/ui 0.16.5 → 0.16.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veritree/ui",
3
- "version": "0.16.5",
3
+ "version": "0.16.6",
4
4
  "description": "veritree ui library",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -2,6 +2,7 @@
2
2
  <component
3
3
  :is="tag"
4
4
  :to="to"
5
+ :href="href"
5
6
  :type="type"
6
7
  :disabled="isDisabled"
7
8
  :class="[
@@ -71,6 +72,10 @@ export default {
71
72
  type: [String, Object],
72
73
  default: null,
73
74
  },
75
+ href: {
76
+ type: [String],
77
+ default: null,
78
+ },
74
79
  headless: {
75
80
  type: Boolean,
76
81
  default: false,
@@ -115,7 +120,7 @@ export default {
115
120
  },
116
121
 
117
122
  tag() {
118
- return this.to ? 'NuxtLink' : 'button';
123
+ return this.to ? 'NuxtLink' : this.href ? 'a' : 'button';
119
124
  },
120
125
 
121
126
  type() {