Fixed #5139 - Icon: BlankIcon

pull/5161/head
mertsincan 2024-01-24 10:17:05 +00:00
parent 079589adab
commit a4ad0bba81
5 changed files with 36 additions and 0 deletions

12
components/lib/icons/blank/index.d.ts vendored Normal file
View File

@ -0,0 +1,12 @@
import { Icon } from '../../icons/index';
import { GlobalComponentConstructor } from '../../ts-helpers';
declare class BlankIcon extends Icon {}
declare module '@vue/runtime-core' {
interface GlobalComponents {
BlankIcon: GlobalComponentConstructor<BlankIcon>;
}
}
export default BlankIcon;

View File

@ -0,0 +1,13 @@
<template>
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg" v-bind="pti()">
<rect width="1" height="1" fill="currentColor" fill-opacity="0" />
</svg>
</template>
<script>
import BaseIcon from 'primevue/baseicon';
export default {
name: 'BlankIcon',
extends: BaseIcon
};
</script>

View File

@ -0,0 +1,9 @@
{
"main": "./index.cjs.js",
"module": "./index.esm.js",
"unpkg": "./index.min.js",
"types": "./index.d.ts",
"browser": {
"./sfc": "./index.vue"
}
}

View File

@ -121,6 +121,7 @@ const ICON_ALIAS = {
'primevue/icons/arrowup': path.resolve(__dirname, './components/lib/icons/arrowup/index.vue'),
'primevue/icons/ban': path.resolve(__dirname, './components/lib/icons/ban/index.vue'),
'primevue/icons/bars': path.resolve(__dirname, './components/lib/icons/bars/index.vue'),
'primevue/icons/blank': path.resolve(__dirname, './components/lib/icons/blank/index.vue'),
'primevue/icons/calendar': path.resolve(__dirname, './components/lib/icons/calendar/index.vue'),
'primevue/icons/check': path.resolve(__dirname, './components/lib/icons/check/index.vue'),
'primevue/icons/chevrondown': path.resolve(__dirname, './components/lib/icons/chevrondown/index.vue'),

View File

@ -26,6 +26,7 @@ const CORE_ICON_DEPENDENCIES = {
'primevue/icons/arrowup': 'primevue.icons.arrowup',
'primevue/icons/ban': 'primevue.icons.ban',
'primevue/icons/bars': 'primevue.icons.bars',
'primevue/icons/blank': 'primevue.icons.blank',
'primevue/icons/calendar': 'primevue.icons.calendar',
'primevue/icons/check': 'primevue.icons.check',
'primevue/icons/chevrondown': 'primevue.icons.chevrondown',