@blueking/bkui-form 1.0.0-beta.2 → 1.0.0-beta.3
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/index.umd.js +6 -5
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -6211,7 +6211,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6211
6211
|
|
|
6212
6212
|
var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_1___default()((_node_modules_css_loader_dist_runtime_noSourceMaps_js__WEBPACK_IMPORTED_MODULE_0___default()));
|
|
6213
6213
|
// Module
|
|
6214
|
-
___CSS_LOADER_EXPORT___.push([module.id, ".bk-schema-form {\n font-size: 12px;\n .mb10 {\n margin-bottom: 10px;\n }\n .mb0 {\n margin-bottom: 0px;\n }\n .mt5 {\n margin-top: 5px;\n }\n .mr24 {\n margin-right: 24px;\n }\n .mr5 {\n margin-right: 5px;\n }\n .pr20 {\n padding-right: 20px;\n }\n .bk-form-item {\n margin-top: unset !important;\n margin-bottom: unset !important;\n }\n .bk-schema-form-group.normal {\n padding: 24px;\n position: relative;\n }\n .bk-schema-form-group.card{\n background: #fff;\n padding: 0 24px 24px 24px;\n border-radius: 2px;\n }\n .bk-schema-form-group.hide-empty-row .bk-schema-form-group-content {\n row-gap: 0 !important;\n }\n .bk-schema-form-group.hide-empty-row .bk-schema-form-group-content .bk-form-item {\n margin-bottom: 20px;\n }\n .bk-schema-form-group--error {\n border-color: #f5222d !important;\n }\n .bk-schema-form-group__error-tips{\n position: relative;\n display: block;\n width: 10px;\n height: 10px;\n }\n .bk-schema-form-group__error-tips-popover {\n position: absolute;\n top: -5px;\n left: 0;\n z-index: 1;\n background: #fff;\n border: 1px solid #f5222d;\n color: #f5222d;\n font-size: 12px;\n margin-left: 10px;\n font-weight: normal;\n padding: 5px 10px;\n border-radius: 2px;\n max-height: 50px;\n overflow:hidden;\n }\n .bk-schema-form-group__error-tips-popover:hover {\n max-height: unset;\n }\n \n .bk-schema-form-group__error-tips-popover > p {\n padding: 0;\n margin: 0;\n white-space: nowrap;\n }\n .bk-schema-form-group .bk-schema-form-group-title {\n font-size: 14px;\n font-weight: 600;\n color: #63656E;\n }\n .bk-schema-form-group .bk-schema-form-group-title.default {\n display: inline-block;\n margin-bottom: 10px;\n }\n .bk-schema-form-group .bk-schema-form-group-title.normal {\n position: absolute;\n top: -1em;\n left: 10px;\n line-height: 2em;\n padding: 0 0.5em;\n background: #fff;\n }\n .bk-schema-form-group .bk-schema-form-group-title.card{\n display: flex;\n height: 50px;\n align-items: center;\n padding: 0 24px;\n margin: 0 -24px 8px -24px;\n }\n .bk-schema-form-group-add {\n font-size: 14px;\n color: #3a84ff;\n cursor: pointer;\n display: flex;\n align-items: center;\n }\n .bk-schema-form-group-delete {\n position: absolute;\n cursor: pointer;\n color: #979bA5;\n font-size: 14px;\n }\n .bk-schema-form-group-delete:hover {\n color: #3a84ff;\n }\n .bk-schema-form-item__error-tips {\n color: #f5222d;\n font-size: 12px;\n margin-top: 5px;\n margin: 0;\n line-height: 1.5em;\n }\n .bk-schema-form-item--error input,\n .bk-schema-form-item--error .bk-textarea-wrapper,\n .bk-schema-form-item--error .bk-select {\n border: 1px solid #f5222d;\n }\n .bk-schema-form-
|
|
6214
|
+
___CSS_LOADER_EXPORT___.push([module.id, ".bk-schema-form {\n font-size: 12px;\n .mb10 {\n margin-bottom: 10px;\n }\n .mb0 {\n margin-bottom: 0px;\n }\n .mt5 {\n margin-top: 5px;\n }\n .mr24 {\n margin-right: 24px;\n }\n .mr5 {\n margin-right: 5px;\n }\n .pr20 {\n padding-right: 20px;\n }\n .bk-form-item {\n margin-top: unset !important;\n margin-bottom: unset !important;\n }\n .bk-schema-form-group.normal {\n padding: 24px;\n position: relative;\n }\n .bk-schema-form-group.card{\n background: #fff;\n padding: 0 24px 24px 24px;\n border-radius: 2px;\n }\n .bk-schema-form-group.hide-empty-row .bk-schema-form-group-content {\n row-gap: 0 !important;\n }\n .bk-schema-form-group.hide-empty-row .bk-schema-form-group-content .bk-form-item {\n margin-bottom: 20px;\n }\n .bk-schema-form-group--error {\n border-color: #f5222d !important;\n }\n .bk-schema-form-group__error-tips{\n position: relative;\n display: block;\n width: 10px;\n height: 10px;\n }\n .bk-schema-form-group__error-tips-popover {\n position: absolute;\n top: -5px;\n left: 0;\n z-index: 1;\n background: #fff;\n border: 1px solid #f5222d;\n color: #f5222d;\n font-size: 12px;\n margin-left: 10px;\n font-weight: normal;\n padding: 5px 10px;\n border-radius: 2px;\n max-height: 50px;\n overflow:hidden;\n }\n .bk-schema-form-group__error-tips-popover:hover {\n max-height: unset;\n }\n \n .bk-schema-form-group__error-tips-popover > p {\n padding: 0;\n margin: 0;\n white-space: nowrap;\n }\n .bk-schema-form-group .bk-schema-form-group-title {\n font-size: 14px;\n font-weight: 600;\n color: #63656E;\n }\n .bk-schema-form-group .bk-schema-form-group-title.default {\n display: inline-block;\n margin-bottom: 10px;\n }\n .bk-schema-form-group .bk-schema-form-group-title.normal {\n position: absolute;\n top: -1em;\n left: 10px;\n line-height: 2em;\n padding: 0 0.5em;\n background: #fff;\n }\n .bk-schema-form-group .bk-schema-form-group-title.card{\n display: flex;\n height: 50px;\n align-items: center;\n padding: 0 24px;\n margin: 0 -24px 8px -24px;\n }\n .bk-schema-form-group-add {\n font-size: 14px;\n color: #3a84ff;\n cursor: pointer;\n display: flex;\n align-items: center;\n }\n .bk-schema-form-group-delete {\n position: absolute;\n cursor: pointer;\n color: #979bA5;\n font-size: 14px;\n }\n .bk-schema-form-group-delete:hover {\n color: #3a84ff;\n }\n .bk-schema-form-item__error-tips {\n color: #f5222d;\n font-size: 12px;\n margin-top: 5px;\n margin: 0;\n line-height: 1.5em;\n }\n .bk-schema-form-item--error input,\n .bk-schema-form-item--error .bk-textarea-wrapper,\n .bk-schema-form-item--error .bk-select {\n border: 1px solid #f5222d;\n }\n .bk-schema-form-item-auto-height .bk-form-content {\n min-height: auto;\n line-height: 1;\n }\n .table-widget-actions .action-btn {\n margin-right: 8px;\n font-size: 14px;\n cursor: pointer;\n }\n .table-widget-actions .action-btn:hover {\n color: #3a84ff;\n }\n .is-disabled .action-btn {\n color: #dcdee5 !important;\n cursor: not-allowed;\n }\n}", ""]);
|
|
6215
6215
|
// Exports
|
|
6216
6216
|
/* harmony default export */ __webpack_exports__["default"] = (___CSS_LOADER_EXPORT___);
|
|
6217
6217
|
|
|
@@ -7177,8 +7177,10 @@ var __spreadValues = (a, b) => {
|
|
|
7177
7177
|
this.$emit("update:modelValue", v);
|
|
7178
7178
|
}
|
|
7179
7179
|
},
|
|
7180
|
-
handleBlur(
|
|
7181
|
-
|
|
7180
|
+
handleBlur(e) {
|
|
7181
|
+
var _a;
|
|
7182
|
+
const value = (_a = e == null ? void 0 : e.target) == null ? void 0 : _a.value;
|
|
7183
|
+
if (this.$attrs.type === "number" && isNaN(value)) {
|
|
7182
7184
|
this.$emit("update:modelValue", this.$attrs.min || 0);
|
|
7183
7185
|
}
|
|
7184
7186
|
}
|
|
@@ -7191,8 +7193,7 @@ var __spreadValues = (a, b) => {
|
|
|
7191
7193
|
modelValue: this.modelValue,
|
|
7192
7194
|
rows: this.rows,
|
|
7193
7195
|
type: this.maxRows > 1 || Number(this.$attrs.rows) > 1 ? "textarea" : "text",
|
|
7194
|
-
|
|
7195
|
-
"onUpdate:modelValue": this.handleInput,
|
|
7196
|
+
onInput: this.handleInput,
|
|
7196
7197
|
onBlur: this.handleBlur
|
|
7197
7198
|
}, this.$attrs)
|
|
7198
7199
|
);
|
package/package.json
CHANGED