vxe-table 4.23.19 → 4.23.20
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/dist/all.esm.js +283 -251
- package/dist/all.esm.min.js +3 -3
- package/dist/style.css +4 -1
- package/dist/style.mini.css +1 -1
- package/es/components.d.ts +1 -3
- package/es/components.js +1 -2
- package/es/esm.index.d.ts +7 -0
- package/es/esm.index.js +8 -0
- package/es/style.css +4 -1
- package/es/style.mini.css +1 -1
- package/es/table/style.css +4 -1
- package/es/table/style.mini.css +1 -1
- package/es/ui/abandon.d.ts +82 -0
- package/es/ui/abandon.js +90 -0
- package/es/ui/index.d.ts +1 -83
- package/es/ui/index.js +2 -89
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +4 -1
- package/es/vxe-table/style.mini.css +1 -1
- package/lib/components.d.ts +1 -3
- package/lib/components.js +1 -2
- package/lib/esm.index.d.ts +7 -0
- package/lib/esm.index.js +39 -0
- package/lib/index.umd.js +248 -247
- package/lib/index.umd.min.js +3 -3
- package/lib/style.css +4 -1
- package/lib/style.mini.css +1 -1
- package/lib/table/style/style.css +4 -1
- package/lib/table/style/style.mini.css +1 -1
- package/lib/ui/abandon.d.ts +82 -0
- package/lib/ui/abandon.js +110 -0
- package/lib/ui/index.d.ts +1 -83
- package/lib/ui/index.js +3 -89
- package/lib/ui/src/log.js +1 -1
- package/lib/vxe-table/style/style.css +4 -1
- package/lib/vxe-table/style/style.mini.css +1 -1
- package/package.json +1 -1
- package/packages/colgroup/index.ts +22 -22
- package/packages/column/index.ts +22 -22
- package/packages/components.ts +42 -45
- package/packages/esm.index.ts +10 -0
- package/packages/grid/index.ts +18 -18
- package/packages/grid/src/emits.ts +5 -5
- package/packages/grid/src/grid.ts +2220 -2220
- package/packages/grid/src/props.ts +22 -22
- package/packages/index.ts +13 -13
- package/packages/locale/lang/ar-EG.ts +914 -914
- package/packages/locale/lang/de-DE.ts +914 -914
- package/packages/locale/lang/en-US.ts +914 -914
- package/packages/locale/lang/es-ES.ts +914 -914
- package/packages/locale/lang/fr-FR.ts +914 -914
- package/packages/locale/lang/hu-HU.ts +914 -914
- package/packages/locale/lang/hy-AM.ts +914 -914
- package/packages/locale/lang/id-ID.ts +914 -914
- package/packages/locale/lang/it-IT.ts +914 -914
- package/packages/locale/lang/ja-JP.ts +914 -914
- package/packages/locale/lang/ko-KR.ts +914 -914
- package/packages/locale/lang/ms-MY.ts +914 -914
- package/packages/locale/lang/nb-NO.ts +914 -914
- package/packages/locale/lang/pt-BR.ts +914 -914
- package/packages/locale/lang/ru-RU.ts +914 -914
- package/packages/locale/lang/th-TH.ts +914 -914
- package/packages/locale/lang/ug-CN.ts +914 -914
- package/packages/locale/lang/uk-UA.ts +914 -914
- package/packages/locale/lang/uz-UZ.ts +914 -914
- package/packages/locale/lang/vi-VN.ts +914 -914
- package/packages/locale/lang/zh-CHT.ts +914 -914
- package/packages/locale/lang/zh-CN.ts +914 -914
- package/packages/locale/lang/zh-HK.ts +914 -914
- package/packages/locale/lang/zh-MO.ts +914 -914
- package/packages/locale/lang/zh-TC.ts +914 -914
- package/packages/locale/lang/zh-TW.ts +914 -914
- package/packages/table/index.ts +26 -26
- package/packages/table/module/custom/hook.ts +510 -510
- package/packages/table/module/custom/panel.ts +2002 -2002
- package/packages/table/module/edit/hook.ts +1232 -1232
- package/packages/table/module/export/export-panel.ts +697 -697
- package/packages/table/module/export/hook.ts +2158 -2158
- package/packages/table/module/export/import-panel.ts +319 -319
- package/packages/table/module/export/util.ts +25 -25
- package/packages/table/module/filter/hook.ts +505 -505
- package/packages/table/module/filter/panel.ts +368 -368
- package/packages/table/module/keyboard/hook.ts +498 -498
- package/packages/table/module/menu/hook.ts +330 -330
- package/packages/table/module/menu/panel.ts +272 -272
- package/packages/table/module/validator/hook.ts +653 -653
- package/packages/table/render/index.ts +1819 -1819
- package/packages/table/src/body.ts +1078 -1078
- package/packages/table/src/cell.ts +1524 -1524
- package/packages/table/src/column.ts +192 -192
- package/packages/table/src/columnInfo.ts +232 -232
- package/packages/table/src/emits.ts +134 -134
- package/packages/table/src/footer.ts +425 -425
- package/packages/table/src/group.ts +67 -67
- package/packages/table/src/header.ts +661 -661
- package/packages/table/src/props.ts +336 -336
- package/packages/table/src/store.ts +14 -14
- package/packages/table/src/use/cell-view.ts +41 -41
- package/packages/table/src/use/index.ts +1 -1
- package/packages/table/src/util.ts +1206 -1206
- package/packages/toolbar/index.ts +18 -18
- package/packages/toolbar/src/toolbar.ts +768 -768
- package/packages/ui/abandon.ts +136 -0
- package/packages/ui/index.ts +404 -524
- package/packages/ui/src/anime.ts +51 -51
- package/packages/ui/src/comp.ts +3 -3
- package/packages/ui/src/dom.ts +466 -466
- package/packages/ui/src/log.ts +19 -19
- package/packages/ui/src/utils.ts +66 -66
- package/packages/ui/src/vn.ts +55 -55
- package/packages/v-x-e-table/index.d.ts +3 -3
- package/packages/v-x-e-table/index.ts +3 -3
- package/styles/components/table.scss +2 -1
- package/types/all.d.ts +76 -76
- package/types/index.d.ts +4 -4
- /package/dist/{iconfont.1794474448348.ttf → iconfont.1794633824975.ttf} +0 -0
- /package/dist/{iconfont.1794474448348.woff → iconfont.1794633824975.woff} +0 -0
- /package/dist/{iconfont.1794474448348.woff2 → iconfont.1794633824975.woff2} +0 -0
- /package/es/{iconfont.1794474448348.ttf → iconfont.1794633824975.ttf} +0 -0
- /package/es/{iconfont.1794474448348.woff → iconfont.1794633824975.woff} +0 -0
- /package/es/{iconfont.1794474448348.woff2 → iconfont.1794633824975.woff2} +0 -0
- /package/lib/{iconfont.1794474448348.ttf → iconfont.1794633824975.ttf} +0 -0
- /package/lib/{iconfont.1794474448348.woff → iconfont.1794633824975.woff} +0 -0
- /package/lib/{iconfont.1794474448348.woff2 → iconfont.1794633824975.woff2} +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { reactive } from 'vue'
|
|
2
|
-
|
|
3
|
-
interface CrossTableDragRowObj {
|
|
4
|
-
row: any
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
// 跨表拖拽
|
|
8
|
-
export const crossTableDragRowInfo: CrossTableDragRowObj = reactive({
|
|
9
|
-
row: null
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
export function getCrossTableDragRowInfo() {
|
|
13
|
-
return crossTableDragRowInfo
|
|
14
|
-
}
|
|
1
|
+
import { reactive } from 'vue'
|
|
2
|
+
|
|
3
|
+
interface CrossTableDragRowObj {
|
|
4
|
+
row: any
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
// 跨表拖拽
|
|
8
|
+
export const crossTableDragRowInfo: CrossTableDragRowObj = reactive({
|
|
9
|
+
row: null
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
export function getCrossTableDragRowInfo() {
|
|
13
|
+
return crossTableDragRowInfo
|
|
14
|
+
}
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { computed } from 'vue'
|
|
2
|
-
import XEUtils from 'xe-utils'
|
|
3
|
-
|
|
4
|
-
import type { VxeTableDefines, VxeGlobalRendererHandles } from '../../../../types'
|
|
5
|
-
|
|
6
|
-
export function useCellView<D = any, P = Record<string, any>>(props: { renderOpts: VxeGlobalRendererHandles.RenderTableCellOptions | VxeGlobalRendererHandles.RenderTableEditOptions; renderParams: VxeGlobalRendererHandles.RenderTableCellParams | VxeGlobalRendererHandles.RenderTableEditParams }) {
|
|
7
|
-
const currColumn = computed<VxeTableDefines.ColumnInfo<D>>(() => {
|
|
8
|
-
const { renderParams } = props
|
|
9
|
-
return renderParams.column
|
|
10
|
-
})
|
|
11
|
-
|
|
12
|
-
const currRow = computed<D>(() => {
|
|
13
|
-
const { renderParams } = props
|
|
14
|
-
return renderParams.row
|
|
15
|
-
})
|
|
16
|
-
|
|
17
|
-
const cellOptions = computed<P>(() => {
|
|
18
|
-
const { renderOpts } = props
|
|
19
|
-
return (renderOpts.props as any) || {}
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
const cellModel = computed({
|
|
23
|
-
get() {
|
|
24
|
-
const { renderParams } = props
|
|
25
|
-
const { row, column } = renderParams
|
|
26
|
-
return XEUtils.get(row, column.field)
|
|
27
|
-
},
|
|
28
|
-
set(value) {
|
|
29
|
-
const { renderParams } = props
|
|
30
|
-
const { row, column } = renderParams
|
|
31
|
-
return XEUtils.set(row, column.field, value)
|
|
32
|
-
}
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
return {
|
|
36
|
-
currColumn,
|
|
37
|
-
currRow,
|
|
38
|
-
cellModel,
|
|
39
|
-
cellOptions
|
|
40
|
-
}
|
|
41
|
-
}
|
|
1
|
+
import { computed } from 'vue'
|
|
2
|
+
import XEUtils from 'xe-utils'
|
|
3
|
+
|
|
4
|
+
import type { VxeTableDefines, VxeGlobalRendererHandles } from '../../../../types'
|
|
5
|
+
|
|
6
|
+
export function useCellView<D = any, P = Record<string, any>>(props: { renderOpts: VxeGlobalRendererHandles.RenderTableCellOptions | VxeGlobalRendererHandles.RenderTableEditOptions; renderParams: VxeGlobalRendererHandles.RenderTableCellParams | VxeGlobalRendererHandles.RenderTableEditParams }) {
|
|
7
|
+
const currColumn = computed<VxeTableDefines.ColumnInfo<D>>(() => {
|
|
8
|
+
const { renderParams } = props
|
|
9
|
+
return renderParams.column
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
const currRow = computed<D>(() => {
|
|
13
|
+
const { renderParams } = props
|
|
14
|
+
return renderParams.row
|
|
15
|
+
})
|
|
16
|
+
|
|
17
|
+
const cellOptions = computed<P>(() => {
|
|
18
|
+
const { renderOpts } = props
|
|
19
|
+
return (renderOpts.props as any) || {}
|
|
20
|
+
})
|
|
21
|
+
|
|
22
|
+
const cellModel = computed({
|
|
23
|
+
get() {
|
|
24
|
+
const { renderParams } = props
|
|
25
|
+
const { row, column } = renderParams
|
|
26
|
+
return XEUtils.get(row, column.field)
|
|
27
|
+
},
|
|
28
|
+
set(value) {
|
|
29
|
+
const { renderParams } = props
|
|
30
|
+
const { row, column } = renderParams
|
|
31
|
+
return XEUtils.set(row, column.field, value)
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
|
|
35
|
+
return {
|
|
36
|
+
currColumn,
|
|
37
|
+
currRow,
|
|
38
|
+
cellModel,
|
|
39
|
+
cellOptions
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './cell-view'
|
|
1
|
+
export * from './cell-view'
|