@v-c/tabs 1.1.1 → 1.2.0

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.
@@ -21,7 +21,7 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
21
21
  const tabs = computed(() => ctx?.value.tabs || []);
22
22
  const prefixCls = computed(() => ctx?.value.prefixCls || "");
23
23
  const tabPaneAnimated = computed(() => animated.value?.tabPane === true);
24
- const tabPanePrefixCls = computed(() => `${prefixCls.value}-tabpane`);
24
+ const tabPanePrefixCls = computed(() => `${prefixCls.value}-content`);
25
25
  const transitionProps = computed(() => {
26
26
  if (!tabPaneAnimated.value) return {};
27
27
  if (animated.value?.tabPaneMotion) return animated.value.tabPaneMotion;
@@ -41,10 +41,10 @@ var index_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineCo
41
41
  return visitedKeys.has(item.key);
42
42
  }
43
43
  return (_ctx, _cache) => {
44
- return openBlock(), createElementBlock("div", { class: normalizeClass([`${prefixCls.value}-content-holder`]) }, [createElementVNode("div", { class: normalizeClass([
45
- `${prefixCls.value}-content`,
46
- `${prefixCls.value}-content-${unref(tabPosition)}`,
47
- { [`${prefixCls.value}-content-animated`]: tabPaneAnimated.value }
44
+ return openBlock(), createElementBlock("div", { class: normalizeClass([`${prefixCls.value}-body-holder`]) }, [createElementVNode("div", { class: normalizeClass([
45
+ `${prefixCls.value}-body`,
46
+ `${prefixCls.value}-body-${unref(tabPosition)}`,
47
+ { [`${prefixCls.value}-body-animated`]: tabPaneAnimated.value }
48
48
  ]) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(tabs.value, (item) => {
49
49
  return openBlock(), createElementBlock(Fragment, { key: item.key }, [tabPaneAnimated.value ? (openBlock(), createBlock(Transition, mergeProps({
50
50
  key: 0,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@v-c/tabs",
3
3
  "type": "module",
4
- "version": "1.1.1",
4
+ "version": "1.2.0",
5
5
  "description": "tabs ui component for react",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -37,9 +37,9 @@
37
37
  "vue": "^3.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@v-c/menu": "^1.2.0",
41
- "@v-c/overflow": "^1.1.0",
42
40
  "@v-c/dropdown": "^1.0.2",
41
+ "@v-c/menu": "^1.2.1",
42
+ "@v-c/overflow": "^1.1.0",
43
43
  "@v-c/resize-observer": "^1.1.2",
44
44
  "@v-c/util": "^1.0.19"
45
45
  },