bw-pro-table 0.0.4 → 0.0.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,8 +1,20 @@
1
1
  import { BwProTableProps, ProColumnType } from './types';
2
+ /**
3
+ * Props 声明策略:仅声明 BwProTable 内部消费或需要名称映射的属性。
4
+ * 纯透传属性(scroll/sticky/customRow/class/style/showHeader/indentSize/tableLayout/
5
+ * customCell/customHeaderCell/defaultExpandAllRows 等)不再声明于此,
6
+ * 由 Vue $attrs 经 v-bind="$attrs" → BwProTableCore → <a-table> 自然流通。
7
+ *
8
+ * 保留声明但不在 $attrs 中透传的属性:
9
+ * - tableLocale: 名称映射,模板显式绑定 :locale="props.tableLocale"(antd 原生名为 locale)
10
+ * - expandedRowKeys/expandedRowRender: 通过 mergedExpandable 合并到 expandable 通道,消除二义性
11
+ * - loading/bordered/size/pagination/rowSelection/expandable/rowClassName/rowKey: 内部逻辑依赖
12
+ * - antd 原生 `title` 通过 $attrs 透传;工具栏标题使用 `toolbar.title` 配置
13
+ */
2
14
  interface Props extends BwProTableProps {
3
15
  }
4
16
  declare function fetchData(_retryCount?: number): Promise<void>;
5
- /** 清空所有跨页选择 */
17
+ /** 清空所有选择(跨页/非跨页模式均生效) */
6
18
  declare function handleClearAllSelection(): void;
7
19
  declare var __VLS_7: {}, __VLS_19: {}, __VLS_42: {}, __VLS_45: {}, __VLS_59: string, __VLS_60: any;
8
20
  type __VLS_Slots = {} & {
@@ -1,24 +1,47 @@
1
- import { ProColumnsType } from './types';
1
+ import { ProColumnsType, ProColumnType } from './types';
2
2
  interface Props {
3
3
  columns: ProColumnsType;
4
4
  /** 行 key 属性名(与 ant-design-vue Table rowKey 语义一致,默认 'id') */
5
5
  rowKey?: string;
6
- loading?: boolean;
6
+ /** 加载态(兼容 antd Table loading 对象形式:{ spinning, tip }) */
7
+ loading?: boolean | {
8
+ spinning?: boolean;
9
+ tip?: string;
10
+ };
7
11
  errorMessage?: string;
8
12
  pagination?: false | Record<string, any>;
9
13
  onRetry?: () => void | Promise<void>;
10
14
  /** 全局空单元格占位符,优先级低于列级 emptyText */
11
15
  defaultEmptyText?: string;
16
+ /** antd 原生 customRow:自定义行属性(含 onClick 等事件) */
17
+ customRow?: (record: any, index: number) => Record<string, any>;
12
18
  }
13
- declare var __VLS_24: string, __VLS_25: any, __VLS_28: any, __VLS_36: {
19
+ declare var __VLS_24: string, __VLS_25: any, __VLS_33: {
20
+ /** BwProTable 预渲染的默认内容(VNode),包含编辑组件/值类型渲染/空值处理 */
21
+ defaultContent: any;
22
+ /** 编辑态上下文 */
23
+ editing: {
24
+ isEditing: boolean;
25
+ isRowEditing: boolean;
26
+ };
27
+ /** 当前列 valueType(text/number/date/tag 等) */
28
+ valueType: import('./types').ValueType | undefined;
29
+ /** 当前单元格值是否为空(null/undefined/空字符串) */
30
+ isEmpty: boolean;
31
+ column: ProColumnType;
32
+ record: any;
33
+ index: number;
34
+ text: any;
35
+ value: any;
36
+ }, __VLS_41: {
14
37
  column: any;
15
38
  };
16
39
  type __VLS_Slots = {} & {
17
40
  [K in NonNullable<typeof __VLS_24>]?: (props: typeof __VLS_25) => any;
18
41
  } & {
19
- bodyCell?: (props: typeof __VLS_28) => any;
42
+ bodyCell?: (props: typeof __VLS_33) => any;
20
43
  } & {
21
- headerCell?: (props: typeof __VLS_36) => any;
44
+ headerCell?: (props: typeof __VLS_41) => any;
22
45
  };
23
46
  declare const __VLS_base: import('vue').DefineComponent<Props, {
24
47
  retry: () => void;
@@ -1,27 +1,35 @@
1
- import { ProColumnsType } from './types';
1
+ import { ProColumnsType, SearchConfig, SearchFieldConfig } from './types';
2
2
  interface Props {
3
- columns: ProColumnsType;
3
+ /**
4
+ * 列定义(独立使用时的降级数据源、或向后兼容)。
5
+ * 当 searchFields 未提供时,自动从 columns 生成搜索字段。
6
+ */
7
+ columns?: ProColumnsType;
8
+ /**
9
+ * 已解析的搜索字段列表(由父组件 BwProTable 通过 useSearchFields 合并后传入)。
10
+ * 优先级高于 columns:传入后直接使用,不再从 columns 自动生成。
11
+ */
12
+ searchFields?: SearchFieldConfig[];
4
13
  /**
5
14
  * 搜索栏配置。true 启用(全部默认值),false 禁用。
6
15
  * 注意:当值为 boolean 时,内部通过 ?? 安全回退所有字段到默认值。
7
16
  */
8
- searchConfig?: boolean | {
9
- labelWidth?: number;
10
- defaultCollapsed?: boolean;
11
- resetText?: string;
12
- searchText?: string;
13
- collapsedCount?: number;
14
- colon?: boolean;
15
- };
17
+ searchConfig?: boolean | SearchConfig;
16
18
  }
17
19
  /**
18
- * 暴露给父组件:仅清空表单 UI,不触发 reset 事件。
20
+ * 收集非空表单值(过滤掉 undefined/null/'')。
21
+ * 修复 issue #14:key 使用 field.field 而非 col.dataIndex。
22
+ */
23
+ declare function collectFormValues(): Record<string, any>;
24
+ /**
25
+ * 暴露给父组件:仅清空/恢复表单 UI,不触发 reset 事件。
19
26
  * 用于父组件在外部重置搜索状态时同步清空表单渲染,
20
27
  * 避免触发多余的 onSearchReset → fetchData 调用。
21
28
  */
22
29
  declare function resetForm(): void;
23
30
  declare const __VLS_export: import('vue').DefineComponent<Props, {
24
31
  resetForm: typeof resetForm;
32
+ collectFormValues: typeof collectFormValues;
25
33
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
26
34
  search: (params: Record<string, any>) => any;
27
35
  reset: () => any;
@@ -30,14 +38,7 @@ declare const __VLS_export: import('vue').DefineComponent<Props, {
30
38
  onReset?: (() => any) | undefined;
31
39
  }>, {
32
40
  columns: ProColumnsType;
33
- searchConfig: boolean | {
34
- labelWidth?: number;
35
- defaultCollapsed?: boolean;
36
- resetText?: string;
37
- searchText?: string;
38
- collapsedCount?: number;
39
- colon?: boolean;
40
- };
41
+ searchConfig: boolean | SearchConfig;
41
42
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
42
43
  declare const _default: typeof __VLS_export;
43
44
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { ProColumnsType, PersistedColumnState } from './types';
2
2
  interface Props {
3
- title?: string;
3
+ headerTitle?: string;
4
4
  loading?: boolean;
5
5
  hasFilters?: boolean;
6
6
  bordered?: boolean;
@@ -0,0 +1,46 @@
1
+ import { SearchComponentType, SearchFieldConfig } from '../types';
2
+ /**
3
+ * valueType 到搜索控件类型的映射。
4
+ * 当 searchField 未显式指定 component 时,通过此表自动匹配。
5
+ * 仅包含可搜索类型(非 UNSEARCHABLE_TYPES 成员)。
6
+ */
7
+ export declare const VALUE_TYPE_TO_SEARCH_COMPONENT: Record<string, SearchComponentType>;
8
+ /**
9
+ * 搜索控件类型到 ant-design-vue 组件标签的映射。
10
+ * 用于 <component :is="tag"> 动态渲染。
11
+ */
12
+ export declare const SEARCH_COMPONENT_TAG_MAP: Record<SearchComponentType, string>;
13
+ /**
14
+ * 判断指定的 SearchComponentType 是否为精确匹配控件。
15
+ * 用于 applyClientFilters 客户端筛选决定采用 === 匹配还是 includes 模糊匹配。
16
+ *
17
+ * 经由 VALUE_TYPE_TO_SEARCH_COMPONENT 映射链:所有非 input 组件均精确匹配。
18
+ */
19
+ export declare function isExactMatchComponent(type: SearchComponentType): boolean;
20
+ /**
21
+ * 根据 SearchFieldConfig 推断最终使用的搜索控件类型。
22
+ *
23
+ * 优先级链(从高到低):
24
+ * 1. renderFormItem 存在 → custom(自定义渲染,不匹配标准组件)
25
+ * 2. component 显式指定 → 直接返回
26
+ * 3. valueType → VALUE_TYPE_TO_SEARCH_COMPONENT 映射
27
+ * 4. 兜底 → input
28
+ */
29
+ export declare function resolveSearchComponent(field: SearchFieldConfig): SearchComponentType;
30
+ /**
31
+ * 根据控件类型获取 antd 组件标签名。
32
+ */
33
+ export declare function resolveComponentTag(type: SearchComponentType): string;
34
+ /**
35
+ * 合并 SearchFieldConfig 属性与 componentProps,处理特殊组件逻辑。
36
+ *
37
+ * 属性优先级:field 单独属性 > componentProps 相同属性
38
+ * 特殊处理:
39
+ * - dateTimePicker: 自动追加 showTime: true
40
+ * - dateRangePicker: 自动追加 format(若未提供)
41
+ *
42
+ * @param field - 搜索字段配置
43
+ * @param defaultPlaceholder - 默认占位文本(从 locale 获取)
44
+ * @param defaultFormat - 默认日期格式(从全局配置获取,默认 'YYYY-MM-DD')
45
+ */
46
+ export declare function resolveComponentProps(field: SearchFieldConfig, defaultPlaceholder?: string, defaultFormat?: string): Record<string, any>;
@@ -0,0 +1,25 @@
1
+ import { Ref } from 'vue';
2
+ import { ProColumnsType, SearchConfig, SearchFieldConfig } from '../types';
3
+ /**
4
+ * 将 dataIndex 归一化为字符串。
5
+ * ant-design-vue 支持 dataIndex 为数组(如 ['user', 'name'] 用于嵌套对象),
6
+ * 搜索表单 key 不支持嵌套路径,用 '.' 连接降级为平铺键名。
7
+ */
8
+ export declare function normalizeDataIndex(dataIndex: unknown): string | undefined;
9
+ /**
10
+ * 从列的 title 属性解析出纯文本 label。
11
+ * ant-design-vue 的 title 支持 string | VNode | (() => VNode) 三种形式。
12
+ * 无法解析时回退为 dataIndex。
13
+ */
14
+ export declare function resolveColumnLabel(col: any, fallback: string): string;
15
+ /**
16
+ * 将单个 ProColumnType 转换为 SearchFieldConfig(向后兼容的降级逻辑)
17
+ */
18
+ export declare function columnToSearchField(col: any, index: number): SearchFieldConfig;
19
+ /**
20
+ * 合并 searchFields 与 columns 自动生成字段
21
+ * @param columns - 表格列定义 Ref
22
+ * @param searchConfig - 搜索配置 Ref
23
+ * @returns 最终用于渲染的搜索字段列表 ComputedRef
24
+ */
25
+ export declare function useSearchFields(columns: Ref<ProColumnsType>, searchConfig: Ref<SearchConfig | undefined>): import('vue').ComputedRef<SearchFieldConfig[]>;
@@ -0,0 +1,6 @@
1
+ import { RendererFn } from './registry';
2
+ /**
3
+ * 日期时间渲染器 — valueType: 'dateTime'
4
+ * 自动 dayjs 格式化,默认 'YYYY-MM-DD HH:mm:ss',可通过 column.dateTimeFormat 或 column.dateFormat 自定义
5
+ */
6
+ export declare const dateTimeRenderer: RendererFn;
@@ -1,21 +1,24 @@
1
- import { VNode, CSSProperties } from 'vue';
1
+ import { VNode } from 'vue';
2
2
  import { TableColumnType, TablePaginationConfig } from 'ant-design-vue';
3
3
  /** 行 key 获取函数 */
4
4
  export type GetRowKey<RecordType = any> = (record: RecordType, index?: number) => string | number;
5
- /** 行选择配置(对齐 ant-design-vue TableRowSelection 接口) */
5
+ /** 行选择配置(对齐 ant-design-vue v4.2.6 TableRowSelection 接口) */
6
6
  export interface TableRowSelection<RecordType = any> {
7
7
  type?: 'checkbox' | 'radio';
8
8
  selectedRowKeys?: (string | number)[];
9
+ defaultSelectedRowKeys?: (string | number)[];
9
10
  onChange?: (selectedRowKeys: (string | number)[], selectedRows: RecordType[]) => void;
10
11
  getCheckboxProps?: (record: RecordType) => any;
11
12
  selections?: any[] | boolean;
12
13
  columnWidth?: number | string;
14
+ columnTitle?: string | VNode;
13
15
  fixed?: boolean;
14
16
  hideSelectAll?: boolean;
15
17
  preserveSelectedRowKeys?: boolean;
16
18
  checkStrictly?: boolean;
17
19
  renderCell?: (value: boolean, record: RecordType, index: number, originNode: VNode) => VNode;
18
20
  onSelect?: (record: RecordType, selected: boolean, selectedRows: RecordType[], nativeEvent: Event) => void;
21
+ onSelectMultiple?: (selected: boolean, selectedRows: RecordType[], changeRows: RecordType[]) => void;
19
22
  onSelectAll?: (selected: boolean, selectedRows: RecordType[], changeRows: RecordType[]) => void;
20
23
  onSelectInvert?: (selectedRowKeys: (string | number)[]) => void;
21
24
  onSelectNone?: () => void;
@@ -51,7 +54,7 @@ export type FilterValue = (string | number)[] | null;
51
54
  /** 行 Key 类型 */
52
55
  export type Key = string | number;
53
56
  /** 支持的 valueType 预设值 */
54
- export type ValueType = 'text' | 'number' | 'date' | 'tag' | 'image' | 'link' | 'progress' | 'avatar' | 'action' | 'index' | 'currency' | 'boolean';
57
+ export type ValueType = 'text' | 'number' | 'date' | 'dateTime' | 'tag' | 'image' | 'link' | 'progress' | 'avatar' | 'action' | 'index' | 'currency' | 'boolean';
55
58
  /** valueEnum 映射定义 */
56
59
  export interface ValueEnumItem {
57
60
  text: string;
@@ -70,6 +73,66 @@ export interface HeaderSearchConfig {
70
73
  /** 重置按钮文本 */
71
74
  resetText?: string;
72
75
  }
76
+ /** 支持的搜索控件类型枚举 */
77
+ export type SearchComponentType = 'input' | 'select' | 'datePicker' | 'dateRangePicker' | 'dateTimePicker' | 'inputNumber' | 'switch' | 'radioGroup' | 'checkboxGroup' | 'cascader' | 'treeSelect' | 'custom';
78
+ /**
79
+ * 搜索字段独立配置 — 支持脱离表格 column 独立定义搜索项。
80
+ *
81
+ * 核心契约: field 值将作为 key 出现在:
82
+ * 1. request 函数的 params 参数中
83
+ * 2. onExportAll 回调的 params 参数中
84
+ * 3. onSelectAllPages 回调的 searchParams 参数中
85
+ */
86
+ export interface SearchFieldConfig {
87
+ /** 搜索参数字段名(对应 request 参数中的 key)@required */
88
+ field: string;
89
+ /** 搜索表单中的标签文本 @required */
90
+ label: string;
91
+ /** 控件类型枚举,显式指定时优先于 valueType 自动匹配 */
92
+ component?: SearchComponentType;
93
+ /** valueType 语义(复用表格列的类型体系),用于自动匹配搜索组件。优先级:component > valueType 映射 > 默认 input */
94
+ valueType?: ValueType | string;
95
+ /** 透传给对应 antd 组件的额外 props(如 select 的 options、mode 等) */
96
+ componentProps?: Record<string, any>;
97
+ /** 占位文本(dateRangePicker 等范围组件支持 [string, string]) */
98
+ placeholder?: string | string[];
99
+ /** 表单默认值(初始化 + 重置时恢复) */
100
+ defaultValue?: any;
101
+ /** 最高优先级自定义渲染(签名与 ProColumnType.renderFormItem 一致)。提供后完全接管该字段的搜索表单渲染 */
102
+ renderFormItem?: (context: {
103
+ model: Record<string, any>;
104
+ search: () => void;
105
+ resetField: (field: string) => void;
106
+ }) => VNode;
107
+ /** 排序权重(自定义字段默认 0,自动生成字段默认 1000+index,确保自定义在前) */
108
+ order?: number;
109
+ /** 折叠时始终显示(不参与 collapsedCount 截断计算) */
110
+ persistOnCollapse?: boolean;
111
+ /** 关联的表格列 dataIndex。设置后从该列继承 title/valueType 等配置,并阻止同名列自动生成搜索项 */
112
+ columnDataIndex?: string;
113
+ /** 是否启用 clear 按钮(默认 true) */
114
+ allowClear?: boolean;
115
+ /** 是否禁用(默认 false) */
116
+ disabled?: boolean;
117
+ /** 隐藏该搜索项(可与 v-if 配合使用) */
118
+ hidden?: boolean;
119
+ /** DataSource 模式下跳过客户端筛选,仅 Request 模式生效 */
120
+ serverOnly?: boolean;
121
+ /** DataSource 模式自定义筛选函数,优先于内置匹配策略 */
122
+ onFilter?: (value: any, record: any) => boolean;
123
+ }
124
+ /** 搜索配置(扩展原有 boolean | {...} 为结构化类型) */
125
+ export interface SearchConfig {
126
+ labelWidth?: number;
127
+ defaultCollapsed?: boolean;
128
+ resetText?: string;
129
+ searchText?: string;
130
+ collapsedCount?: number;
131
+ /** 是否显示 label 后的冒号(默认 true,与 antd 一致) */
132
+ colon?: boolean;
133
+ /** 自定义搜索字段列表。未提供时降级为从 columns 自动生成(向后兼容) */
134
+ searchFields?: SearchFieldConfig[];
135
+ }
73
136
  /** ProColumn 类型 — 在 ant-design-vue TableColumnType 基础上扩展 ProTable 特有字段 */
74
137
  export interface ProColumnType<RecordType = any> extends Omit<TableColumnType<RecordType>, 'children'> {
75
138
  /** 列类型预设值 */
@@ -78,6 +141,8 @@ export interface ProColumnType<RecordType = any> extends Omit<TableColumnType<Re
78
141
  valueEnum?: ValueEnumMap;
79
142
  /** 日期格式(valueType='date' 时生效) */
80
143
  dateFormat?: string;
144
+ /** 日期时间格式(valueType='dateTime' 时生效,默认 'YYYY-MM-DD HH:mm:ss') */
145
+ dateTimeFormat?: string;
81
146
  /** 小数精度(valueType='number'/'currency' 时生效) */
82
147
  precision?: number;
83
148
  /** 货币前缀符号 */
@@ -132,6 +197,12 @@ export interface ProColumnType<RecordType = any> extends Omit<TableColumnType<Re
132
197
  hidden?: boolean;
133
198
  /** 是否在搜索栏中隐藏该列(默认 false,即显示在搜索栏中) */
134
199
  hideInSearch?: boolean;
200
+ /** 搜索栏占位文本(设置后该列自动生成的搜索项使用此值)。范围组件支持 [string, string] 格式 */
201
+ searchPlaceholder?: string | string[];
202
+ /** 搜索栏排序权重(设置后覆盖默认的 1000+index 基线,值越小越靠前) */
203
+ searchOrder?: number;
204
+ /** 搜索栏初始值/重置默认值(设置后该列自动生成的搜索项使用此值) */
205
+ initialValue?: any;
135
206
  /** 列所属分组 */
136
207
  columnGroup?: string;
137
208
  /** 列头搜索配置(true 或 HeaderSearchConfig 对象启用;仅对 valueType='text' 生效) */
@@ -510,20 +581,14 @@ export interface BwProTableProps<RecordType = any> {
510
581
  dataSource?: RecordType[];
511
582
  /** 行 key 属性 */
512
583
  rowKey?: string | GetRowKey<RecordType>;
513
- /** 搜索栏配置。true 启用(全部默认值),false 禁用 */
514
- search?: boolean | {
515
- labelWidth?: number;
516
- defaultCollapsed?: boolean;
517
- resetText?: string;
518
- searchText?: string;
519
- collapsedCount?: number;
520
- /** 是否显示 label 后的冒号(默认 true,与 antd 一致) */
521
- colon?: boolean;
522
- };
584
+ /** 搜索栏配置。true 启用(全部默认值),false 禁用,SearchConfig 启用含自定义搜索字段 */
585
+ search?: boolean | SearchConfig;
523
586
  /** 列头搜索全局配置(false 禁用所有列的 headerSearch,对象覆写默认值) */
524
587
  columnSearch?: false | HeaderSearchConfig;
525
588
  /** 工具栏配置 */
526
589
  toolbar?: false | {
590
+ /** 工具栏左侧标题文本(非 antd Table 原生 title,后者通过 $attrs 透传) */
591
+ title?: string;
527
592
  /** 是否显示边框切换开关(默认 true) */
528
593
  bordered?: boolean;
529
594
  /** 是否显示斑马纹切换开关(默认 true) */
@@ -543,8 +608,6 @@ export interface BwProTableProps<RecordType = any> {
543
608
  contextMenu?: ContextMenuConfig;
544
609
  /** 拖拽配置 */
545
610
  dragConfig?: DragConfig;
546
- /** 表格标题 */
547
- title?: string;
548
611
  /** 表格边框 */
549
612
  bordered?: boolean;
550
613
  /** 斑马纹 */
@@ -559,8 +622,13 @@ export interface BwProTableProps<RecordType = any> {
559
622
  persistence?: false | PersistenceConfig;
560
623
  /** 语言包(覆盖默认中文文案),传入部分字段即可完成局部覆写 */
561
624
  locale?: Partial<BwProTableLocale>;
562
- /** 加载态 */
563
- loading?: boolean;
625
+ /** 透传给 ant-design-vue Table 组件的原生 locale(如 Empty 组件文案),优先级高于 locale */
626
+ tableLocale?: Record<string, any>;
627
+ /** 加载态(兼容 antd Table loading 对象形式:{ spinning, tip }) */
628
+ loading?: boolean | {
629
+ spinning?: boolean;
630
+ tip?: string;
631
+ };
564
632
  /** 分页配置 */
565
633
  pagination?: false | TablePaginationConfig;
566
634
  /** 行选择 */
@@ -569,19 +637,21 @@ export interface BwProTableProps<RecordType = any> {
569
637
  crossPageSelection?: false | CrossPageSelectionConfig;
570
638
  /** 可展开行 */
571
639
  expandable?: ExpandableConfig<RecordType>;
572
- /** 滚动 */
573
- scroll?: {
574
- x?: number | string | true;
575
- y?: number | string;
576
- };
577
- /** 固定表头 */
578
- sticky?: boolean | {
579
- offsetHeader?: number;
580
- };
581
- /** 表格 CSS 类名 */
582
- class?: string;
583
- /** 表格样式 */
584
- style?: CSSProperties;
640
+ /**
641
+ * 受控展开行 keys(与 expandable.expandedRowKeys 等价)。
642
+ * 统一收敛到 expandable 通道:expandable 配置内同名属性优先。
643
+ */
644
+ expandedRowKeys?: (string | number)[];
645
+ /**
646
+ * 展开行渲染函数(与 expandable.expandedRowRender 等价)。
647
+ * 统一收敛到 expandable 通道:expandable 配置内同名属性优先。
648
+ */
649
+ expandedRowRender?: (props: {
650
+ record: RecordType;
651
+ index: number;
652
+ indent: number;
653
+ expanded: boolean;
654
+ }) => VNode;
585
655
  /** 行 className 函数(覆盖内置斑马纹/选中行样式) */
586
656
  rowClassName?: (record: RecordType, index: number) => string;
587
657
  }
package/package.json CHANGED
@@ -1,7 +1,9 @@
1
1
  {
2
2
  "name": "bw-pro-table",
3
- "version": "0.0.4",
4
- "author": {"name": "ZM"},
3
+ "version": "0.0.6",
4
+ "author": {
5
+ "name": "ZM"
6
+ },
5
7
  "description": "基于 ant-design-vue 的高级业务表格组件(ProTable),支持请求/数据源双模式、行内编辑、搜索筛选、列拖拽排序、导出导入、跨页多选、持久化等",
6
8
  "type": "module",
7
9
  "main": "./dist/bw-pro-table.umd.cjs",
@@ -64,19 +66,19 @@
64
66
  },
65
67
  "devDependencies": {
66
68
  "@ant-design/icons-vue": "^7.0.1",
67
- "@types/node": "^26.0.0",
69
+ "@types/node": "^26.1.0",
68
70
  "@vitejs/plugin-vue": "^6.0.7",
69
- "@vue/language-core": "^3.3.5",
71
+ "@vue/language-core": "^3.3.6",
70
72
  "ant-design-vue": "^4.2.6",
71
73
  "dayjs": "^1.11.21",
72
- "less": "^4.6.6",
74
+ "less": "^4.6.7",
73
75
  "screenfull": "^6.0.2",
74
76
  "typescript": "^6.0.3",
75
- "vite": "^8.0.16",
76
- "vite-plugin-dts": "^5.0.2",
77
- "vue": "^3.5.38",
77
+ "vite": "^8.1.2",
78
+ "vite-plugin-dts": "^5.0.3",
79
+ "vue": "^3.5.39",
78
80
  "vue-i18n": "^11.4.6",
79
- "vue-tsc": "^3.3.5",
81
+ "vue-tsc": "^3.3.6",
80
82
  "xlsx": "^0.18.5"
81
83
  },
82
84
  "keywords": [