vxe-table 4.13.21 → 4.13.22
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/style.css +6 -2
- 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/log.js +1 -1
- package/es/vxe-table/style.css +6 -2
- package/es/vxe-table/style.min.css +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 +92 -5
- 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/style/style.css +6 -2
- 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/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/vxe-table/style/style.css +6 -2
- 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/toolbar/src/toolbar.ts +1 -1
- package/styles/components/table.scss +4 -0
- /package/es/{iconfont.1746783164369.ttf → iconfont.1746836522499.ttf} +0 -0
- /package/es/{iconfont.1746783164369.woff → iconfont.1746836522499.woff} +0 -0
- /package/es/{iconfont.1746783164369.woff2 → iconfont.1746836522499.woff2} +0 -0
- /package/lib/{iconfont.1746783164369.ttf → iconfont.1746836522499.ttf} +0 -0
- /package/lib/{iconfont.1746783164369.woff → iconfont.1746836522499.woff} +0 -0
- /package/lib/{iconfont.1746783164369.woff2 → iconfont.1746836522499.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,
|
|
@@ -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) {
|
|
@@ -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%;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|