pull/5128/head
tugcekucukoglu 2024-01-23 16:04:37 +03:00
parent 19cd180575
commit 6ccebe113b
28 changed files with 30 additions and 174 deletions

View File

@ -6,11 +6,6 @@ import { ObjectUtils, UniqueComponentId } from 'primevue/utils';
export default { export default {
name: 'BaseIcon', name: 'BaseIcon',
extends: BaseComponent, extends: BaseComponent,
data() {
return {
id: this.$attrs.id
};
},
props: { props: {
label: { label: {
type: String, type: String,
@ -22,12 +17,9 @@ export default {
} }
}, },
style: BaseIconStyle, style: BaseIconStyle,
mounted() { computed: {
this.id = this.id || UniqueComponentId(); pathId() {
}, return UniqueComponentId('pv_icon_clip_pv_id_');
watch: {
'$attrs.id': function (newValue) {
this.id = newValue || UniqueComponentId();
} }
}, },
methods: { methods: {
@ -43,7 +35,6 @@ export default {
} }
] ]
}), }),
id: this.id,
role: !isLabelEmpty ? 'img' : undefined, role: !isLabelEmpty ? 'img' : undefined,
'aria-label': !isLabelEmpty ? this.label : undefined, 'aria-label': !isLabelEmpty ? this.label : undefined,
'aria-hidden': isLabelEmpty 'aria-hidden': isLabelEmpty

View File

@ -21,11 +21,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'ArrowDownIcon', name: 'ArrowDownIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -21,11 +21,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'ArrowUpIcon', name: 'ArrowUpIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -19,11 +19,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'BanIcon', name: 'BanIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -27,11 +27,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'ExclamationTriangleIcon', name: 'ExclamationTriangleIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -21,11 +21,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'EyeSlashIcon', name: 'EyeSlashIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -19,11 +19,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'FilterIcon', name: 'FilterIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -21,11 +21,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'FilterSlashIcon', name: 'FilterSlashIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -21,11 +21,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'InfoCircleIcon', name: 'InfoCircleIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -19,11 +19,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'PencilIcon', name: 'PencilIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -19,11 +19,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'PlusIcon', name: 'PlusIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -21,11 +21,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'RefreshIcon', name: 'RefreshIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -21,11 +21,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'SearchIcon', name: 'SearchIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -21,11 +21,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'SearchMinusIcon', name: 'SearchMinusIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -21,11 +21,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'SearchPlusIcon', name: 'SearchPlusIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -25,11 +25,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'SortAltIcon', name: 'SortAltIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -19,11 +19,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'SortAmountDownIcon', name: 'SortAmountDownIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -19,11 +19,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'SortAmountUpAltIcon', name: 'SortAmountUpAltIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -19,11 +19,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'SpinnerIcon', name: 'SpinnerIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -19,11 +19,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'StarIcon', name: 'StarIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -19,11 +19,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'StarFillIcon', name: 'StarFillIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -21,11 +21,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'ThLargeIcon', name: 'ThLargeIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -21,11 +21,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'TimesCircleIcon', name: 'TimesCircleIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -21,11 +21,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'TrashIcon', name: 'TrashIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -21,11 +21,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'UndoIcon', name: 'UndoIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -21,11 +21,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'UploadIcon', name: 'UploadIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -21,11 +21,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'WindowMaximizeIcon', name: 'WindowMaximizeIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>

View File

@ -21,11 +21,6 @@ import BaseIcon from 'primevue/baseicon';
export default { export default {
name: 'WindowMinimizeIcon', name: 'WindowMinimizeIcon',
extends: BaseIcon, extends: BaseIcon
computed: {
pathId() {
return `pv_icon_clip_${this.id}`;
}
}
}; };
</script> </script>