@manohub/ui 1.1.0 → 1.1.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.
|
@@ -120,6 +120,11 @@ declare const InputBase: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
120
120
|
type: BooleanConstructor;
|
|
121
121
|
default: boolean;
|
|
122
122
|
};
|
|
123
|
+
/** 浏览器自动填充提示;**缺省 `off`**(本库不猜业务语义 —— 身份 / 登录字段请显式给 `username` / `current-password`) */
|
|
124
|
+
autocomplete: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
123
128
|
/** 值变更回调(每次输入都调) */
|
|
124
129
|
onChange: {
|
|
125
130
|
type: PropType<(v: string) => void>;
|
|
@@ -244,6 +249,11 @@ declare const InputBase: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
244
249
|
type: BooleanConstructor;
|
|
245
250
|
default: boolean;
|
|
246
251
|
};
|
|
252
|
+
/** 浏览器自动填充提示;**缺省 `off`**(本库不猜业务语义 —— 身份 / 登录字段请显式给 `username` / `current-password`) */
|
|
253
|
+
autocomplete: {
|
|
254
|
+
type: StringConstructor;
|
|
255
|
+
default: string;
|
|
256
|
+
};
|
|
247
257
|
/** 值变更回调(每次输入都调) */
|
|
248
258
|
onChange: {
|
|
249
259
|
type: PropType<(v: string) => void>;
|
|
@@ -291,6 +301,7 @@ declare const InputBase: import("vue").DefineComponent<import("vue").ExtractProp
|
|
|
291
301
|
status: InputStatus;
|
|
292
302
|
as: "button" | "input";
|
|
293
303
|
readonly: boolean;
|
|
304
|
+
autocomplete: string;
|
|
294
305
|
bordered: boolean | "focus";
|
|
295
306
|
onEnter: (v: string) => void;
|
|
296
307
|
clearable: boolean;
|
|
@@ -406,6 +417,11 @@ export declare const Textarea: import("vue").DefineComponent<import("vue").Extra
|
|
|
406
417
|
type: BooleanConstructor;
|
|
407
418
|
default: boolean;
|
|
408
419
|
};
|
|
420
|
+
/** 浏览器自动填充提示;**缺省 `off`**(口径见 `Input` 的同名 prop) */
|
|
421
|
+
autocomplete: {
|
|
422
|
+
type: StringConstructor;
|
|
423
|
+
default: string;
|
|
424
|
+
};
|
|
409
425
|
onChange: {
|
|
410
426
|
type: PropType<(v: string) => void>;
|
|
411
427
|
default: undefined;
|
|
@@ -472,6 +488,11 @@ export declare const Textarea: import("vue").DefineComponent<import("vue").Extra
|
|
|
472
488
|
type: BooleanConstructor;
|
|
473
489
|
default: boolean;
|
|
474
490
|
};
|
|
491
|
+
/** 浏览器自动填充提示;**缺省 `off`**(口径见 `Input` 的同名 prop) */
|
|
492
|
+
autocomplete: {
|
|
493
|
+
type: StringConstructor;
|
|
494
|
+
default: string;
|
|
495
|
+
};
|
|
475
496
|
onChange: {
|
|
476
497
|
type: PropType<(v: string) => void>;
|
|
477
498
|
default: undefined;
|
|
@@ -490,6 +511,7 @@ export declare const Textarea: import("vue").DefineComponent<import("vue").Extra
|
|
|
490
511
|
modelValue: string;
|
|
491
512
|
status: InputStatus;
|
|
492
513
|
readonly: boolean;
|
|
514
|
+
autocomplete: string;
|
|
493
515
|
bordered: boolean | "focus";
|
|
494
516
|
maxlength: number;
|
|
495
517
|
showCount: boolean;
|
|
@@ -586,6 +608,11 @@ export declare const InputCompound: {
|
|
|
586
608
|
type: BooleanConstructor;
|
|
587
609
|
default: boolean;
|
|
588
610
|
};
|
|
611
|
+
/** 浏览器自动填充提示;**缺省 `off`**(本库不猜业务语义 —— 身份 / 登录字段请显式给 `username` / `current-password`) */
|
|
612
|
+
autocomplete: {
|
|
613
|
+
type: StringConstructor;
|
|
614
|
+
default: string;
|
|
615
|
+
};
|
|
589
616
|
/** 值变更回调(每次输入都调) */
|
|
590
617
|
onChange: {
|
|
591
618
|
type: PropType<(v: string) => void>;
|
|
@@ -635,6 +662,7 @@ export declare const InputCompound: {
|
|
|
635
662
|
status: InputStatus;
|
|
636
663
|
as: "button" | "input";
|
|
637
664
|
readonly: boolean;
|
|
665
|
+
autocomplete: string;
|
|
638
666
|
bordered: boolean | "focus";
|
|
639
667
|
onEnter: (v: string) => void;
|
|
640
668
|
clearable: boolean;
|
|
@@ -744,6 +772,11 @@ export declare const InputCompound: {
|
|
|
744
772
|
type: BooleanConstructor;
|
|
745
773
|
default: boolean;
|
|
746
774
|
};
|
|
775
|
+
/** 浏览器自动填充提示;**缺省 `off`**(本库不猜业务语义 —— 身份 / 登录字段请显式给 `username` / `current-password`) */
|
|
776
|
+
autocomplete: {
|
|
777
|
+
type: StringConstructor;
|
|
778
|
+
default: string;
|
|
779
|
+
};
|
|
747
780
|
/** 值变更回调(每次输入都调) */
|
|
748
781
|
onChange: {
|
|
749
782
|
type: PropType<(v: string) => void>;
|
|
@@ -791,6 +824,7 @@ export declare const InputCompound: {
|
|
|
791
824
|
status: InputStatus;
|
|
792
825
|
as: "button" | "input";
|
|
793
826
|
readonly: boolean;
|
|
827
|
+
autocomplete: string;
|
|
794
828
|
bordered: boolean | "focus";
|
|
795
829
|
onEnter: (v: string) => void;
|
|
796
830
|
clearable: boolean;
|
|
@@ -893,6 +927,11 @@ export declare const InputCompound: {
|
|
|
893
927
|
type: BooleanConstructor;
|
|
894
928
|
default: boolean;
|
|
895
929
|
};
|
|
930
|
+
/** 浏览器自动填充提示;**缺省 `off`**(本库不猜业务语义 —— 身份 / 登录字段请显式给 `username` / `current-password`) */
|
|
931
|
+
autocomplete: {
|
|
932
|
+
type: StringConstructor;
|
|
933
|
+
default: string;
|
|
934
|
+
};
|
|
896
935
|
/** 值变更回调(每次输入都调) */
|
|
897
936
|
onChange: {
|
|
898
937
|
type: PropType<(v: string) => void>;
|
|
@@ -942,6 +981,7 @@ export declare const InputCompound: {
|
|
|
942
981
|
status: InputStatus;
|
|
943
982
|
as: "button" | "input";
|
|
944
983
|
readonly: boolean;
|
|
984
|
+
autocomplete: string;
|
|
945
985
|
bordered: boolean | "focus";
|
|
946
986
|
onEnter: (v: string) => void;
|
|
947
987
|
clearable: boolean;
|
|
@@ -1017,6 +1057,11 @@ export declare const InputCompound: {
|
|
|
1017
1057
|
type: BooleanConstructor;
|
|
1018
1058
|
default: boolean;
|
|
1019
1059
|
};
|
|
1060
|
+
/** 浏览器自动填充提示;**缺省 `off`**(口径见 `Input` 的同名 prop) */
|
|
1061
|
+
autocomplete: {
|
|
1062
|
+
type: StringConstructor;
|
|
1063
|
+
default: string;
|
|
1064
|
+
};
|
|
1020
1065
|
onChange: {
|
|
1021
1066
|
type: PropType<(v: string) => void>;
|
|
1022
1067
|
default: undefined;
|
|
@@ -1083,6 +1128,11 @@ export declare const InputCompound: {
|
|
|
1083
1128
|
type: BooleanConstructor;
|
|
1084
1129
|
default: boolean;
|
|
1085
1130
|
};
|
|
1131
|
+
/** 浏览器自动填充提示;**缺省 `off`**(口径见 `Input` 的同名 prop) */
|
|
1132
|
+
autocomplete: {
|
|
1133
|
+
type: StringConstructor;
|
|
1134
|
+
default: string;
|
|
1135
|
+
};
|
|
1086
1136
|
onChange: {
|
|
1087
1137
|
type: PropType<(v: string) => void>;
|
|
1088
1138
|
default: undefined;
|
|
@@ -1101,6 +1151,7 @@ export declare const InputCompound: {
|
|
|
1101
1151
|
modelValue: string;
|
|
1102
1152
|
status: InputStatus;
|
|
1103
1153
|
readonly: boolean;
|
|
1154
|
+
autocomplete: string;
|
|
1104
1155
|
bordered: boolean | "focus";
|
|
1105
1156
|
maxlength: number;
|
|
1106
1157
|
showCount: boolean;
|
|
@@ -94,6 +94,11 @@ const InputBase = /* @__PURE__ */ defineComponent({
|
|
|
94
94
|
type: Boolean,
|
|
95
95
|
default: false
|
|
96
96
|
},
|
|
97
|
+
/** 浏览器自动填充提示;**缺省 `off`**(本库不猜业务语义 —— 身份 / 登录字段请显式给 `username` / `current-password`) */
|
|
98
|
+
autocomplete: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: "off"
|
|
101
|
+
},
|
|
97
102
|
/** 值变更回调(每次输入都调) */
|
|
98
103
|
onChange: {
|
|
99
104
|
type: Function,
|
|
@@ -226,6 +231,7 @@ const InputBase = /* @__PURE__ */ defineComponent({
|
|
|
226
231
|
"readonly": props.readonly,
|
|
227
232
|
"maxlength": props.maxlength,
|
|
228
233
|
"autofocus": props.autofocus,
|
|
234
|
+
"autocomplete": props.autocomplete,
|
|
229
235
|
"aria-invalid": isInvalid.value ? "true" : void 0,
|
|
230
236
|
"onInput": onInput,
|
|
231
237
|
"onKeydown": onKeydown
|
|
@@ -320,6 +326,11 @@ const Textarea = /* @__PURE__ */ defineComponent({
|
|
|
320
326
|
type: Boolean,
|
|
321
327
|
default: false
|
|
322
328
|
},
|
|
329
|
+
/** 浏览器自动填充提示;**缺省 `off`**(口径见 `Input` 的同名 prop) */
|
|
330
|
+
autocomplete: {
|
|
331
|
+
type: String,
|
|
332
|
+
default: "off"
|
|
333
|
+
},
|
|
323
334
|
onChange: {
|
|
324
335
|
type: Function,
|
|
325
336
|
default: void 0
|
|
@@ -372,6 +383,7 @@ const Textarea = /* @__PURE__ */ defineComponent({
|
|
|
372
383
|
"readonly": props.readonly,
|
|
373
384
|
"maxlength": props.maxlength,
|
|
374
385
|
"autofocus": props.autofocus,
|
|
386
|
+
"autocomplete": props.autocomplete,
|
|
375
387
|
"aria-invalid": isInvalid.value ? "true" : void 0,
|
|
376
388
|
"onInput": onInput
|
|
377
389
|
}), null), showCounter.value ? createVNode("span", {
|
|
@@ -100,6 +100,11 @@ export declare const NumberInput: import("vue").DefineComponent<import("vue").Ex
|
|
|
100
100
|
type: BooleanConstructor;
|
|
101
101
|
default: boolean;
|
|
102
102
|
};
|
|
103
|
+
/** 浏览器自动填充提示;**缺省 `off`**(口径见 `Input` 的同名 prop) */
|
|
104
|
+
autocomplete: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
103
108
|
invalid: {
|
|
104
109
|
type: BooleanConstructor;
|
|
105
110
|
default: boolean;
|
|
@@ -172,6 +177,11 @@ export declare const NumberInput: import("vue").DefineComponent<import("vue").Ex
|
|
|
172
177
|
type: BooleanConstructor;
|
|
173
178
|
default: boolean;
|
|
174
179
|
};
|
|
180
|
+
/** 浏览器自动填充提示;**缺省 `off`**(口径见 `Input` 的同名 prop) */
|
|
181
|
+
autocomplete: {
|
|
182
|
+
type: StringConstructor;
|
|
183
|
+
default: string;
|
|
184
|
+
};
|
|
175
185
|
invalid: {
|
|
176
186
|
type: BooleanConstructor;
|
|
177
187
|
default: boolean;
|
|
@@ -217,6 +227,7 @@ export declare const NumberInput: import("vue").DefineComponent<import("vue").Ex
|
|
|
217
227
|
step: number;
|
|
218
228
|
precision: number;
|
|
219
229
|
readonly: boolean;
|
|
230
|
+
autocomplete: string;
|
|
220
231
|
bordered: boolean | "focus";
|
|
221
232
|
controls: boolean;
|
|
222
233
|
clampOnBlur: boolean;
|
|
@@ -45,6 +45,11 @@ const NumberInput = /* @__PURE__ */ defineComponent({
|
|
|
45
45
|
type: Boolean,
|
|
46
46
|
default: false
|
|
47
47
|
},
|
|
48
|
+
/** 浏览器自动填充提示;**缺省 `off`**(口径见 `Input` 的同名 prop) */
|
|
49
|
+
autocomplete: {
|
|
50
|
+
type: String,
|
|
51
|
+
default: "off"
|
|
52
|
+
},
|
|
48
53
|
invalid: {
|
|
49
54
|
type: Boolean,
|
|
50
55
|
default: false
|
|
@@ -223,6 +228,7 @@ const NumberInput = /* @__PURE__ */ defineComponent({
|
|
|
223
228
|
"placeholder": props.placeholder,
|
|
224
229
|
"disabled": props.disabled,
|
|
225
230
|
"readonly": props.readonly,
|
|
231
|
+
"autocomplete": props.autocomplete,
|
|
226
232
|
"aria-invalid": isInvalid.value ? "true" : void 0,
|
|
227
233
|
"onInput": onInput,
|
|
228
234
|
"onKeydown": onKeydown,
|
|
@@ -318,20 +318,18 @@
|
|
|
318
318
|
box-shadow: 0 0 0 2px var(--ui-primary-weak);
|
|
319
319
|
}
|
|
320
320
|
/* 只读档:壳上的悬停 / 聚焦反馈一并撤掉(框主是壳,这里才是真正的落点;裸控件那条在文件上半部分)。
|
|
321
|
+
⚠️ **只读那一截必须 `:where()` 归零**(与裸控件那条同款写法):`[readonly]` 与 `.is-readonly` 是
|
|
322
|
+
0-1-0 一截,不归零本句就是 0-4-0 —— 会压过文件末尾**无框档**的壳中和组(0-3-0),
|
|
323
|
+
于是 `readonly` + `bordered={false}`(只读值档)在悬停 / 聚焦时冒出默认档线色(2026-10-12 修)。
|
|
321
324
|
⚠️ **位置必须在校验态那两条之前**:同为 0-3-0,靠源码顺序让 error / warning 后写者胜出 ——
|
|
322
325
|
只读字段也会校验不过,红 / 黄边与环照旧要给。
|
|
323
326
|
两句例外都不在这里:**无框档**的中和组在文件末尾(同为 0-3-0,后写者胜);**聚焦显框档**的常态是透明,
|
|
324
327
|
它那句 0-5-0 的反制写在本档那节(见上面)。 */
|
|
325
|
-
.mh-input__wrap:has(> .mh-input[readonly]):hover,
|
|
326
|
-
.mh-input__wrap:has(> .mh-input[readonly]).is-hover,
|
|
327
|
-
.mh-input__wrap:has(> .mh-input[readonly]):focus-within,
|
|
328
|
-
.mh-input__wrap:has(> .mh-input[readonly].is-hover),
|
|
329
|
-
.mh-input__wrap:has(> .mh-input[readonly].is-focus)
|
|
330
|
-
.mh-input__wrap:has(> .mh-input.is-readonly):hover,
|
|
331
|
-
.mh-input__wrap:has(> .mh-input.is-readonly).is-hover,
|
|
332
|
-
.mh-input__wrap:has(> .mh-input.is-readonly):focus-within,
|
|
333
|
-
.mh-input__wrap:has(> .mh-input.is-readonly.is-hover),
|
|
334
|
-
.mh-input__wrap:has(> .mh-input.is-readonly.is-focus) {
|
|
328
|
+
.mh-input__wrap:has(> .mh-input:where([readonly], .is-readonly)):hover,
|
|
329
|
+
.mh-input__wrap:has(> .mh-input:where([readonly], .is-readonly)).is-hover,
|
|
330
|
+
.mh-input__wrap:has(> .mh-input:where([readonly], .is-readonly)):focus-within,
|
|
331
|
+
.mh-input__wrap:has(> .mh-input:where([readonly], .is-readonly).is-hover),
|
|
332
|
+
.mh-input__wrap:has(> .mh-input:where([readonly], .is-readonly).is-focus) {
|
|
335
333
|
border-color: var(--ui-input-line);
|
|
336
334
|
box-shadow: none;
|
|
337
335
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manohub/ui",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "AIHub 自绘组件层:不依赖 farris 的手写 Vue TSX 组件 + 自带令牌层(Farris 规范视觉 · daisyUI 式语义令牌 · shadcn 式 API 词汇)。",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"vue": "^3.5.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@manohub/icon": "^1.1.
|
|
38
|
+
"@manohub/icon": "^1.1.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/node": "^24.0.0",
|