vxe-table 3.5.9-beta.9 → 3.5.9
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/lib/button/src/button.js +5 -1
- package/lib/button/src/button.min.js +1 -1
- package/lib/edit/src/mixin.js +12 -8
- package/lib/edit/src/mixin.min.js +1 -1
- package/lib/filter/src/panel.js +2 -1
- package/lib/filter/src/panel.min.js +1 -1
- package/lib/form/src/form-config-item.js +9 -13
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-gather.js +1 -3
- package/lib/form/src/form-gather.min.js +1 -1
- package/lib/form/src/form-item.js +12 -13
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +6 -3
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/util.js +41 -0
- package/lib/form/src/util.min.js +1 -1
- package/lib/grid/src/grid.js +3 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/grid/style/style.css +1 -1
- package/lib/grid/style/style.min.css +1 -1
- package/lib/header/src/header.js +9 -2
- package/lib/header/src/header.min.js +1 -1
- package/lib/header/style/style.css +0 -100
- package/lib/header/style/style.min.css +0 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +471 -387
- package/lib/index.umd.min.js +1 -1
- package/lib/modal/src/modal.js +9 -7
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/style/style.css +2 -2
- package/lib/modal/style/style.min.css +1 -1
- package/lib/pager/style/style.css +1 -1
- package/lib/pager/style/style.min.css +1 -1
- package/lib/select/src/select.js +3 -1
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/cell.js +14 -8
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/methods.js +24 -4
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/style/style.css +101 -0
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/style/style.css +1 -1
- package/lib/toolbar/style/style.min.css +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/tools/vn.js +18 -0
- package/lib/tools/vn.min.js +1 -0
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/store.js +10 -5
- package/lib/v-x-e-table/src/store.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +1 -1
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/button/src/button.js +7 -1
- package/packages/edit/src/mixin.js +10 -7
- package/packages/filter/src/panel.js +1 -1
- package/packages/form/src/form-config-item.js +8 -12
- package/packages/form/src/form-gather.js +1 -3
- package/packages/form/src/form-item.js +12 -14
- package/packages/form/src/form.js +6 -4
- package/packages/form/src/util.js +23 -0
- package/packages/grid/src/grid.js +2 -1
- package/packages/header/src/header.js +3 -2
- package/packages/modal/src/modal.js +5 -4
- package/packages/select/src/select.js +2 -1
- package/packages/table/src/cell.js +9 -5
- package/packages/table/src/methods.js +17 -4
- package/packages/tools/vn.js +8 -0
- package/packages/v-x-e-table/src/store.js +8 -4
- package/styles/header.scss +0 -134
- package/styles/table.scss +134 -0
- package/styles/variable.scss +1 -1
- package/types/column.d.ts +8 -8
- package/types/component.d.ts +3 -1
- package/types/v-x-e-table/renderer.d.ts +2 -1
package/types/column.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CreateElement, VNode } from 'vue'
|
|
2
|
-
import { VXETableComponent } from './component'
|
|
2
|
+
import { VXETableComponent, SlotVNodeType } from './component'
|
|
3
3
|
import { ColumnFilterOption, ColumnFilterParams, ColumnFilterRenderOptions, ColumnFilterSlotParams, ColumnFilterMethodParams } from './filter'
|
|
4
4
|
import { ColumnCellRenderParams, ColumnDefaultSlotParams, ColumnIconSlotParams, ColumnContentSlotParams, RenderOptions, OptionProps, OptionGroupProps } from './v-x-e-table'
|
|
5
5
|
import { ColumnHeaderSlotParams, ColumnHeaderRenderParams } from './header'
|
|
@@ -292,13 +292,13 @@ export interface ColumnOptions {
|
|
|
292
292
|
params?: any;
|
|
293
293
|
|
|
294
294
|
slots?: {
|
|
295
|
-
default?(params: ColumnDefaultSlotParams, h: CreateElement):
|
|
296
|
-
header?(params: ColumnHeaderSlotParams, h: CreateElement):
|
|
297
|
-
footer?(params: ColumnFooterSlotParams, h: CreateElement):
|
|
298
|
-
content?(params: ColumnContentSlotParams, h: CreateElement):
|
|
299
|
-
filter?(params: ColumnFilterSlotParams, h: CreateElement):
|
|
300
|
-
edit?(params: ColumnEditSlotParams, h: CreateElement):
|
|
301
|
-
icon?(params: ColumnIconSlotParams, h: CreateElement):
|
|
295
|
+
default?(params: ColumnDefaultSlotParams, h: CreateElement): SlotVNodeType | SlotVNodeType[]
|
|
296
|
+
header?(params: ColumnHeaderSlotParams, h: CreateElement): SlotVNodeType | SlotVNodeType[]
|
|
297
|
+
footer?(params: ColumnFooterSlotParams, h: CreateElement): SlotVNodeType | SlotVNodeType[]
|
|
298
|
+
content?(params: ColumnContentSlotParams, h: CreateElement): SlotVNodeType | SlotVNodeType[]
|
|
299
|
+
filter?(params: ColumnFilterSlotParams, h: CreateElement): SlotVNodeType | SlotVNodeType[]
|
|
300
|
+
edit?(params: ColumnEditSlotParams, h: CreateElement): SlotVNodeType | SlotVNodeType[]
|
|
301
|
+
icon?(params: ColumnIconSlotParams, h: CreateElement): SlotVNodeType | SlotVNodeType[]
|
|
302
302
|
};
|
|
303
303
|
}
|
|
304
304
|
|
package/types/component.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Vue from 'vue'
|
|
1
|
+
import Vue, { VNode } from 'vue'
|
|
2
2
|
|
|
3
3
|
declare type SizeType = null | '' | 'medium' | 'small' | 'mini'
|
|
4
4
|
|
|
@@ -22,3 +22,5 @@ export interface RecordInfo {
|
|
|
22
22
|
export interface RowInfo {
|
|
23
23
|
[key: string]: any;
|
|
24
24
|
}
|
|
25
|
+
|
|
26
|
+
export type SlotVNodeType = VNode | string | number
|
|
@@ -31,6 +31,7 @@ export interface RendererMapOptions {
|
|
|
31
31
|
* @deprecated
|
|
32
32
|
*/
|
|
33
33
|
isFooter?: boolean;
|
|
34
|
+
|
|
34
35
|
// 筛选渲染
|
|
35
36
|
filterClassName?: string | ((params: ColumnFilterRenderParams) => string | { [key: string]: boolean })
|
|
36
37
|
showFilterFooter?: boolean;
|
|
@@ -49,7 +50,7 @@ export interface RendererMapOptions {
|
|
|
49
50
|
footerExportMethod?(params: ColumnExportFooterRenderParams): string;
|
|
50
51
|
|
|
51
52
|
// 编辑渲染
|
|
52
|
-
autofocus?: string;
|
|
53
|
+
autofocus?: string | ((params: ColumnCellRenderParams | ColumnEditRenderParams) => HTMLElement | null);
|
|
53
54
|
renderEdit?(h: CreateElement, renderOpts: ColumnCellRenderOptions | ColumnEditRenderOptions, params: ColumnCellRenderParams | ColumnEditRenderParams): VNode[] | string[];
|
|
54
55
|
renderCell?(h: CreateElement, renderOpts: ColumnCellRenderOptions | ColumnEditRenderOptions, params: ColumnCellRenderParams | ColumnEditRenderParams): VNode[] | string[];
|
|
55
56
|
|