@wx-design/components 1.0.0-alpha.9 → 1.0.0
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/es/core/ConfigProvider/index.d.ts +6 -0
- package/es/core/Table/components/CellEditors/Boolean.d.ts +3 -3
- package/es/core/Table/components/CellRender.d.ts +2 -1
- package/es/core/Table/components/TableSet/utils.d.ts +1 -1
- package/es/core/Table/index.vue.d.ts +9 -4
- package/es/index.mjs +20337 -19045
- package/es/locales/lang/bn.d.ts +6 -0
- package/es/locales/lang/en.d.ts +6 -0
- package/es/locales/lang/vi.d.ts +6 -0
- package/es/locales/lang/zh-cn.d.ts +6 -0
- package/es/locales/useLocale.d.ts +6 -0
- package/es/style.css +1 -1
- package/lib/core/ConfigProvider/index.d.ts +6 -0
- package/lib/core/Table/components/CellEditors/Boolean.d.ts +3 -3
- package/lib/core/Table/components/CellRender.d.ts +2 -1
- package/lib/core/Table/components/TableSet/utils.d.ts +1 -1
- package/lib/core/Table/index.vue.d.ts +9 -4
- package/lib/index.js +7 -7
- package/lib/locales/lang/bn.d.ts +6 -0
- package/lib/locales/lang/en.d.ts +6 -0
- package/lib/locales/lang/vi.d.ts +6 -0
- package/lib/locales/lang/zh-cn.d.ts +6 -0
- package/lib/locales/useLocale.d.ts +6 -0
- package/lib/style.css +1 -1
- package/package.json +4 -5
- package/types/table/column.d.ts +7 -2
- package/types/table/table-set.d.ts +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wx-design/components",
|
|
3
|
-
"version": "1.0.0
|
|
3
|
+
"version": "1.0.0",
|
|
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.
|
|
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
|
-
"
|
|
42
|
-
"vxe-
|
|
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",
|
package/types/table/column.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
}
|