@tplc/wot 0.1.39 → 0.1.40

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,18 @@
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.40](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.80...v0.1.40) (2024-11-26)
6
+
7
+
8
+ ### 🐛 Bug Fixes | Bug 修复
9
+
10
+ * lcb-list兼容小程序 ([065efe8](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/065efe8f63c6f58581b227df534c954fbc56cc48))
11
+
12
+
13
+ ### ✨ Features | 新功能
14
+
15
+ * 兼容user-top ([56a04c1](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/56a04c189d4379cc7dd83acae5a3dac05bbe9314))
16
+
5
17
  ### [0.1.39](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.38...v0.1.39) (2024-11-24)
6
18
 
7
19
  ### [0.1.38](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.77...v0.1.38) (2024-11-24)
@@ -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.40",
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
+ }