@v-c/select 1.2.4 → 1.2.5
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/dist/BaseSelect/index.js
CHANGED
|
@@ -430,6 +430,11 @@ var BaseSelect = /* @__PURE__ */ defineComponent((props, { expose, attrs }) => {
|
|
|
430
430
|
required: false,
|
|
431
431
|
default: void 0
|
|
432
432
|
},
|
|
433
|
+
autoComplete: {
|
|
434
|
+
type: String,
|
|
435
|
+
required: false,
|
|
436
|
+
default: void 0
|
|
437
|
+
},
|
|
433
438
|
placeholder: {
|
|
434
439
|
type: [
|
|
435
440
|
Object,
|
package/dist/Select.js
CHANGED
|
@@ -64,7 +64,7 @@ var Input = /* @__PURE__ */ defineComponent((props, { expose, attrs }) => {
|
|
|
64
64
|
}, { immediate: true });
|
|
65
65
|
return () => {
|
|
66
66
|
const { style, autoComplete, className, value, readOnly } = props;
|
|
67
|
-
const { prefixCls, autoFocus, placeholder } = selectInputContext.value ?? {};
|
|
67
|
+
const { prefixCls, autoFocus, autoComplete: contextAutoComplete, placeholder } = selectInputContext.value ?? {};
|
|
68
68
|
const { input: InputComponent = "input" } = selectInputContext.value?.components ?? {};
|
|
69
69
|
const { styles, id, classNames, open, activeDescendantId, role, disabled } = baseProps.value ?? {};
|
|
70
70
|
const inputCls = clsx(`${prefixCls}-input`, classNames?.input, className);
|
|
@@ -80,7 +80,7 @@ var Input = /* @__PURE__ */ defineComponent((props, { expose, attrs }) => {
|
|
|
80
80
|
"--select-input-width": widthCssVar.value
|
|
81
81
|
},
|
|
82
82
|
autoFocus,
|
|
83
|
-
"autocomplete": autoComplete
|
|
83
|
+
"autocomplete": autoComplete ?? contextAutoComplete ?? "new-password",
|
|
84
84
|
"class": inputCls,
|
|
85
85
|
disabled,
|
|
86
86
|
"value": value || "",
|
|
@@ -29,6 +29,7 @@ export interface SelectInputProps {
|
|
|
29
29
|
onSelectorRemove?: (value: DisplayValueType) => void;
|
|
30
30
|
maxLength?: number;
|
|
31
31
|
autoFocus?: boolean;
|
|
32
|
+
autoComplete?: string;
|
|
32
33
|
/** Check if `tokenSeparators` contains `\n` or `\r\n` */
|
|
33
34
|
tokenWithEnter?: boolean;
|
|
34
35
|
className?: string;
|
|
@@ -22,6 +22,7 @@ var DEFAULT_OMIT_PROPS = [
|
|
|
22
22
|
"onPopupScroll",
|
|
23
23
|
"tabIndex",
|
|
24
24
|
"activeValue",
|
|
25
|
+
"autoComplete",
|
|
25
26
|
"onSelectorRemove",
|
|
26
27
|
"focused"
|
|
27
28
|
];
|
|
@@ -316,6 +317,11 @@ var SelectInput = /* @__PURE__ */ defineComponent((props, { attrs, expose, slots
|
|
|
316
317
|
required: false,
|
|
317
318
|
default: void 0
|
|
318
319
|
},
|
|
320
|
+
autoComplete: {
|
|
321
|
+
type: String,
|
|
322
|
+
required: false,
|
|
323
|
+
default: void 0
|
|
324
|
+
},
|
|
319
325
|
tokenWithEnter: {
|
|
320
326
|
type: Boolean,
|
|
321
327
|
required: false,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v-c/select",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.2.
|
|
4
|
+
"version": "1.2.5",
|
|
5
5
|
"description": "",
|
|
6
6
|
"author": "",
|
|
7
7
|
"license": "MIT",
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@v-c/overflow": "^1.1.1",
|
|
38
|
-
"@v-c/trigger": "^1.1.
|
|
39
|
-
"@v-c/
|
|
40
|
-
"@v-c/
|
|
38
|
+
"@v-c/trigger": "^1.1.1",
|
|
39
|
+
"@v-c/virtual-list": "^1.1.1",
|
|
40
|
+
"@v-c/util": "^1.1.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "vite build",
|