@wx-design/components 1.0.0-alpha.10 → 1.0.0-alpha.12

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wx-design/components",
3
- "version": "1.0.0-alpha.10",
3
+ "version": "1.0.0-alpha.12",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "main": "./lib/index.js",
@@ -32,15 +32,14 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@vueuse/core": "^10.6.1",
35
- "@vxe-ui/core": "^4.0.16",
35
+ "@vxe-ui/core": "^4.0.20",
36
36
  "classnames": "^2.5.1",
37
37
  "deepmerge": "^4.3.1",
38
38
  "lodash": "^4.17.21",
39
39
  "number-precision": "^1.6.0",
40
40
  "vue": "^3.3.7",
41
- "vuedraggable": "^4.1.0",
42
- "vxe-pc-ui": "4.2.32",
43
- "vxe-table": "4.7.95"
41
+ "vxe-pc-ui": "4.3.22",
42
+ "vxe-table": "4.9.16"
44
43
  },
45
44
  "peerDependencies": {
46
45
  "@element-plus/icons-vue": "2",
@@ -251,9 +251,14 @@ export type SabColumnProps<D = VxeTableDataRow> = VxeColumnProps<D> & {
251
251
  // vxe-table 实例
252
252
  xTable?: VxeTableInstance;
253
253
 
254
+ // vxe-table 表格宽度设置 auto 会是默认自适应内容宽度
255
+ // sab-table 做了处理,把 auto 置为空字符串了
256
+ // 如果不需要置空,请开始这个开关
257
+ enableAutoWidth?: boolean
258
+
254
259
  // 其他
255
- // 不参与批量操作
256
- batchForbidden?: boolean;
260
+ // 参与批量操作, 如果单元格支持编辑的话,默认 true,否则false
261
+ enableBatchAction?: boolean;
257
262
  // 不参与动态表头控制
258
263
  noHeaderSet?: boolean;
259
264
  // 参与表格尾部汇总
@@ -1,7 +1,7 @@
1
1
  import type { VxeTableInstance } from "vxe-table";
2
2
  import type { SabColumnProps } from "./column";
3
3
 
4
- type PureColumn = Pick<SabColumnProps, "field" | "title" | "visible" | "fixed">;
4
+ type PureColumn = Pick<SabColumnProps, "field" | "title" | "visible" | "fixed" | "enableBatchAction"> & { __table__seq: number };
5
5
 
6
6
  // 表格配置项存储类型
7
7
  export type SabTableSetConfig = {
@@ -40,4 +40,6 @@ export interface TableSetColumnsProps {
40
40
  initColumns?: PureColumn[];
41
41
  // vxe-table 实例
42
42
  tableRef?: VxeTableInstance;
43
+ // 展示批量操作列
44
+ showBatchActionColumn?: boolean
43
45
  }