persagy-vant 0.0.33 → 0.0.35
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/es/badge/Badge.d.ts +14 -0
- package/es/badge/Badge.mjs +2 -0
- package/es/badge/index.css +1 -1
- package/es/badge/index.d.ts +10 -1
- package/es/badge/index.less +6 -0
- package/es/badge/var.less +1 -0
- package/es/button/Button.d.ts +1 -1
- package/es/button/index.d.ts +1 -1
- package/es/field/Field.d.ts +5 -18
- package/es/field/Field.mjs +3 -2
- package/es/field/index.d.ts +3 -10
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/es/loading/Loading.mjs +16 -19
- package/es/material-action-bar/index.css +1 -1
- package/es/material-action-bar/index.less +3 -3
- package/es/material-add/MaterialAdd.mjs +0 -1
- package/es/material-add/index.css +1 -1
- package/es/material-detail/MaterialDetail.mjs +7 -2
- package/es/material-display-bar/MaterialDisplayBar.mjs +1 -0
- package/es/material-display-bar/index.css +1 -1
- package/es/material-display-bar/index.d.ts +103 -2
- package/es/material-display-bar/index.less +34 -1
- package/es/material-display-bar/index.mjs +4 -2
- package/es/material-display-bar/var.less +1 -0
- package/es/rate/RateCell.d.ts +1 -1
- package/es/rate/index.d.ts +1 -1
- package/es/search/Search.d.ts +17 -13
- package/es/search/Search.mjs +1 -0
- package/es/search/index.d.ts +10 -8
- package/es/sidebar/index.css +1 -1
- package/es/sidebar/index.less +1 -0
- package/es/sidebar-item/index.css +1 -1
- package/es/sidebar-item/index.less +37 -11
- package/es/sidebar-item/var.less +7 -7
- package/es/space/Space.d.ts +1 -1
- package/es/space/index.d.ts +1 -1
- package/es/tag/Tag.d.ts +1 -1
- package/es/tag/index.d.ts +1 -1
- package/lib/badge/Badge.d.ts +14 -0
- package/lib/badge/Badge.js +2 -0
- package/lib/badge/index.css +1 -1
- package/lib/badge/index.d.ts +10 -1
- package/lib/badge/index.less +6 -0
- package/lib/badge/var.less +1 -0
- package/lib/button/Button.d.ts +1 -1
- package/lib/button/index.d.ts +1 -1
- package/lib/field/Field.d.ts +5 -18
- package/lib/field/Field.js +3 -2
- package/lib/field/index.d.ts +3 -10
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/loading/Loading.js +16 -19
- package/lib/material-action-bar/index.css +1 -1
- package/lib/material-action-bar/index.less +3 -3
- package/lib/material-add/MaterialAdd.js +0 -1
- package/lib/material-add/index.css +1 -1
- package/lib/material-detail/MaterialDetail.js +7 -2
- package/lib/material-display-bar/MaterialDisplayBar.js +1 -0
- package/lib/material-display-bar/index.css +1 -1
- package/lib/material-display-bar/index.d.ts +103 -2
- package/lib/material-display-bar/index.js +4 -2
- package/lib/material-display-bar/index.less +34 -1
- package/lib/material-display-bar/var.less +1 -0
- package/lib/rate/RateCell.d.ts +1 -1
- package/lib/rate/index.d.ts +1 -1
- package/lib/search/Search.d.ts +17 -13
- package/lib/search/Search.js +1 -0
- package/lib/search/index.d.ts +10 -8
- package/lib/sidebar/index.css +1 -1
- package/lib/sidebar/index.less +1 -0
- package/lib/sidebar-item/index.css +1 -1
- package/lib/sidebar-item/index.less +37 -11
- package/lib/sidebar-item/var.less +7 -7
- package/lib/space/Space.d.ts +1 -1
- package/lib/space/index.d.ts +1 -1
- package/lib/tag/Tag.d.ts +1 -1
- package/lib/tag/index.d.ts +1 -1
- package/lib/vant.cjs.js +34 -25
- package/lib/vant.es.js +34 -25
- package/lib/vant.js +34 -25
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +1 -1
- package/skills/use-persagy-vant/SKILL.md +3 -3
- package/skills/use-persagy-vant/references/business-component-catalog.md +1 -1
- package/skills/use-persagy-vant/references/component-catalog.md +16 -9
- package/skills/use-persagy-vant/references/component-documentation.md +20 -1
- package/skills/use-persagy-vant/references/component-gap-template.md +3 -0
- package/skills/use-persagy-vant/references/design-interaction-baseline.md +10 -4
- package/skills/use-persagy-vant/references/page-recipes.md +17 -14
- package/skills/use-persagy-vant/references/reuse-policy.md +47 -3
- package/skills/use-persagy-vant/references/usage-patterns.md +5 -3
package/lib/field/Field.js
CHANGED
|
@@ -42,7 +42,7 @@ const fieldSharedProps = {
|
|
|
42
42
|
formatter: Function,
|
|
43
43
|
clearIcon: (0, import_utils.makeStringProp)("clear"),
|
|
44
44
|
modelValue: (0, import_utils.makeNumericProp)(""),
|
|
45
|
-
inputAlign:
|
|
45
|
+
inputAlign: String,
|
|
46
46
|
placeholder: String,
|
|
47
47
|
autocomplete: String,
|
|
48
48
|
errorMessage: String,
|
|
@@ -115,6 +115,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
115
115
|
return form.props[key];
|
|
116
116
|
}
|
|
117
117
|
};
|
|
118
|
+
const inputAlign = (0, import_vue.computed)(() => getProp("inputAlign") || (props.labelPosition === "top" ? "left" : "right"));
|
|
118
119
|
const showClear = (0, import_vue.computed)(() => {
|
|
119
120
|
const readonly = getProp("readonly");
|
|
120
121
|
if (props.clearable && !readonly) {
|
|
@@ -356,7 +357,7 @@ var stdin_default = (0, import_vue.defineComponent)({
|
|
|
356
357
|
const getInputId = () => props.id || `${id}-input`;
|
|
357
358
|
const getValidationStatus = () => state.status;
|
|
358
359
|
const renderInput = () => {
|
|
359
|
-
const controlClass = bem("control", [
|
|
360
|
+
const controlClass = bem("control", [inputAlign.value, {
|
|
360
361
|
error: showError.value,
|
|
361
362
|
custom: !!slots.input,
|
|
362
363
|
"min-height": props.type === "textarea" && !props.autosize
|
package/lib/field/index.d.ts
CHANGED
|
@@ -67,10 +67,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
|
67
67
|
type: (NumberConstructor | StringConstructor)[];
|
|
68
68
|
default: string;
|
|
69
69
|
};
|
|
70
|
-
inputAlign:
|
|
71
|
-
type: import("vue").PropType<import("./types").FieldTextAlign>;
|
|
72
|
-
default: import("./types").FieldTextAlign;
|
|
73
|
-
};
|
|
70
|
+
inputAlign: import("vue").PropType<import("./types").FieldTextAlign>;
|
|
74
71
|
placeholder: StringConstructor;
|
|
75
72
|
autocomplete: StringConstructor;
|
|
76
73
|
errorMessage: StringConstructor;
|
|
@@ -189,10 +186,7 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
|
189
186
|
type: (NumberConstructor | StringConstructor)[];
|
|
190
187
|
default: string;
|
|
191
188
|
};
|
|
192
|
-
inputAlign:
|
|
193
|
-
type: import("vue").PropType<import("./types").FieldTextAlign>;
|
|
194
|
-
default: import("./types").FieldTextAlign;
|
|
195
|
-
};
|
|
189
|
+
inputAlign: import("vue").PropType<import("./types").FieldTextAlign>;
|
|
196
190
|
placeholder: StringConstructor;
|
|
197
191
|
autocomplete: StringConstructor;
|
|
198
192
|
errorMessage: StringConstructor;
|
|
@@ -257,8 +251,8 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
|
257
251
|
}, {
|
|
258
252
|
type: import("./types").FieldType;
|
|
259
253
|
required: boolean;
|
|
260
|
-
center: boolean;
|
|
261
254
|
size: import("..").CellSize;
|
|
255
|
+
center: boolean;
|
|
262
256
|
noteBold: boolean;
|
|
263
257
|
noteClickable: boolean;
|
|
264
258
|
noteReplace: boolean;
|
|
@@ -276,7 +270,6 @@ export declare const Field: import("../utils").WithInstall<import("vue").DefineC
|
|
|
276
270
|
modelValue: string | number;
|
|
277
271
|
clearable: boolean;
|
|
278
272
|
clearIcon: string;
|
|
279
|
-
inputAlign: import("./types").FieldTextAlign;
|
|
280
273
|
clearTrigger: import("./types").FieldClearTrigger;
|
|
281
274
|
formatTrigger: import("./types").FieldFormatTrigger;
|
|
282
275
|
error: boolean;
|