@leevan/jtui 2.0.26 → 2.0.28
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/examples/data2.js +11362 -0
- package/examples/tableTest/table-ptbg.vue +8 -4
- package/lib/jtui.common.js +4 -4
- package/lib/jtui.umd.js +4 -4
- package/lib/jtui.umd.min.js +1 -1
- package/package.json +1 -1
- package/packages/jt-table/index.vue +2 -2
- package/yarn.lock +9248 -0
package/package.json
CHANGED
|
@@ -1051,7 +1051,7 @@ export default {
|
|
|
1051
1051
|
}
|
|
1052
1052
|
},
|
|
1053
1053
|
objectTxt(cellValue){
|
|
1054
|
-
return typeof cellValue == 'object' && cellValue !=null ? JSON.stringify(cellValue) : cellValue
|
|
1054
|
+
return typeof cellValue == 'object' && cellValue !=null ? JSON.stringify(cellValue) : cellValue === undefined ? '' : cellValue
|
|
1055
1055
|
},
|
|
1056
1056
|
//枚举转换
|
|
1057
1057
|
formatEnum({ column, cellValue }) {
|
|
@@ -1059,7 +1059,7 @@ export default {
|
|
|
1059
1059
|
let data = this.data.retjson.header.find(
|
|
1060
1060
|
(item) => item.prop == column.property
|
|
1061
1061
|
);
|
|
1062
|
-
if (data && "html" in data && "htmlType" in data) {
|
|
1062
|
+
if (data && "html" in data && Array.isArray(data.html) && "htmlType" in data) {
|
|
1063
1063
|
if (data.htmlType == "icon") {
|
|
1064
1064
|
if (Array.isArray(cellValue)) {
|
|
1065
1065
|
let str = "";
|