@tplc/wot 0.1.41 → 0.1.43

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.43](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.2.35...v0.1.43) (2024-12-26)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * home-search 新增配置 ([9a2f148](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/9a2f1482f0f813f4d310c57b1cc865d9c8cb9793))
11
+
12
+ ### [0.1.42](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.41...v0.1.42) (2024-11-27)
13
+
14
+
15
+ ### ✨ Features | 新功能
16
+
17
+ * 跳转 wd-backtop 滚动方式 ([2844471](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/28444716c8382777b1c74141a7d08611a304ee18))
18
+
5
19
  ### [0.1.41](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.40...v0.1.41) (2024-11-26)
6
20
 
7
21
  ### [0.1.40](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.80...v0.1.40) (2024-11-26)
@@ -204,10 +204,10 @@
204
204
 
205
205
  @include e(view) {
206
206
  @include when(show-confirm) {
207
- height: 394px;
207
+ height: 644px;
208
208
 
209
209
  @include when(range) {
210
- height: 384px;
210
+ height: 634px;
211
211
  }
212
212
  }
213
213
  }
@@ -225,7 +225,7 @@ const emit = defineEmits(['cancel', 'change', 'update:modelValue', 'confirm'])
225
225
  const pickerShow = ref<boolean>(false)
226
226
  const calendarValue = ref<null | number | number[]>(null)
227
227
  const lastCalendarValue = ref<null | number | number[]>(null)
228
- const panelHeight = ref<number>(338)
228
+ const panelHeight = ref<number>(588)
229
229
  const confirmBtnDisabled = ref<boolean>(true)
230
230
  const currentTab = ref<number>(0)
231
231
  const lastTab = ref<number>(0)
@@ -284,7 +284,7 @@ watch(
284
284
  newValue.indexOf('range') > -1 ? rangeTabs.indexOf(newValue) || 0 : tabs.indexOf(newValue)
285
285
  currentTab.value = index
286
286
  }
287
- panelHeight.value = props.showConfirm ? 338 : 400
287
+ panelHeight.value = props.showConfirm ? 588 : 650
288
288
  currentType.value = deepClone(newValue)
289
289
  },
290
290
  {
@@ -296,7 +296,7 @@ watch(
296
296
  watch(
297
297
  () => props.showConfirm,
298
298
  (val) => {
299
- panelHeight.value = val ? 338 : 400
299
+ panelHeight.value = val ? 588 : 650
300
300
  },
301
301
  {
302
302
  deep: true,
@@ -126,7 +126,7 @@ watch(
126
126
  )
127
127
 
128
128
  onBeforeMount(() => {
129
- pixelRatio.value = uni.getSystemInfoSync().pixelRatio
129
+ pixelRatio.value = uni.getWindowInfo().pixelRatio
130
130
  })
131
131
 
132
132
  onMounted(() => {
@@ -70,7 +70,7 @@ watch(
70
70
  )
71
71
 
72
72
  onBeforeMount(() => {
73
- windowHeight.value = uni.getSystemInfoSync().windowHeight
73
+ windowHeight.value = uni.getWindowInfo().windowHeight
74
74
  })
75
75
 
76
76
  function noop(event: Event) {
@@ -114,7 +114,7 @@ const bounding = reactive({
114
114
  })
115
115
 
116
116
  async function getBounding() {
117
- const sysInfo = uni.getSystemInfoSync()
117
+ const sysInfo = uni.getWindowInfo()
118
118
  try {
119
119
  const trigerInfo = await getRect('#trigger', false, proxy)
120
120
  fabSize.value = trigerInfo.width || 56
@@ -32,7 +32,7 @@ const rootStyle = computed(() => {
32
32
  rootStyle.height = addUnit(props.height)
33
33
  }
34
34
  if (props.safeAreaTop) {
35
- const { statusBarHeight } = uni.getSystemInfoSync()
35
+ const { statusBarHeight } = uni.getWindowInfo()
36
36
  rootStyle.paddingTop = addUnit(statusBarHeight || 0)
37
37
  }
38
38
  return `${objToStyle(rootStyle)};${props.customStyle}`
@@ -148,8 +148,8 @@ const imgScale = ref<number>(1)
148
148
  // imgWidth: null,
149
149
  // imgHeight: null,
150
150
  // 图片中心轴点距左的距离
151
- const imgLeft = ref<number>(uni.getSystemInfoSync().windowWidth / 2)
152
- const imgTop = ref<number>((uni.getSystemInfoSync().windowHeight / 2) * TOP_PERCENT)
151
+ const imgLeft = ref<number>(uni.getWindowInfo().windowWidth / 2)
152
+ const imgTop = ref<number>((uni.getWindowInfo().windowHeight / 2) * TOP_PERCENT)
153
153
 
154
154
  const imgInfo = ref<UniApp.GetImageInfoSuccessData | null>(null)
155
155
  const info = ref<UniApp.GetSystemInfoResult>(uni.getSystemInfoSync())
@@ -294,7 +294,7 @@ function setRoate(angle: number) {
294
294
  * 初始化图片的大小和角度以及距离
295
295
  */
296
296
  function resetImg() {
297
- const { windowHeight, windowWidth } = uni.getSystemInfoSync()
297
+ const { windowHeight, windowWidth } = uni.getWindowInfo()
298
298
  imgScale.value = 1
299
299
  imgAngle.value = 0
300
300
  imgLeft.value = windowWidth / 2
@@ -188,9 +188,10 @@ function dispatchChangeEvent(value: string | number, change: boolean = true) {
188
188
  if (isEqual(inputValue.value, value)) {
189
189
  return
190
190
  }
191
+ const mode = inputValue.value > value ? 'sub' : 'add'
191
192
  inputValue.value = value
192
193
  change && emit('update:modelValue', inputValue.value)
193
- change && emit('change', { value })
194
+ change && emit('change', { value, mode })
194
195
  }
195
196
 
196
197
  function formatValue(value: string | number) {
@@ -83,7 +83,7 @@ const emit = defineEmits(['click-left', 'click-right'])
83
83
 
84
84
  const height = ref<number | ''>('') // 占位高度
85
85
 
86
- const { statusBarHeight } = uni.getSystemInfoSync()
86
+ const { statusBarHeight } = uni.getWindowInfo()
87
87
 
88
88
  watch(
89
89
  [() => props.fixed, () => props.placeholder],
@@ -97,7 +97,7 @@ const rootClass = computed(() => {
97
97
  onBeforeMount(() => {
98
98
  observerTransition()
99
99
  if (props.safeAreaInsetBottom) {
100
- const { safeArea, screenHeight, safeAreaInsets } = uni.getSystemInfoSync()
100
+ const { safeArea, screenHeight, safeAreaInsets } = uni.getWindowInfo()
101
101
 
102
102
  if (safeArea) {
103
103
  // #ifdef MP-WEIXIN
@@ -501,7 +501,7 @@ export default {
501
501
  this.templateOptions.canvasHeight = qr.size
502
502
  this.templateOptions.canvasTransform = ''
503
503
  /* 使用dynamicSize+scale,可以解决小块间出现白线问题,dpr可以解决模糊问题 */
504
- const dpr = uni.getSystemInfoSync().pixelRatio
504
+ const dpr = uni.getWindowInfo().pixelRatio
505
505
  canvas.width = qr.dynamicSize * dpr
506
506
  canvas.height = qr.dynamicSize * dpr
507
507
  canvasContext.scale(dpr, dpr)
@@ -817,7 +817,7 @@ export default {
817
817
  }
818
818
  // #endif
819
819
  // #ifdef APP-NVUE
820
- const dpr = uni.getSystemInfoSync().pixelRatio
820
+ const dpr = uni.getWindowInfo().pixelRatio
821
821
  this.canvasContext.toTempFilePath(
822
822
  0,
823
823
  0,
@@ -88,7 +88,7 @@ const innerOffsetTop = computed(() => {
88
88
 
89
89
  // 如果是小程序 需要 44+statusBar高度
90
90
  // #ifdef MP
91
- top = 44 + (uni.getSystemInfoSync().statusBarHeight || 0)
91
+ top = 44 + (uni.getWindowInfo().statusBarHeight || 0)
92
92
  // #endif
93
93
 
94
94
  return top + props.offsetTop
@@ -50,7 +50,7 @@ const waterMarkUrl = ref<string>('') // canvas生成base64水印
50
50
  const canvasOffScreenable = ref<boolean>(
51
51
  uni.canIUse('createOffscreenCanvas') && Boolean(uni.createOffscreenCanvas),
52
52
  ) // 是否可以使用离屏canvas
53
- const pixelRatio = ref<number>(uni.getSystemInfoSync().pixelRatio) // 像素比
53
+ const pixelRatio = ref<number>(uni.getWindowInfo().pixelRatio) // 像素比
54
54
  const canvasHeight = ref<number>((props.height + props.gutterY) * pixelRatio.value) // canvas画布高度
55
55
  const canvasWidth = ref<number>((props.width + props.gutterX) * pixelRatio.value) // canvas画布宽度
56
56
  const showCanvas = ref<boolean>(true) // 是否展示canvas
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "@tplc/wot",
3
3
  "name": "@tplc/wot",
4
- "version": "0.1.41",
4
+ "version": "0.1.43",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",
@@ -9,13 +9,6 @@
9
9
  "vue3",
10
10
  "暗黑模式"
11
11
  ],
12
- "scripts": {
13
- "pub": "pnpm dts && pnpm publish --no-git-checks",
14
- "dts": "rm -rf types && vue-tsc --project ./tsconfig.dts.json && pnpm prettier --write types",
15
- "release-major": "standard-version --release-as major ",
16
- "release-minor": "standard-version --release-as minor",
17
- "release-patch": "standard-version --release-as patch "
18
- },
19
12
  "main": "index.ts",
20
13
  "peerDependencies": {
21
14
  "vue": ">=3.2.47"
@@ -33,5 +26,12 @@
33
26
  },
34
27
  "devDependencies": {
35
28
  "standard-version": "^9.5.0"
29
+ },
30
+ "scripts": {
31
+ "pub": "pnpm dts && pnpm publish --no-git-checks",
32
+ "dts": "rm -rf types && vue-tsc --project ./tsconfig.dts.json && pnpm prettier --write types",
33
+ "release-major": "standard-version --release-as major ",
34
+ "release-minor": "standard-version --release-as minor",
35
+ "release-patch": "standard-version --release-as patch "
36
36
  }
37
- }
37
+ }