@tplc/wot 0.1.40 → 0.1.42

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,15 @@
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.42](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.41...v0.1.42) (2024-11-27)
6
+
7
+
8
+ ### ✨ Features | 新功能
9
+
10
+ * 跳转 wd-backtop 滚动方式 ([2844471](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/commit/28444716c8382777b1c74141a7d08611a304ee18))
11
+
12
+ ### [0.1.41](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.1.40...v0.1.41) (2024-11-26)
13
+
5
14
  ### [0.1.40](http://gitlab888.30jia.com.cn/bhBank/zero-code-pro/compare/v0.0.80...v0.1.40) (2024-11-26)
6
15
 
7
16
 
@@ -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
  */
@@ -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) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "id": "@tplc/wot",
3
3
  "name": "@tplc/wot",
4
- "version": "0.1.40",
4
+ "version": "0.1.42",
5
5
  "keywords": [
6
6
  "wot-design-uni",
7
7
  "国际化",
@@ -9,6 +9,13 @@
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
+ },
12
19
  "main": "index.ts",
13
20
  "peerDependencies": {
14
21
  "vue": ">=3.2.47"
@@ -26,12 +33,5 @@
26
33
  },
27
34
  "devDependencies": {
28
35
  "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
+ }
@@ -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