@prodfleet/pf-core (1.0.0)
Published 2024-11-24 23:05:31 +00:00 by sanjin
Installation
@prodfleet:registry=npm install @prodfleet/pf-core@1.0.0"@prodfleet/pf-core": "1.0.0"About this package
ProdFleet Core
Prodfleet core components for cross project use for shared style and design consistency.
Installation
npm install @prodfleet/pf-core
Usage
Logo Component
<template>
<Logo
source="/path/to/logo.png"
alt="Company Logo"
:size="150"
/>
</template>
<script>
import { Logo } from 'my-vue-components'
export default {
components: {
Logo
}
}
</script>
Props
source(String, required): URL of the logo imagealt(String, default: 'Logo'): Alt text for the imagesize(Number, default: 100): Size in pixels (width and height)
Events
update:modelValue: Emitted when the value changesselect: Emitted when an option is selected, provides the full option object
Development
Make sure custom registry is set in package.json file.:
Add custom registry to npm
npm config set @prodfleet:registry=https://git.outbox.systems/api/packages/Outbox.Systems/npm/
npm config set -- '//git.outbox.systems/api/packages/Outbox.Systems/npm/:_authToken' "{TOKEN}"
npm publish
npm unpublish @prodfleet/gitea_npm@1.0.0
# Install dependencies
npm install
# Build the library
npm run build
Dependencies
Development Dependencies
| ID | Version |
|---|---|
| @vitejs/plugin-vue | ^5.0.0 |
| vite | ^5.0.0 |
| vue | ^3.0.0 |
Peer Dependencies
| ID | Version |
|---|---|
| vue | ^3.0.0 |