@yoooloo42/joker 1.0.229 → 1.0.230
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/index.cjs.js +56 -49
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +56 -49
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -41998,21 +41998,6 @@ const scopeThis_box = props.scopeThis;
|
|
|
41998
41998
|
tableProps_box.table.pickCol.colsInit = unclassified.deepClone.deepClone(tableProps_box.table.cols);
|
|
41999
41999
|
|
|
42000
42000
|
const hdl = {
|
|
42001
|
-
async pageSizeChange(pageSize) {
|
|
42002
|
-
// 页记录数改变
|
|
42003
|
-
tableData_box.pageSize = pageSize;
|
|
42004
|
-
tableData_box.currentPage = 1;
|
|
42005
|
-
if(tableProps_box.table.hdlPageSizeChange){
|
|
42006
|
-
await tableProps_box.table.hdlPageSizeChange({pageSize, scopeThis: scopeThis_box});
|
|
42007
|
-
}
|
|
42008
|
-
},
|
|
42009
|
-
async currentPageChange(currentPage) {
|
|
42010
|
-
// 当前页码改变
|
|
42011
|
-
tableData_box.currentPage = currentPage;
|
|
42012
|
-
if(tableProps_box.table.hdlCurrentPageChange){
|
|
42013
|
-
await tableProps_box.table.hdlCurrentPageChange({currentPage, scopeThis: scopeThis_box});
|
|
42014
|
-
}
|
|
42015
|
-
},
|
|
42016
42001
|
cellMouseEnter(row, column, cell, event) {
|
|
42017
42002
|
// 当单元格hover进入时会触发该事件
|
|
42018
42003
|
if (tableProps_box.table.hdlCellMouseEnter) {
|
|
@@ -42026,38 +42011,6 @@ const hdl = {
|
|
|
42026
42011
|
tableProps_box.table.cellTooltip = [];
|
|
42027
42012
|
}
|
|
42028
42013
|
},
|
|
42029
|
-
rowClick(row, column, event) {
|
|
42030
|
-
// 当某一行被点击时会触发该事件
|
|
42031
|
-
if (tableProps_box.table.hdlRowClick) {
|
|
42032
|
-
tableProps_box.table.hdlRowClick({scopeThis: scopeThis_box, inherit: {
|
|
42033
|
-
row,
|
|
42034
|
-
column,
|
|
42035
|
-
event
|
|
42036
|
-
}});
|
|
42037
|
-
}
|
|
42038
|
-
},
|
|
42039
|
-
selectionChange(selection) {
|
|
42040
|
-
// 当选择项发生变化时会触发该事件
|
|
42041
|
-
if (tableProps_box.table.hdlSelectionChange) {
|
|
42042
|
-
tableProps_box.table.hdlSelectionChange({scopeThis: scopeThis_box, inherit: {
|
|
42043
|
-
selection
|
|
42044
|
-
}});
|
|
42045
|
-
}
|
|
42046
|
-
},
|
|
42047
|
-
sortChange(para) {
|
|
42048
|
-
// 当表格的排序条件发生变化的时候会触发该事件,一般用于远程排序
|
|
42049
|
-
// para.column
|
|
42050
|
-
// para.prop
|
|
42051
|
-
// para.order
|
|
42052
|
-
|
|
42053
|
-
if (tableProps_box.table.hdlSortChange) {
|
|
42054
|
-
tableProps_box.table.hdlSortChange({scopeThis: scopeThis_box, inherit: {
|
|
42055
|
-
column: para.column,
|
|
42056
|
-
prop: para.prop,
|
|
42057
|
-
order: para.order,
|
|
42058
|
-
}});
|
|
42059
|
-
}
|
|
42060
|
-
},
|
|
42061
42014
|
cellMouseover({col, row}) {
|
|
42062
42015
|
if (col.hdlMouseover) {
|
|
42063
42016
|
col.hdlMouseover({scopeThis: scopeThis_box, row, col});
|
|
@@ -42065,6 +42018,13 @@ const hdl = {
|
|
|
42065
42018
|
tableProps_box.table.cellTooltip = [];
|
|
42066
42019
|
}
|
|
42067
42020
|
},
|
|
42021
|
+
async currentPageChange(currentPage) {
|
|
42022
|
+
// 当前页码改变
|
|
42023
|
+
tableData_box.currentPage = currentPage;
|
|
42024
|
+
if(tableProps_box.table.hdlCurrentPageChange){
|
|
42025
|
+
await tableProps_box.table.hdlCurrentPageChange({currentPage, scopeThis: scopeThis_box});
|
|
42026
|
+
}
|
|
42027
|
+
},
|
|
42068
42028
|
download({row, col}) {
|
|
42069
42029
|
if(!col.hdlGetSrc){
|
|
42070
42030
|
return {
|
|
@@ -42087,6 +42047,53 @@ const hdl = {
|
|
|
42087
42047
|
fileName: src ? fileName : tableProps_box.table.colShow.download.fileName
|
|
42088
42048
|
}
|
|
42089
42049
|
},
|
|
42050
|
+
getImageSrc({row, col}){
|
|
42051
|
+
if(row[col.fieldName] && row[col.fieldName].length > 0){
|
|
42052
|
+
return row[col.fieldName][0] || ''
|
|
42053
|
+
}else {
|
|
42054
|
+
return ''
|
|
42055
|
+
}
|
|
42056
|
+
},
|
|
42057
|
+
async pageSizeChange(pageSize) {
|
|
42058
|
+
// 页记录数改变
|
|
42059
|
+
tableData_box.pageSize = pageSize;
|
|
42060
|
+
tableData_box.currentPage = 1;
|
|
42061
|
+
if(tableProps_box.table.hdlPageSizeChange){
|
|
42062
|
+
await tableProps_box.table.hdlPageSizeChange({pageSize, scopeThis: scopeThis_box});
|
|
42063
|
+
}
|
|
42064
|
+
},
|
|
42065
|
+
rowClick(row, column, event) {
|
|
42066
|
+
// 当某一行被点击时会触发该事件
|
|
42067
|
+
if (tableProps_box.table.hdlRowClick) {
|
|
42068
|
+
tableProps_box.table.hdlRowClick({scopeThis: scopeThis_box, inherit: {
|
|
42069
|
+
row,
|
|
42070
|
+
column,
|
|
42071
|
+
event
|
|
42072
|
+
}});
|
|
42073
|
+
}
|
|
42074
|
+
},
|
|
42075
|
+
selectionChange(selection) {
|
|
42076
|
+
// 当选择项发生变化时会触发该事件
|
|
42077
|
+
if (tableProps_box.table.hdlSelectionChange) {
|
|
42078
|
+
tableProps_box.table.hdlSelectionChange({scopeThis: scopeThis_box, inherit: {
|
|
42079
|
+
selection
|
|
42080
|
+
}});
|
|
42081
|
+
}
|
|
42082
|
+
},
|
|
42083
|
+
sortChange(para) {
|
|
42084
|
+
// 当表格的排序条件发生变化的时候会触发该事件,一般用于远程排序
|
|
42085
|
+
// para.column
|
|
42086
|
+
// para.prop
|
|
42087
|
+
// para.order
|
|
42088
|
+
|
|
42089
|
+
if (tableProps_box.table.hdlSortChange) {
|
|
42090
|
+
tableProps_box.table.hdlSortChange({scopeThis: scopeThis_box, inherit: {
|
|
42091
|
+
column: para.column,
|
|
42092
|
+
prop: para.prop,
|
|
42093
|
+
order: para.order,
|
|
42094
|
+
}});
|
|
42095
|
+
}
|
|
42096
|
+
},
|
|
42090
42097
|
};
|
|
42091
42098
|
|
|
42092
42099
|
const style = {
|
|
@@ -42348,8 +42355,8 @@ return (_ctx, _cache) => {
|
|
|
42348
42355
|
? (openBlock(), createBlock(_component_el_image, {
|
|
42349
42356
|
key: 5,
|
|
42350
42357
|
style: normalizeStyle(style.cell.image({col})),
|
|
42351
|
-
src: scope.row
|
|
42352
|
-
"preview-src-list": scope.row
|
|
42358
|
+
src: hdl.getImageSrc({row: scope.row, col}),
|
|
42359
|
+
"preview-src-list": [hdl.getImageSrc({row: scope.row, col})],
|
|
42353
42360
|
"preview-teleported": true,
|
|
42354
42361
|
"hide-on-click-modal": true
|
|
42355
42362
|
}, null, 8 /* PROPS */, ["style", "src", "preview-src-list"]))
|