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.
- package/components/card/card.jsx +1 -1
- package/components/card/styles/index.less +1 -1
- package/components/table/styles/index.less +1 -1
- package/components/table/table.jsx +8 -1
- package/components/upload/styles/index.less +1 -0
- package/dist/k-ui.css +2 -2
- package/dist/k-ui.js +2 -2
- package/package.json +1 -1
package/components/card/card.jsx
CHANGED
|
@@ -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}>
|
|
@@ -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 })
|