@tplc/wot 0.1.39 → 0.1.41

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.41](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.40...v0.1.41) (2024-11-26)
6
+
7
+ ### [0.1.40](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.80...v0.1.40) (2024-11-26)
8
+
9
+
10
+ ### 🐛 Bug Fixes | Bug 修复
11
+
12
+ * lcb-list兼容小程序 ([065efe8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/065efe8f63c6f58581b227df534c954fbc56cc48))
13
+
14
+
15
+ ### ✨ Features | 新功能
16
+
17
+ * 兼容user-top ([56a04c1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/56a04c189d4379cc7dd83acae5a3dac05bbe9314))
18
+
5
19
  ### [0.1.39](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.38...v0.1.39) (2024-11-24)
6
20
 
7
21
  ### [0.1.38](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.77...v0.1.38) (2024-11-24)
@@ -5,7 +5,7 @@ export const backtopProps = {
5
5
  /**
6
6
  * 页面滚动距离
7
7
  */
8
- scrollTop: makeRequiredProp(Number),
8
+ scrollTop: makeNumberProp(Number),
9
9
  /**
10
10
  * 距离顶部多少距离时显示
11
11
  */
@@ -28,18 +28,15 @@ export default {
28
28
  </script>
29
29
 
30
30
  <script lang="ts" setup>
31
- import { computed } from 'vue'
31
+ import { computed, inject, Ref } from 'vue'
32
32
  import { backtopProps } from './types'
33
-
33
+ const scrollTop = inject('page-scroll-top') as Ref<number>
34
34
  const props = defineProps(backtopProps)
35
35
 
36
- const show = computed(() => props.scrollTop > props.top)
36
+ const show = computed(() => scrollTop.value > props.top)
37
37
 
38
38
  function handleBacktop() {
39
- uni.pageScrollTo({
40
- scrollTop: 0,
41
- duration: props.duration,
42
- })
39
+ scrollTop.value = 0
43
40
  }
44
41
  </script>
45
42
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "@tplc/wot",
3
3
  "name": "@tplc/wot",
4
- "version": "0.1.39",
4
+ "version": "0.1.41",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",
@@ -4,7 +4,7 @@ export declare const backtopProps: {
4
4
  */
5
5
  scrollTop: {
6
6
  type: NumberConstructor
7
- required: true
7
+ default: NumberConstructor
8
8
  }
9
9
  /**
10
10
  * 距离顶部多少距离时显示
@@ -3,7 +3,7 @@ declare const _default: __VLS_WithTemplateSlots<
3
3
  {
4
4
  scrollTop: {
5
5
  type: NumberConstructor
6
- required: true
6
+ default: NumberConstructor
7
7
  }
8
8
  top: {
9
9
  type: NumberConstructor
@@ -55,7 +55,7 @@ declare const _default: __VLS_WithTemplateSlots<
55
55
  import('vue').ExtractPropTypes<{
56
56
  scrollTop: {
57
57
  type: NumberConstructor
58
- required: true
58
+ default: NumberConstructor
59
59
  }
60
60
  top: {
61
61
  type: NumberConstructor
@@ -101,6 +101,7 @@ declare const _default: __VLS_WithTemplateSlots<
101
101
  customStyle: string
102
102
  customClass: string
103
103
  bottom: number
104
+ scrollTop: number
104
105
  top: number
105
106
  iconStyle: string
106
107
  shape: string