@vue-start/element-pro 0.2.32 → 0.2.33

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Change Log
2
2
 
3
+ # 0.2.33
4
+
5
+ - perf: Table 多选支持 pagination(分页)模式;
6
+
3
7
  # 0.2.32
4
8
 
5
9
  - fix: ProModal cancel 事件
package/dist/index.d.ts CHANGED
@@ -102,7 +102,7 @@ declare const proTableProps: () => {
102
102
  * 选择
103
103
  */
104
104
  selectedRowKeys: {
105
- type: PropType<string[]>;
105
+ type: (PropType<string> | PropType<string[]>)[];
106
106
  };
107
107
  rowSelection: {
108
108
  type: PropType<{
@@ -111,6 +111,14 @@ declare const proTableProps: () => {
111
111
  slots?: Record<string, any> | undefined;
112
112
  }) | undefined;
113
113
  onChange?: ((selectedRowKeys: string[], selectedRows: Record<string, any>[]) => void) | undefined;
114
+ /**
115
+ * 分页选择模式,type="multi" 模式下生效。
116
+ * 与当前页无关;可累计选择;
117
+ * 缺点:
118
+ * 1、如果初始化绑定的数据中存在数据源中不存在的数据,table中操作清空不了,需要外部处理(如:"清空"按钮);
119
+ * 2、onChange中没有rows
120
+ */
121
+ pagination?: boolean | undefined;
114
122
  }>;
115
123
  default: undefined;
116
124
  };