Refactor #3965 - For Inplace
parent
5296fc2bd3
commit
4804652c20
|
@ -25,8 +25,7 @@ const styles = `
|
|||
const classes = {
|
||||
root: ({ props }) => ['p-inplace p-component', { 'p-inplace-closable': props.closable }],
|
||||
display: ({ props }) => ['p-inplace-display', { 'p-disabled': props.disabled }],
|
||||
content: 'p-inplace-content',
|
||||
closeButton: ({ props }) => props.closeIcon
|
||||
content: 'p-inplace-content'
|
||||
};
|
||||
|
||||
const { load: loadStyle } = useStyle(styles, { id: 'primevue_inplace_style', manual: true });
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
<IPButton v-if="closable" :aria-label="closeAriaLabel" @click="close" :pt="ptm('closeButton')" v-bind="closeButtonProps">
|
||||
<template #icon>
|
||||
<slot name="closeicon">
|
||||
<component :is="closeIcon ? 'span' : 'TimesIcon'" :class="cx('closeButton')" v-bind="ptm('closeButton')['icon']"></component>
|
||||
<component :is="closeIcon ? 'span' : 'TimesIcon'" :class="closeIcon" v-bind="ptm('closeButton')['icon']"></component>
|
||||
</slot>
|
||||
</template>
|
||||
</IPButton>
|
||||
|
@ -17,10 +17,10 @@
|
|||
</template>
|
||||
|
||||
<script>
|
||||
import BaseInplace from './BaseInplace.vue';
|
||||
import Button from 'primevue/button';
|
||||
import FocusTrap from 'primevue/focustrap';
|
||||
import TimesIcon from 'primevue/icons/times';
|
||||
import BaseInplace from './BaseInplace.vue';
|
||||
|
||||
export default {
|
||||
name: 'Inplace',
|
||||
|
|
Loading…
Reference in New Issue