@antify/ui 3.1.6 → 3.1.7

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.
@@ -31,6 +31,10 @@ import {
31
31
  IconSize,
32
32
  } from './__types/AntIcon.types';
33
33
 
34
+ defineOptions({
35
+ inheritAttrs: false,
36
+ });
37
+
34
38
  defineEmits([
35
39
  'click',
36
40
  'blur',
@@ -55,6 +59,7 @@ const props = withDefaults(defineProps<{
55
59
  tooltipPosition?: Position;
56
60
  tooltipState?: InputState;
57
61
  tooltipDelay?: number;
62
+ dataE2e?: string;
58
63
  }>(), {
59
64
  state: State.base,
60
65
  disabled: false,
@@ -71,6 +76,7 @@ const props = withDefaults(defineProps<{
71
76
  tooltipPosition: Position.bottom,
72
77
  tooltipState: InputState.base,
73
78
  tooltipDelay: 800,
79
+ dataE2e: 'button',
74
80
  });
75
81
 
76
82
  const hasInputState = computed(() => props.skeleton || props.readonly || props.disabled);
@@ -209,8 +215,6 @@ onMounted(() => {
209
215
  <div
210
216
  class="inline-flex h-fit"
211
217
  :class="{'w-full': props.expanded}"
212
- data-e2e="button"
213
- :data-e2e-state="props.state"
214
218
  >
215
219
  <AntTooltip
216
220
  class="w-full"
@@ -224,6 +228,9 @@ onMounted(() => {
224
228
  :to="to"
225
229
  :disabled="disabled || undefined"
226
230
  :tabindex="noFocus || hasInputState ? '-1' : '0'"
231
+ v-bind="$attrs"
232
+ :data-e2e="dataE2e"
233
+ :data-e2e-state="props.state"
227
234
  @click="(e: MouseEvent) => !props.readonly ? $emit('click', e) : null"
228
235
  @blur="(e: FocusEvent) => !props.readonly ? $emit('blur', e) : null"
229
236
  >
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antify/ui",
3
- "version": "3.1.6",
3
+ "version": "3.1.7",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "exports": {