bkui-vue 0.0.1-beta.434 → 0.0.1-beta.435
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.cjs.js +6 -6
- package/dist/index.esm.js +13 -3
- package/dist/index.umd.js +7 -7
- package/lib/form/index.js +1 -1
- package/lib/table/const.d.ts +2 -0
- package/lib/table/index.js +1 -1
- package/lib/table/render.d.ts +2 -0
- package/lib/table-column/index.js +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
@@ -17269,6 +17269,8 @@ var EMIT_EVENTS = /* @__PURE__ */ ((EMIT_EVENTS2) => {
|
|
17269
17269
|
EMIT_EVENTS2["ROW_CLICK"] = "rowClick";
|
17270
17270
|
EMIT_EVENTS2["ROW_DBL_CLICK"] = "rowDblclick";
|
17271
17271
|
EMIT_EVENTS2["ROW_EXPAND_CLICK"] = "rowExpand";
|
17272
|
+
EMIT_EVENTS2["ROW_MOUSE_ENTER"] = "rowMouseEnter";
|
17273
|
+
EMIT_EVENTS2["ROW_MOUSE_LEAVE"] = "rowMouseLeave";
|
17272
17274
|
EMIT_EVENTS2["PAGE_LIMIT_CHANGE"] = "pageLimitChange";
|
17273
17275
|
EMIT_EVENTS2["PAGE_VALUE_CHANGE"] = "pageValueChange";
|
17274
17276
|
EMIT_EVENTS2["SETTING_CHANGE"] = "settingChange";
|
@@ -19947,7 +19949,9 @@ class TableRender {
|
|
19947
19949
|
"style": rowStyle,
|
19948
19950
|
"class": rowClass,
|
19949
19951
|
"onClick": (e) => this.handleRowClick(e, row, rowIndex, rows),
|
19950
|
-
"onDblclick": (e) => this.handleRowDblClick(e, row, rowIndex, rows)
|
19952
|
+
"onDblclick": (e) => this.handleRowDblClick(e, row, rowIndex, rows),
|
19953
|
+
"onMouseenter": (e) => this.handleRowEnter(e, row, rowIndex, rows),
|
19954
|
+
"onMouseleave": (e) => this.handleRowLeave(e, row, rowIndex, rows)
|
19951
19955
|
}, [this.filterColgroups.map((column, index2) => {
|
19952
19956
|
var _a, _b;
|
19953
19957
|
const cellStyle = [resolveFixedColumnStyle(column), ...formatPropAsArray(this.props.cellStyle, [column, index2, row, rowIndex, this])];
|
@@ -20038,6 +20042,12 @@ class TableRender {
|
|
20038
20042
|
handleRowDblClick(e, row, index2, rows) {
|
20039
20043
|
this.context.emit(EMIT_EVENTS.ROW_DBL_CLICK, e, row, index2, rows, this);
|
20040
20044
|
}
|
20045
|
+
handleRowEnter(e, row, index2, rows) {
|
20046
|
+
this.context.emit(EMIT_EVENTS.ROW_MOUSE_ENTER, e, row, index2, rows, this);
|
20047
|
+
}
|
20048
|
+
handleRowLeave(e, row, index2, rows) {
|
20049
|
+
this.context.emit(EMIT_EVENTS.ROW_MOUSE_LEAVE, e, row, index2, rows, this);
|
20050
|
+
}
|
20041
20051
|
getExpandCell(row) {
|
20042
20052
|
const isExpand = !!row[TABLE_ROW_ATTRIBUTE.ROW_EXPAND];
|
20043
20053
|
return isExpand ? createVNode(downShape, null, null) : createVNode(rightShape, null, null);
|
@@ -31387,7 +31397,7 @@ var FormItem = defineComponent({
|
|
31387
31397
|
rules = props2.rules;
|
31388
31398
|
}
|
31389
31399
|
rules = getTriggerRules(trigger, mergeRules(rules, getRulesFromProps(props2, t2), t2));
|
31390
|
-
if (rules.length > 0) {
|
31400
|
+
if (rules.length > 0 && showError) {
|
31391
31401
|
state.isError = false;
|
31392
31402
|
state.errorMessage = "";
|
31393
31403
|
}
|
@@ -31397,7 +31407,7 @@ var FormItem = defineComponent({
|
|
31397
31407
|
return () => {
|
31398
31408
|
stepIndex = stepIndex + 1;
|
31399
31409
|
if (stepIndex >= rules.length) {
|
31400
|
-
form2.emit("validate", props2.property, true,
|
31410
|
+
form2.emit("validate", props2.property, true, "");
|
31401
31411
|
return Promise.resolve(true);
|
31402
31412
|
}
|
31403
31413
|
const rule = rules[stepIndex];
|