maz-ui
Version:
A standalone components library for Vue.Js 3 & Nuxt.Js 3
105 lines (104 loc) • 3.17 kB
TypeScript
import { type ChartData, type ChartType, type UpdateMode } from 'chart.js';
import { type PropType } from 'vue';
export type { ChartData, ChartType, UpdateMode };
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
/**
* Chart.js chart type
*/
type: {
type: PropType<ChartType>;
required: true;
};
/**
* The data object that is passed into the Chart.js chart
* @see https://www.chartjs.org/docs/latest/getting-started/
*/
data: {
type: PropType<ChartData<ChartType>>;
required: true;
};
/**
* The options object that is passed into the Chart.js chart
* @see https://www.chartjs.org/docs/latest/general/options.html
*/
options: {
type: ObjectConstructor;
default: () => {};
};
/**
* The plugins array that is passed into the Chart.js chart
* @see https://www.chartjs.org/docs/latest/developers/plugins.html
*/
plugins: {
type: ArrayConstructor;
default: () => never[];
};
/**
* Key name to identificate dataset
*/
datasetIdKey: {
type: StringConstructor;
default: string;
};
/**
* A mode string to indicate transition configuration should be used.
* @see https://www.chartjs.org/docs/latest/developers/api.html#update-mode
*/
updateMode: {
type: PropType<UpdateMode>;
default: undefined;
};
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
/**
* Chart.js chart type
*/
type: {
type: PropType<ChartType>;
required: true;
};
/**
* The data object that is passed into the Chart.js chart
* @see https://www.chartjs.org/docs/latest/getting-started/
*/
data: {
type: PropType<ChartData<ChartType>>;
required: true;
};
/**
* The options object that is passed into the Chart.js chart
* @see https://www.chartjs.org/docs/latest/general/options.html
*/
options: {
type: ObjectConstructor;
default: () => {};
};
/**
* The plugins array that is passed into the Chart.js chart
* @see https://www.chartjs.org/docs/latest/developers/plugins.html
*/
plugins: {
type: ArrayConstructor;
default: () => never[];
};
/**
* Key name to identificate dataset
*/
datasetIdKey: {
type: StringConstructor;
default: string;
};
/**
* A mode string to indicate transition configuration should be used.
* @see https://www.chartjs.org/docs/latest/developers/api.html#update-mode
*/
updateMode: {
type: PropType<UpdateMode>;
default: undefined;
};
}>> & Readonly<{}>, {
options: Record<string, any>;
updateMode: "reset" | "resize" | "default" | "none" | "active" | "hide" | "show";
plugins: unknown[];
datasetIdKey: string;
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
export default _default;