@blueking/bkui-form 0.0.42-beta.14 → 0.0.42-beta.16
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/bkui-form-es-min.js +3 -3
- package/dist/bkui-form-es.js +19 -5
- package/dist/bkui-form-es.js.map +1 -1
- package/dist/bkui-form-umd-min.js +3 -3
- package/dist/bkui-form-umd.js +19 -5
- package/dist/bkui-form-umd.js.map +1 -1
- package/dist/bkui-form.css +34 -0
- package/dist/types/bkui-form.d.ts +1 -1
- package/package.json +1 -1
package/dist/bkui-form-es.js
CHANGED
|
@@ -10229,10 +10229,12 @@ var NumberField = Vue.extend({
|
|
|
10229
10229
|
|
|
10230
10230
|
var messages = {
|
|
10231
10231
|
'zh-CN': {
|
|
10232
|
-
add: '添加'
|
|
10232
|
+
add: '添加',
|
|
10233
|
+
required: '必填项'
|
|
10233
10234
|
},
|
|
10234
10235
|
'en-US': {
|
|
10235
|
-
add: 'Add'
|
|
10236
|
+
add: 'Add',
|
|
10237
|
+
required: 'Required'
|
|
10236
10238
|
}
|
|
10237
10239
|
};
|
|
10238
10240
|
function locale(item) {
|
|
@@ -10293,7 +10295,13 @@ var ArrayWidget = Vue.extend({
|
|
|
10293
10295
|
}
|
|
10294
10296
|
},
|
|
10295
10297
|
render: function render(h) {
|
|
10296
|
-
var _this = this
|
|
10298
|
+
var _this = this,
|
|
10299
|
+
_self$value,
|
|
10300
|
+
_this$schema,
|
|
10301
|
+
_this$schema$uiProps,
|
|
10302
|
+
_this$schema2,
|
|
10303
|
+
_this$schema3,
|
|
10304
|
+
_this$schema3$uiProp;
|
|
10297
10305
|
var self = this;
|
|
10298
10306
|
var arrVnodeList = (Array.isArray(this.value) ? this.value : []).map(function (_, index) {
|
|
10299
10307
|
var curPath = Path.getCurPath(_this.path, index);
|
|
@@ -10317,6 +10325,7 @@ var ArrayWidget = Vue.extend({
|
|
|
10317
10325
|
var _Schema$getGroupWrap = Schema.getGroupWrap(this.schema),
|
|
10318
10326
|
name = _Schema$getGroupWrap.name,
|
|
10319
10327
|
vnode = _objectWithoutProperties(_Schema$getGroupWrap, _excluded$2);
|
|
10328
|
+
var error = ((_self$value = self.value) === null || _self$value === void 0 ? void 0 : _self$value.length) === 0 && self.required;
|
|
10320
10329
|
return h(name, mergeDeep({
|
|
10321
10330
|
props: _objectSpread2(_objectSpread2({}, this.$props), {}, {
|
|
10322
10331
|
layout: {},
|
|
@@ -10329,6 +10338,8 @@ var ArrayWidget = Vue.extend({
|
|
|
10329
10338
|
}
|
|
10330
10339
|
}, [h('span', {
|
|
10331
10340
|
class: ['bk-schema-form-group-add', {
|
|
10341
|
+
'error': error
|
|
10342
|
+
}, (_this$schema = this.schema) === null || _this$schema === void 0 ? void 0 : (_this$schema$uiProps = _this$schema['ui:props']) === null || _this$schema$uiProps === void 0 ? void 0 : _this$schema$uiProps.size, {
|
|
10332
10343
|
disabled: this.disabled,
|
|
10333
10344
|
readonly: this.readonly
|
|
10334
10345
|
}],
|
|
@@ -10339,7 +10350,9 @@ var ArrayWidget = Vue.extend({
|
|
|
10339
10350
|
}
|
|
10340
10351
|
}, [h('i', {
|
|
10341
10352
|
class: ['bk-icon icon-plus-circle-shape mr5']
|
|
10342
|
-
}), locale('add')
|
|
10353
|
+
}), "".concat(locale('add')).concat(((_this$schema2 = this.schema) === null || _this$schema2 === void 0 ? void 0 : _this$schema2.title) || '')]), error && ((_this$schema3 = this.schema) === null || _this$schema3 === void 0 ? void 0 : (_this$schema3$uiProp = _this$schema3['ui:props']) === null || _this$schema3$uiProp === void 0 ? void 0 : _this$schema3$uiProp.size) === 'large' && h('p', {
|
|
10354
|
+
class: ['bk-schema-form-item__error-tips']
|
|
10355
|
+
}, [locale('required')])]) : null]));
|
|
10343
10356
|
}
|
|
10344
10357
|
});
|
|
10345
10358
|
|
|
@@ -11067,7 +11080,8 @@ var FieldGroupWrap = Vue.extend({
|
|
|
11067
11080
|
value: this.description
|
|
11068
11081
|
}],
|
|
11069
11082
|
"class": ['bk-schema-form-group-title', this.type, {
|
|
11070
|
-
'group-has-desc': !!this.description
|
|
11083
|
+
'group-has-desc': !!this.description,
|
|
11084
|
+
'is-required': this.required
|
|
11071
11085
|
}]
|
|
11072
11086
|
}, [title, hasError ? h("span", {
|
|
11073
11087
|
"class": "bk-schema-form-group__error-tips"
|