kui-vue 3.3.8 → 3.3.9

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.
@@ -12,7 +12,7 @@ export default {
12
12
  ['k-card-bordered']: bordered
13
13
  }]
14
14
  const extra = $slots.extra ? <div class="k-card-extra">{$slots.extra}</div> : null
15
- const iconNode = icon ? <Icon type={icon} /> : null
15
+ const iconNode = icon ? <Icon type={icon} class="k-card-title-icon" /> : null
16
16
  const titleNode = title ? <span class="k-card-title">{title}</span> : $slots.title || null
17
17
  return (
18
18
  <div class={classes}>
@@ -9,7 +9,7 @@
9
9
  border-bottom: 1px solid var(--kui-color-gray-80);
10
10
  padding: 14px 16px;
11
11
  line-height: 1;
12
- .k-icon {
12
+ .k-card-title-icon {
13
13
  vertical-align: middle;
14
14
  margin-right: 6px;
15
15
  font-size: 14px;
@@ -117,7 +117,7 @@
117
117
  overflow: hidden;
118
118
  text-overflow: ellipsis;
119
119
 
120
- .k-table-header-title {
120
+ .k-table-header-title ,span {
121
121
  display: block !important;
122
122
  overflow: hidden;
123
123
  text-overflow: ellipsis;
@@ -91,7 +91,7 @@ export default {
91
91
  [c.className]: c.className
92
92
  }],
93
93
  attrs: {
94
- title: c.ellipsis ? d[c.key] : null
94
+ title: c.ellipsis ? this.toString(d[c.key]) : null
95
95
  },
96
96
  style: {}
97
97
  }
@@ -217,6 +217,13 @@ export default {
217
217
  },
218
218
 
219
219
  methods: {
220
+ toString(obj) {
221
+ if (typeof obj === 'object' && obj !== null) {
222
+ return JSON.stringify(obj);
223
+ } else {
224
+ return String(obj);
225
+ }
226
+ },
220
227
  sorter(item) {
221
228
  let { key, _order } = item
222
229
  this.$emit('change', this.filters, { key, order: _order })
@@ -152,6 +152,7 @@
152
152
  .k-upload-picture-list {
153
153
  display: inline-flex;
154
154
  margin-top: 0;
155
+ flex-wrap: wrap;
155
156
  }
156
157
 
157
158
  .k-upload-select {