@wishbone-media/spark 0.47.0 → 0.48.0
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.js +557 -556
- package/package.json +1 -1
- package/src/assets/css/spark-table.css +8 -0
- package/src/components/SparkTable.vue +6 -5
package/package.json
CHANGED
|
@@ -383,11 +383,12 @@ const sparkTable = reactive({
|
|
|
383
383
|
const columns = get(props.settings, 'columns', [])
|
|
384
384
|
|
|
385
385
|
const transformedColumns = columns.map((col) => {
|
|
386
|
-
if (!col.wordWrap) return col
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
386
|
+
if (!col.wordWrap && !col.align) return col
|
|
387
|
+
const classes = [col.className]
|
|
388
|
+
if (col.wordWrap) classes.push('spark-table-word-wrap')
|
|
389
|
+
if (col.align === 'center') classes.push('spark-table-align-center')
|
|
390
|
+
if (col.align === 'right') classes.push('spark-table-align-right')
|
|
391
|
+
return { ...col, className: classes.filter(Boolean).join(' ') }
|
|
391
392
|
})
|
|
392
393
|
|
|
393
394
|
const hasClampedColumns = columns.some(
|