sard-uniapp 1.7.0 → 1.7.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/changelog.md CHANGED
@@ -1,9 +1,18 @@
1
+ ## [1.7.1](https://github.com/sutras/sard-uniapp/compare/v1.7.0...v1.7.1) (2024-09-20)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * 修复 input 获取焦点时的光标位置 ([b952ac3](https://github.com/sutras/sard-uniapp/commit/b952ac3ad5fad3a8c824f3613e6b3b69919bc6b1))
7
+
8
+
9
+
1
10
  # [1.7.0](https://github.com/sutras/sard-uniapp/compare/v1.6.1...v1.7.0) (2024-09-18)
2
11
 
3
12
 
4
13
  ### Features
5
14
 
6
- * 新增全局配置 ([9390127](https://github.com/sutras/sard-uniapp/commit/93901273d0b347aa03587fa5fd834d36ba158356))
15
+ * 新增全局配置 ([c426117](https://github.com/sutras/sard-uniapp/commit/c4261171903d56740920e6930693a797cbb6309f))
7
16
 
8
17
 
9
18
 
@@ -127,6 +127,12 @@ export declare const defaultConfig: {
127
127
  disableDefaultPadding: boolean;
128
128
  modelValue: string;
129
129
  validateEvent: boolean;
130
+ cursorSpacing: number;
131
+ confirmType: "done" | "search" | "send" | "next" | "go" | undefined;
132
+ cursor: number;
133
+ selectionStart: number;
134
+ selectionEnd: number;
135
+ inputmode: "text" | "search" | "none" | "decimal" | "numeric" | "tel" | "email" | "url" | undefined;
130
136
  };
131
137
  keyboard: {
132
138
  type: "number" | "digit" | "idcard" | "random" | "plate" | undefined;
@@ -124,6 +124,12 @@ export const defaultConfig = {
124
124
  disableDefaultPadding: true,
125
125
  modelValue: '',
126
126
  validateEvent: true,
127
+ cursorSpacing: 30,
128
+ confirmType: 'done',
129
+ cursor: -1,
130
+ selectionStart: -1,
131
+ selectionEnd: -1,
132
+ inputmode: 'text',
127
133
  },
128
134
  keyboard: {
129
135
  type: 'number',
@@ -54,6 +54,12 @@ export declare const defaultInputProps: {
54
54
  disableDefaultPadding: boolean;
55
55
  modelValue: string;
56
56
  validateEvent: boolean;
57
+ cursorSpacing: number;
58
+ confirmType: "done" | "search" | "send" | "next" | "go" | undefined;
59
+ cursor: number;
60
+ selectionStart: number;
61
+ selectionEnd: number;
62
+ inputmode: "text" | "search" | "none" | "decimal" | "numeric" | "tel" | "email" | "url" | undefined;
57
63
  };
58
64
  export interface InputSlots {
59
65
  prepend?(props: Record<string, never>): any;
@@ -7,6 +7,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
7
7
  disableDefaultPadding: boolean;
8
8
  modelValue: string;
9
9
  validateEvent: boolean;
10
+ cursorSpacing: number;
11
+ confirmType: "done" | "search" | "send" | "next" | "go" | undefined;
12
+ cursor: number;
13
+ selectionStart: number;
14
+ selectionEnd: number;
15
+ inputmode: "text" | "search" | "none" | "decimal" | "numeric" | "tel" | "email" | "url" | undefined;
10
16
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
11
17
  "update:model-value": (value: string) => void;
12
18
  clear: () => void;
@@ -23,6 +29,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
23
29
  disableDefaultPadding: boolean;
24
30
  modelValue: string;
25
31
  validateEvent: boolean;
32
+ cursorSpacing: number;
33
+ confirmType: "done" | "search" | "send" | "next" | "go" | undefined;
34
+ cursor: number;
35
+ selectionStart: number;
36
+ selectionEnd: number;
37
+ inputmode: "text" | "search" | "none" | "decimal" | "numeric" | "tel" | "email" | "url" | undefined;
26
38
  }>>> & {
27
39
  "onUpdate:model-value"?: ((value: string) => any) | undefined;
28
40
  onFocus?: ((event: any) => any) | undefined;
@@ -33,12 +45,18 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
33
45
  onKeyboardheightchange?: ((event: any) => any) | undefined;
34
46
  }, {
35
47
  modelValue: string | number;
48
+ confirmType: "done" | "search" | "send" | "next" | "go";
49
+ inputmode: "text" | "search" | "none" | "decimal" | "numeric" | "tel" | "email" | "url";
36
50
  validateEvent: boolean;
37
51
  maxlength: number;
38
52
  adjustPosition: boolean;
39
53
  ignoreCompositionEvent: boolean;
40
54
  showConfirmBar: boolean;
41
55
  disableDefaultPadding: boolean;
56
+ cursorSpacing: number;
57
+ cursor: number;
58
+ selectionStart: number;
59
+ selectionEnd: number;
42
60
  }, {}>, Readonly<InputSlots> & InputSlots>;
43
61
  export default _default;
44
62
  type __VLS_WithDefaults<P, D> = {
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.7.0",
5
+ "version": "1.7.1",
6
6
  "type": "module",
7
7
  "description": "sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库",
8
8
  "keywords": [