adata-ui 4.0.33 → 4.0.34

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/dist/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
7
  "failOnWarn": false,
8
- "version": "4.0.33",
8
+ "version": "4.0.34",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.1",
11
11
  "unbuild": "3.5.0"
@@ -13,7 +13,8 @@ const props = defineProps({
13
13
  align: { type: String, required: false, default: "center" },
14
14
  block: { type: Boolean, required: false, default: false },
15
15
  wrapper: { type: String, required: false, default: "row" },
16
- countView: { type: String, required: false, default: "badge" }
16
+ countView: { type: String, required: false, default: "badge" },
17
+ disabled: { type: Boolean, required: false }
17
18
  });
18
19
  const tabs = ref(null);
19
20
  const activeTab = defineModel({ type: null, ...{ default: 1 } });
@@ -92,10 +93,10 @@ onMounted(() => {
92
93
  class="scroll-container overflow-auto whitespace-nowrap"
93
94
  :class="props.wrapper === 'row' ? 'flex gap-1' : 'flex flex-col gap-1'"
94
95
  >
95
- <a-button
96
+ <button
96
97
  v-for="option in options"
97
98
  :key="option.key"
98
- :disabled="option.disabled"
99
+ :disabled="option.disabled || disabled"
99
100
  :data-active="activeTab === option.key"
100
101
  :class="[
101
102
  activeTab === option.key ? selectedClasses() : defaultClasses(!!option.disabled),
@@ -127,7 +128,7 @@ onMounted(() => {
127
128
  </template>
128
129
  </span>
129
130
  </slot>
130
- </a-button>
131
+ </button>
131
132
  </div>
132
133
  </template>
133
134
 
@@ -8,16 +8,17 @@ interface Props {
8
8
  block?: boolean;
9
9
  wrapper?: 'column' | 'row';
10
10
  countView?: 'badge' | 'brackets';
11
+ disabled?: boolean;
11
12
  }
12
13
  type __VLS_Props = Props;
13
14
  type __VLS_PublicProps = __VLS_Props & {
14
15
  modelValue?: any;
15
16
  };
16
- declare var __VLS_8: {
17
+ declare var __VLS_1: {
17
18
  option: any;
18
19
  };
19
20
  type __VLS_Slots = {} & {
20
- option?: (props: typeof __VLS_8) => any;
21
+ option?: (props: typeof __VLS_1) => any;
21
22
  };
22
23
  declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{}>, {
23
24
  size: "lg" | "sm" | "xs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adata-ui",
3
- "version": "4.0.33",
3
+ "version": "4.0.34",
4
4
  "description": "Adata UI",
5
5
  "repository": "your-org/my-module",
6
6
  "license": "MIT",