sard-uniapp 1.12.3 → 1.12.4

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/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## [1.12.4](https://github.com/sutras/sard-uniapp/compare/v1.12.3...v1.12.4) (2025-04-14)
2
+
3
+
4
+ ### Features
5
+
6
+ * tabbar-item 组件 icon 插槽新增 active 属性 ([0704e46](https://github.com/sutras/sard-uniapp/commit/0704e46cb1a87a27d62076bd962a3925086598e7))
7
+
8
+
9
+
1
10
  ## [1.12.3](https://github.com/sutras/sard-uniapp/compare/v1.12.2...v1.12.3) (2025-04-03)
2
11
 
3
12
 
@@ -30,7 +30,9 @@ export interface TabbarItemProps {
30
30
  }
31
31
  export interface TabbarItemSlots {
32
32
  default?(props: Record<string, never>): any;
33
- icon?(props: Record<string, never>): any;
33
+ icon?(props: {
34
+ active: boolean;
35
+ }): any;
34
36
  }
35
37
  export interface TabbarItemEmits {
36
38
  (e: 'click', event: any): void;
@@ -2,7 +2,7 @@
2
2
  <view :class="tabbarItemClass" :style="tabbarItemStyle" @click="onClick">
3
3
  <slot>
4
4
  <view :class="bem.e('icon')">
5
- <slot name="icon">
5
+ <slot name="icon" :active="isCurrent">
6
6
  <sar-icon :name="icon" :family="iconFamily" :size="iconSize" />
7
7
  </slot>
8
8
  <sar-badge v-if="badge || dot" :value="badge" :dot="dot" fixed />
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "sard-uniapp",
3
3
  "name": "sard-uniapp",
4
4
  "displayName": "sard-uniapp",
5
- "version": "1.12.3",
5
+ "version": "1.12.4",
6
6
  "description": "sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库",
7
7
  "main": "index.js",
8
8
  "scripts": {