mrxy-yk 1.9.4 → 1.9.6
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.
|
@@ -1,38 +1,43 @@
|
|
|
1
1
|
import { TableColumnCtx } from 'element-plus';
|
|
2
|
-
import { VNode,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
2
|
+
import { VNode, PublicProps } from 'vue';
|
|
3
|
+
declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
4
|
+
props: PublicProps & __VLS_PrettifyLocal<{
|
|
5
|
+
emptyStr?: string;
|
|
6
|
+
formatter?: ((row: T, column: TableColumnCtx<T>, cellValue: any, index: number) => VNode) | string;
|
|
7
|
+
}> & (typeof globalThis extends {
|
|
8
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
9
|
+
} ? P : {});
|
|
10
|
+
expose: (exposed: {}) => void;
|
|
11
|
+
attrs: any;
|
|
12
|
+
slots: {
|
|
13
|
+
'filter-icon'?: (props: {
|
|
14
|
+
filterOpened: boolean;
|
|
15
|
+
}) => any;
|
|
16
|
+
} & {
|
|
17
|
+
expand?: (props: {
|
|
18
|
+
expanded: boolean;
|
|
19
|
+
expandable: boolean;
|
|
20
|
+
}) => any;
|
|
21
|
+
} & {
|
|
22
|
+
header?: (props: {
|
|
23
|
+
column: TableColumnCtx<T>;
|
|
24
|
+
$index: number;
|
|
25
|
+
}) => any;
|
|
26
|
+
} & {
|
|
27
|
+
default?: (props: {
|
|
28
|
+
row: T;
|
|
29
|
+
column: TableColumnCtx<T>;
|
|
30
|
+
$index: number;
|
|
31
|
+
}) => any;
|
|
32
|
+
};
|
|
33
|
+
emit: {};
|
|
34
|
+
}>) => VNode & {
|
|
35
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
29
36
|
};
|
|
30
|
-
declare const __VLS_base: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
31
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
37
|
declare const _default: typeof __VLS_export;
|
|
33
38
|
export default _default;
|
|
34
|
-
type
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
};
|
|
39
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
40
|
+
[K in keyof T]: T[K];
|
|
41
|
+
} : {
|
|
42
|
+
[K in keyof T as K]: T[K];
|
|
43
|
+
}) & {};
|
|
@@ -16,7 +16,7 @@ var TableColumn_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
16
16
|
let result = cellValue;
|
|
17
17
|
if (props.formatter) if (typeof props.formatter === "function") result = props.formatter(row, column, cellValue, index);
|
|
18
18
|
else return props.formatter;
|
|
19
|
-
return result || ObjectUtil.isEmptyToVal(result, emptyStr);
|
|
19
|
+
return String(result || ObjectUtil.isEmptyToVal(result, emptyStr));
|
|
20
20
|
}
|
|
21
21
|
return (_ctx, _cache) => {
|
|
22
22
|
const _component_el_table_column = ElTableColumn;
|