@oinone/kunlun-vue-admin-base 6.3.6 → 6.3.8
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/oinone-kunlun-vue-admin-base.css +1 -1
- package/dist/oinone-kunlun-vue-admin-base.esm.js +2 -2
- package/dist/oinone-kunlun-vue-admin-base.scss +1 -1
- package/dist/types/src/field/form/float/Plat.vue.d.ts +2 -2
- package/package.json +8 -8
- package/src/field/form/string/FormStringFieldWidget.ts +2 -2
|
@@ -47,7 +47,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
47
|
default: boolean;
|
|
48
48
|
};
|
|
49
49
|
layout: {
|
|
50
|
-
type: PropType<import("@oinone/kunlun-vue-ui-
|
|
50
|
+
type: PropType<import("@oinone/kunlun-vue-ui-antd").FormLayout>;
|
|
51
51
|
};
|
|
52
52
|
label: {
|
|
53
53
|
type: (BooleanConstructor | StringConstructor)[];
|
|
@@ -141,7 +141,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
141
141
|
default: boolean;
|
|
142
142
|
};
|
|
143
143
|
layout: {
|
|
144
|
-
type: PropType<import("@oinone/kunlun-vue-ui-
|
|
144
|
+
type: PropType<import("@oinone/kunlun-vue-ui-antd").FormLayout>;
|
|
145
145
|
};
|
|
146
146
|
label: {
|
|
147
147
|
type: (BooleanConstructor | StringConstructor)[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oinone/kunlun-vue-admin-base",
|
|
3
|
-
"version": "6.3.
|
|
3
|
+
"version": "6.3.8",
|
|
4
4
|
"main": "index.ts",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prebuild": "rimraf dist",
|
|
@@ -14,13 +14,13 @@
|
|
|
14
14
|
"doc": "typedoc --out docs src/index.ts"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@oinone/kunlun-vue-admin-layout": "6.3.
|
|
18
|
-
"@oinone/kunlun-vue-router": "6.3.
|
|
19
|
-
"@oinone/kunlun-vue-ui": "6.3.
|
|
20
|
-
"@oinone/kunlun-vue-ui-antd": "6.3.
|
|
21
|
-
"@oinone/kunlun-vue-ui-common": "6.3.
|
|
22
|
-
"@oinone/kunlun-vue-ui-el": "6.3.
|
|
23
|
-
"@oinone/kunlun-vue-widget": "6.3.
|
|
17
|
+
"@oinone/kunlun-vue-admin-layout": "6.3.8",
|
|
18
|
+
"@oinone/kunlun-vue-router": "6.3.8",
|
|
19
|
+
"@oinone/kunlun-vue-ui": "6.3.8",
|
|
20
|
+
"@oinone/kunlun-vue-ui-antd": "6.3.8",
|
|
21
|
+
"@oinone/kunlun-vue-ui-common": "6.3.8",
|
|
22
|
+
"@oinone/kunlun-vue-ui-el": "6.3.8",
|
|
23
|
+
"@oinone/kunlun-vue-widget": "6.3.8",
|
|
24
24
|
"@wangeditor/editor": "5.1.23",
|
|
25
25
|
"@wangeditor/editor-for-vue": "5.1.11",
|
|
26
26
|
"@wangeditor/plugin-upload-attachment": "1.1.0",
|
|
@@ -99,10 +99,10 @@ export class FormStringFieldWidget extends FormInputAbstractFieldWidget<string,
|
|
|
99
99
|
protected validateLength(realValue: string | undefined): ValidatorInfo {
|
|
100
100
|
const length = !isNil(realValue) ? realValue.length : 0;
|
|
101
101
|
const { minLength, maxLength } = this;
|
|
102
|
-
if (!isEmptyValue(realValue) && !isNil(maxLength) && length > maxLength) {
|
|
102
|
+
if (!isEmptyValue(realValue) && !isNil(maxLength) && maxLength >= 0 && length > maxLength) {
|
|
103
103
|
return this.validatorError(`${translateValueByKey('最大长度为')}${maxLength}`);
|
|
104
104
|
}
|
|
105
|
-
if (!isEmptyValue(realValue) && !isNil(minLength) && length < minLength) {
|
|
105
|
+
if (!isEmptyValue(realValue) && !isNil(minLength) && minLength >= 0 && length < minLength) {
|
|
106
106
|
return this.validatorError(`${translateValueByKey('最小长度为')}${minLength}`);
|
|
107
107
|
}
|
|
108
108
|
return this.validatorSuccess();
|