naive-ui 2.40.0 → 2.40.1
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.js +8 -4
- package/dist/index.mjs +8 -4
- package/dist/index.prod.js +1 -1
- package/dist/index.prod.mjs +1 -1
- package/es/data-table/src/TableParts/Body.mjs +8 -4
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/data-table/src/TableParts/Body.js +7 -2
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -4
- package/web-types.json +1 -1
|
@@ -785,14 +785,18 @@ export default defineComponent({
|
|
|
785
785
|
}));
|
|
786
786
|
}
|
|
787
787
|
}
|
|
788
|
-
const row = h("tr", Object.assign({
|
|
789
|
-
onMouseenter:
|
|
788
|
+
const row = h("tr", Object.assign({}, props, {
|
|
789
|
+
onMouseenter: e => {
|
|
790
|
+
var _a;
|
|
790
791
|
this.hoverKey = rowKey;
|
|
792
|
+
(_a = props === null || props === void 0 ? void 0 : props.onMouseenter) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
791
793
|
},
|
|
792
794
|
key: rowKey,
|
|
793
795
|
class: [`${mergedClsPrefix}-data-table-tr`, isSummary && `${mergedClsPrefix}-data-table-tr--summary`, striped && `${mergedClsPrefix}-data-table-tr--striped`, expanded && `${mergedClsPrefix}-data-table-tr--expanded`, mergedRowClassName, props === null || props === void 0 ? void 0 : props.class],
|
|
794
|
-
style: props === null || props === void 0 ? void 0 : props.style
|
|
795
|
-
|
|
796
|
+
style: [props === null || props === void 0 ? void 0 : props.style, isVirtualX && {
|
|
797
|
+
height: virtualXRowHeight
|
|
798
|
+
}]
|
|
799
|
+
}), cells);
|
|
796
800
|
return row;
|
|
797
801
|
};
|
|
798
802
|
if (!virtualScroll) {
|
package/es/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.40.
|
|
1
|
+
declare const _default: "2.40.1";
|
|
2
2
|
export default _default;
|
package/es/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export default '2.40.
|
|
1
|
+
export default '2.40.1';
|
|
@@ -609,8 +609,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
609
609
|
} }));
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
const row = ((0, vue_1.h)("tr", Object.assign({ onMouseenter: () => {
|
|
612
|
+
const row = ((0, vue_1.h)("tr", Object.assign({}, props, { onMouseenter: (e) => {
|
|
613
|
+
var _a;
|
|
613
614
|
this.hoverKey = rowKey;
|
|
615
|
+
(_a = props === null || props === void 0 ? void 0 : props.onMouseenter) === null || _a === void 0 ? void 0 : _a.call(props, e);
|
|
614
616
|
}, key: rowKey, class: [
|
|
615
617
|
`${mergedClsPrefix}-data-table-tr`,
|
|
616
618
|
isSummary && `${mergedClsPrefix}-data-table-tr--summary`,
|
|
@@ -618,7 +620,10 @@ exports.default = (0, vue_1.defineComponent)({
|
|
|
618
620
|
expanded && `${mergedClsPrefix}-data-table-tr--expanded`,
|
|
619
621
|
mergedRowClassName,
|
|
620
622
|
props === null || props === void 0 ? void 0 : props.class
|
|
621
|
-
], style:
|
|
623
|
+
], style: [
|
|
624
|
+
props === null || props === void 0 ? void 0 : props.style,
|
|
625
|
+
isVirtualX && { height: virtualXRowHeight }
|
|
626
|
+
] }), cells));
|
|
622
627
|
return row;
|
|
623
628
|
};
|
|
624
629
|
if (!virtualScroll) {
|
package/lib/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: "2.40.
|
|
1
|
+
declare const _default: "2.40.1";
|
|
2
2
|
export default _default;
|
package/lib/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "naive-ui",
|
|
3
|
-
"version": "2.40.
|
|
3
|
+
"version": "2.40.1",
|
|
4
4
|
"description": "A Vue 3 Component Library. Fairly Complete, Theme Customizable, Uses TypeScript, Fast",
|
|
5
5
|
"author": "07akioni",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"vue": "^3.0.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@css-render/plugin-bem": "^0.15.
|
|
39
|
-
"@css-render/vue3-ssr": "^0.15.
|
|
38
|
+
"@css-render/plugin-bem": "^0.15.14",
|
|
39
|
+
"@css-render/vue3-ssr": "^0.15.14",
|
|
40
40
|
"@types/katex": "^0.16.2",
|
|
41
41
|
"@types/lodash": "^4.14.198",
|
|
42
42
|
"@types/lodash-es": "^4.17.9",
|
|
43
43
|
"async-validator": "^4.2.5",
|
|
44
|
-
"css-render": "^0.15.
|
|
44
|
+
"css-render": "^0.15.14",
|
|
45
45
|
"csstype": "^3.1.3",
|
|
46
46
|
"date-fns": "^3.6.0",
|
|
47
47
|
"date-fns-tz": "^3.1.3",
|
package/web-types.json
CHANGED