sard-uniapp 1.6.0-rc2 → 1.6.1

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/README.md CHANGED
@@ -6,10 +6,6 @@
6
6
 
7
7
  <p align="center">sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库。</p>
8
8
 
9
- <p align="center">
10
- 📖 <a href="http://sutras.gitee.io/sard-uniapp-docs">文档 (gitee)</a>&nbsp;&nbsp;&nbsp;&nbsp;
11
- 🧑🏻‍🏫 <a href="http://sutras.gitee.io/sard-uniapp-docs/mobile/">案例演示 (gitee)</a>&nbsp;&nbsp;&nbsp;&nbsp;
12
- </p>
13
9
  <p align="center">
14
10
  📖 <a href="http://sutras.github.io/sard-uniapp-docs">文档 (github)</a>&nbsp;&nbsp;&nbsp;&nbsp;
15
11
  🧑🏻‍🏫 <a href="http://sutras.github.io/sard-uniapp-docs/mobile/">案例演示 (github)</a>&nbsp;&nbsp;&nbsp;&nbsp;
package/changelog.md CHANGED
@@ -1,4 +1,14 @@
1
- # [1.6.0-rc2](https://github.com/sutras/sard-uniapp/compare/v1.5.0...v1.6.0-rc2) (2024-08-19)
1
+ ## [1.6.1](https://github.com/sutras/sard-uniapp/compare/v1.6.0...v1.6.1) (2024-08-30)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * count-down stop timer before unmount ([be96b3d](https://github.com/sutras/sard-uniapp/commit/be96b3da62544250a45031f7f1e68d42652a37de))
7
+ * fix type of 'confirm-hold' in sard-input ([1ac21df](https://github.com/sutras/sard-uniapp/commit/1ac21dfff5d01a83ab1e0205256c36fb53c1b821))
8
+
9
+
10
+
11
+ # [1.6.0](https://github.com/sutras/sard-uniapp/compare/v1.5.0...v1.6.0) (2024-08-19)
2
12
 
3
13
 
4
14
  ### Features
@@ -6,7 +6,7 @@
6
6
 
7
7
  <script>
8
8
  import { mergeDefaults as _mergeDefaults, defineComponent as _defineComponent } from "vue";
9
- import { computed, onMounted, ref, watch } from "vue";
9
+ import { computed, onBeforeUnmount, onMounted, ref, watch } from "vue";
10
10
  import {
11
11
  getCurrentTime,
12
12
  formatTime,
@@ -89,6 +89,9 @@ export default _defineComponent({
89
89
  start();
90
90
  }
91
91
  });
92
+ onBeforeUnmount(() => {
93
+ pause();
94
+ });
92
95
  const __returned__ = { props, emit, remainTime, get endTime() {
93
96
  return endTime;
94
97
  }, set endTime(v) {
@@ -9,7 +9,7 @@ export interface InputProps {
9
9
  cursorSpacing?: number;
10
10
  cursor?: number;
11
11
  confirmType?: 'send' | 'search' | 'next' | 'go' | 'done';
12
- confirmHold?: number;
12
+ confirmHold?: boolean;
13
13
  selectionStart?: number;
14
14
  selectionEnd?: number;
15
15
  adjustPosition?: boolean;
@@ -144,7 +144,7 @@ export default _defineComponent({
144
144
  cursorSpacing: { type: Number, required: false },
145
145
  cursor: { type: Number, required: false },
146
146
  confirmType: { type: String, required: false },
147
- confirmHold: { type: Number, required: false },
147
+ confirmHold: { type: Boolean, required: false },
148
148
  selectionStart: { type: Number, required: false },
149
149
  selectionEnd: { type: Number, required: false },
150
150
  adjustPosition: { type: Boolean, required: false },
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "id": "sard-uniapp",
3
3
  "name": "sard-uniapp",
4
4
  "displayName": "sard-uniapp",
5
- "version": "1.6.0-rc2",
5
+ "version": "1.6.1",
6
6
  "type": "module",
7
7
  "description": "sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库",
8
8
  "keywords": [