@fmdevui/fm-dev 1.0.60 → 1.0.61
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/es/core/hook/useVxeTableOptionsHook.d.ts +1 -1
- package/es/packages/core/hook/useVxeTableOptionsHook.mjs +3 -2
- package/index.js +4 -3
- package/index.min.js +2 -2
- package/index.min.mjs +2 -2
- package/index.mjs +4 -3
- package/lib/core/hook/useVxeTableOptionsHook.d.ts +1 -1
- package/lib/packages/core/hook/useVxeTableOptionsHook.js +3 -2
- package/package.json +1 -1
- /package/es/{defaults.css → component.css} +0 -0
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
1
|
+
/*! fm-dev v1.0.61 */
|
|
2
2
|
import { defineComponent, reactive, computed, watch, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, createTextVNode, toDisplayString as toDisplayString$1, withDirectives, createElementBlock, Fragment, renderList, vShow, ref, onMounted, nextTick, normalizeStyle, createCommentVNode, normalizeClass, withModifiers, mergeModels, useModel, effectScope, getCurrentInstance, shallowRef, isRef as isRef$1, inject, onUnmounted, h, Text, resolveDynamicComponent, markRaw, toRaw as toRaw$1, hasInjectionContext, unref, isReactive as isReactive$1, toRef, getCurrentScope, onScopeDispose, toRefs, resolveDirective } from 'vue';
|
|
3
3
|
import crypto from 'crypto';
|
|
4
4
|
import require$$0 from 'url';
|
|
@@ -52814,7 +52814,7 @@ const useVxeTable = (opt, extras) => {
|
|
|
52814
52814
|
align: "center",
|
|
52815
52815
|
// 自动监听父元素的变化去重新计算表格(对于父元素可能存在动态变化、显示隐藏的容器中、列宽异常等场景中的可能会用到)
|
|
52816
52816
|
// data: [] as Array<T>,
|
|
52817
|
-
spanMethod: spanFields ? ({ row, rowIndex, column, visibleData }) => {
|
|
52817
|
+
spanMethod: spanFields.length > 0 ? ({ row, rowIndex, column, visibleData }) => {
|
|
52818
52818
|
const cellValue = row[spanValueField];
|
|
52819
52819
|
if (cellValue && spanFields.includes(column.field)) {
|
|
52820
52820
|
const prevRow = visibleData[rowIndex - 1];
|
|
@@ -52831,7 +52831,8 @@ const useVxeTable = (opt, extras) => {
|
|
|
52831
52831
|
}
|
|
52832
52832
|
}
|
|
52833
52833
|
}
|
|
52834
|
-
} : opt.spanMethod,
|
|
52834
|
+
} : opt.spanMethod ? opt.spanMethod : ({ row, rowIndex, column, visibleData }) => {
|
|
52835
|
+
},
|
|
52835
52836
|
columns: opt.columns,
|
|
52836
52837
|
showFooter: opt.showFooter,
|
|
52837
52838
|
footerData: opt.footerData,
|
|
@@ -14,7 +14,7 @@ interface iVxeOption {
|
|
|
14
14
|
name?: string;
|
|
15
15
|
spanFields?: Array<string>;
|
|
16
16
|
spanValueField?: string;
|
|
17
|
-
spanMethod
|
|
17
|
+
spanMethod?: VxeTablePropTypes.SpanMethod<any>;
|
|
18
18
|
columns: VxeGridPropTypes.Columns<any>;
|
|
19
19
|
data?: VxeTablePropTypes.Data<any>;
|
|
20
20
|
sortConfig?: VxeTablePropTypes.SortConfig<any>;
|
|
@@ -21,7 +21,7 @@ const useVxeTable = (opt, extras) => {
|
|
|
21
21
|
align: "center",
|
|
22
22
|
// 自动监听父元素的变化去重新计算表格(对于父元素可能存在动态变化、显示隐藏的容器中、列宽异常等场景中的可能会用到)
|
|
23
23
|
// data: [] as Array<T>,
|
|
24
|
-
spanMethod: spanFields ? ({ row, rowIndex, column, visibleData }) => {
|
|
24
|
+
spanMethod: spanFields.length > 0 ? ({ row, rowIndex, column, visibleData }) => {
|
|
25
25
|
const cellValue = row[spanValueField];
|
|
26
26
|
if (cellValue && spanFields.includes(column.field)) {
|
|
27
27
|
const prevRow = visibleData[rowIndex - 1];
|
|
@@ -38,7 +38,8 @@ const useVxeTable = (opt, extras) => {
|
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
|
-
} : opt.spanMethod,
|
|
41
|
+
} : opt.spanMethod ? opt.spanMethod : ({ row, rowIndex, column, visibleData }) => {
|
|
42
|
+
},
|
|
42
43
|
columns: opt.columns,
|
|
43
44
|
showFooter: opt.showFooter,
|
|
44
45
|
footerData: opt.footerData,
|
package/package.json
CHANGED
|
File without changes
|