persagy-vant 0.0.50 → 0.0.51
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/field/Field.mjs +13 -5
- package/es/field/index.css +1 -1
- package/es/field/index.less +11 -0
- package/es/index.d.ts +1 -1
- package/es/index.mjs +1 -1
- package/lib/field/Field.js +13 -5
- package/lib/field/index.css +1 -1
- package/lib/field/index.less +11 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/vant.cjs.js +14 -6
- package/lib/vant.es.js +14 -6
- package/lib/vant.js +14 -6
- package/lib/vant.min.js +1 -1
- package/lib/web-types.json +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -248,7 +248,7 @@ __reExport(stdin_exports, require("./uploader"), module.exports);
|
|
|
248
248
|
__reExport(stdin_exports, require("./video-preview"), module.exports);
|
|
249
249
|
__reExport(stdin_exports, require("./work-order-card"), module.exports);
|
|
250
250
|
__reExport(stdin_exports, require("./work-order-filter"), module.exports);
|
|
251
|
-
const version = "0.0.
|
|
251
|
+
const version = "0.0.51";
|
|
252
252
|
function install(app) {
|
|
253
253
|
const components = [
|
|
254
254
|
import_action_bar.ActionBar,
|
package/lib/vant.cjs.js
CHANGED
|
@@ -4428,11 +4428,14 @@ var stdin_default$1K = vue.defineComponent({
|
|
|
4428
4428
|
}, [count]), vue.createTextVNode("/"), props2.maxlength]);
|
|
4429
4429
|
}
|
|
4430
4430
|
};
|
|
4431
|
-
const
|
|
4431
|
+
const getErrorMessage = () => {
|
|
4432
4432
|
if (form && form.props.showErrorMessage === false) {
|
|
4433
|
-
return;
|
|
4433
|
+
return "";
|
|
4434
4434
|
}
|
|
4435
|
-
|
|
4435
|
+
return props2.errorMessage || state.validateMessage;
|
|
4436
|
+
};
|
|
4437
|
+
const renderMessage = () => {
|
|
4438
|
+
const message = getErrorMessage();
|
|
4436
4439
|
if (message) {
|
|
4437
4440
|
const slot = slots["error-message"];
|
|
4438
4441
|
const errorMessageAlign = getProp("errorMessageAlign");
|
|
@@ -4463,7 +4466,7 @@ var stdin_default$1K = vue.defineComponent({
|
|
|
4463
4466
|
"class": bem$1x("clear")
|
|
4464
4467
|
}, null), renderRightIcon(), slots.button && vue.createVNode("div", {
|
|
4465
4468
|
"class": bem$1x("button")
|
|
4466
|
-
}, [slots.button()])]), renderWordLimit()
|
|
4469
|
+
}, [slots.button()])]), renderWordLimit()];
|
|
4467
4470
|
useExpose({
|
|
4468
4471
|
blur,
|
|
4469
4472
|
focus,
|
|
@@ -4498,12 +4501,14 @@ var stdin_default$1K = vue.defineComponent({
|
|
|
4498
4501
|
const labelAlign = getProp("labelAlign");
|
|
4499
4502
|
const Label2 = renderLabel();
|
|
4500
4503
|
const LeftIcon = renderLeftIcon();
|
|
4504
|
+
const hasErrorMessage = !!getErrorMessage();
|
|
4501
4505
|
return vue.createVNode(Cell, {
|
|
4502
4506
|
"size": props2.size,
|
|
4503
4507
|
"icon": props2.leftIcon,
|
|
4504
4508
|
"class": bem$1x({
|
|
4505
4509
|
error: showError.value,
|
|
4506
4510
|
disabled,
|
|
4511
|
+
"has-error-message": hasErrorMessage,
|
|
4507
4512
|
[`label-${labelAlign}`]: labelAlign,
|
|
4508
4513
|
[`label-${props2.labelPosition}`]: props2.labelPosition
|
|
4509
4514
|
}),
|
|
@@ -4526,7 +4531,10 @@ var stdin_default$1K = vue.defineComponent({
|
|
|
4526
4531
|
icon: LeftIcon ? () => LeftIcon : null,
|
|
4527
4532
|
title: Label2 ? () => Label2 : null,
|
|
4528
4533
|
value: renderFieldBody,
|
|
4529
|
-
extra: slots.extra
|
|
4534
|
+
extra: slots.extra || hasErrorMessage ? () => {
|
|
4535
|
+
var _a;
|
|
4536
|
+
return [(_a = slots.extra) == null ? void 0 : _a.call(slots), renderMessage()];
|
|
4537
|
+
} : null
|
|
4530
4538
|
});
|
|
4531
4539
|
};
|
|
4532
4540
|
}
|
|
@@ -21850,7 +21858,7 @@ const Lazyload = {
|
|
|
21850
21858
|
});
|
|
21851
21859
|
}
|
|
21852
21860
|
};
|
|
21853
|
-
const version = "0.0.
|
|
21861
|
+
const version = "0.0.51";
|
|
21854
21862
|
function install(app) {
|
|
21855
21863
|
const components = [
|
|
21856
21864
|
ActionBar,
|
package/lib/vant.es.js
CHANGED
|
@@ -4426,11 +4426,14 @@ var stdin_default$1K = defineComponent({
|
|
|
4426
4426
|
}, [count]), createTextVNode("/"), props2.maxlength]);
|
|
4427
4427
|
}
|
|
4428
4428
|
};
|
|
4429
|
-
const
|
|
4429
|
+
const getErrorMessage = () => {
|
|
4430
4430
|
if (form && form.props.showErrorMessage === false) {
|
|
4431
|
-
return;
|
|
4431
|
+
return "";
|
|
4432
4432
|
}
|
|
4433
|
-
|
|
4433
|
+
return props2.errorMessage || state.validateMessage;
|
|
4434
|
+
};
|
|
4435
|
+
const renderMessage = () => {
|
|
4436
|
+
const message = getErrorMessage();
|
|
4434
4437
|
if (message) {
|
|
4435
4438
|
const slot = slots["error-message"];
|
|
4436
4439
|
const errorMessageAlign = getProp("errorMessageAlign");
|
|
@@ -4461,7 +4464,7 @@ var stdin_default$1K = defineComponent({
|
|
|
4461
4464
|
"class": bem$1x("clear")
|
|
4462
4465
|
}, null), renderRightIcon(), slots.button && createVNode("div", {
|
|
4463
4466
|
"class": bem$1x("button")
|
|
4464
|
-
}, [slots.button()])]), renderWordLimit()
|
|
4467
|
+
}, [slots.button()])]), renderWordLimit()];
|
|
4465
4468
|
useExpose({
|
|
4466
4469
|
blur,
|
|
4467
4470
|
focus,
|
|
@@ -4496,12 +4499,14 @@ var stdin_default$1K = defineComponent({
|
|
|
4496
4499
|
const labelAlign = getProp("labelAlign");
|
|
4497
4500
|
const Label2 = renderLabel();
|
|
4498
4501
|
const LeftIcon = renderLeftIcon();
|
|
4502
|
+
const hasErrorMessage = !!getErrorMessage();
|
|
4499
4503
|
return createVNode(Cell, {
|
|
4500
4504
|
"size": props2.size,
|
|
4501
4505
|
"icon": props2.leftIcon,
|
|
4502
4506
|
"class": bem$1x({
|
|
4503
4507
|
error: showError.value,
|
|
4504
4508
|
disabled,
|
|
4509
|
+
"has-error-message": hasErrorMessage,
|
|
4505
4510
|
[`label-${labelAlign}`]: labelAlign,
|
|
4506
4511
|
[`label-${props2.labelPosition}`]: props2.labelPosition
|
|
4507
4512
|
}),
|
|
@@ -4524,7 +4529,10 @@ var stdin_default$1K = defineComponent({
|
|
|
4524
4529
|
icon: LeftIcon ? () => LeftIcon : null,
|
|
4525
4530
|
title: Label2 ? () => Label2 : null,
|
|
4526
4531
|
value: renderFieldBody,
|
|
4527
|
-
extra: slots.extra
|
|
4532
|
+
extra: slots.extra || hasErrorMessage ? () => {
|
|
4533
|
+
var _a;
|
|
4534
|
+
return [(_a = slots.extra) == null ? void 0 : _a.call(slots), renderMessage()];
|
|
4535
|
+
} : null
|
|
4528
4536
|
});
|
|
4529
4537
|
};
|
|
4530
4538
|
}
|
|
@@ -21848,7 +21856,7 @@ const Lazyload = {
|
|
|
21848
21856
|
});
|
|
21849
21857
|
}
|
|
21850
21858
|
};
|
|
21851
|
-
const version = "0.0.
|
|
21859
|
+
const version = "0.0.51";
|
|
21852
21860
|
function install(app) {
|
|
21853
21861
|
const components = [
|
|
21854
21862
|
ActionBar,
|
package/lib/vant.js
CHANGED
|
@@ -5666,11 +5666,14 @@
|
|
|
5666
5666
|
}, [count]), vue.createTextVNode("/"), props2.maxlength]);
|
|
5667
5667
|
}
|
|
5668
5668
|
};
|
|
5669
|
-
const
|
|
5669
|
+
const getErrorMessage = () => {
|
|
5670
5670
|
if (form && form.props.showErrorMessage === false) {
|
|
5671
|
-
return;
|
|
5671
|
+
return "";
|
|
5672
5672
|
}
|
|
5673
|
-
|
|
5673
|
+
return props2.errorMessage || state.validateMessage;
|
|
5674
|
+
};
|
|
5675
|
+
const renderMessage = () => {
|
|
5676
|
+
const message = getErrorMessage();
|
|
5674
5677
|
if (message) {
|
|
5675
5678
|
const slot = slots["error-message"];
|
|
5676
5679
|
const errorMessageAlign = getProp("errorMessageAlign");
|
|
@@ -5701,7 +5704,7 @@
|
|
|
5701
5704
|
"class": bem$1x("clear")
|
|
5702
5705
|
}, null), renderRightIcon(), slots.button && vue.createVNode("div", {
|
|
5703
5706
|
"class": bem$1x("button")
|
|
5704
|
-
}, [slots.button()])]), renderWordLimit()
|
|
5707
|
+
}, [slots.button()])]), renderWordLimit()];
|
|
5705
5708
|
useExpose({
|
|
5706
5709
|
blur,
|
|
5707
5710
|
focus,
|
|
@@ -5736,12 +5739,14 @@
|
|
|
5736
5739
|
const labelAlign = getProp("labelAlign");
|
|
5737
5740
|
const Label2 = renderLabel();
|
|
5738
5741
|
const LeftIcon = renderLeftIcon();
|
|
5742
|
+
const hasErrorMessage = !!getErrorMessage();
|
|
5739
5743
|
return vue.createVNode(Cell, {
|
|
5740
5744
|
"size": props2.size,
|
|
5741
5745
|
"icon": props2.leftIcon,
|
|
5742
5746
|
"class": bem$1x({
|
|
5743
5747
|
error: showError.value,
|
|
5744
5748
|
disabled,
|
|
5749
|
+
"has-error-message": hasErrorMessage,
|
|
5745
5750
|
[`label-${labelAlign}`]: labelAlign,
|
|
5746
5751
|
[`label-${props2.labelPosition}`]: props2.labelPosition
|
|
5747
5752
|
}),
|
|
@@ -5764,7 +5769,10 @@
|
|
|
5764
5769
|
icon: LeftIcon ? () => LeftIcon : null,
|
|
5765
5770
|
title: Label2 ? () => Label2 : null,
|
|
5766
5771
|
value: renderFieldBody,
|
|
5767
|
-
extra: slots.extra
|
|
5772
|
+
extra: slots.extra || hasErrorMessage ? () => {
|
|
5773
|
+
var _a;
|
|
5774
|
+
return [(_a = slots.extra) == null ? void 0 : _a.call(slots), renderMessage()];
|
|
5775
|
+
} : null
|
|
5768
5776
|
});
|
|
5769
5777
|
};
|
|
5770
5778
|
}
|
|
@@ -25437,7 +25445,7 @@
|
|
|
25437
25445
|
});
|
|
25438
25446
|
}
|
|
25439
25447
|
};
|
|
25440
|
-
const version = "0.0.
|
|
25448
|
+
const version = "0.0.51";
|
|
25441
25449
|
function install(app) {
|
|
25442
25450
|
const components = [
|
|
25443
25451
|
ActionBar,
|