@tplc/wot 0.1.67 → 0.1.69

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
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.1.69](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.85...v0.1.69) (2025-03-18)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * tabs 支持 修改字体大小 ([d118635](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/d118635847e7c6a1567aa04180c9d314433e7a16))
11
+
12
+ ### [0.1.68](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.83...v0.1.68) (2025-03-18)
13
+
14
+
15
+ ### ✨ Features | 新功能
16
+
17
+ * version ([562c50e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/562c50e98b0dacb613c744beaa6d803895e5cb95))
18
+
5
19
  ### [0.1.67](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.82...v0.1.67) (2025-03-18)
6
20
 
7
21
 
@@ -21,7 +21,7 @@
21
21
  {{ item.text }}
22
22
  </view>
23
23
  <view
24
- class="wd-month__day-bottom"
24
+ class="wd-month__day-bottom text-[var(--font1-color)]"
25
25
  :style="{ bottom: item.floorText ? '12px' : '6px' }"
26
26
  >
27
27
  <text
@@ -32,7 +32,7 @@
32
32
  </text>
33
33
  <text>{{ item.bottomInfo?.replace('¥', '') }}</text>
34
34
  </view>
35
- <view class="wd-month__day-floor">
35
+ <view class="wd-month__day-floor text-[var(--font2-color)]">
36
36
  <text v-if="item.floorText && item.floorText.includes('¥')" style="font-size: 8px">
37
37
  ¥
38
38
  </text>
@@ -68,6 +68,10 @@ export const tabsProps = {
68
68
  */
69
69
  duration: makeNumberProp(300),
70
70
  mode: makeStringProp<TagsMode>('default'),
71
+ /**
72
+ * 字体大小
73
+ */
74
+ itemFontSize: makeStringProp(28),
71
75
  }
72
76
 
73
77
  export type TabsProps = ExtractPropTypes<typeof tabsProps>
@@ -21,15 +21,7 @@
21
21
  v-for="(item, index) in items"
22
22
  :key="index"
23
23
  :class="`wd-tabs__nav-item ${state.activeIndex === index ? 'is-active' : ''} ${item.disabled ? 'is-disabled' : ''}`"
24
- :style="
25
- state.activeIndex === index
26
- ? color
27
- ? 'color:' + color
28
- : ''
29
- : inactiveColor
30
- ? 'color:' + inactiveColor
31
- : ''
32
- "
24
+ :style="`color:${state.activeIndex === index ? color : inactiveColor};font-size:${itemFontSize}rpx`"
33
25
  >
34
26
  {{ item.title }}
35
27
  </view>
@@ -66,15 +58,7 @@
66
58
  >
67
59
  <view
68
60
  :class="`wd-tabs__map-nav-btn ${state.activeIndex === index ? 'is-active' : ''} ${item.disabled ? 'is-disabled' : ''}`"
69
- :style="
70
- state.activeIndex === index
71
- ? color
72
- ? 'color:' + color + ';border-color:' + color
73
- : ''
74
- : inactiveColor
75
- ? 'color:' + inactiveColor
76
- : ''
77
- "
61
+ :style="`color:${state.activeIndex === index ? color : inactiveColor};font-size:${itemFontSize}rpx`"
78
62
  >
79
63
  {{ item.title }}
80
64
  </view>
@@ -126,15 +110,7 @@
126
110
  @click="handleSelect(index)"
127
111
  :key="index"
128
112
  :class="`wd-tabs__nav-item ${state.activeIndex === index ? 'is-active' : ''} ${item.disabled ? 'is-disabled' : ''}`"
129
- :style="
130
- state.activeIndex === index
131
- ? color
132
- ? 'color:' + color
133
- : ''
134
- : inactiveColor
135
- ? 'color:' + inactiveColor
136
- : ''
137
- "
113
+ :style="`color:${state.activeIndex === index ? color : inactiveColor};font-size:${itemFontSize}rpx`"
138
114
  >
139
115
  {{ item.title }}
140
116
  </view>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "@tplc/wot",
3
3
  "name": "@tplc/wot",
4
- "version": "0.1.67",
4
+ "version": "0.1.69",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",
@@ -89,6 +89,13 @@ export declare const tabsProps: {
89
89
  type: import('vue').PropType<TagsMode>
90
90
  default: TagsMode
91
91
  }
92
+ /**
93
+ * 字体大小
94
+ */
95
+ itemFontSize: {
96
+ type: import('vue').PropType<number>
97
+ default: number
98
+ }
92
99
  customStyle: {
93
100
  type: import('vue').PropType<string>
94
101
  default: string
@@ -47,6 +47,10 @@ declare const _default: __VLS_WithTemplateSlots<
47
47
  type: import('vue').PropType<import('./types').TagsMode>
48
48
  default: import('./types').TagsMode
49
49
  }
50
+ itemFontSize: {
51
+ type: import('vue').PropType<number>
52
+ default: number
53
+ }
50
54
  customStyle: {
51
55
  type: import('vue').PropType<string>
52
56
  default: string
@@ -122,6 +126,10 @@ declare const _default: __VLS_WithTemplateSlots<
122
126
  type: import('vue').PropType<import('./types').TagsMode>
123
127
  default: import('./types').TagsMode
124
128
  }
129
+ itemFontSize: {
130
+ type: import('vue').PropType<number>
131
+ default: number
132
+ }
125
133
  customStyle: {
126
134
  type: import('vue').PropType<string>
127
135
  default: string
@@ -151,6 +159,7 @@ declare const _default: __VLS_WithTemplateSlots<
151
159
  mapNum: number
152
160
  swipeable: boolean
153
161
  animated: boolean
162
+ itemFontSize: number
154
163
  },
155
164
  {}
156
165
  >,