datav-like-ui
v0.1.2
Published
A Vue 2 component library for internal company use, featuring ECharts integration.
Maintainers
Readme
DataV Like UI
A Vue 2 component library for internal company use, featuring ECharts integration and cool data visualization components.
Installation
npm install datav-like-uiUsage
Global Registration
In your main.js:
import Vue from 'vue';
import DatavLikeUi from 'datav-like-ui';
import 'datav-like-ui/dist/datav-like-ui.css'; // Import styles if extracted
Vue.use(DatavLikeUi);Local Registration
import { CoolTextBox, BaseChart } from 'datav-like-ui';
export default {
components: {
CoolTextBox,
BaseChart
}
}Components
CoolTextBox
A futuristic text box for displaying key data metrics.
Props:
label(String): The label text above the value.value(String/Number): The value to display.color(String): Theme color (default:#00f2f1).
Example:
<cool-text-box label="Total Sales" value="1,234,567" color="#ff0000" />BaseChart
A wrapper around ECharts.
Props:
options(Object): ECharts option object.width(String): Width of the chart (default:100%).height(String): Height of the chart (default:300px).theme(String/Object): ECharts theme.
Example:
<base-chart :options="chartOptions" height="400px" />Development & Publishing
Project Setup
npm installCompiles and minifies for production
npm run buildPublishing to NPM
Login to NPM: Ensure you are logged in to the correct NPM registry (internal or public).
npm loginUpdate Version: Update the version number in
package.json.npm version patch # or minor, majorBuild: Always build before publishing to ensure the
distfolder is up to date.npm run buildPublish:
npm publishNote: If publishing to a private registry, ensure your
.npmrcis configured correctly.
