@tplc/wot 0.1.66 → 0.1.68

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,22 @@
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.68](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.83...v0.1.68) (2025-03-18)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * version ([562c50e](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/562c50e98b0dacb613c744beaa6d803895e5cb95))
11
+
12
+ ### [0.1.67](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.82...v0.1.67) (2025-03-18)
13
+
14
+
15
+ ### ✨ Features | 新功能
16
+
17
+ * 新增form ([1fc2c38](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1fc2c38de7d1bb0cfcb420a9f80c1a2f309ffd49))
18
+ * 新增类型属性 ([044fa99](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/044fa99ff2b1a18c4cb01185a7f30003862577a3))
19
+ * 暂时提交form ([a43ce7c](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/a43ce7c0152fda887a2695cf88cb79cd31c75f94))
20
+
5
21
  ### [0.1.66](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.3.77...v0.1.66) (2025-03-11)
6
22
 
7
23
  ### [0.1.65](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.64...v0.1.65) (2025-03-10)
@@ -90,8 +90,8 @@
90
90
  background: $-calendar-active-color;
91
91
  border-radius: $-calendar-active-border;
92
92
  }
93
- .wd-month__day-text-custom{
94
- color:#fff
93
+ .wd-month__day-text-custom {
94
+ color: #fff;
95
95
  }
96
96
  }
97
97
 
@@ -112,8 +112,8 @@
112
112
  background: $-calendar-active-color;
113
113
  border-radius: $-calendar-active-border;
114
114
  }
115
- .wd-month__day-text-custom{
116
- color:#fff
115
+ .wd-month__day-text-custom {
116
+ color: #fff;
117
117
  }
118
118
  }
119
119
 
@@ -131,15 +131,14 @@
131
131
  z-index: 2;
132
132
  height: 100%;
133
133
  padding: 0 2px;
134
-
135
134
  }
136
135
 
137
136
  @include e(day-text) {
138
137
  font-weight: $-calendar-day-fw;
139
- &-custom{
140
- font-size: 14px;
141
- color:$-calendar-active-color;
142
- }
138
+ &-custom {
139
+ font-size: 14px;
140
+ color: $-calendar-active-color;
141
+ }
143
142
  }
144
143
 
145
144
  @include e(day-top) {
@@ -161,4 +160,14 @@
161
160
  line-height: 1.1;
162
161
  text-align: center;
163
162
  }
163
+
164
+ @include e(day-floor) {
165
+ position: absolute;
166
+ right: 0;
167
+ bottom: 2px;
168
+ left: 0;
169
+ font-size: $-calendar-info-fs;
170
+ line-height: 1.1;
171
+ text-align: center;
172
+ }
164
173
  }
@@ -20,7 +20,24 @@
20
20
  >
21
21
  {{ item.text }}
22
22
  </view>
23
- <view class="wd-month__day-bottom">{{ item.bottomInfo }}</view>
23
+ <view
24
+ class="wd-month__day-bottom text-[var(--font1-color)]"
25
+ :style="{ bottom: item.floorText ? '12px' : '6px' }"
26
+ >
27
+ <text
28
+ v-if="item.bottomInfo && item.bottomInfo.includes('¥')"
29
+ style="font-size: 8px"
30
+ >
31
+ ¥
32
+ </text>
33
+ <text>{{ item.bottomInfo?.replace('¥', '') }}</text>
34
+ </view>
35
+ <view class="wd-month__day-floor text-[var(--font2-color)]">
36
+ <text v-if="item.floorText && item.floorText.includes('¥')" style="font-size: 8px">
37
+ ¥
38
+ </text>
39
+ {{ item.floorText?.replace('¥', '') }}
40
+ </view>
24
41
  </view>
25
42
  </view>
26
43
  </view>
@@ -103,6 +103,7 @@ export type CalendarDayItem = {
103
103
  text?: number | string
104
104
  topInfo?: string
105
105
  bottomInfo?: string
106
+ floorText?: string
106
107
  type?: CalendarDayType
107
108
  disabled?: boolean
108
109
  day?: number | string
@@ -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(14),
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.66",
4
+ "version": "0.1.68",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",
@@ -116,6 +116,7 @@ export type CalendarDayItem = {
116
116
  text?: number | string
117
117
  topInfo?: string
118
118
  bottomInfo?: string
119
+ floorText?: string
119
120
  type?: CalendarDayType
120
121
  disabled?: boolean
121
122
  day?: number | string
@@ -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
  >,