cnhis-design-vue 2.1.31 → 2.1.32

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cnhis-design-vue",
3
- "version": "2.1.31",
3
+ "version": "2.1.32",
4
4
  "description": "前端业务UI库",
5
5
  "keyword": "cnhis-design-vue vue cnhis",
6
6
  "homepage": "http://dv.cnhis.com/",
@@ -714,7 +714,7 @@ export default create({
714
714
  },
715
715
  // 日期显示格式化
716
716
  getDate(row, item) {
717
- let obj = row[item.columnName];
717
+ let obj = row[item.columnName] || '';
718
718
  let style = {};
719
719
  // fillColor 有值代表背景色
720
720
  if (obj?.fillColor) {
@@ -725,7 +725,7 @@ export default create({
725
725
  if (obj?.background) {
726
726
  style.color = obj.background;
727
727
  }
728
- if (!vexutils.isEmpty(obj)) {
728
+ if (obj && !vexutils.isEmpty(obj)) {
729
729
  if (vexutils.isObject(obj) && 'tooltip' in obj) {
730
730
  return [
731
731
  <a-tooltip title={obj.tooltip}>