vue2-client 1.15.125 → 1.15.126

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": "vue2-client",
3
- "version": "1.15.125",
3
+ "version": "1.15.126",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -1,5 +1,6 @@
1
1
  <script setup lang="ts">
2
2
  import XTab from '@vue2-client/base-client/components/common/XTab/XTab.vue'
3
+ import { ref } from 'vue'
3
4
 
4
5
  defineProps({
5
6
  // HTab特有的属性
@@ -8,11 +9,21 @@ defineProps({
8
9
  default: true
9
10
  }
10
11
  })
12
+
13
+ // 创建对XTab组件的引用
14
+ const xTabRef = ref()
15
+
16
+ // 暴露方法给父组件使用
17
+ defineExpose({
18
+ // 直接暴露XTab实例,以便访问所有方法
19
+ getXTabInstance: () => xTabRef.value
20
+ })
11
21
  </script>
12
22
 
13
23
  <template>
14
24
  <div class="h-tab-wrapper" :class="{ 'h-tab-has-top-margin': hasTopMargin }">
15
25
  <x-tab
26
+ ref="xTabRef"
16
27
  v-bind="$attrs"
17
28
  v-on="$listeners"
18
29
  >
@@ -21,7 +21,7 @@
21
21
 
22
22
  <!-- 普通模式 -->
23
23
  <template v-if="buttonsMode === 'default'">
24
- <a-icon v-if="!watermarkMode && button.icon" :type="button.icon" />
24
+ <a-icon v-if="!watermarkMode && button.icon" :type="button.icon" />
25
25
  {{ button.label }}
26
26
  </template>
27
27
 
@@ -41,7 +41,7 @@
41
41
  </div>
42
42
  </template>
43
43
  <div class="a-div" v-for="(n, i) in numberColumns" :slot="n.dataIndex" :key="i">
44
- <div v-for="(item, index) in n.row" :key="index" class="number">{{item}}</div>
44
+ <div v-for="(item, index) in n.row" :key="index" class="number">{{ item }}</div>
45
45
  </div>
46
46
  </a-table>
47
47
  </div>