@tmagic/table 1.2.0-beta.2 → 1.2.0-beta.21

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,5 +1,5 @@
1
1
  <template>
2
- <el-table-column
2
+ <TMagicTableColumn
3
3
  show-overflow-tooltip
4
4
  :label="config.label"
5
5
  :width="config.width"
@@ -8,7 +8,7 @@
8
8
  :prop="config.prop"
9
9
  >
10
10
  <template v-slot="scope">
11
- <el-form v-if="config.type && editState[scope.$index]" label-width="0" :model="editState[scope.$index]">
11
+ <TMagicForm v-if="config.type && editState[scope.$index]" label-width="0" :model="editState[scope.$index]">
12
12
  <m-form-container
13
13
  :prop="config.prop"
14
14
  :rules="config.rules"
@@ -16,62 +16,61 @@
16
16
  :name="config.prop"
17
17
  :model="editState[scope.$index]"
18
18
  ></m-form-container>
19
- </el-form>
19
+ </TMagicForm>
20
20
 
21
- <el-button v-else-if="config.action === 'actionLink'" text type="primary" @click="config.handler(scope.row)">
22
- {{ formatter(config, scope.row) }}
23
- </el-button>
21
+ <TMagicButton
22
+ v-else-if="config.action === 'actionLink' && config.prop"
23
+ text
24
+ type="primary"
25
+ @click="config.handler?.(scope.row)"
26
+ >
27
+ <span v-html="formatter(config, scope.row)"></span>
28
+ </TMagicButton>
24
29
 
25
- <a v-else-if="config.action === 'img'" target="_blank" :href="scope.row[config.prop]"
30
+ <a v-else-if="config.action === 'img' && config.prop" target="_blank" :href="scope.row[config.prop]"
26
31
  ><img :src="scope.row[config.prop]" height="50"
27
32
  /></a>
28
33
 
29
- <a v-else-if="config.action === 'link'" target="_blank" :href="scope.row[config.prop]" class="keep-all">{{
30
- scope.row[config.prop]
31
- }}</a>
34
+ <a
35
+ v-else-if="config.action === 'link' && config.prop"
36
+ target="_blank"
37
+ :href="scope.row[config.prop]"
38
+ class="keep-all"
39
+ >{{ scope.row[config.prop] }}</a
40
+ >
32
41
 
33
42
  <el-tooltip v-else-if="config.action === 'tip'" placement="left">
34
43
  <template #content>
35
44
  <div>{{ formatter(config, scope.row) }}</div>
36
45
  </template>
37
- <el-button text type="primary">扩展配置</el-button>
46
+ <TMagicButton text type="primary">扩展配置</TMagicButton>
38
47
  </el-tooltip>
39
48
 
40
- <el-tag
41
- v-else-if="config.action === 'tag'"
49
+ <TMagicTag
50
+ v-else-if="config.action === 'tag' && config.prop"
42
51
  :type="typeof config.type === 'function' ? config.type(scope.row[config.prop], scope.row) : config.type"
43
52
  close-transition
44
- >{{ formatter(config, scope.row) }}</el-tag
53
+ >{{ formatter(config, scope.row) }}</TMagicTag
45
54
  >
46
55
  <div v-else v-html="formatter(config, scope.row)"></div>
47
56
  </template>
48
- </el-table-column>
57
+ </TMagicTableColumn>
49
58
  </template>
50
59
 
51
- <script lang="ts">
52
- import { defineComponent, PropType } from 'vue';
60
+ <script lang="ts" setup name="MTableColumn">
61
+ import { TMagicButton, TMagicForm, TMagicTableColumn, TMagicTag } from '@tmagic/design';
53
62
 
54
63
  import { ColumnConfig } from './schema';
55
64
  import { formatter } from './utils';
56
65
 
57
- export default defineComponent({
58
- props: {
59
- config: {
60
- type: Object as PropType<ColumnConfig>,
61
- default: () => ({}),
62
- required: true,
63
- },
64
-
65
- editState: {
66
- type: Object,
67
- default: () => {},
68
- },
69
- },
70
-
71
- setup() {
72
- return {
73
- formatter,
74
- };
66
+ withDefaults(
67
+ defineProps<{
68
+ config: ColumnConfig;
69
+ editState?: any;
70
+ }>(),
71
+ {
72
+ config: () => ({}),
73
+ editState: () => ({}),
75
74
  },
76
- });
75
+ );
77
76
  </script>
package/src/index.ts CHANGED
@@ -22,12 +22,8 @@ import Table from './Table.vue';
22
22
 
23
23
  export { default as MagicTable } from './Table.vue';
24
24
 
25
- const components = [Table];
26
-
27
25
  export default {
28
26
  install(app: App) {
29
- components.forEach((component) => {
30
- app.component(component.name, component);
31
- });
27
+ app.component('m-table', Table);
32
28
  },
33
29
  };
package/src/schema.ts CHANGED
@@ -20,9 +20,10 @@ import { FormConfig, FormValue } from '@tmagic/form';
20
20
 
21
21
  export interface ColumnActionConfig {
22
22
  type?: 'delete' | 'copy' | 'edit';
23
- display?: (vm: any, row: any) => boolean;
24
- text: string;
23
+ display?: (row: any) => boolean;
24
+ text: string | ((row: any) => string);
25
25
  name: string;
26
+ icon?: any;
26
27
  handler?: (row: any) => Promise<any> | any;
27
28
  before?: (row: any) => void;
28
29
  after?: (row: any) => void;
@@ -35,23 +36,29 @@ export type ColumnConfig = {
35
36
  values?: FormValue;
36
37
  selection?: boolean | 'single';
37
38
  selectable?: (row: any, index: number) => boolean;
38
- label: string;
39
+ label?: string;
39
40
  fixed?: 'left' | 'right' | boolean;
40
41
  width?: number | string;
41
42
  actions?: ColumnActionConfig[];
42
- type: 'popover' | 'expand' | string | ((value: any, row: any) => string);
43
- text: string;
44
- prop: string;
45
- showHeader: boolean;
43
+ type?: 'popover' | 'expand' | string | ((value: any, row: any) => string);
44
+ text?: string;
45
+ prop?: string;
46
+ showHeader?: boolean;
46
47
  table?: ColumnConfig[];
47
48
  formatter?: 'datetime' | ((item: any, row: Record<string, any>) => any);
48
- popover: {
49
- placement: '';
50
- width: '';
51
- trigger: '';
52
- tableEmbed: '';
49
+ popover?: {
50
+ placement: string;
51
+ width: string;
52
+ trigger: string;
53
+ tableEmbed: string;
53
54
  };
54
55
  sortable?: boolean | 'custom';
55
56
  action?: 'tip' | 'actionLink' | 'img' | 'link' | 'tag';
56
- handler: (row: any) => void;
57
+ handler?: (row: any) => void;
58
+ /** 当type为expand时有效,展开为html */
59
+ expandContent?: (row: any, prop?: string) => string;
60
+ /** 当type为expand时有效,展开为vue组件 */
61
+ component?: any;
62
+ /** 当type为expand时有效,展开的vue组件props */
63
+ props?: any;
57
64
  };
package/src/utils.ts CHANGED
@@ -21,6 +21,8 @@ import { datetimeFormatter } from '@tmagic/utils';
21
21
  import { ColumnConfig } from './schema';
22
22
 
23
23
  export const formatter = (item: ColumnConfig, row: any) => {
24
+ if (!item.prop) return '';
25
+
24
26
  if (item.formatter) {
25
27
  if (item.formatter === 'datetime') {
26
28
  // eslint-disable-next-line no-param-reassign
@@ -1,4 +1,3 @@
1
- import { PropType } from 'vue';
2
1
  import { ColumnConfig } from './schema';
3
2
  declare const _default: {
4
3
  new (...args: any[]): {
@@ -8,28 +7,19 @@ declare const _default: {
8
7
  columns: any[];
9
8
  config: ColumnConfig;
10
9
  rowkeyName: string;
11
- editState: Record<string, any>;
12
- }> & Omit<Readonly<import("vue").ExtractPropTypes<{
13
- columns: {
14
- type: PropType<any[]>;
15
- require: boolean;
16
- default: () => never[];
17
- };
18
- config: {
19
- type: PropType<ColumnConfig>;
20
- require: boolean;
21
- default: () => void;
22
- };
23
- rowkeyName: {
24
- type: StringConstructor;
25
- default: string;
26
- };
27
- editState: {
28
- type: ObjectConstructor;
29
- default: () => void;
30
- };
31
- }>> & {
32
- onAfterAction?: ((...args: any[]) => any) | undefined;
10
+ editState: any;
11
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
12
+ columns: any[];
13
+ config: ColumnConfig;
14
+ rowkeyName?: string | undefined;
15
+ editState?: any;
16
+ }>, {
17
+ columns: () => never[];
18
+ config: () => {};
19
+ rowkeyName: string;
20
+ editState: () => never[];
21
+ }>>> & {
22
+ "onAfter-action"?: ((...args: any[]) => any) | undefined;
33
23
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "columns" | "config" | "rowkeyName" | "editState">;
34
24
  $attrs: {
35
25
  [x: string]: unknown;
@@ -42,34 +32,25 @@ declare const _default: {
42
32
  }>;
43
33
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
44
34
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
45
- $emit: (event: "afterAction", ...args: any[]) => void;
35
+ $emit: (event: "after-action", ...args: any[]) => void;
46
36
  $el: any;
47
- $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
48
- columns: {
49
- type: PropType<any[]>;
50
- require: boolean;
51
- default: () => never[];
52
- };
53
- config: {
54
- type: PropType<ColumnConfig>;
55
- require: boolean;
56
- default: () => void;
57
- };
58
- rowkeyName: {
59
- type: StringConstructor;
60
- default: string;
61
- };
62
- editState: {
63
- type: ObjectConstructor;
64
- default: () => void;
65
- };
66
- }>> & {
67
- onAfterAction?: ((...args: any[]) => any) | undefined;
68
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "afterAction"[], string, {
37
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
69
38
  columns: any[];
70
39
  config: ColumnConfig;
40
+ rowkeyName?: string | undefined;
41
+ editState?: any;
42
+ }>, {
43
+ columns: () => never[];
44
+ config: () => {};
71
45
  rowkeyName: string;
72
- editState: Record<string, any>;
46
+ editState: () => never[];
47
+ }>>> & {
48
+ "onAfter-action"?: ((...args: any[]) => any) | undefined;
49
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "after-action"[], string, {
50
+ columns: any[];
51
+ config: ColumnConfig;
52
+ rowkeyName: string;
53
+ editState: any;
73
54
  }> & {
74
55
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
75
56
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -90,58 +71,52 @@ declare const _default: {
90
71
  $forceUpdate: () => void;
91
72
  $nextTick: typeof import("vue").nextTick;
92
73
  $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
93
- } & Readonly<import("vue").ExtractPropTypes<{
94
- columns: {
95
- type: PropType<any[]>;
96
- require: boolean;
97
- default: () => never[];
98
- };
99
- config: {
100
- type: PropType<ColumnConfig>;
101
- require: boolean;
102
- default: () => void;
103
- };
104
- rowkeyName: {
105
- type: StringConstructor;
106
- default: string;
107
- };
108
- editState: {
109
- type: ObjectConstructor;
110
- default: () => void;
111
- };
112
- }>> & {
113
- onAfterAction?: ((...args: any[]) => any) | undefined;
74
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
75
+ columns: any[];
76
+ config: ColumnConfig;
77
+ rowkeyName?: string | undefined;
78
+ editState?: any;
79
+ }>, {
80
+ columns: () => never[];
81
+ config: () => {};
82
+ rowkeyName: string;
83
+ editState: () => never[];
84
+ }>>> & {
85
+ "onAfter-action"?: ((...args: any[]) => any) | undefined;
114
86
  } & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
115
87
  __isFragment?: undefined;
116
88
  __isTeleport?: undefined;
117
89
  __isSuspense?: undefined;
118
- } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
119
- columns: {
120
- type: PropType<any[]>;
121
- require: boolean;
122
- default: () => never[];
123
- };
124
- config: {
125
- type: PropType<ColumnConfig>;
126
- require: boolean;
127
- default: () => void;
128
- };
129
- rowkeyName: {
130
- type: StringConstructor;
131
- default: string;
132
- };
133
- editState: {
134
- type: ObjectConstructor;
135
- default: () => void;
136
- };
137
- }>> & {
138
- onAfterAction?: ((...args: any[]) => any) | undefined;
139
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "afterAction"[], "afterAction", {
90
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
140
91
  columns: any[];
141
92
  config: ColumnConfig;
93
+ rowkeyName?: string | undefined;
94
+ editState?: any;
95
+ }>, {
96
+ columns: () => never[];
97
+ config: () => {};
142
98
  rowkeyName: string;
143
- editState: Record<string, any>;
144
- }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
145
- $slots: {};
146
- });
99
+ editState: () => never[];
100
+ }>>> & {
101
+ "onAfter-action"?: ((...args: any[]) => any) | undefined;
102
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "after-action"[], "after-action", {
103
+ columns: any[];
104
+ config: ColumnConfig;
105
+ rowkeyName: string;
106
+ editState: any;
107
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
147
108
  export default _default;
109
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
110
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
111
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
112
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
113
+ } : {
114
+ type: import('vue').PropType<T[K]>;
115
+ required: true;
116
+ };
117
+ };
118
+ declare type __VLS_WithDefaults<P, D> = {
119
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
120
+ default: D[K];
121
+ } : P[K];
122
+ };
@@ -1,18 +1,81 @@
1
- import { PropType } from 'vue';
2
1
  import { ColumnConfig } from './schema';
3
- declare const _default: import("vue").DefineComponent<{
4
- config: {
5
- type: PropType<ColumnConfig>;
6
- default: () => {};
7
- required: true;
8
- };
9
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
10
- config: {
11
- type: PropType<ColumnConfig>;
12
- default: () => {};
13
- required: true;
14
- };
15
- }>>, {
2
+ declare const _default: {
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: Partial<{
7
+ config: ColumnConfig;
8
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ config: ColumnConfig;
10
+ }>, {
11
+ config: () => {};
12
+ }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "config">;
13
+ $attrs: {
14
+ [x: string]: unknown;
15
+ };
16
+ $refs: {
17
+ [x: string]: unknown;
18
+ };
19
+ $slots: Readonly<{
20
+ [name: string]: import("vue").Slot | undefined;
21
+ }>;
22
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
23
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
24
+ $emit: (event: string, ...args: any[]) => void;
25
+ $el: any;
26
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
27
+ config: ColumnConfig;
28
+ }>, {
29
+ config: () => {};
30
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
31
+ config: ColumnConfig;
32
+ }> & {
33
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
34
+ created?: ((() => void) | (() => void)[]) | undefined;
35
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
36
+ mounted?: ((() => void) | (() => void)[]) | undefined;
37
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
38
+ updated?: ((() => void) | (() => void)[]) | undefined;
39
+ activated?: ((() => void) | (() => void)[]) | undefined;
40
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
41
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
42
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
43
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
44
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
45
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
46
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
47
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
48
+ };
49
+ $forceUpdate: () => void;
50
+ $nextTick: typeof import("vue").nextTick;
51
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
52
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
53
+ config: ColumnConfig;
54
+ }>, {
55
+ config: () => {};
56
+ }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
57
+ __isFragment?: undefined;
58
+ __isTeleport?: undefined;
59
+ __isSuspense?: undefined;
60
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
16
61
  config: ColumnConfig;
17
- }>;
62
+ }>, {
63
+ config: () => {};
64
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
65
+ config: ColumnConfig;
66
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
18
67
  export default _default;
68
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
69
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
70
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
71
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
72
+ } : {
73
+ type: import('vue').PropType<T[K]>;
74
+ required: true;
75
+ };
76
+ };
77
+ declare type __VLS_WithDefaults<P, D> = {
78
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
79
+ default: D[K];
80
+ } : P[K];
81
+ };
@@ -1,20 +1,81 @@
1
- import { PropType } from 'vue';
2
1
  import { ColumnConfig } from './schema';
3
- declare const _default: import("vue").DefineComponent<{
4
- config: {
5
- type: PropType<ColumnConfig>;
6
- default: () => {};
7
- required: true;
8
- };
9
- }, {
10
- formatter: (item: ColumnConfig, row: any) => any;
11
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12
- config: {
13
- type: PropType<ColumnConfig>;
14
- default: () => {};
15
- required: true;
16
- };
17
- }>>, {
2
+ declare const _default: {
3
+ new (...args: any[]): {
4
+ $: import("vue").ComponentInternalInstance;
5
+ $data: {};
6
+ $props: Partial<{
7
+ config: ColumnConfig;
8
+ }> & Omit<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
9
+ config: ColumnConfig;
10
+ }>, {
11
+ config: () => {};
12
+ }>>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "config">;
13
+ $attrs: {
14
+ [x: string]: unknown;
15
+ };
16
+ $refs: {
17
+ [x: string]: unknown;
18
+ };
19
+ $slots: Readonly<{
20
+ [name: string]: import("vue").Slot | undefined;
21
+ }>;
22
+ $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
23
+ $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null;
24
+ $emit: (event: string, ...args: any[]) => void;
25
+ $el: any;
26
+ $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
27
+ config: ColumnConfig;
28
+ }>, {
29
+ config: () => {};
30
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
31
+ config: ColumnConfig;
32
+ }> & {
33
+ beforeCreate?: ((() => void) | (() => void)[]) | undefined;
34
+ created?: ((() => void) | (() => void)[]) | undefined;
35
+ beforeMount?: ((() => void) | (() => void)[]) | undefined;
36
+ mounted?: ((() => void) | (() => void)[]) | undefined;
37
+ beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
38
+ updated?: ((() => void) | (() => void)[]) | undefined;
39
+ activated?: ((() => void) | (() => void)[]) | undefined;
40
+ deactivated?: ((() => void) | (() => void)[]) | undefined;
41
+ beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
42
+ beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
43
+ destroyed?: ((() => void) | (() => void)[]) | undefined;
44
+ unmounted?: ((() => void) | (() => void)[]) | undefined;
45
+ renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
46
+ renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
47
+ errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>> | null, info: string) => boolean | void)[]) | undefined;
48
+ };
49
+ $forceUpdate: () => void;
50
+ $nextTick: typeof import("vue").nextTick;
51
+ $watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
52
+ } & Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
53
+ config: ColumnConfig;
54
+ }>, {
55
+ config: () => {};
56
+ }>>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties;
57
+ __isFragment?: undefined;
58
+ __isTeleport?: undefined;
59
+ __isSuspense?: undefined;
60
+ } & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
18
61
  config: ColumnConfig;
19
- }>;
62
+ }>, {
63
+ config: () => {};
64
+ }>>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
65
+ config: ColumnConfig;
66
+ }> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
20
67
  export default _default;
68
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
69
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
70
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
71
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
72
+ } : {
73
+ type: import('vue').PropType<T[K]>;
74
+ required: true;
75
+ };
76
+ };
77
+ declare type __VLS_WithDefaults<P, D> = {
78
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
79
+ default: D[K];
80
+ } : P[K];
81
+ };