lew-ui 1.9.4 → 1.9.5
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.es.js +3 -6
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -14719,11 +14719,6 @@ const tableProps = {
|
|
|
14719
14719
|
default: [],
|
|
14720
14720
|
description: "\u5217\u914D\u7F6E"
|
|
14721
14721
|
},
|
|
14722
|
-
pickColumns: {
|
|
14723
|
-
type: Array,
|
|
14724
|
-
default: [],
|
|
14725
|
-
description: "\u9009\u4E2D\u7684\u5217"
|
|
14726
|
-
},
|
|
14727
14722
|
maxHeight: {
|
|
14728
14723
|
type: [Number, String],
|
|
14729
14724
|
default: "",
|
|
@@ -14906,6 +14901,8 @@ const _sfc_main$j = defineComponent({
|
|
|
14906
14901
|
state.checkAll = _.isEmpty(diffArr);
|
|
14907
14902
|
};
|
|
14908
14903
|
const selectTr = (row) => {
|
|
14904
|
+
if (!props.checkable)
|
|
14905
|
+
return;
|
|
14909
14906
|
if (props.singleSelect) {
|
|
14910
14907
|
state.selectedKeysMap = {};
|
|
14911
14908
|
}
|
|
@@ -15081,7 +15078,7 @@ const _sfc_main$j = defineComponent({
|
|
|
15081
15078
|
key: `data${i}`,
|
|
15082
15079
|
class: normalizeClass(["lew-table-tr", {
|
|
15083
15080
|
"lew-table-tr-hover": unref(state).hoverIndex === i,
|
|
15084
|
-
"lew-table-tr-selected": unref(state).selectedKeysMap[row[_ctx.rowKey]]
|
|
15081
|
+
"lew-table-tr-selected": _ctx.checkable && unref(state).selectedKeysMap[row[_ctx.rowKey]]
|
|
15085
15082
|
}]),
|
|
15086
15083
|
onClick: ($event) => selectTr(row),
|
|
15087
15084
|
onMouseenter: ($event) => unref(state).hoverIndex = i
|