Ripple for action icons
parent
f52e5fd2c6
commit
d42e094409
|
@ -10,18 +10,18 @@
|
||||||
<i :class="['p-datatable-reorderablerow-handle', column.rowReorderIcon]"></i>
|
<i :class="['p-datatable-reorderablerow-handle', column.rowReorderIcon]"></i>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="column.expander">
|
<template v-else-if="column.expander">
|
||||||
<button class="p-row-toggler p-link" @click="toggleRow">
|
<button class="p-row-toggler p-link" @click="toggleRow" v-ripple>
|
||||||
<span :class="rowTogglerIcon"></span>
|
<span :class="rowTogglerIcon"></span>
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
<template v-else-if="editMode === 'row' && column.rowEditor">
|
<template v-else-if="editMode === 'row' && column.rowEditor">
|
||||||
<button class="p-row-editor-init p-link" v-if="!d_editing" @click="onRowEditInit" type="button">
|
<button class="p-row-editor-init p-link" v-if="!d_editing" @click="onRowEditInit" type="button" v-ripple>
|
||||||
<span class="p-row-editor-init-icon pi pi-fw pi-pencil"></span>
|
<span class="p-row-editor-init-icon pi pi-fw pi-pencil"></span>
|
||||||
</button>
|
</button>
|
||||||
<button class="p-row-editor-save p-link" v-if="d_editing" @click="onRowEditSave" type="button">
|
<button class="p-row-editor-save p-link" v-if="d_editing" @click="onRowEditSave" type="button" v-ripple>
|
||||||
<span class="p-row-editor-save-icon pi pi-fw pi-check"></span>
|
<span class="p-row-editor-save-icon pi pi-fw pi-check"></span>
|
||||||
</button>
|
</button>
|
||||||
<button class="p-row-editor-cancel p-link" v-if="d_editing" @click="onRowEditCancel" type="button">
|
<button class="p-row-editor-cancel p-link" v-if="d_editing" @click="onRowEditCancel" type="button" v-ripple>
|
||||||
<span class="p-row-editor-cancel-icon pi pi-fw pi-times"></span>
|
<span class="p-row-editor-cancel-icon pi pi-fw pi-times"></span>
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
|
@ -35,6 +35,7 @@ import ObjectUtils from '../utils/ObjectUtils';
|
||||||
import ColumnSlot from './ColumnSlot.vue';
|
import ColumnSlot from './ColumnSlot.vue';
|
||||||
import RowRadioButton from './RowRadioButton';
|
import RowRadioButton from './RowRadioButton';
|
||||||
import RowCheckbox from './RowCheckbox.vue';
|
import RowCheckbox from './RowCheckbox.vue';
|
||||||
|
import Ripple from '../ripple/Ripple';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: {
|
props: {
|
||||||
|
@ -278,6 +279,9 @@ export default {
|
||||||
'ColumnSlot': ColumnSlot,
|
'ColumnSlot': ColumnSlot,
|
||||||
'DTRadioButton': RowRadioButton,
|
'DTRadioButton': RowRadioButton,
|
||||||
'DTCheckbox': RowCheckbox
|
'DTCheckbox': RowCheckbox
|
||||||
|
},
|
||||||
|
directives: {
|
||||||
|
'ripple': Ripple
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
|
@ -1972,6 +1972,8 @@ export default {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Expand */
|
/* Expand */
|
||||||
|
@ -1979,6 +1981,8 @@ export default {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Reorder */
|
/* Reorder */
|
||||||
|
|
|
@ -303,6 +303,8 @@ export default {
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-treenode-leaf > .p-treenode-content .p-tree-toggler {
|
.p-treenode-leaf > .p-treenode-content .p-tree-toggler {
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<li :class="containerClass">
|
<li :class="containerClass">
|
||||||
<div :class="contentClass" tabindex="0" role="treeitem" :aria-expanded="expanded"
|
<div :class="contentClass" tabindex="0" role="treeitem" :aria-expanded="expanded"
|
||||||
@click="onClick" @keydown="onKeyDown" @touchend="onTouchEnd" :style="node.style">
|
@click="onClick" @keydown="onKeyDown" @touchend="onTouchEnd" :style="node.style">
|
||||||
<button class="p-tree-toggler p-link" @click="toggle" tabindex="-1">
|
<button class="p-tree-toggler p-link" @click="toggle" tabindex="-1" v-ripple>
|
||||||
<span :class="toggleIcon"></span>
|
<span :class="toggleIcon"></span>
|
||||||
</button>
|
</button>
|
||||||
<div class="p-checkbox p-component" v-if="checkboxMode">
|
<div class="p-checkbox p-component" v-if="checkboxMode">
|
||||||
|
@ -26,6 +26,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import DomHandler from '../utils/DomHandler';
|
import DomHandler from '../utils/DomHandler';
|
||||||
|
import Ripple from '../ripple/Ripple';
|
||||||
|
|
||||||
const TreeNodeTemplate = {
|
const TreeNodeTemplate = {
|
||||||
functional: true,
|
functional: true,
|
||||||
|
@ -311,6 +312,9 @@ export default {
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
'TreeNodeTemplate': TreeNodeTemplate
|
'TreeNodeTemplate': TreeNodeTemplate
|
||||||
|
},
|
||||||
|
directives: {
|
||||||
|
'ripple': Ripple
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
|
@ -932,6 +932,8 @@ export default {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.p-treetable-toggler + .p-checkbox {
|
.p-treetable-toggler + .p-checkbox {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<tr :class="containerClass" @click="onClick" @keydown="onKeyDown" @touchend="onTouchEnd" :style="node.style" tabindex="0">
|
<tr :class="containerClass" @click="onClick" @keydown="onKeyDown" @touchend="onTouchEnd" :style="node.style" tabindex="0">
|
||||||
<td v-for="(col,i) of columns" :key="col.columnKey||col.field||i" :style="col.bodyStyle" :class="col.bodyClass">
|
<td v-for="(col,i) of columns" :key="col.columnKey||col.field||i" :style="col.bodyStyle" :class="col.bodyClass">
|
||||||
<button class="p-treetable-toggler p-link" @click="toggle" v-if="col.expander" :style="togglerStyle" tabindex="-1">
|
<button class="p-treetable-toggler p-link" @click="toggle" v-if="col.expander" :style="togglerStyle" tabindex="-1" v-ripple>
|
||||||
<i :class="togglerIcon"></i>
|
<i :class="togglerIcon"></i>
|
||||||
</button>
|
</button>
|
||||||
<div class="p-checkbox p-treetable-checkbox p-component" @click="toggleCheckbox" v-if="checkboxSelectionMode && col.expander" role="checkbox" :aria-checked="checked">
|
<div class="p-checkbox p-treetable-checkbox p-component" @click="toggleCheckbox" v-if="checkboxSelectionMode && col.expander" role="checkbox" :aria-checked="checked">
|
||||||
|
@ -22,6 +22,7 @@
|
||||||
import ObjectUtils from '../utils/ObjectUtils';
|
import ObjectUtils from '../utils/ObjectUtils';
|
||||||
import DomHandler from '../utils/DomHandler';
|
import DomHandler from '../utils/DomHandler';
|
||||||
import TreeTableColumnSlot from './TreeTableColumnSlot';
|
import TreeTableColumnSlot from './TreeTableColumnSlot';
|
||||||
|
import Ripple from '../ripple/Ripple';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'sub-ttnode',
|
name: 'sub-ttnode',
|
||||||
|
@ -247,6 +248,9 @@ export default {
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
'TTColumnSlot': TreeTableColumnSlot
|
'TTColumnSlot': TreeTableColumnSlot
|
||||||
|
},
|
||||||
|
directives: {
|
||||||
|
'ripple': Ripple
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
Loading…
Reference in New Issue