vueless 0.0.213 → 0.0.214

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": "vueless",
3
- "version": "0.0.213",
3
+ "version": "0.0.214",
4
4
  "license": "MIT",
5
5
  "description": "Vue Styleless Component Framework.",
6
6
  "homepage": "https://vueless.com",
@@ -12,8 +12,8 @@
12
12
  :data-cy="dataCy"
13
13
  v-bind="linkAttrs"
14
14
  @blur="onBlur"
15
- @click="onClick"
16
15
  @focus="onFocus"
16
+ @click="onClick"
17
17
  @keydown="onKeydown"
18
18
  @mouseover="onMouseover"
19
19
  >
@@ -31,9 +31,9 @@
31
31
  v-bind="linkAttrs"
32
32
  @blur="onBlur"
33
33
  @focus="onFocus"
34
+ @click="onClick"
34
35
  @keydown="onKeydown"
35
36
  @mouseover="onMouseover"
36
- @click.prevent="onClick"
37
37
  >
38
38
  <!-- @slot Use it replace the text. -->
39
39
  <slot>
@@ -293,11 +293,11 @@ const href = computed(() => {
293
293
  link: "",
294
294
  };
295
295
 
296
- return `${types[props.type]}${props.url}`;
296
+ return props.url ? `${types[props.type]}${props.url}` : null;
297
297
  });
298
298
 
299
299
  function onClick(event) {
300
- !props.url || props.disabled ? emit("click", event) : window.open(href.value, props.targetValue);
300
+ emit("click", event);
301
301
  }
302
302
 
303
303
  function onMouseover(event) {
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "framework": "vue",
3
3
  "name": "vueless",
4
- "version": "0.0.213",
4
+ "version": "0.0.214",
5
5
  "contributions": {
6
6
  "html": {
7
7
  "description-markup": "markdown",