adata-ui 0.1.89 → 0.1.92

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": "adata-ui",
3
- "version": "0.1.89",
3
+ "version": "0.1.92",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -7,8 +7,9 @@
7
7
  ]"
8
8
  v-bind="$attrs"
9
9
  v-on="$listeners"
10
- :is="url ? 'a' : 'button'"
10
+ :is="url ? 'a' : nuxtUrl ? 'nuxt-link' : 'button'"
11
11
  :href="url"
12
+ :to="nuxtUrl"
12
13
  :event="event ? 'click' : ''"
13
14
  :disabled="disabled"
14
15
  >
@@ -56,6 +57,9 @@ export default {
56
57
  url: {
57
58
  type: String,
58
59
  },
60
+ nuxtUrl: {
61
+ type: String,
62
+ },
59
63
  event: {
60
64
  type: Boolean,
61
65
  default: true
@@ -94,18 +98,15 @@ export default {
94
98
  &_extra_sm {
95
99
  height: 24px;
96
100
  padding: 2px 16px;
97
- line-height: 20px;
98
101
  font-size: 12px;
99
102
  }
100
103
  &_sm {
101
104
  height: 32px;
102
105
  padding: 6px 20px;
103
- line-height: 20px;
104
106
  }
105
107
  &_md {
106
108
  height: 40px;
107
109
  padding: 8px 30px;
108
- line-height: 24px;
109
110
  }
110
111
  &_fit {
111
112
  padding: 8px 0;