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, DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- import { DefaultRow } from 'element-plus/es/components/table/src/table/defaults.mjs';
4
- type __VLS_Props = {
5
- emptyStr?: string;
6
- formatter?: ((row: any, column: TableColumnCtx, cellValue: any, index: number) => VNode) | string;
7
- };
8
- declare var __VLS_9: {
9
- filterOpened: boolean;
10
- }, __VLS_12: {
11
- expanded: boolean;
12
- expandable: boolean;
13
- }, __VLS_15: {
14
- column: TableColumnCtx< DefaultRow>;
15
- $index: number;
16
- }, __VLS_18: {
17
- row: DefaultRow;
18
- column: TableColumnCtx< DefaultRow>;
19
- $index: number;
20
- };
21
- type __VLS_Slots = {} & {
22
- 'filter-icon'?: (props: typeof __VLS_9) => any;
23
- } & {
24
- expand?: (props: typeof __VLS_12) => any;
25
- } & {
26
- header?: (props: typeof __VLS_15) => any;
27
- } & {
28
- default?: (props: typeof __VLS_18) => any;
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 __VLS_WithSlots<T, S> = T & {
35
- new (): {
36
- $slots: S;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mrxy-yk",
3
- "version": "1.9.4",
3
+ "version": "1.9.6",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "A collection of Vue 3 components and utilities",