frappe-ui 0.1.34 → 0.1.35
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,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div
|
|
3
3
|
ref="columnRef"
|
|
4
|
-
class="group flex items-center
|
|
5
|
-
:class="alignmentMap[item.align]"
|
|
4
|
+
class="group flex items-center"
|
|
5
|
+
:class="item.align ? alignmentMap[item.align] : 'justify-between'"
|
|
6
6
|
>
|
|
7
7
|
<div
|
|
8
8
|
class="flex items-center space-x-2 truncate text-sm text-gray-600"
|
|
@@ -42,7 +42,7 @@ const props = defineProps({
|
|
|
42
42
|
onRowClick: null,
|
|
43
43
|
showTooltip: true,
|
|
44
44
|
selectable: true,
|
|
45
|
-
resizeColumn:
|
|
45
|
+
resizeColumn: false,
|
|
46
46
|
},
|
|
47
47
|
},
|
|
48
48
|
})
|
|
@@ -60,12 +60,16 @@ let _options = computed(() => {
|
|
|
60
60
|
return value === undefined ? true : value
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
+
function defaultFalse(value) {
|
|
64
|
+
return value === undefined ? false : value
|
|
65
|
+
}
|
|
66
|
+
|
|
63
67
|
return {
|
|
64
68
|
getRowRoute: props.options.getRowRoute || null,
|
|
65
69
|
onRowClick: props.options.onRowClick || null,
|
|
66
70
|
showTooltip: defaultTrue(props.options.showTooltip),
|
|
67
71
|
selectable: defaultTrue(props.options.selectable),
|
|
68
|
-
resizeColumn:
|
|
72
|
+
resizeColumn: defaultFalse(props.options.resizeColumn),
|
|
69
73
|
}
|
|
70
74
|
})
|
|
71
75
|
|
|
@@ -78,7 +78,7 @@ required to be passed in the `row` object.
|
|
|
78
78
|
4. showTooltip (Boolean) - if true, tooltip will be shown on hover of row -
|
|
79
79
|
default is true
|
|
80
80
|
5. resizeColumn (Boolean) - if true, column can be resized by dragging the
|
|
81
|
-
resizer on the right side of the column header - default is
|
|
81
|
+
resizer on the right side of the column header - default is false
|
|
82
82
|
|
|
83
83
|
---
|
|
84
84
|
|