@tplc/wot 0.1.97 → 0.1.100

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,46 @@
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.100](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.1.99...v0.1.100) (2025-11-08)
6
+
7
+ ### [0.1.99](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/compare/v0.5.41...v0.1.99) (2025-11-08)
8
+
9
+
10
+ ### 🚀 Chore | 构建/工程依赖/工具
11
+
12
+ * **release:** 0.5.42 ([d607bbd](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/d607bbdcd29fcfd3c8e19d588f6251c5d00de07f))
13
+
14
+
15
+ ### ✨ Features | 新功能
16
+
17
+ * 优化样式 ([0a1bfce](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/0a1bfce8ae529647eeadcc5188e9218dffb1d051))
18
+ * 支持二维码 ([18a1730](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/18a17306334e84fbf2fb1fa31c560864735c8060))
19
+ * 调整依赖 ([e468622](https://gitlab888.30jia.com.cn/tourism-front/zero-code-pro/commit/e468622964f13c5b50d6ee3e7a5c8d39a94bc65f))
20
+
21
+ ### [0.1.98](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.191...v0.1.98) (2025-09-09)
22
+
23
+
24
+ ### 🚀 Chore | 构建/工程依赖/工具
25
+
26
+ * **release:** 0.4.192 ([53322b2](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/53322b29d232e378c8c8af0736e108f271ceb49a))
27
+ * **release:** 0.4.193 ([e80fe5f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e80fe5f95c13fb6e57c0766b637b07b92a0fd680))
28
+ * **release:** 0.4.194 ([6c186f4](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/6c186f4229085d833334a5ce5d1a42af33e850ac))
29
+
30
+
31
+ ### ✨ Features | 新功能
32
+
33
+ * 修改数据 ([dba6096](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/dba60960ab21422e8fc48362c520ea30a7546ada))
34
+ * 兼容showTabbar ([e33c2d1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e33c2d10c602dd5b188dfeff0a60a70f21e8d9bb))
35
+ * 兼容跳转 ([13b1e44](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/13b1e4494dfdf2d13764fcc685b6f062353aa57a))
36
+ * 支持supportClickScroll ([1c0113f](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/1c0113f9574401a24a1482f92e242d2061a89362))
37
+ * 新增priceAlignLeft tag颜色 ([243a5d8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/243a5d8b2ca35d361d6437a1aa87ce5550f49ced))
38
+ * 补充部分文档 ([813e0f3](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/813e0f36a61be48326e446c6ebbcab28102b9a33))
39
+
40
+
41
+ ### 🐛 Bug Fixes | Bug 修复
42
+
43
+ * 修改文档错误 ([e2672ed](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/e2672ed0f2f80c04731accd2ffbe12fb1224867a))
44
+
5
45
  ### [0.1.97](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.4.169...v0.1.97) (2025-07-26)
6
46
 
7
47
 
@@ -116,14 +116,14 @@ function wrapPhoto({ photo, width = 100, type = 1 }: any) {
116
116
  if (isVideoUrl(photo)) {
117
117
  const suffix = isctyun
118
118
  ? `${sym}x-amz-process=video/snapshot,t_2000,w_${finalWidth},m_lfit`
119
- : `${sym}x-oss-process=video/snapshot,t_2000,w_${finalWidth}&imageView2/2/w/${finalWidth}`
119
+ : `${sym}x-oss-process=video/snapshot,t_2000,w_${finalWidth}/format,webp&imageView2/2/w/${finalWidth}`
120
120
  const url = `${photo}${suffix}`
121
121
  console.log(url, 'url')
122
122
  return url
123
123
  }
124
124
  const suffix = isctyun
125
125
  ? `${sym}x-amz-process=image/resize,w_${finalWidth},m_lfit`
126
- : `${sym}x-oss-process=image/resize,m_mfit,w_${finalWidth}&imageView2/2/w/${finalWidth}`
126
+ : `${sym}x-oss-process=image/resize,m_mfit,w_${finalWidth}/format,webp&imageView2/2/w/${finalWidth}`
127
127
  const url = `${photo}${suffix}`
128
128
  return url
129
129
  }
@@ -370,6 +370,8 @@ export default {
370
370
  size,
371
371
  width: size,
372
372
  height: size,
373
+ canvasWidth: size * 1.08,
374
+ canvasHeight: size * 1.08,
373
375
  })
374
376
  },
375
377
  /**
@@ -447,6 +449,7 @@ export default {
447
449
  this.templateOptions = this.getTemplateOptions()
448
450
  /* uQRCode选项 */
449
451
  this.uqrcodeOptions = this.getUqrcodeOptions()
452
+ console.log('this.templateOptions', this.templateOptions)
450
453
  /* 纠错等级兼容字母写法 */
451
454
  if (typeof this.uqrcodeOptions.errorCorrectLevel === 'string') {
452
455
  this.uqrcodeOptions.errorCorrectLevel =
@@ -685,6 +688,9 @@ export default {
685
688
  callback.complete = () => {}
686
689
  }
687
690
 
691
+ // 先更新模板选项的尺寸,确保容器大小正确
692
+ this.templateOptions = this.getTemplateOptions()
693
+
688
694
  this.resetCanvas(() => {
689
695
  clearTimeout(this.makeDelegate)
690
696
  this.makeDelegate = setTimeout(() => {
@@ -76,6 +76,15 @@ export const tabsProps = {
76
76
  * 字体粗细
77
77
  */
78
78
  itemFontWeight: makeStringProp('normal'),
79
+
80
+ /**
81
+ * 活动状态字体粗细
82
+ */
83
+ activeFontWeight: makeStringProp('normal'),
84
+ /**
85
+ * 活动状态字体大小
86
+ */
87
+ activeFontSize: makeStringProp(28),
79
88
  }
80
89
 
81
90
  export type TabsProps = ExtractPropTypes<typeof tabsProps>
@@ -21,7 +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="`color:${state.activeIndex === index ? color : inactiveColor};font-size:${itemFontSize}rpx;font-weight:${itemFontWeight}`"
24
+ :style="`color:${state.activeIndex === index ? color : inactiveColor};font-size:${state.activeIndex === index ? activeFontSize : itemFontSize}rpx;font-weight:${state.activeIndex === index ? activeFontWeight : itemFontWeight}`"
25
25
  >
26
26
  {{ item.title }}
27
27
  </view>
@@ -58,7 +58,7 @@
58
58
  >
59
59
  <view
60
60
  :class="`wd-tabs__map-nav-btn ${state.activeIndex === index ? 'is-active' : ''} ${item.disabled ? 'is-disabled' : ''}`"
61
- :style="`color:${state.activeIndex === index ? color : inactiveColor};font-size:${itemFontSize}rpx;font-weight:${itemFontWeight}`"
61
+ :style="`color:${state.activeIndex === index ? color : inactiveColor};font-size:${state.activeIndex === index ? activeFontSize : itemFontSize}rpx;font-weight:${state.activeIndex === index ? activeFontWeight : itemFontWeight}`"
62
62
  >
63
63
  {{ item.title }}
64
64
  </view>
@@ -110,7 +110,7 @@
110
110
  @click="handleSelect(index)"
111
111
  :key="index"
112
112
  :class="`wd-tabs__nav-item ${state.activeIndex === index ? 'is-active' : ''} ${item.disabled ? 'is-disabled' : ''}`"
113
- :style="`color:${state.activeIndex === index ? color : inactiveColor};font-size:${itemFontSize}rpx;font-weight:${itemFontWeight}`"
113
+ :style="`color:${state.activeIndex === index ? color : inactiveColor};font-size:${state.activeIndex === index ? activeFontSize : itemFontSize}rpx;font-weight:${state.activeIndex === index ? activeFontWeight : itemFontWeight}`"
114
114
  >
115
115
  {{ item.title }}
116
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.97",
4
+ "version": "0.1.100",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",
@@ -103,6 +103,20 @@ export declare const tabsProps: {
103
103
  type: import('vue').PropType<string>
104
104
  default: string
105
105
  }
106
+ /**
107
+ * 活动状态字体粗细
108
+ */
109
+ activeFontWeight: {
110
+ type: import('vue').PropType<string>
111
+ default: string
112
+ }
113
+ /**
114
+ * 活动状态字体大小
115
+ */
116
+ activeFontSize: {
117
+ type: import('vue').PropType<number>
118
+ default: number
119
+ }
106
120
  customStyle: {
107
121
  type: import('vue').PropType<string>
108
122
  default: string
@@ -55,6 +55,14 @@ declare const _default: __VLS_WithTemplateSlots<
55
55
  type: import('vue').PropType<string>
56
56
  default: string
57
57
  }
58
+ activeFontWeight: {
59
+ type: import('vue').PropType<string>
60
+ default: string
61
+ }
62
+ activeFontSize: {
63
+ type: import('vue').PropType<number>
64
+ default: number
65
+ }
58
66
  customStyle: {
59
67
  type: import('vue').PropType<string>
60
68
  default: string
@@ -138,6 +146,14 @@ declare const _default: __VLS_WithTemplateSlots<
138
146
  type: import('vue').PropType<string>
139
147
  default: string
140
148
  }
149
+ activeFontWeight: {
150
+ type: import('vue').PropType<string>
151
+ default: string
152
+ }
153
+ activeFontSize: {
154
+ type: import('vue').PropType<number>
155
+ default: number
156
+ }
141
157
  customStyle: {
142
158
  type: import('vue').PropType<string>
143
159
  default: string
@@ -169,6 +185,8 @@ declare const _default: __VLS_WithTemplateSlots<
169
185
  animated: boolean
170
186
  itemFontSize: number
171
187
  itemFontWeight: string
188
+ activeFontWeight: string
189
+ activeFontSize: number
172
190
  },
173
191
  {}
174
192
  >,