vxe-table 4.13.21 → 4.13.23
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/grid/src/grid.js +1 -1
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +3 -0
- package/es/locale/lang/de-DE.js +3 -0
- package/es/locale/lang/en-US.js +3 -0
- package/es/locale/lang/es-ES.js +3 -0
- package/es/locale/lang/fr-FR.js +3 -0
- package/es/locale/lang/hu-HU.js +3 -0
- package/es/locale/lang/hy-AM.js +3 -0
- package/es/locale/lang/id-ID.js +3 -0
- package/es/locale/lang/it-IT.js +3 -0
- package/es/locale/lang/ja-JP.js +3 -0
- package/es/locale/lang/ko-KR.js +3 -0
- package/es/locale/lang/ms-MY.js +3 -0
- package/es/locale/lang/nb-NO.js +3 -0
- package/es/locale/lang/pt-BR.js +3 -0
- package/es/locale/lang/ru-RU.js +3 -0
- package/es/locale/lang/th-TH.js +3 -0
- package/es/locale/lang/ug-CN.js +3 -0
- package/es/locale/lang/uk-UA.js +3 -0
- package/es/locale/lang/uz-UZ.js +3 -0
- package/es/locale/lang/vi-VN.js +3 -0
- package/es/locale/lang/zh-CHT.js +3 -0
- package/es/locale/lang/zh-CN.js +3 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/render/index.js +71 -2
- package/es/table/src/cell.js +25 -11
- package/es/table/src/util.js +12 -15
- package/es/table/style.css +21 -8
- package/es/table/style.min.css +1 -1
- package/es/toolbar/src/toolbar.js +1 -1
- package/es/ui/index.js +1 -1
- package/es/ui/src/dom.js +6 -0
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +21 -8
- package/es/vxe-table/style.min.css +1 -1
- package/helper/vetur/attributes.json +1 -1
- package/helper/vetur/tags.json +1 -1
- package/lib/grid/src/grid.js +1 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +125 -29
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +3 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +3 -0
- package/lib/locale/lang/de-DE.js +3 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +3 -0
- package/lib/locale/lang/en-US.js +3 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +3 -0
- package/lib/locale/lang/es-ES.js +3 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +3 -0
- package/lib/locale/lang/fr-FR.js +3 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +3 -0
- package/lib/locale/lang/hu-HU.js +3 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +3 -0
- package/lib/locale/lang/hy-AM.js +3 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +3 -0
- package/lib/locale/lang/id-ID.js +3 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +3 -0
- package/lib/locale/lang/it-IT.js +3 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +3 -0
- package/lib/locale/lang/ja-JP.js +3 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +3 -0
- package/lib/locale/lang/ko-KR.js +3 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +3 -0
- package/lib/locale/lang/ms-MY.js +3 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +3 -0
- package/lib/locale/lang/nb-NO.js +3 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +3 -0
- package/lib/locale/lang/pt-BR.js +3 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +3 -0
- package/lib/locale/lang/ru-RU.js +3 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +3 -0
- package/lib/locale/lang/th-TH.js +3 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +3 -0
- package/lib/locale/lang/ug-CN.js +3 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +3 -0
- package/lib/locale/lang/uk-UA.js +3 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +3 -0
- package/lib/locale/lang/uz-UZ.js +3 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +3 -0
- package/lib/locale/lang/vi-VN.js +3 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +3 -0
- package/lib/locale/lang/zh-CHT.js +3 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +3 -0
- package/lib/locale/lang/zh-CN.js +3 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +3 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/render/index.js +82 -2
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/cell.js +16 -10
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/util.js +11 -14
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +21 -8
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +1 -0
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/dom.js +7 -0
- package/lib/ui/src/dom.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-table/style/style.css +21 -8
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/grid/src/grid.ts +1 -1
- package/packages/locale/lang/ar-EG.ts +3 -0
- package/packages/locale/lang/de-DE.ts +3 -0
- package/packages/locale/lang/en-US.ts +3 -0
- package/packages/locale/lang/es-ES.ts +3 -0
- package/packages/locale/lang/fr-FR.ts +3 -0
- package/packages/locale/lang/hu-HU.ts +3 -0
- package/packages/locale/lang/hy-AM.ts +3 -0
- package/packages/locale/lang/id-ID.ts +3 -0
- package/packages/locale/lang/it-IT.ts +3 -0
- package/packages/locale/lang/ja-JP.ts +3 -0
- package/packages/locale/lang/ko-KR.ts +3 -0
- package/packages/locale/lang/ms-MY.ts +3 -0
- package/packages/locale/lang/nb-NO.ts +3 -0
- package/packages/locale/lang/pt-BR.ts +3 -0
- package/packages/locale/lang/ru-RU.ts +3 -0
- package/packages/locale/lang/th-TH.ts +3 -0
- package/packages/locale/lang/ug-CN.ts +3 -0
- package/packages/locale/lang/uk-UA.ts +3 -0
- package/packages/locale/lang/uz-UZ.ts +3 -0
- package/packages/locale/lang/vi-VN.ts +3 -0
- package/packages/locale/lang/zh-CHT.ts +3 -0
- package/packages/locale/lang/zh-CN.ts +3 -0
- package/packages/table/render/index.ts +72 -2
- package/packages/table/src/cell.ts +25 -11
- package/packages/table/src/util.ts +12 -16
- package/packages/toolbar/src/toolbar.ts +1 -1
- package/packages/ui/src/dom.ts +7 -0
- package/styles/components/table.scss +27 -15
- /package/es/{iconfont.1746783164369.ttf → iconfont.1746863474194.ttf} +0 -0
- /package/es/{iconfont.1746783164369.woff → iconfont.1746863474194.woff} +0 -0
- /package/es/{iconfont.1746783164369.woff2 → iconfont.1746863474194.woff2} +0 -0
- /package/lib/{iconfont.1746783164369.ttf → iconfont.1746863474194.ttf} +0 -0
- /package/lib/{iconfont.1746783164369.woff → iconfont.1746863474194.woff} +0 -0
- /package/lib/{iconfont.1746783164369.woff2 → iconfont.1746863474194.woff2} +0 -0
|
@@ -176,7 +176,7 @@ function getComponentOns (renderOpts: any, params: any, eFns?: {
|
|
|
176
176
|
model: (cellValue: any) => void
|
|
177
177
|
change?: (...args: any[]) => void
|
|
178
178
|
blur?: (...args: any[]) => void
|
|
179
|
-
}) {
|
|
179
|
+
}, eventOns?: Record<string, any>) {
|
|
180
180
|
const { events } = renderOpts
|
|
181
181
|
const modelEvent = getModelEvent(renderOpts)
|
|
182
182
|
const changeEvent = getChangeEvent(renderOpts)
|
|
@@ -214,7 +214,7 @@ function getComponentOns (renderOpts: any, params: any, eFns?: {
|
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
return ons
|
|
217
|
+
return eventOns ? Object.assign(ons, eventOns) : ons
|
|
218
218
|
}
|
|
219
219
|
|
|
220
220
|
function getEditOns (renderOpts: VxeGlobalRendererHandles.RenderTableEditOptions, params: VxeGlobalRendererHandles.RenderTableEditParams & { $table: VxeTableConstructor & VxeTablePrivateMethods }) {
|
|
@@ -822,6 +822,76 @@ renderer.mixin({
|
|
|
822
822
|
renderTableFilter: defaultFilterRender,
|
|
823
823
|
tableFilterDefaultMethod: handleFilterMethod
|
|
824
824
|
},
|
|
825
|
+
VxeDateRangePicker: {
|
|
826
|
+
tableAutoFocus: 'input',
|
|
827
|
+
renderTableEdit (renderOpts, params: VxeGlobalRendererHandles.RenderTableEditParams & { $table: VxeTableConstructor & VxeTablePrivateMethods }) {
|
|
828
|
+
const { startField, endField } = renderOpts
|
|
829
|
+
const { $table, row, column } = params
|
|
830
|
+
const { model } = column
|
|
831
|
+
const cellValue = getCellValue(row, column)
|
|
832
|
+
const seProps: Record<string, any> = {}
|
|
833
|
+
const seOs: Record<string, any> = {}
|
|
834
|
+
if (startField && endField) {
|
|
835
|
+
seProps.startValue = XEUtils.get(row, startField)
|
|
836
|
+
seProps.endValue = XEUtils.get(row, endField)
|
|
837
|
+
seOs['onUpdate:startValue'] = (value: any) => {
|
|
838
|
+
if (startField) {
|
|
839
|
+
XEUtils.set(row, startField, value)
|
|
840
|
+
}
|
|
841
|
+
}
|
|
842
|
+
seOs['onUpdate:endValue'] = (value: any) => {
|
|
843
|
+
if (endField) {
|
|
844
|
+
XEUtils.set(row, endField, value)
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
}
|
|
848
|
+
return [
|
|
849
|
+
h(getDefaultComponent(renderOpts), {
|
|
850
|
+
...getCellEditProps(renderOpts, params, cellValue, seProps),
|
|
851
|
+
...getComponentOns(renderOpts, params, {
|
|
852
|
+
model (cellValue) {
|
|
853
|
+
model.update = true
|
|
854
|
+
model.value = cellValue
|
|
855
|
+
setCellValue(row, column, cellValue)
|
|
856
|
+
},
|
|
857
|
+
change () {
|
|
858
|
+
$table.updateStatus(params)
|
|
859
|
+
},
|
|
860
|
+
blur () {
|
|
861
|
+
$table.handleCellRuleUpdateStatus('blur', params)
|
|
862
|
+
}
|
|
863
|
+
}, seOs)
|
|
864
|
+
})
|
|
865
|
+
]
|
|
866
|
+
},
|
|
867
|
+
renderTableCell (renderOpts, params) {
|
|
868
|
+
const { startField, endField } = renderOpts
|
|
869
|
+
const { row, column } = params
|
|
870
|
+
let startValue = ''
|
|
871
|
+
let endValue = ''
|
|
872
|
+
if (startField && endField) {
|
|
873
|
+
startValue = XEUtils.get(row, startField)
|
|
874
|
+
endValue = XEUtils.get(row, endField)
|
|
875
|
+
} else {
|
|
876
|
+
const cellValue = XEUtils.get(row, column.field)
|
|
877
|
+
if (cellValue) {
|
|
878
|
+
if (XEUtils.isArray(cellValue)) {
|
|
879
|
+
startValue = cellValue[0]
|
|
880
|
+
endValue = cellValue[1]
|
|
881
|
+
} else {
|
|
882
|
+
const strs = `${cellValue}`.split(',')
|
|
883
|
+
startValue = strs[0]
|
|
884
|
+
endValue = strs[1]
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
let cellLabel = ''
|
|
889
|
+
if (startValue && endValue) {
|
|
890
|
+
cellLabel = `${startValue} ~ ${endValue}`
|
|
891
|
+
}
|
|
892
|
+
return getCellLabelVNs(renderOpts, params, cellLabel)
|
|
893
|
+
}
|
|
894
|
+
},
|
|
825
895
|
VxeTextarea: {
|
|
826
896
|
tableAutoFocus: 'textarea',
|
|
827
897
|
renderTableEdit: defaultEditRender,
|
|
@@ -14,15 +14,19 @@ function renderTitlePrefixIcon (params: VxeTableDefines.CellRenderHeaderParams &
|
|
|
14
14
|
const { $table, column } = params
|
|
15
15
|
const titlePrefix = column.titlePrefix || column.titleHelp
|
|
16
16
|
if (titlePrefix) {
|
|
17
|
-
return h('
|
|
18
|
-
class: ['vxe-cell-title-prefix-icon', titlePrefix.iconStatus ? `theme--${titlePrefix.iconStatus}` : ''
|
|
17
|
+
return h('span', {
|
|
18
|
+
class: ['vxe-cell-title-prefix-icon', titlePrefix.iconStatus ? `theme--${titlePrefix.iconStatus}` : ''],
|
|
19
19
|
onMouseenter (evnt: MouseEvent) {
|
|
20
20
|
$table.triggerHeaderTitleEvent(evnt, titlePrefix, params)
|
|
21
21
|
},
|
|
22
22
|
onMouseleave (evnt: MouseEvent) {
|
|
23
23
|
$table.handleTargetLeaveEvent(evnt)
|
|
24
24
|
}
|
|
25
|
-
}
|
|
25
|
+
}, [
|
|
26
|
+
h('i', {
|
|
27
|
+
class: titlePrefix.icon || getIcon().TABLE_TITLE_PREFIX
|
|
28
|
+
})
|
|
29
|
+
])
|
|
26
30
|
}
|
|
27
31
|
return renderEmptyElement($table)
|
|
28
32
|
}
|
|
@@ -31,15 +35,19 @@ function renderTitleSuffixIcon (params: VxeTableDefines.CellRenderHeaderParams &
|
|
|
31
35
|
const { $table, column } = params
|
|
32
36
|
const titleSuffix = column.titleSuffix
|
|
33
37
|
if (titleSuffix) {
|
|
34
|
-
return h('
|
|
35
|
-
class: ['vxe-cell-title-suffix-icon', titleSuffix.iconStatus ? `theme--${titleSuffix.iconStatus}` : ''
|
|
38
|
+
return h('span', {
|
|
39
|
+
class: ['vxe-cell-title-suffix-icon', titleSuffix.iconStatus ? `theme--${titleSuffix.iconStatus}` : ''],
|
|
36
40
|
onMouseenter (evnt: MouseEvent) {
|
|
37
41
|
$table.triggerHeaderTitleEvent(evnt, titleSuffix, params)
|
|
38
42
|
},
|
|
39
43
|
onMouseleave (evnt: MouseEvent) {
|
|
40
44
|
$table.handleTargetLeaveEvent(evnt)
|
|
41
45
|
}
|
|
42
|
-
}
|
|
46
|
+
}, [
|
|
47
|
+
h('i', {
|
|
48
|
+
class: titleSuffix.icon || getIcon().TABLE_TITLE_SUFFIX
|
|
49
|
+
})
|
|
50
|
+
])
|
|
43
51
|
}
|
|
44
52
|
return renderEmptyElement($table)
|
|
45
53
|
}
|
|
@@ -1090,14 +1098,20 @@ export const Cell = {
|
|
|
1090
1098
|
if (isEnableConf(editConfig)) {
|
|
1091
1099
|
editIconVNs = [
|
|
1092
1100
|
isRequired && editOpts.showAsterisk
|
|
1093
|
-
? h('
|
|
1101
|
+
? h('span', {
|
|
1094
1102
|
class: 'vxe-cell--required-icon'
|
|
1095
|
-
}
|
|
1103
|
+
}, [
|
|
1104
|
+
h('i')
|
|
1105
|
+
])
|
|
1096
1106
|
: renderEmptyElement($table),
|
|
1097
1107
|
isEnableConf(editRender) && editOpts.showIcon
|
|
1098
|
-
? h('
|
|
1099
|
-
class:
|
|
1100
|
-
}
|
|
1108
|
+
? h('span', {
|
|
1109
|
+
class: 'vxe-cell--edit-icon'
|
|
1110
|
+
}, [
|
|
1111
|
+
h('i', {
|
|
1112
|
+
class: editOpts.icon || getIcon().TABLE_EDIT
|
|
1113
|
+
})
|
|
1114
|
+
])
|
|
1101
1115
|
: renderEmptyElement($table)
|
|
1102
1116
|
]
|
|
1103
1117
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { watch, reactive, nextTick } from 'vue'
|
|
2
2
|
import XEUtils from 'xe-utils'
|
|
3
3
|
import { ColumnInfo } from './columnInfo'
|
|
4
|
-
import { isPx, isScale } from '../../ui/src/dom'
|
|
4
|
+
import { isPx, isScale, queryElement } from '../../ui/src/dom'
|
|
5
5
|
import { eqEmptyValue } from '../../ui/src/utils'
|
|
6
6
|
|
|
7
7
|
import type { VxeTableConstructor, VxeTablePrivateMethods, VxeTableDefines } from '../../../types'
|
|
@@ -191,7 +191,7 @@ function getPaddingLeftRightSize (elem: HTMLElement | null) {
|
|
|
191
191
|
return 0
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
function
|
|
194
|
+
function getElementMarginAndWidth (elem: HTMLElement | null) {
|
|
195
195
|
if (elem) {
|
|
196
196
|
const computedStyle = getComputedStyle(elem)
|
|
197
197
|
const marginLeft = XEUtils.toNumber(computedStyle.marginLeft)
|
|
@@ -201,10 +201,6 @@ function getElementMarginWidth (elem: HTMLElement | null) {
|
|
|
201
201
|
return 0
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
function queryCellElement (cell: HTMLTableCellElement, selector: string) {
|
|
205
|
-
return cell.querySelector('.vxe-cell' + selector) as HTMLElement | null
|
|
206
|
-
}
|
|
207
|
-
|
|
208
204
|
export function toFilters (filters: any) {
|
|
209
205
|
if (filters && XEUtils.isArray(filters)) {
|
|
210
206
|
return filters.map(({ label, value, data, resetValue, checked }) => {
|
|
@@ -304,19 +300,19 @@ export function getColReMinWidth (params: {
|
|
|
304
300
|
const showTitle = headOverflow === 'title'
|
|
305
301
|
const showTooltip = headOverflow === true || headOverflow === 'tooltip'
|
|
306
302
|
const hasEllipsis = showTitle || showTooltip || showEllipsis
|
|
307
|
-
const minTitleWidth = XEUtils.floor((XEUtils.toNumber(getComputedStyle(cell).fontSize) || 14) * 1.
|
|
308
|
-
const paddingLeftRight = getPaddingLeftRightSize(cell) + getPaddingLeftRightSize(
|
|
303
|
+
const minTitleWidth = XEUtils.floor((XEUtils.toNumber(getComputedStyle(cell).fontSize) || 14) * 1.8)
|
|
304
|
+
const paddingLeftRight = getPaddingLeftRightSize(cell) + getPaddingLeftRightSize(queryElement(cell, '.vxe-cell'))
|
|
309
305
|
let mWidth = minTitleWidth + paddingLeftRight
|
|
310
306
|
// 默认最小宽处理
|
|
311
307
|
if (hasEllipsis) {
|
|
312
|
-
const dragIconWidth =
|
|
313
|
-
const checkboxIconWidth =
|
|
314
|
-
const requiredIconWidth =
|
|
315
|
-
const editIconWidth =
|
|
316
|
-
const prefixIconWidth =
|
|
317
|
-
const suffixIconWidth =
|
|
318
|
-
const sortIconWidth =
|
|
319
|
-
const filterIconWidth =
|
|
308
|
+
const dragIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--drag-handle'))
|
|
309
|
+
const checkboxIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--checkbox'))
|
|
310
|
+
const requiredIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--required-icon'))
|
|
311
|
+
const editIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--edit-icon'))
|
|
312
|
+
const prefixIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell-title-prefix-icon'))
|
|
313
|
+
const suffixIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell-title-suffix-icon'))
|
|
314
|
+
const sortIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--sort'))
|
|
315
|
+
const filterIconWidth = getElementMarginAndWidth(queryElement(cell, '.vxe-cell--filter'))
|
|
320
316
|
mWidth += dragIconWidth + checkboxIconWidth + requiredIconWidth + editIconWidth + prefixIconWidth + suffixIconWidth + filterIconWidth + sortIconWidth
|
|
321
317
|
}
|
|
322
318
|
// 如果设置最小宽
|
|
@@ -227,7 +227,7 @@ export default defineComponent({
|
|
|
227
227
|
$xeGrid.triggerToolbarTolEvent(item, evnt)
|
|
228
228
|
} else {
|
|
229
229
|
const gCommandOpts = commands.get(code)
|
|
230
|
-
const params = { code, tool: item, $table: $table!, $grid: $xeGrid, $event: evnt }
|
|
230
|
+
const params = { code, button: null, tool: item, $table: $table!, $grid: $xeGrid, $event: evnt }
|
|
231
231
|
if (gCommandOpts) {
|
|
232
232
|
const tCommandMethod = gCommandOpts.tableCommandMethod || gCommandOpts.commandMethod
|
|
233
233
|
if (tCommandMethod) {
|
package/packages/ui/src/dom.ts
CHANGED
|
@@ -82,6 +82,13 @@ export function toCssUnit (val?: number | string, unit = 'px') {
|
|
|
82
82
|
return `${val || ''}`
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
export function queryElement (elem: HTMLTableCellElement, selector: string) {
|
|
86
|
+
if (elem) {
|
|
87
|
+
return elem.querySelector<HTMLElement>(selector)
|
|
88
|
+
}
|
|
89
|
+
return null
|
|
90
|
+
}
|
|
91
|
+
|
|
85
92
|
export function getDomNode () {
|
|
86
93
|
const documentElement = document.documentElement
|
|
87
94
|
const bodyElem = document.body
|
|
@@ -138,6 +138,7 @@ $btnThemeList: (
|
|
|
138
138
|
.vxe-select,
|
|
139
139
|
.vxe-tree-select,
|
|
140
140
|
.vxe-date-picker,
|
|
141
|
+
.vxe-date-range-picker,
|
|
141
142
|
.vxe-number-input,
|
|
142
143
|
.vxe-ico-picker {
|
|
143
144
|
width: 100%;
|
|
@@ -160,6 +161,7 @@ $btnThemeList: (
|
|
|
160
161
|
& > .vxe-select,
|
|
161
162
|
& > .vxe-tree-select,
|
|
162
163
|
& > .vxe-date-picker,
|
|
164
|
+
& > .vxe-date-range-picker,
|
|
163
165
|
& > .vxe-number-input,
|
|
164
166
|
& > .vxe-ico-picker {
|
|
165
167
|
width: 100%;
|
|
@@ -174,6 +176,7 @@ $btnThemeList: (
|
|
|
174
176
|
.vxe-select,
|
|
175
177
|
.vxe-tree-select,
|
|
176
178
|
.vxe-date-picker,
|
|
179
|
+
.vxe-date-range-picker,
|
|
177
180
|
.vxe-number-input,
|
|
178
181
|
.vxe-ico-picker {
|
|
179
182
|
width: 100%;
|
|
@@ -194,6 +197,7 @@ $btnThemeList: (
|
|
|
194
197
|
& > .vxe-select,
|
|
195
198
|
& > .vxe-tree-select,
|
|
196
199
|
& > .vxe-date-picker,
|
|
200
|
+
& > .vxe-date-range-picker,
|
|
197
201
|
& > .vxe-number-input,
|
|
198
202
|
& > .vxe-ico-picker {
|
|
199
203
|
width: 100%;
|
|
@@ -772,19 +776,25 @@ $btnThemeList: (
|
|
|
772
776
|
// user-select: none;
|
|
773
777
|
&.col--ellipsis {
|
|
774
778
|
& > .vxe-cell {
|
|
775
|
-
|
|
776
|
-
|
|
779
|
+
.vxe-cell--wrapper {
|
|
780
|
+
display: flex;
|
|
781
|
+
align-items: center;
|
|
782
|
+
.vxe-cell--drag-handle,
|
|
783
|
+
.vxe-cell--sort,
|
|
784
|
+
.vxe-cell--filter,
|
|
785
|
+
.vxe-cell-title-prefix-icon,
|
|
786
|
+
.vxe-cell-title-suffix-icon,
|
|
787
|
+
.vxe-cell--checkbox,
|
|
788
|
+
.vxe-cell-title-suffix-icon,
|
|
789
|
+
.vxe-cell--required-icon {
|
|
790
|
+
flex-shrink: 0;
|
|
791
|
+
}
|
|
792
|
+
}
|
|
777
793
|
.vxe-cell--title {
|
|
778
794
|
overflow: hidden;
|
|
779
795
|
text-overflow: ellipsis;
|
|
780
796
|
white-space: nowrap;
|
|
781
797
|
}
|
|
782
|
-
& > i,
|
|
783
|
-
& > span {
|
|
784
|
-
&:not(.vxe-cell--title) {
|
|
785
|
-
flex-shrink: 0;
|
|
786
|
-
}
|
|
787
|
-
}
|
|
788
798
|
}
|
|
789
799
|
}
|
|
790
800
|
.vxe-cell--required-icon {
|
|
@@ -793,14 +803,16 @@ $btnThemeList: (
|
|
|
793
803
|
width: 0.8em;
|
|
794
804
|
height: 1em;
|
|
795
805
|
line-height: 1em;
|
|
796
|
-
font-family: Verdana,Arial,Tahoma;
|
|
797
|
-
font-weight: normal;
|
|
798
806
|
position: relative;
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
807
|
+
& > i {
|
|
808
|
+
font-family: Verdana,Arial,Tahoma;
|
|
809
|
+
font-weight: normal;
|
|
810
|
+
&:before {
|
|
811
|
+
content: "*";
|
|
812
|
+
position: absolute;
|
|
813
|
+
left: 0;
|
|
814
|
+
top: 0.2em;
|
|
815
|
+
}
|
|
804
816
|
}
|
|
805
817
|
}
|
|
806
818
|
// .vxe-cell--required-icon,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|