This commit is contained in:
mertsincan 2023-07-04 00:28:22 +01:00
parent 37b65d8b47
commit a0bdbee874
4 changed files with 4 additions and 254 deletions

View file

@ -1,26 +1,5 @@
<script>
import BaseComponent from 'primevue/basecomponent';
import { useStyle } from 'primevue/usestyle';
const styles = `
.p-checkbox {
display: inline-flex;
cursor: pointer;
user-select: none;
vertical-align: bottom;
position: relative;
}
.p-checkbox.p-checkbox-disabled {
cursor: default;
}
.p-checkbox-box {
display: flex;
justify-content: center;
align-items: center;
}
`;
const classes = {
root: ({ instance, props }) => [
@ -42,8 +21,6 @@ const classes = {
icon: 'p-checkbox-icon'
};
const { load: loadStyle } = useStyle(styles, { name: 'checkbox', manual: true });
export default {
name: 'BaseCheckbox',
extends: BaseComponent,
@ -105,8 +82,7 @@ export default {
}
},
css: {
classes,
loadStyle
classes
},
provide() {
return {